/* Benzin font families */
@font-face {
    font-family: "Benzin Regular";
    src: url("../fonts/Benzin-Regular.eot");
    src: url("../fonts/Benzin-Regular.eot?#iefix") format("embedded-opentype"),
         url("../fonts/Benzin-Regular.woff2") format("woff2"),
         url("../fonts/Benzin-Regular.woff") format("woff"),
         url("../fonts/Benzin-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Benzin Medium";
    src: url("../fonts/Benzin-Medium.eot");
    src: url("../fonts/Benzin-Medium.eot?#iefix") format("embedded-opentype"),
         url("../fonts/Benzin-Medium.woff2") format("woff2"),
         url("../fonts/Benzin-Medium.woff") format("woff"),
         url("../fonts/Benzin-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Benzin SemiBold";
    src: url("../fonts/Benzin-Semibold.eot");
    src: url("../fonts/Benzin-Semibold.eot?#iefix") format("embedded-opentype"),
         url("../fonts/Benzin-Semibold.woff2") format("woff2"),
         url("../fonts/Benzin-Semibold.woff") format("woff"),
         url("../fonts/Benzin-Semibold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Benzin Bold";
    src: url("../fonts/Benzin-Bold.eot");
    src: url("../fonts/Benzin-Bold.eot?#iefix") format("embedded-opentype"),
         url("../fonts/Benzin-Bold.woff2") format("woff2"),
         url("../fonts/Benzin-Bold.woff") format("woff"),
         url("../fonts/Benzin-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Benzin ExtraBold";
    src: url("../fonts/Benzin-ExtraBold.eot");
    src: url("../fonts/Benzin-ExtraBold.eot?#iefix") format("embedded-opentype"),
         url("../fonts/Benzin-ExtraBold.woff2") format("woff2"),
         url("../fonts/Benzin-ExtraBold.woff") format("woff"),
         url("../fonts/Benzin-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


:root {
    --mobile-submenu-top: 122px;
    --mobile-submenu-left: 12px;
    --mobile-submenu-width: calc(100vw - 24px);
    --red: #D00000;
    --white: #FFFFFF;
    --gray: #D3D3D3;
    --dark: #1E1E1C;
    --dark-red: #591919;
    --bg: var(--dark);
    --bg-rgb: 30, 30, 28;
    --prev-next-bg: #ae3333;
    --surface: #252523;
    --surface-2: var(--dark-red);
    --text: var(--white);
    --text-rgb: 255, 255, 255;
    --muted: var(--gray);
    --border: rgba(255,255,255,0.12);
    --border-strong: rgba(211,211,211,0.2);
    --surface-elevated: var(--surface);
    --surface-card: var(--surface);
    --text-color: var(--text);
    --hint-up: 0;
    --hint-down: 0;
    --hint-left: 0;
    --hint-right: 0;
    --mobile-actions-top: 50vh;
    --mobile-actions-right: 12px;
    --footer-exact-width: auto;
    --footer-exact-left: auto;
    --dropdown-bg: #2b3035;
    --dropdown-link-color: #dee2e6;
    --dropdown-link-hover-bg: #343a40;
    --dropdown-divider-bg: #495057;
}

.dropdown-menu {
    --bs-dropdown-bg: var(--dropdown-bg);
    --bs-dropdown-link-color: var(--dropdown-link-color);
    --bs-dropdown-link-hover-bg: var(--dropdown-link-hover-bg);
    --bs-dropdown-link-hover-color: var(--white);
    --bs-dropdown-divider-bg: var(--dropdown-divider-bg);
}

body.light-theme .dropdown-menu {
    --bs-dropdown-link-hover-color: var(--red);
}

/* Aspect Ratio Utilities */
.ratio {
    position: relative;
    width: 100%;
}

.ratio::before {
    display: block;
    padding-top: var(--bs-aspect-ratio);
    content: "";
}

.ratio > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ratio-16x9 {
    --bs-aspect-ratio: 56.25%;
}

.ratio-9x16 {
    --bs-aspect-ratio: 177.77%;
}

.video-play-button {
    display: none !important;
}


.cursor-pointer {
    cursor: pointer;
}

.object-fit-cover {
    object-fit: cover;
}

body.light-theme {
    --bg: #f6f3f1;
    --bg-rgb: 246, 243, 241;
    --surface: #ffffff;
    --surface-2: #efe3e3;
    --text: #404040;
    --text-rgb: 64, 64, 64;
    --muted: #666666;
    --border: rgba(184,0,0,0.18);
    --border-strong: rgba(184,0,0,0.25);
    --footer-bg: #efe3e3;
    --surface-elevated: #ffffff;
    --surface-card: #ffffff;
    --text-color: var(--text);
    --dropdown-bg: #ffffff;
    --dropdown-link-color: #404040;
    --dropdown-link-hover-bg: #f8f9fa;
    --dropdown-divider-bg: #dee2e6;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Benzin Medium", Arial, sans-serif;
    transition: background .25s ease, color .25s ease;
}

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

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-shell {
    max-width: 1720px;
}

.content-shell {
    max-width: 1180px;
}

.title-font {
    font-family: "Benzin Bold", Arial, sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid var(--border);
    overflow: visible;
    background: transparent;
    backdrop-filter: none;
}

.site-header-inner {
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(10px);
    overflow: visible;
}

.logo-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--red);
    font: 30px "Benzin Bold", Arial, sans-serif;
    line-height: 1;
    flex: 0 0 auto;
}

.logo-text {
    line-height: .95;
    text-transform: uppercase;
    font-family: "Benzin Bold", Arial, sans-serif;
    font-size: clamp(28px, 3vw, 42px);
}

.icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--red);
    font-size: 20px;
    transition: .25s ease;
}

.icon-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: translateY(-2px);
}

.search-input {
    width: 100%;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 0 16px;
    outline: none;
}

.search-submit-btn {
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--red);
    padding: 0 20px;
    transition: .25s ease;
    white-space: nowrap;
    font: 14px "Benzin Bold", Arial, sans-serif;
}

.search-submit-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-wrap {
    position: relative;
    overflow: visible;
    padding-bottom: 8px;
}

.nav-strip {
    overflow: visible;
    scrollbar-width: none;
}

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

.nav-link-custom,
.footer-nav-link,
.footer-policy-link {
    position: relative;
    display: inline-flex;
    width: fit-content;
    padding: 8px 0;
    color: inherit;
    white-space: normal;
}

.nav-link-custom::after,
.footer-nav-link::after,
.footer-policy-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--red);
    transform: translateX(-50%);
    transition: width .28s ease;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after,
.footer-nav-link:hover::after,
.footer-nav-link.active::after,
.footer-policy-link:hover::after,
.footer-policy-link.active::after {
    width: 100%;
}

#mainNav {
    position: relative;
    overflow: visible;
    width: 100%;
    min-width: 100%;
}

.nav-item-has-submenu {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: visible;
}

.nav-item-has-submenu > .nav-link-custom {
    padding-right: 0;
}

.nav-item-has-submenu > .nav-link-custom::before {
    content: none;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    z-index: 3000;
    pointer-events: none;
}

.submenu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    width: 100%;
    height: 14px;
    background: transparent;
}

.submenu li {
    width: 100%;
}

.submenu a {
    display: block;
    padding: 12px 18px;
    color: var(--text);
    transition: .2s ease;
}

.submenu a:hover {
    background: color-mix(in srgb, var(--red) 12%, transparent);
    color: var(--red);
}

.nav-item-has-submenu:hover .submenu,
.nav-item-has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}



.nav-link-submenu-toggle {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-item-has-submenu.nav-open > .nav-link-custom::before {
    content: none;
}

.submenu-report-news-link {
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .nav-strip-redesign {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item-has-submenu {
        position: static;
    }

    .nav-item-has-submenu > .nav-link-custom {
        padding-right: 0;
    }

    .nav-item-has-submenu > .nav-link-custom::before {
        content: none;
    }

    .nav-item-has-submenu .submenu {
        position: fixed;
        top: var(--mobile-submenu-top);
        left: var(--mobile-submenu-left);
        right: auto;
        min-width: 0;
        width: var(--mobile-submenu-width);
        margin: 0;
        padding: 22px 0;
        border: none;
        border-radius: 36px;
        background: rgba(210, 210, 210, 0.96);
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
        max-height: min(70vh, 560px);
        overflow-y: auto;
        transform: translateY(10px);
        z-index: 4000;
        backdrop-filter: blur(2px);
        pointer-events: none;
    }

    .nav-item-has-submenu .submenu::before {
        display: none;
    }

    .nav-item-has-submenu .submenu li + li {
        margin-top: 2px;
    }

    .nav-item-has-submenu .submenu a {
        padding: 8px 28px;
        color: #ffffff;
        font-size: clamp(18px, 5vw, 22px);
        line-height: 1.35;
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    .nav-item-has-submenu .submenu a:hover,
    .nav-item-has-submenu .submenu a:focus {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
    }

    .nav-item-has-submenu.nav-open .submenu,
    .nav-item-has-submenu .submenu.is-portal-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

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

.main-content-column {
    min-width: 0;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.breadcrumbs-shell {
    margin-bottom: 28px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.breadcrumbs-placeholder {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.breadcrumbs-placeholder span {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs-placeholder .crumb-current {
    color: var(--text);
}

.section-block + .section-block {
    margin-top: 48px;
}

.section-title {
    font: clamp(22px, 2vw, 30px) "Benzin Bold", Arial, sans-serif;
    text-transform: uppercase;
}

.carousel-card,
.news-card,
.feed-card,
.card {
    border-radius: 24px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    height: 100%;
}

.card {
    height: auto;
}

.card-body {
    color: var(--text);
}

.badge.bg-primary {
    background-color: var(--red) !important;
}

.badge.bg-secondary {
    background-color: var(--surface-2) !important;
    color: var(--text);
}

.carousel-image,
.feed-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}

.news-image {
    height: 340px;
    width: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}

.carousel-card:hover .carousel-image,
.news-card:hover .news-image,
.feed-card:hover .feed-image {
    transform: scale(1.05);
}

.card-tag {
    display: inline-block;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 11px;
    margin-bottom: 0.5rem;
    min-height: 1.2em;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.card-meta .card-tag {
    margin-bottom: 0;
}

.card-date {
    margin-left: auto;
}

.card-title,
.feed-title {
    font: 18px/1.2 "Benzin Bold", Arial, sans-serif;
}

.news-title {
    font: clamp(23px, 2vw, 32px)/1.22 "Benzin Bold", Arial, sans-serif;
    margin-bottom: 12px;
}

.news-excerpt,
.feed-excerpt {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.blc-rail {
    width: 240px;
    /*border: 2px dashed var(--border-strong);
    border-radius: 28px;*/
    /*background: color-mix(in srgb, var(--surface) 76%, transparent);*/
    display: flex;
    align-items: baseline;
    justify-content: center;
    position: sticky;
    top: var(--sticky-header-offset);
    /*min-height: 760px;*/
    padding: 0.25rem;
}

.blc-rail-left {
    transform: translateX(-40px);
}

.blc-rail-right {
    transform: translateX(40px);
}

.blc-rail span {
    transform: rotate(-90deg);
    white-space: nowrap;
    text-transform: uppercase;
    font: 56px "Benzin Bold", Arial, sans-serif;
    color: color-mix(in srgb, var(--muted) 35%, transparent);
}

.feed-section {
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: .25s ease;
    color: inherit;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.16);
    color: var(--white);
    background: transparent;
    transition: .25s ease;
}

body.light-theme .social-link {
    color: #111111;
    border-color: rgba(0,0,0,0.14);
}

.social-link:hover {
    background: transparent;
    border-color: var(--red);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: filter .25s ease;
}

.social-link:hover img {
    filter: brightness(0) saturate(100%) invert(8%) sepia(100%) saturate(7128%) hue-rotate(1deg) brightness(91%) contrast(118%);
}

.hero-carousel {
    overflow: visible;
    position: relative;
}

.hero-carousel .carousel-item {
    padding: 2px 0;
}

.hero-carousel .carousel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-carousel .carousel-card > .p-4 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hero-carousel .carousel-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.hero-carousel .card-title {
    /* Keep consistent title block height and clamp to 2 lines */
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem !important; /* Force margin to be consistent */
}

.hero-carousel .news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.65em;
    margin-bottom: 0 !important;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 56px;
    height: 56px;
    top: 50%;
    transform: translateY(-50%);
    background: color-mix(in srgb, var(--prev-next-bg) 82%, transparent);
    border: 1px solid var(--border);
    border-radius: 50%;
    opacity: 1;
}

.hero-carousel .carousel-control-prev {
    left: -25px;
}

.hero-carousel .carousel-control-next {
    right: -25px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: var(--red);
    border-color: var(--red);
}

.hero-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--red);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

@media (min-width: 768px) {
    #heroCarouselDesktop .carousel-item {
        min-height: 420px;
    }

    #heroCarouselDesktop .carousel-item .row {
        align-items: stretch;
    }

    #heroCarouselDesktop .carousel-card {
        height: 100%;
    }
}

@media (max-width: 1380px) {
    .main-layout {
        grid-template-columns: 190px minmax(0, 1fr) 190px;
        gap: 20px;
    }

    .ad-rail {
        width: 190px;
        min-height: 680px;
    }

    .ad-rail span {
        font-size: 48px;
    }
}

@media (max-width: 1199.98px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .ad-rail {
        display: none;
    }

    .hero-carousel .carousel-control-prev {
        left: -68px;
    }

    .hero-carousel .carousel-control-next {
        right: -68px;
    }
}

@media (max-width: 767.98px) {
    .nav-wrap {
        padding-bottom: 0;
    }

    .nav-strip {
        overflow-x: auto;
        overflow-y: visible;
    }

    #mainNav {
        width: max-content;
        min-width: 100%;
    }

    .carousel-image,
    .feed-image {
        height: 210px;
    }

    .news-image {
        height: 240px;
    }

    #heroCarouselMobile {
        padding: 0 8px;
    }

    #heroCarouselMobile .carousel-item {
        min-height: auto;
    }

    #heroCarouselMobile .carousel-card {
        max-width: 100%;
    }

    #heroCarouselMobile .carousel-control-prev,
    #heroCarouselMobile .carousel-control-next {
        display: flex;
        width: 42px;
        height: 42px;
    }

    #heroCarouselMobile .carousel-control-prev {
        left: 8px;
    }

    #heroCarouselMobile .carousel-control-next {
        right: 8px;
        left: auto;
    }

    #heroCarouselMobile .carousel-image {
        height: 210px;
    }

    #heroCarouselMobile .card-title {
        min-height: auto;
    }

    .nav-item-has-submenu .submenu {
        min-width: 180px;
    }

    .breadcrumbs-shell {
        padding: 14px 16px;
    }
}

/* Themed form controls for dark/light modes */
.form-control,
.form-select,
.input-group-text {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.form-control:disabled,
.form-select:disabled,
.input-group-text:disabled {
    background-color: color-mix(in srgb, var(--surface) 80%, transparent);
    color: var(--muted);
}

.form-control::placeholder {
    color: var(--muted);
    opacity: 1; /* override bootstrap */
}

.form-control:focus,
.form-select:focus {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--red);
    box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--red) 25%, transparent);
}

.form-check-input {
    background-color: var(--surface);
    border-color: var(--border);
}

.form-check-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--red) 25%, transparent);
}

.form-check-input:checked {
    background-color: var(--red);
    border-color: var(--red);
}

.form-switch .form-check-input:checked {
    background-color: var(--red);
    border-color: var(--red);
}

.form-floating > label {
    color: var(--muted);
}


/* === Video cards enhancement === */
.hero-carousel .carousel-card.video-card-ready,
#recent-news-cell .feed-card.video-story-card {
    position: relative;
    overflow: hidden;
}

.hero-carousel .carousel-card.video-card-ready .p-4 {
    display: none !important;
}

.hero-carousel .carousel-card.video-card-ready .carousel-image,
#recent-news-cell .feed-card .feed-image,
#recent-news-cell .feed-card .video-fallback-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #111 center center / cover no-repeat;
}

.hero-carousel .carousel-card.video-card-ready .carousel-image {
    cursor: pointer;
}

.video-thumb-button {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.video-thumb-button:focus-visible {
    outline: 2px solid rgba(255,255,255,.9);
    outline-offset: -4px;
    border-radius: 1rem;
}

.video-thumb-button::after,
.video-badge-inline {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.1) 100%);
    pointer-events: none;
}

.video-play-badge {
    display: none !important;
}

.video-play-badge::before {
    display: none !important;
}

.video-play-badge.video-play-badge-sm {
    display: none !important;
}

.video-play-badge.video-play-badge-sm::before {
    display: none !important;
}

.video-modal .modal-content {
    background: #111;
    color: #fff;
    border-radius: 24px;
    overflow: hidden;
}

.video-modal .modal-dialog {
    max-width: 420px;
}

.video-modal-player-wrap {
    position: relative;
}

.video-overlay-dismiss {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    cursor: pointer;
}

.video-overlay-dismiss.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-player {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-placeholder-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.video-gesture-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    touch-action: none;
}

.video-nav-btn {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 4;
    width: 100%;
    height: 92px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    opacity: 0;
    transition: opacity .18s ease;
}

.video-nav-btn:hover,
.video-nav-btn:focus-visible {
    opacity: 1;
}

.video-nav-btn::before {
    content: "";
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(17,17,17,.72);
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    transition: background .18s ease;
}

.video-nav-btn:hover::before,
.video-nav-btn:focus-visible::before {
    background: rgba(17,17,17,.88);
}

.video-nav-btn[hidden] {
    display: none !important;
}

.video-nav-up {
    top: 0;
}

.video-nav-down {
    bottom: 0;
}

.video-nav-arrow {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    display: inline-block;
}

.video-nav-up .video-nav-arrow {
    transform: rotate(225deg);
    margin-top: 4px;
}

.video-nav-down .video-nav-arrow {
    transform: rotate(45deg);
    margin-bottom: 4px;
}

.video-modal-player iframe,
.video-modal-player video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-modal-body {
    padding: 1rem 1rem 1.25rem;
}

.video-modal-description {
    color: rgba(255,255,255,.86);
    font-size: .95rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.video-modal-actions {
    display: flex;
    gap: .75rem;
    margin-bottom: 1rem;
}

.video-action-btn {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #fff;
    border-radius: 999px;
    padding: .6rem .9rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.video-action-btn.active {
    background: rgba(220,53,69,.16);
    border-color: rgba(220,53,69,.45);
}

.video-action-icon {
    position: relative;
    display: inline-block;
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 1.15rem;
}

.video-action-icon-like::before,
.video-action-icon-like::after {
    content: none;
}

.video-action-icon-like {
    width: 22px;
    height: 22px;
}

.video-action-icon-like::before {
    content: "♡";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    color: currentColor;
}

.video-action-icon-like.is-active::before {
    content: "♥";
    color: #ff6b81;
}

.video-action-btn.active .video-action-icon-like {
    color: #ff6b81;
}

.video-comments-panel {
    display: none;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1rem;
}

.video-comments-panel.is-open {
    display: block;
}

.video-comments-list {
    max-height: 220px;
    overflow: auto;
    margin-bottom: .9rem;
}

.video-comment-item {
    background: rgba(255,255,255,.05);
    border-radius: 14px;
    padding: .7rem .8rem;
    margin-bottom: .65rem;
}

.video-comment-author {
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: .2rem;
}

.video-comment-text {
    font-size: .9rem;
    color: rgba(255,255,255,.86);
    margin: 0;
}

.video-comment-form {
    display: flex;
    gap: .65rem;
}

.video-comment-input {
    flex: 1 1 auto;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    color: #fff;
    padding: .75rem .95rem;
}

.video-comment-input::placeholder {
    color: rgba(255,255,255,.5);
}

.video-comment-submit {
    border: 0;
    border-radius: 999px;
    padding: .75rem 1rem;
    background: #fff;
    color: #111;
    font-weight: 600;
}

.video-comments-panel,
.video-comments-list,
.video-comment-form {
    overscroll-behavior: contain;
}

.video-comments-panel {
    touch-action: pan-y;
}

.video-comments-list {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.video-comments-list,
.video-comments-panel {
    pointer-events: auto;
}

.video-comments-panel.is-open {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .video-modal .modal-dialog {
        margin: .5rem auto;
    }

    .video-modal .modal-content {
        border-radius: 20px;
    }

    .video-nav-btn {
        display: none;
    }

    .video-gesture-layer {
        display: block;
    }
}


/* === Fixes: theme persistence, tighter section gap, portrait hot-news cards === */
#recent-news-cell.feed-section {
    margin-top: 0 !important;
    padding-top: 20px;
}

.hero-carousel {
    margin-bottom: 0 !important;
}

@media (min-width: 768px) {
    #heroCarouselDesktop .carousel-item {
        min-height: 0;
    }

    #heroCarouselDesktop .carousel-card.video-card-ready {
        max-width: 280px;
        margin: 0 auto;
        border-radius: 28px;
    }
}

#heroCarouselMobile .carousel-card.video-card-ready {
    max-width: 320px;
    margin: 0 auto;
    border-radius: 28px;
}


/* === Hot news shorts: force portrait cards instead of square thumbs === */
.hero-carousel .carousel-card.video-card-ready .carousel-image {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 9 / 16;
}

@media (min-width: 768px) {
    #heroCarouselDesktop .carousel-card.video-card-ready {
        max-width: 240px;
        width: 100%;
    }
}

#heroCarouselMobile .carousel-card.video-card-ready {
    max-width: 260px;
    width: 100%;
}


/* === Mobile close button for shorts modal === */
.shorts-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    background: rgba(17,17,17,.68);
    box-shadow: 0 8px 24px rgba(0,0,0,.24);
    z-index: 5;
}

.shorts-close-btn:hover,
.shorts-close-btn:focus-visible {
    background: rgba(17,17,17,.88);
    color: #fff;
}

@media (max-width: 767.98px) {
    .shorts-close-btn {
        display: none;
    }

    .video-modal .modal-content {
        padding-top: 0;
    }
}

/* === Tablet fix: hot-news shorts should stay in one horizontal row === */
@media (min-width: 768px) and (max-width: 1199.98px) {
    #heroCarouselDesktop .carousel-item .row {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-right: 0;
        margin-left: 0;
    }

    #heroCarouselDesktop .carousel-item .row::-webkit-scrollbar {
        display: none;
    }

    #heroCarouselDesktop .carousel-item [class*="col-"] {
        flex: 0 0 220px;
        width: 220px;
        max-width: 220px;
    }

    #heroCarouselDesktop .carousel-card.video-card-ready {
        max-width: 100%;
        width: 100%;
    }
}


/* === Mobile in-feed ads === */
.mobile-ad-block {
    display: none;
}

@media (max-width: 767.98px) {
    .ad-rail,
    .ad-left,
    .ad-right {
        display: none !important;
    }

    .mobile-ad-block {
        display: block;
        margin: 16px auto 20px;
        width: 100%;
        max-width: 100%;
        padding: 0 4px;
    }

    .mobile-ad-link {
        display: block;
        width: 100%;
        overflow: hidden;
        border-radius: 18px;
        background: var(--surface-elevated);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    }

    .mobile-ad-link img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover !important;
    }

    #recent-news-cell .mobile-ad-block {
        margin-top: 0;
        margin-bottom: 18px;
    }
}


/* === v14 modal overlay + fixed description behavior === */
.video-modal {
    z-index: 2000010 !important;
}

.video-modal + .modal-backdrop,
.modal-backdrop.show {
    z-index: 2000009 !important;
}

.video-modal .modal-dialog {
    max-width: 420px;
    margin: 1rem auto;
}

.video-modal .modal-content {
    position: relative;
    min-height: min(92vh, 860px);
    max-height: calc(100vh - 2rem);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
}

.video-modal-player-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

.video-modal-player {
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
}

.video-modal-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1rem 1rem 1.1rem;
    background: linear-gradient(180deg, rgba(17,17,17,0) 0%, rgba(17,17,17,.55) 10%, rgba(17,17,17,.92) 26%, rgba(17,17,17,.97) 100%);
    max-height: min(240px, 42%);
    transition: max-height .24s ease;
    overflow: hidden;
}

.video-modal-body.is-expanded {
    max-height: calc(100% - 12px);
}

.video-modal-body.has-comments {
    max-height: min(430px, 72%);
}

.video-modal-body.is-expanded.has-comments {
    max-height: calc(100% - 12px);
}

.video-modal.no-media .video-modal-player {
    display: none;
}

.video-modal.no-media .video-modal-player-wrap {
    position: relative;
    min-height: 320px;
}

.video-modal.no-media .video-floating-actions {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    z-index: 40;
    pointer-events: auto;
}

.video-modal.no-media .video-floating-actions,
.video-modal.no-media .video-floating-actions * {
    pointer-events: auto;
}

.video-modal.no-media .video-gesture-zones,
.video-modal.no-media .video-overlay-dismiss,
.video-modal.no-media .video-nav-btn {
    z-index: 35;
}

.video-modal.no-media .video-modal-body {
    position: relative;
    inset: auto;
    max-height: none;
    margin-top: 0;
    background: linear-gradient(180deg, rgba(20,20,20,.98) 0%, rgba(12,12,12,1) 100%);
}

.video-modal-description-block {
    min-height: 0;
}

.video-modal-description {
    color: rgba(255,255,255,.92);
    font-size: .95rem;
    line-height: 1.45;
    margin-bottom: .55rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.video-modal-body.is-expanded .video-modal-description {
    display: block;
    -webkit-line-clamp: unset;
    max-height: clamp(180px, 45vh, 360px);
    overflow: auto;
    padding-right: .25rem;
}

.video-description-toggle {
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.video-modal-actions {
    display: flex;
    gap: .75rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.video-comments-panel {
    display: none;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: .95rem;
    min-height: 0;
}

.video-comments-panel.is-open {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    flex: 1 1 auto;
    min-height: 0;
}

.video-comments-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    margin-bottom: 0;
    scroll-margin-top: 1rem;
}

.video-comment-form {
    display: flex;
    gap: .65rem;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .video-modal .modal-dialog {
        margin: .35rem auto;
        max-width: min(100vw - .7rem, 420px);
    }

    .video-modal .modal-content {
        min-height: calc(100vh - .7rem);
        max-height: calc(100vh - .7rem);
        border-radius: 20px;
    }

    .video-modal-body {
        max-height: min(250px, 46%);
        padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    }

    .video-modal-body.has-comments {
        max-height: 78%;
    }

    .video-modal-body.is-expanded,
    .video-modal-body.is-expanded.has-comments {
        max-height: calc(100% - 8px);
    }
}


/* === v15 shorts full-height + transition animations === */
.video-modal .modal-dialog {
    height: calc(100vh - 2rem);
}

.video-modal .modal-content {
    height: 100%;
    max-height: none;
    overflow: hidden;
}

.video-modal-player-wrap {
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    will-change: transform, opacity;
    transition: transform .28s ease, opacity .28s ease;
}

.video-modal-player {
    position: absolute;
    inset: 0;
}

.video-modal-player iframe,
.video-modal-player video,
.video-gesture-layer {
    position: absolute;
    inset: 0;
}

.video-modal-player-wrap.is-transitioning {
    pointer-events: none;
}

.video-modal-player-wrap.is-slide-out-up {
    transform: translateY(-10%);
    opacity: .18;
}

.video-modal-player-wrap.is-slide-out-down {
    transform: translateY(10%);
    opacity: .18;
}

.video-modal-player-wrap.is-slide-in-up {
    transform: translateY(12%);
    opacity: .22;
}

.video-modal-player-wrap.is-slide-in-down {
    transform: translateY(-12%);
    opacity: .22;
}

.video-modal .modal-content.is-closing-left {
    transform: translateX(-16%);
    opacity: 0;
    transition: transform .24s ease, opacity .24s ease;
}

.video-modal .modal-content.is-closing-right {
    transform: translateX(16%);
    opacity: 0;
    transition: transform .24s ease, opacity .24s ease;
}

.video-modal .modal-content.is-hinting-up {
    animation: shortsSwipeHintUp .42s ease;
}

@keyframes shortsSwipeHintUp {
    0% { transform: translateY(0); }
    35% { transform: translateY(-2.5%); }
    100% { transform: translateY(0); }
}

@media (max-width: 767.98px) {
    .video-modal .modal-dialog {
        height: calc(100vh - .7rem);
        max-width: min(100vw - .7rem, 420px);
    }

    .video-modal .modal-content {
        min-height: calc(100vh - .7rem);
        height: calc(100vh - .7rem);
        border-radius: 20px;
    }
}


/* === v16 floating actions + live swipe feedback === */
.video-modal-player-wrap {
    overflow: hidden;
    --drag-x: 0px;
    --drag-y: 0px;
    cursor: grab;
}

.video-modal-player-wrap:active {
    cursor: grabbing;
}

.video-floating-actions {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.video-action-btn-floating {
    pointer-events: auto;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(10, 10, 10, .58);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 62px;
    height: 62px;
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.video-action-btn-floating .video-action-text {
    font-size: 11px;
    line-height: 1;
    color: rgba(255,255,255,.95);
}

.video-action-btn-floating .video-action-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
}

.video-gesture-layer {
    display: none;
    pointer-events: none;
}

.video-swipe-hints {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.video-swipe-hint {
    position: absolute;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(10,10,10,.68);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: scale(.92);
    transition: opacity .16s ease, transform .16s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.video-swipe-hints.is-visible .video-swipe-hint-up {
    opacity: var(--hint-up);
    transform: translateX(-50%) scale(calc(.92 + (var(--hint-up) * .08)));
}
.video-swipe-hints.is-visible .video-swipe-hint-down {
    opacity: var(--hint-down);
    transform: translateX(-50%) scale(calc(.92 + (var(--hint-down) * .08)));
}
.video-swipe-hints.is-visible .video-swipe-hint-left {
    opacity: var(--hint-left);
    transform: translateY(-50%) scale(calc(.92 + (var(--hint-left) * .08)));
}
.video-swipe-hints.is-visible .video-swipe-hint-right {
    opacity: var(--hint-right);
    transform: translateY(-50%) scale(calc(.92 + (var(--hint-right) * .08)));
}

.video-swipe-hint-up {
    left: 50%;
    top: 16px;
    transform: translateX(-50%) scale(.92);
}
.video-swipe-hint-down {
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%) scale(.92);
}
.video-swipe-hint-left {
    left: 16px;
    top: 50%;
    transform: translateY(-50%) scale(.92);
}
.video-swipe-hint-right {
    right: 16px;
    top: 50%;
    transform: translateY(-50%) scale(.92);
}

.video-modal-player-wrap.is-dragging {
    transition: none !important;
    transform: translate3d(var(--drag-x), var(--drag-y), 0) scale(.985);
}

.video-modal-player-wrap.is-drag-up,
.video-modal-player-wrap.is-drag-down {
    box-shadow: 0 18px 44px rgba(0,0,0,.28);
}

.video-modal-player-wrap.is-drag-left,
.video-modal-player-wrap.is-drag-right {
    box-shadow: 0 18px 44px rgba(0,0,0,.28);
}

.video-modal-player-wrap.is-drag-left {
    rotate: -1.6deg;
}
.video-modal-player-wrap.is-drag-right {
    rotate: 1.6deg;
}

.video-modal-body .video-modal-actions {
    display: none;
}

@media (max-width: 768px) {
    .video-floating-actions {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .video-action-btn-floating {
        width: 58px;
        height: 58px;
        padding: 8px 10px;
    }

    .video-action-btn-floating .video-action-text {
        font-size: 10px;
    }
}




/* === v24 mobile action buttons above VK iframe === */
.video-floating-actions {
    pointer-events: auto;
    z-index: 20;
}

.video-floating-actions .video-action-btn,
.video-floating-actions .video-action-btn-floating,
.video-floating-actions .video-action-text,
.video-floating-actions .video-action-icon {
    pointer-events: auto;
}

@media (max-width: 767.98px) {
    .video-modal-player-wrap {
        isolation: isolate;
    }

    .video-modal-player {
        z-index: 1;
    }

    .video-floating-actions {
        z-index: 30;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
    }

    .video-nav-btn,
    .shorts-close-btn,
    .video-swipe-hints,
    .video-overlay-dismiss {
        z-index: 25;
    }
}
/* === v19 VK player interaction + reliable swipe zones === */
.video-floating-actions {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

.video-action-icon-comment {
    width: 22px;
    height: 18px;
}

.video-action-icon-comment::before {
    content: "";
    position: absolute;
    inset: 1px 1px 4px 1px;
    border: 2px solid currentColor;
    border-radius: 8px;
    background: transparent;
}

.video-action-icon-comment::after {
    content: "";
    position: absolute;
    left: 5px;
    bottom: 0;
    width: 7px;
    height: 7px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: skewX(-18deg) rotate(-8deg);
    border-bottom-left-radius: 2px;
    background: transparent;
}

.video-gesture-zones {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.video-gesture-zone {
    position: absolute;
    pointer-events: auto;
    touch-action: none;
    background: transparent;
}

.video-gesture-zone-top,
.video-gesture-zone-bottom {
    left: 14%;
    width: 72%;
    height: 16%;
}

.video-gesture-zone-top { top: 0; }
.video-gesture-zone-bottom { bottom: 0; }

.video-gesture-zone-left,
.video-gesture-zone-right {
    top: 18%;
    bottom: 18%;
    width: 12%;
}

.video-gesture-zone-left { left: 0; }
.video-gesture-zone-right { right: 0; }

.video-modal-player iframe,
.video-modal-player video {
    z-index: 1;
}

.video-floating-actions,
.video-nav-btn,
.video-swipe-hints {
    z-index: 6;
}

@media (max-width: 768px) {
    .video-floating-actions {
        right: 10px;
        top: 52%;
    }

    .video-gesture-zone-top,
    .video-gesture-zone-bottom {
        left: 12%;
        width: 76%;
        height: 18%;
    }

    .video-gesture-zone-left,
    .video-gesture-zone-right {
        top: 16%;
        bottom: 16%;
        width: 14%;
    }
}


/* === v21 desktop modal layouts + wheel nav + full description === */
.video-modal.mode-shorts,
.video-modal.mode-standard {
    --desktop-modal-max-h: min(88vh, 880px);
}

.video-modal.mode-shorts .video-modal-description,
.video-modal.mode-standard .video-modal-description {
    overflow-wrap: anywhere;
}

.video-modal.mode-shorts .video-modal-body.is-expanded .video-modal-description,
.video-modal.mode-standard .video-modal-body.is-expanded .video-modal-description {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    max-height: none;
    overflow: auto !important;
}

@media (min-width: 768px) {
    .video-modal.mode-shorts .modal-dialog {
        max-width: min(760px, calc(100vw - 3rem));
        width: min(760px, calc(100vw - 3rem));
        height: auto;
        margin: 1.25rem auto;
    }

    .video-modal.mode-shorts .modal-content {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        max-height: calc(100vh - 2.5rem);
        overflow: hidden;
    }

    .video-modal.mode-shorts .video-modal-player-wrap {
        position: relative;
        flex: 0 0 auto;
        height: auto;
        min-height: 0;
        background: #000;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .video-modal.mode-shorts .video-modal-player {
        position: relative;
        inset: auto;
        width: min(100%, 420px);
        height: auto;
        aspect-ratio: 9 / 16;
        max-height: min(68vh, 760px);
        margin: 0 auto;
    }

    .video-modal.mode-shorts .video-modal-player iframe,
    .video-modal.mode-shorts .video-modal-player video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .video-modal.mode-shorts .video-modal-body {
        position: relative;
        inset: auto;
        max-height: min(30vh, 300px);
        background: linear-gradient(180deg, rgba(20,20,20,.98) 0%, rgba(12,12,12,1) 100%);
        padding: 1rem 1.15rem 1.1rem;
        overflow: hidden;
        gap: .85rem;
        border-radius: 0 0 24px 24px;
    }

    .video-modal.mode-shorts .video-modal-body.has-comments,
    .video-modal.mode-shorts .video-modal-body.is-expanded,
    .video-modal.mode-shorts .video-modal-body.is-expanded.has-comments {
        max-height: min(44vh, 420px);
    }

    .video-modal.mode-shorts .video-modal-description-block {
        display: flex;
        flex-direction: column;
        flex: 0 1 auto;
        min-height: 0;
    }

    .video-modal.mode-shorts .video-modal-description {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
        max-height: none;
    }

    .video-modal.mode-shorts .video-modal-body.is-expanded .video-modal-description {
        max-height: min(20vh, 220px);
    }

    .video-modal.mode-shorts .video-comments-panel {
        flex: 1 1 auto;
        min-height: 0;
    }

    .video-modal.mode-shorts .video-comments-panel.is-open {
        min-height: 0;
    }

    .video-modal.mode-shorts .video-comments-list {
        max-height: none;
    }

    .video-modal.mode-shorts .video-floating-actions {
        right: max(18px, calc(50% - 210px + 14px));
        top: 50%;
        transform: translateY(-50%);
    }

    .video-modal.mode-shorts .shorts-close-btn {
        right: max(18px, calc(50% - 210px + 14px));
        top: 16px;
    }

    .video-modal.mode-standard .modal-dialog {
        max-width: min(1160px, calc(100vw - 3rem));
        width: min(1160px, calc(100vw - 3rem));
        height: auto;
        margin: 1.25rem auto;
    }

    .video-modal.mode-standard .modal-content {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        max-height: calc(100vh - 2.5rem);
        overflow: hidden;
    }

    .video-modal.mode-standard .video-modal-player-wrap {
        position: relative;
        flex: 0 0 auto;
        height: auto;
        min-height: 0;
        background: #000;
    }

    .video-modal.mode-standard .video-modal-player {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: min(68vh, 720px);
    }

    .video-modal.mode-standard .video-modal-player iframe,
    .video-modal.mode-standard .video-modal-player video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .video-modal.mode-standard .video-modal-body {
        position: relative;
        inset: auto;
        max-height: min(34vh, 340px);
        background: linear-gradient(180deg, rgba(20,20,20,.98) 0%, rgba(12,12,12,1) 100%);
        padding: 1rem 1.15rem 1.1rem;
        overflow: hidden;
        gap: .85rem;
    }

    .video-modal.mode-standard .video-modal-body.has-comments,
    .video-modal.mode-standard .video-modal-body.is-expanded,
    .video-modal.mode-standard .video-modal-body.is-expanded.has-comments {
        max-height: min(48vh, 460px);
    }

    .video-modal.mode-standard .video-modal-description {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
    }

    .video-modal.mode-standard .video-modal-body.is-expanded .video-modal-description {
        max-height: min(22vh, 230px);
    }

    .video-modal.mode-standard .video-comments-panel {
        flex: 1 1 auto;
        min-height: 0;
    }

    .video-modal.mode-standard .video-comments-panel.is-open {
        min-height: 0;
    }

    .video-modal.mode-standard .video-comments-list {
        max-height: none;
    }

    .video-modal.mode-standard .video-floating-actions {
        top: auto;
        bottom: 18px;
        right: 18px;
        transform: none;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .video-modal.mode-shorts .modal-dialog,
    .video-modal.mode-standard .modal-dialog {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
    }

    .video-modal.mode-shorts .modal-content {
        grid-template-columns: minmax(290px, 330px) minmax(300px, 1fr);
    }
}


/* === v25 mobile floating action buttons above VK iframe reliably === */
@media (max-width: 768px) {
    .video-floating-actions {
        position: fixed;
        right: max(12px, env(safe-area-inset-right));
        top: 50%;
        transform: translateY(-50%);
        z-index: 20000;
        pointer-events: auto;
    }

    .video-floating-actions .video-action-btn,
    .video-floating-actions .video-action-btn-floating {
        position: relative;
        z-index: 20001;
        pointer-events: auto;
        touch-action: manipulation;
    }
}

/* === v27 mobile VK player: full-width video + overlay actions === */
@media (max-width: 767.98px) {
    .video-modal {
        overflow-x: hidden;
    }

    .video-modal .modal-dialog {
        width: min(calc(100vw - .7rem), 420px);
        max-width: min(calc(100vw - .7rem), 420px);
        margin: .35rem auto;
    }

    .video-modal .modal-content {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .video-modal-player-wrap {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: stretch;
        padding-right: 0;
        overflow: hidden;
    }

    .video-modal-player {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        flex: 1 1 auto;
    }

    .video-modal.mode-shorts .video-modal-player {
        aspect-ratio: 9 / 16;
        max-width: 100%;
        max-height: none;
    }

    .video-modal.mode-standard .video-modal-player {
        aspect-ratio: 16 / 9;
    }

    .video-modal-player iframe,
    .video-modal-player video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
    }

    .video-floating-actions {
        position: absolute;
        top: 50%;
        right: max(8px, env(safe-area-inset-right));
        transform: translateY(-50%);
        z-index: 40;
        width: 56px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        pointer-events: auto;
        background: linear-gradient(180deg, rgba(17,17,17,.12), rgba(17,17,17,.28));
        border-radius: 18px;
        padding: 8px 4px;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .video-floating-actions .video-action-btn,
    .video-floating-actions .video-action-btn-floating {
        width: 56px;
        height: 56px;
        min-width: 56px;
        pointer-events: auto;
        touch-action: manipulation;
    }

    .video-floating-actions .video-action-text {
        font-size: 10px;
    }

    .video-gesture-zones {
        right: 0;
    }

    .video-nav-btn {
        z-index: 35;
    }

    .shorts-close-btn {
        z-index: 45;
    }

    .video-modal-body {
        width: 100%;
        max-width: 100%;
    }
}


/* === v28 mobile VK-safe layout: no horizontal overflow, clickable actions in reserved gutter === */
@media (max-width: 767.98px) {
    .video-modal {
        padding: .35rem !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .video-modal .modal-dialog {
        width: min(calc(100vw - .7rem), 420px) !important;
        max-width: min(calc(100vw - .7rem), 420px) !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .video-modal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        min-height: calc(100vh - .7rem) !important;
        height: calc(100vh - .7rem) !important;
        max-height: calc(100vh - .7rem) !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }

    .video-modal-player-wrap {
        position: relative;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding-right: 72px;
        background: #000;
        overflow: hidden;
        box-sizing: border-box;
    }

    .video-modal-player {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        aspect-ratio: 9 / 16;
        max-height: 100%;
        overflow: hidden;
    }

    .video-modal-player iframe,
    .video-modal-player video {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        display: block;
        border: 0;
    }

    .video-floating-actions {
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        width: 52px;
        z-index: 40 !important;
        pointer-events: auto !important;
    }

    .video-action-btn-floating {
        width: 52px;
        height: 52px;
        padding: 6px 8px;
        border-radius: 16px;
    }

    .video-action-btn-floating,
    .video-action-btn-floating *,
    #videoLikeButton,
    #videoCommentToggle {
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    .video-gesture-zones {
        inset: 0 72px 0 0;
        max-width: calc(100% - 72px);
    }

    .video-gesture-zone-top,
    .video-gesture-zone-bottom {
        left: 0;
        width: 100%;
        height: 18%;
    }

    .video-gesture-zone-left,
    .video-gesture-zone-right {
        top: 16%;
        bottom: 16%;
        width: 14%;
    }

    .video-gesture-zone-left { left: 0; }
    .video-gesture-zone-right { right: 0; }

    body.modal-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }
}


/* === v30 mobile: actions overlay on video, no gutter scaling issue === */
@media (max-width: 767.98px) {
    .video-modal {
        padding: .35rem !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .video-modal .modal-dialog {
        width: min(calc(100vw - .7rem), 420px) !important;
        max-width: min(calc(100vw - .7rem), 420px) !important;
        margin: .35rem auto !important;
    }

    .video-modal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        min-height: calc(100vh - .7rem) !important;
        height: calc(100vh - .7rem) !important;
        max-height: calc(100vh - .7rem) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .video-modal-player-wrap {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        isolation: isolate;
        background: #000;
    }

    .video-modal.mode-shorts .video-modal-player,
    .video-modal.mode-standard .video-modal-player,
    .video-modal-player {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .video-modal.mode-shorts .video-modal-player {
        aspect-ratio: 9 / 16 !important;
    }

    .video-modal.mode-standard .video-modal-player {
        aspect-ratio: 16 / 9 !important;
    }

    .video-modal-player iframe,
    .video-modal-player video {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        border: 0 !important;
        display: block !important;
        z-index: 1 !important;
    }

    .video-floating-actions {
        position: absolute !important;
        top: 48% !important;
        right: max(8px, env(safe-area-inset-right)) !important;
        transform: translateY(-50%) !important;
        z-index: 60 !important;
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        pointer-events: auto !important;
    }

    .video-action-btn-floating,
    .video-floating-actions .video-action-btn,
    .video-floating-actions .video-action-btn-floating,
    #videoLikeButton,
    #videoCommentToggle {
        position: relative !important;
        z-index: 61 !important;
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        padding: 8px 10px !important;
        border-radius: 16px !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    .video-action-btn-floating *,
    #videoLikeButton *,
    #videoCommentToggle * {
        pointer-events: none !important;
    }

    .video-gesture-zones {
        inset: 0 !important;
        max-width: 100% !important;
        z-index: 20 !important;
        pointer-events: none !important;
    }

    .video-gesture-zone {
        pointer-events: auto !important;
    }

    .video-gesture-zone-top,
    .video-gesture-zone-bottom {
        left: 12% !important;
        width: 76% !important;
        height: 18% !important;
    }

    .video-gesture-zone-left,
    .video-gesture-zone-right {
        top: 16% !important;
        bottom: 16% !important;
        width: 14% !important;
    }

    .video-modal-body {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* === v31 mobile final fix: viewport width + fixed overlay actions over video === */
@media (max-width: 767.98px) {
    html, body {
        overflow-x: hidden !important;
    }

    body.modal-open {
        overflow: hidden !important;
        padding-right: 0 !important;
    }

    .video-modal {
        padding: 8px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .video-modal .modal-dialog {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        min-width: 0 !important;
        margin: 0 auto !important;
    }

    .video-modal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: calc(100dvh - 16px) !important;
        height: auto !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    .video-modal-player-wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        background: #000 !important;
    }

    .video-modal.mode-shorts .video-modal-player,
    .video-modal.mode-standard .video-modal-player,
    .video-modal-player {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }

    .video-modal.mode-shorts .video-modal-player {
        aspect-ratio: 9 / 16 !important;
    }

    .video-modal.mode-standard .video-modal-player {
        aspect-ratio: 16 / 9 !important;
    }

    .video-modal-player iframe,
    .video-modal-player video {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        display: block !important;
        border: 0 !important;
    }

    .video-floating-actions {
        position: fixed !important;
        top: var(--mobile-actions-top) !important;
        right: var(--mobile-actions-right) !important;
        left: auto !important;
        transform: translateY(-50%) !important;
        z-index: 2147483000 !important;
        width: 56px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 0 !important;
        background: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        pointer-events: none !important;
    }

    .video-floating-actions .video-action-btn,
    .video-floating-actions .video-action-btn-floating,
    #videoLikeButton,
    #videoCommentToggle {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        border-radius: 18px !important;
        position: relative !important;
        z-index: 2147483001 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        background: rgba(10, 10, 10, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    }

    .video-gesture-zones {
        inset: 0 !important;
        max-width: 100% !important;
        z-index: 20 !important;
    }

    .video-gesture-zone-right {
        width: 9% !important;
    }

    .video-gesture-zone-left {
        width: 14% !important;
    }
}


/* === Header weather & currency widgets === */
.header-tools-wrap {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-info-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 2px;
}

.header-info-pill {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    white-space: nowrap;
}

.header-info-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 53, 53, .12);
    color: var(--red);
    font-size: 13px;
}

.header-info-label,
.rate-item {
    font: 11px/1.2 "Benzin Regular", Arial, sans-serif;
    letter-spacing: .02em;
}

.header-info-value {
    font: 12px/1.2 "Benzin Bold", Arial, sans-serif;
    color: var(--red);
}

.rate-dot {
    opacity: .5;
}

body.light-theme .header-info-pill {
    box-shadow: 0 10px 24px rgba(40, 28, 25, .08);
}

@media (max-width: 1199.98px) {
    .header-tools-wrap {
        gap: 8px !important;
    }

    .header-info-row {
        width: 100%;
        order: -1;
        justify-content: flex-end;
        margin-right: 0;
    }
}

@media (max-width: 767.98px) {
    .header-tools-wrap {
        max-width: min(78vw, 290px);
    }

    .header-info-row {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .header-info-pill {
        min-height: 40px;
        padding: 0 12px;
        justify-content: center;
    }

    .rates-pill {
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .rates-pill::-webkit-scrollbar {
        display: none;
    }

    .header-info-label,
    .rate-item {
        font-size: 10px;
    }

    .header-info-value {
        font-size: 11px;
    }
}


/* === Header redesign === */
.site-header-redesign {
    top: 0;
    border-bottom: 0;
    background: transparent;
}

.site-header-redesign .content-shell {
    max-width: min(1770px, calc(100vw - 24px));
}

.site-header-redesign .site-header-inner {
    background: transparent;
    backdrop-filter: none;
    padding-top: 0;
}

.header-card {
    border-radius: 0 0 34px 34px;
    background: var(--header-card-bg, #1f1d1c);
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    overflow: visible;
}

.nav-wrap-redesign {
    position: relative;
    /* overflow: hidden; -- Убрано, чтобы не обрезать сабменю */
    padding-bottom: 0;
}

.header-topbar {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 28px 12px;
    overflow: visible;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.brand-mark {
    width: 120px;
    height: 52px;
    border-radius: 16px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.08);
    flex: 0 0 auto;
}

.brand-mark-main {
    font-family: "Benzin Bold", Arial, sans-serif;
    font-size: 34px;
    line-height: 1;
    letter-spacing: .03em;
}

.brand-title {
    color: var(--red);
    font-family: "Benzin Bold", Arial, sans-serif;
    font-size: clamp(24px, 2.6vw, 46px);
    line-height: .92;
    letter-spacing: .04em;
    white-space: nowrap;
}

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

.header-market {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--header-meta-color, #343131);
}

.header-market-currency {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-decoration: none !important;
    color: inherit !important;
}

.header-market-currency:hover {
    text-decoration: none !important;
    color: inherit !important;
    opacity: 0.8;
}

.market-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 44px;
}

.market-label {
    font-family: "Benzin Medium", Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    letter-spacing: .04em;
}

.market-value {
    font-family: "Benzin Regular", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.15;
    color: var(--header-meta-muted, #4b4747);
}

.header-market-weather {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    text-decoration: none !important;
    color: inherit !important;
}

.header-market-weather:hover {
    text-decoration: none !important;
    color: inherit !important;
    opacity: 0.8;
}

.header-weather-icon {
    color: var(--red);
    font-size: 58px;
    line-height: 1;
}

.weather-title,
.weather-temp {
    font-family: "Benzin Medium", Arial, sans-serif;
    font-size: 18px;
}

.header-search-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-inline-search {
    width: min(320px, 26vw);
    min-width: 220px;
    height: 42px;
    border-radius: 24px;
    background: var(--header-search-bg, rgba(0,0,0,.08));
    display: flex;
    align-items: center;
    padding: 0 8px 0 16px;
}

.header-inline-search-input {
    border: 0;
    outline: none;
    background: transparent;
    color: var(--header-meta-color, #343131);
    width: 100%;
    font-family: "Benzin Regular", Arial, sans-serif;
    font-size: 14px;
}

.header-inline-search-input::placeholder {
    color: var(--header-meta-muted, #8f8a8a);
}

.header-inline-search-btn {
    border: 0;
    background: transparent;
    color: var(--header-meta-muted, #8f8a8a);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 22px;
}

.header-theme-btn.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--header-theme-bg, transparent);
    border: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-theme-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* Скрытие/показ иконок в зависимости от темы */
body.light-theme .theme-icon-sun {
    display: none;
}

body.light-theme .theme-icon-moon {
    filter: invert(34%) sepia(87%) saturate(6935%) hue-rotate(349deg) brightness(98%) contrast(93%);
}

body:not(.light-theme) .theme-icon-moon {
    display: none;
}

.header-theme-btn.icon-btn:hover {
    background: var(--red);
    transform: none;
}

.header-theme-btn.icon-btn:hover img {
    filter: brightness(0) invert(1);
}

.nav-wrap-redesign {
    position: relative;
    padding-bottom: 0;
    overflow: visible;
}

.nav-strip-redesign {
    background: var(--red);
    padding: 0 24px;
    border-radius: 0 0 34px 34px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    position: relative;
    z-index: 20;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    display: block;
    clip-path: inset(0 0 -500px 0);
    -webkit-clip-path: inset(0 0 -500px 0);
    /* Добавлено для принудительного включения скролла, если контент не влезает */
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 40px), transparent 100%);
}

.nav-strip-redesign:not(:has(+:hover)) {
    /* Если мы не наводим на край, маска может быть полезной подсказкой */
}

/* Скрываем маску когда скролл в самом конце или если она мешает */
.nav-strip-redesign.is-end {
    -webkit-mask-image: none;
    mask-image: none;
}

.nav-strip-redesign::-webkit-scrollbar {
    display: none;
}

.nav-strip-redesign #mainNav {
    min-height: 68px;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    display: flex;
    overflow: visible;
    padding-right: 48px;
    -webkit-overflow-scrolling: touch;
}

.nav-strip-redesign .nav-link-custom,
.nav-strip-redesign .nav-item-has-submenu > .nav-link-custom {
    color: #fff;
    font-family: "Benzin Medium", Arial, sans-serif;
    font-size: clamp(15px, 1vw, 19px);
    padding: 0;
    min-height: 68px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex: 0 0 auto;
    line-height: 1;
}

.nav-strip-redesign .nav-item-has-submenu > .nav-link-custom::before,
.nav-strip-redesign .nav-item-has-submenu > .nav-link-custom::after {
    content: none;
}

.nav-strip-redesign .nav-link-custom::after,
.nav-strip-redesign .nav-item-has-submenu > .nav-link-custom::after {
    display: none;
}

.nav-strip-redesign .submenu {
    display: none !important;
}

.submenu.is-portal {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    margin: 12px 0 0 0;
    z-index: 9999;
    pointer-events: auto;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    transform: translateY(10px);
}

.submenu.is-portal.is-portal-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

@media (max-width: 767.98px) {
    .submenu.is-portal {
        min-width: 180px;
        max-width: 240px;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
    .submenu.is-portal li a {
        padding: 12px 16px;
        font-size: 14px;
        display: block;
        color: #fff;
        text-decoration: none;
    }
    .submenu.is-portal li a.submenu-parent-duplicate {
        font-weight: bold;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 4px;
        color: #ff4d4d; /* Выделим родительский пункт цветом */
    }
}

:root {
    --header-card-bg: #201f1f;
    --header-search-bg: rgba(255,255,255,.08);
    --header-theme-bg: transparent;
    --header-meta-color: #f1ecec;
    --header-meta-muted: rgba(255,255,255,.72);
}

body.light-theme {
    --header-card-bg: #f4f4f4;
    --header-search-bg: #dcdcdc;
    --header-theme-bg: transparent;
    --header-meta-color: #3f3a3a;
    --header-meta-muted: #6d6767;
}

body.light-theme .header-card {
    box-shadow: 0 18px 36px rgba(133, 31, 31, 0.12);
}

body.light-theme .nav-strip-redesign {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

@media (max-width: 1199.98px) {
    .header-topbar {
        padding: 18px 22px 12px;
        gap: 18px;
    }
    .brand-mark { width: 104px; height: 48px; }
    .brand-mark-main { font-size: 30px; }
    .brand-title { white-space: normal; font-size: clamp(20px, 2.8vw, 36px); }
    .header-utility-zone { gap: 18px; }
    .header-market { gap: 18px; }
    .nav-strip-redesign { padding: 0 24px; }
}

@media (max-width: 991.98px) {
    .header-topbar {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
    }
    .brand-link { justify-content: center; }
    .header-utility-zone {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .header-market {
        justify-content: center;
        flex-wrap: wrap;
    }
    .header-search-box { justify-content: center; }
    .header-inline-search { width: min(520px, 100%); }
}

@media (max-width: 767.98px) {
    .site-header-redesign { position: relative; }
    .header-card,
    .nav-strip-redesign { border-radius: 0 0 24px 24px; }
    .header-topbar { padding: 18px 16px 14px; }
    .brand-link { gap: 12px; justify-content: flex-start; }
    .brand-mark { width: 88px; height: 42px; border-radius: 12px; }
    .brand-mark-main { font-size: 25px; }
    .brand-title { font-size: 18px; line-height: 1; letter-spacing: .03em; }
    .header-market {
        justify-content: space-between;
        align-items: center;
        gap: 14px;
    }
    .header-market-currency { gap: 12px; flex: 1 1 auto; }
    .market-item { min-width: 0; }
    .market-label,
    .market-value { font-size: 11px; }
    .header-market-weather { gap: 6px; }
    .header-weather-icon { font-size: 34px; }
    .weather-title,
    .weather-temp { font-size: 12px; }
    .header-search-box { gap: 10px; }
    .header-inline-search {
        min-width: 0;
        width: calc(100% - 54px);
        height: 44px;
        padding-left: 14px;
    }
    .header-inline-search-input { font-size: 13px; }
    .header-inline-search-btn,
    .header-theme-btn.icon-btn { width: 38px; height: 38px; }
    .nav-strip-redesign { padding: 0 16px; }
    .nav-strip-redesign #mainNav { min-height: 64px; gap: 22px !important; flex-wrap: nowrap; width: max-content; }
    .nav-strip-redesign .nav-link-custom,
    .nav-strip-redesign .nav-item-has-submenu > .nav-link-custom { min-height: 64px; font-size: 14px; flex: 0 0 auto; }
    .nav-strip-redesign .nav-link-custom::after,
    .nav-strip-redesign .nav-item-has-submenu > .nav-link-custom::after { bottom: 10px; height: 2px; }
}


/* Header/Footer redesign based on attached dark theme reference */
.site-header-redesign {
    padding-top: 0;
}

.site-header-redesign .content-shell {
    max-width: min(1600px, calc(100vw - 32px));
}

.header-card {
    border-radius: 0 0 30px 30px;
    background: linear-gradient(180deg, #151515 0%, #1a1a1a 100%);
    box-shadow: 0 20px 44px rgba(0,0,0,.28);
    overflow: visible;
    z-index: 3001;
}

.header-topbar {
    min-height: 78px;
    gap: 18px;
    padding: 12px 32px 10px;
}

.brand-link { gap: 14px; }

.brand-mark {
    width: 74px;
    height: 28px;
    border-radius: 9px;
    background: rgba(255,255,255,.02);
    border: 2px solid rgba(255,255,255,.78);
    box-shadow: none;
}

.brand-mark-main {
    font-size: 19px;
    letter-spacing: .02em;
    color: #fff;
}

.brand-title {
    color: #fff;
    font-size: clamp(18px, 1.6vw, 30px);
    letter-spacing: .05em;
}

.header-utility-zone { gap: 18px; }
.header-market { gap: 18px; color: #f2f2f2; }
.header-market-currency { gap: 16px; }
.market-item { gap: 2px; min-width: 34px; }
.market-label, .market-value {
    font-size: .65rem;
    line-height: 1.1;
    letter-spacing: .08em;
}
.market-value { color: rgba(255,255,255,.78); }
.header-market-weather { gap: 6px; }
.header-weather-icon { font-size: 16px; color: #cb1717; }
.weather-title, .weather-temp { font-size: 10px; color: #fff; }

.header-inline-search {
    width: min(172px, 18vw);
    min-width: 160px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    padding: 0 6px 0 12px;
}
.header-inline-search-input,
.header-inline-search-input::placeholder,
.header-inline-search-btn { font-size: 11px; }
.header-inline-search-input {
    color: var(--header-search-text);
    caret-color: var(--header-search-text);
}
.header-inline-search-input::placeholder { color: var(--header-search-placeholder); }
.header-inline-search-btn {
    color: var(--header-search-button);
    width: 26px;
    height: 26px;
    font-size: 14px;
}
.header-theme-btn.icon-btn { display: inline-flex !important; align-items: center; justify-content: center; width: 32px; height: 32px; }
.header-theme-btn.icon-btn img { width: 20px; height: 20px; }

.nav-strip-redesign {
    background: linear-gradient(180deg, #c80f0f 0%, #a40808 100%);
    padding: 0 24px;
    border-radius: 0 0 24px 24px;
    overflow: visible;
}

.nav-strip-redesign #mainNav {
    min-height: 42px;
    gap: 28px !important;
}

.nav-strip-redesign .nav-link-custom,
.nav-strip-redesign .nav-item-has-submenu > .nav-link-custom {
    min-height: 42px;
    font-size: clamp(11px, .78vw, 14px);
    letter-spacing: .02em;
}

.nav-strip-redesign .nav-link-custom::after,
.nav-strip-redesign .nav-item-has-submenu > .nav-link-custom::after {
    bottom: 7px;
    height: 2px;
}

.site-footer-redesign {
    background: transparent;
    border-top: 0;
}

.site-footer-redesign .content-shell {
    width: 100%;
    max-width: min(1600px, calc(100vw - 32px));
    margin: 0 auto;
}

.footer-cta-bar {
    display: block;
    text-align: center;
    background: linear-gradient(180deg, #d70b0b 0%, #b00707 100%);
    color: #fff;
    font-family: "Benzin Bold", Arial, sans-serif;
    font-size: clamp(16px, 1vw, 20px);
    line-height: 1;
    padding: 10px 16px 9px;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -1px 0 rgba(255,255,255,.05) inset;
}

.footer-panel {
    background: linear-gradient(180deg, #111214 0%, #131416 100%);
    color: #fff;
    border-radius: 0 0 16px 16px;
    padding: 12px 28px 14px;
    box-shadow: 0 16px 30px rgba(0,0,0,.2);
}

.footer-social-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    color: rgba(255,255,255,.92);
    font-family: "Benzin Regular", Arial, sans-serif;
    font-size: 12px;
}

.footer-social-label,
.footer-handle { color: rgba(255,255,255,.92); }
.footer-handle { font-family: "Benzin Medium", Arial, sans-serif; }

.footer-social-icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-footer-redesign .social-link {
    width: 18px;
    height: 18px;
    border: 0;
    background: transparent;
    padding: 0;
    color: rgba(255,255,255,.72);
}
.site-footer-redesign .social-link svg { width: 16px; height: 16px; }
.site-footer-redesign .social-link:hover {
    transform: none;
    color: #fff;
    background: transparent;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 1.5rem;
    align-items: flex-start;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-links-col-service {
    margin-left: auto;
    flex: 0 0 auto;
}

.footer-links-col-last {
    flex: 0 0 auto;
}

.footer-policy-link {
    color: rgba(255,255,255,.76);
    font-family: "Benzin Regular", Arial, sans-serif;
    font-size: 10px;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
}

.footer-policy-link::after { display: none; }
.footer-policy-link:hover,
.footer-policy-link.active { color: #fff; }

.footer-disclaimer {
    color: rgba(255,255,255,.68);
    font-family: "Benzin Regular", Arial, sans-serif;
    font-size: 10px;
    line-height: 1.45;
    max-width: 220px;
}

@media (max-width: 991.98px) {
    .header-topbar {
        padding: 14px 18px 10px;
    }
    .brand-link { justify-content: flex-start; }
    .header-utility-zone {
        flex-direction: row;
        justify-content: space-between;
        gap: 14px;
    }
    .header-inline-search {
        width: min(240px, 100%);
        min-width: 0;
    }
    .footer-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}

@media (max-width: 767.98px) {
    .site-header-redesign .content-shell,
    .site-footer-redesign .content-shell { max-width: calc(100vw - 16px); }
    .header-card,
    .nav-strip-redesign { border-radius: 0 0 18px 18px; }
    .header-topbar {
        min-height: auto;
        padding: 12px 14px 10px;
        gap: 12px;
    }
    .brand-mark { width: 62px; height: 25px; }
    .brand-mark-main { font-size: 16px; }
    .brand-title { font-size: 14px; }
    .header-utility-zone {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .header-market {
        justify-content: space-between;
        gap: 10px;
    }
    .header-market-currency { gap: 10px; }
    .header-inline-search {
        width: 100%;
        height: 34px;
    }
    .nav-strip-redesign { padding: 0 14px; }
    .nav-strip-redesign #mainNav {
        min-height: 38px;
        gap: 18px !important;
    }
    .nav-strip-redesign .nav-link-custom,
    .nav-strip-redesign .nav-item-has-submenu > .nav-link-custom {
        min-height: 38px;
        font-size: 11px;
    }
    .footer-cta-bar {
        font-size: 13px;
        border-radius: 12px 12px 0 0;
    }
    .footer-panel {
        border-radius: 0 0 12px 12px;
        padding: 16px 14px 18px;
    }
    .footer-social-row {
        font-size: 10px;
        gap: 8px;
        margin-bottom: 16px;
    }
    .footer-links-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-policy-link,
    .footer-disclaimer { font-size: 11px; white-space: normal !important; }
    .footer-links-col { gap: 12px; }
    .footer-link-group { margin-bottom: 0 !important; }
}


/* === Final overrides: logo geometry, theme-aware header/footer, Chita weather === */
:root {
    --header-surface-start: #151515;
    --header-surface-end: #1a1a1a;
    --header-shell-border: rgba(255,255,255,.04);
    --header-title-color: #ffffff;
    --header-market-color: #f2f2f2;
    --header-market-value-color: rgba(255,255,255,.78);
    --header-weather-text: #ffffff;
    --header-weather-icon-color: #cb1717;
    --nav-strip-start: #c80f0f;
    --nav-strip-end: #a40808;
    --footer-cta-start: #d70b0b;
    --footer-cta-end: #b00707;
    --footer-panel-start: #111214;
    --footer-panel-end: #131416;
    --footer-text-strong: rgba(255,255,255,.92);
    --footer-text: rgba(255,255,255,.76);
    --footer-text-muted: rgba(255,255,255,.68);
    --logo-bg: #1a1a1a;
    --logo-border: rgba(255,255,255,.92);
    --logo-text: #ffffff;
    --logo-accent: #d10f0f;
    --header-search-text: rgba(255,255,255,.72);
    --header-search-placeholder: rgba(255,255,255,.72);
    --header-search-button: rgba(255,255,255,.72);
}

body.light-theme {
    --header-surface-start: #efefef;
    --header-surface-end: #e4e4e4;
    --header-shell-border: rgba(126,126,126,.18);
    --header-title-color: #2d2a2a;
    --header-market-color: #3c3838;
    --header-market-value-color: #6d6767;
    --header-weather-text: #3c3838;
    --header-weather-icon-color: #c61414;
    --nav-strip-start: #e44b4b;
    --nav-strip-end: #c61f1f;
    --footer-cta-start: #e44b4b;
    --footer-cta-end: #c61f1f;
    --footer-panel-start: #f1f1f1;
    --footer-panel-end: #e7e7e7;
    --footer-text-strong: #302c2c;
    --footer-text: #565050;
    --footer-text-muted: #6d6767;
    --logo-bg: #efefef;
    --logo-border: #2d2a2a;
    --logo-text: #2d2a2a;
    --logo-accent: #c61414;
    --header-search-text: #2d2a2a;
    --header-search-placeholder: #6d6767;
    --header-search-button: #4a4444;
}

.header-card {
    background: linear-gradient(180deg, var(--header-surface-start) 0%, var(--header-surface-end) 100%);
    /*border: 1px solid var(--header-shell-border);*/
}

.brand-mark {
    position: relative;
    width: 76px;
    height: 44px;
    border: 3px solid var(--logo-border, rgba(255,255,255,.92));
    border-radius: 14px 0 14px 14px;
    background: var(--logo-bg, #1a1a1a);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 14px;
}

.brand-mark::before {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 30%;
    height: calc(50% - 3px);
    background: var(--logo-accent, #d10f0f);
    border-radius: 0 0 0 40px;
}

.brand-mark-main {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 24px;
    line-height: 1;
    letter-spacing: .01em;
    color: var(--logo-text, #fff);
}

.brand-title {
    color: var(--header-title-color);
}

.header-market { color: var(--header-market-color); }
.market-value { color: var(--header-market-value-color); }
.header-weather-icon { color: var(--header-weather-icon-color); }
.weather-title, .weather-temp { color: var(--header-weather-text); }

.nav-strip-redesign {
    background: linear-gradient(180deg, var(--nav-strip-start) 0%, var(--nav-strip-end) 100%);
}

.footer-cta-bar {
    background: linear-gradient(180deg, var(--footer-cta-start) 0%, var(--footer-cta-end) 100%);
}

.footer-panel {
    background: linear-gradient(180deg, var(--footer-panel-start) 0%, var(--footer-panel-end) 100%);
}

.footer-social-row,
.footer-social-label,
.footer-handle { color: var(--footer-text-strong); }

.site-footer-redesign .social-link { color: var(--footer-text); }
.site-footer-redesign .social-link:hover { color: var(--footer-text-strong); }
.footer-policy-link { color: var(--footer-text); }
.footer-policy-link:hover,
.footer-policy-link.active { color: var(--footer-text-strong); }
.footer-disclaimer { color: var(--footer-text-muted); }

body.light-theme .header-card {
    box-shadow: 0 18px 36px rgba(61, 53, 53, 0.12);
}

body.light-theme .nav-strip-redesign {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

@media (max-width: 767.98px) {
    .brand-mark {
        width: 76px;
        height: 44px;
        padding-left: 14px;
        border-width: 3px;
        border-radius: 14px 0 14px 14px;
    }
    .brand-mark::before {
        top: 3px;
        right: 3px;
        height: calc(50% - 3px);
        border-radius: 0 0 0 40px;
    }
    .brand-mark-main {
        font-size: 24px;
        line-height: 1;
        letter-spacing: .01em;
    }
}


:root {
    --report-modal-bg: #1f1f1d;
    --report-modal-panel: #2b2b29;
    --report-modal-soft: #3a3a37;
    --report-modal-border: rgba(255,255,255,.14);
    --report-modal-text: #ffffff;
    --report-modal-muted: rgba(255,255,255,.72);
    --report-modal-overlay: rgba(6, 6, 6, .62);
    --report-modal-accent: #c40000;
}

body.light-theme {
    --report-modal-bg: #efefef;
    --report-modal-panel: #cfcfcf;
    --report-modal-soft: #dddddd;
    --report-modal-border: #c4c4c4;
    --report-modal-text: #444444;
    --report-modal-muted: #7f7f7f;
    --report-modal-overlay: rgba(36, 36, 36, .18);
    --report-modal-accent: #c40000;
}

.report-news-modal {
    z-index: 2000010 !important;
}

.report-news-modal .modal-dialog {
    position: relative;
    z-index: 2000011 !important;
    max-width: min(940px, calc(100vw - 2rem));
}

.report-news-modal .modal-content {
    position: relative;
    border: 0;
    border-radius: 34px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}

.report-news-modal .modal-header,
.report-news-modal .modal-footer {
    border: 0;
}

.report-news-modal ~ .modal-backdrop.show {
    z-index: 2000009 !important;
    --bs-backdrop-bg: #000;
    --bs-backdrop-opacity: .5;
}

.modal-backdrop.show {
    --bs-backdrop-bg: #000;
    --bs-backdrop-opacity: .5;
}

.report-news-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .2s ease, transform .2s ease;
}

body.light-theme .report-news-close {
    background: rgba(0,0,0,.08);
    color: #3f3f3f;
}

.report-news-close:hover {
    transform: scale(1.04);
}

.report-news-head {
    background: var(--report-modal-accent);
    padding: 22px 72px 18px;
    text-align: center;
}

.report-news-title {
    margin: 0;
    color: #fff;
    font: clamp(24px, 2vw, 36px) "Benzin Bold", Arial, sans-serif;
}

.report-news-body {
    background: var(--report-modal-bg);
    color: var(--report-modal-text);
    margin-top: -1px;
    padding: 28px 28px 32px;
    border-radius: 0 0 34px 34px;
}

.report-news-form {
    display: grid;
    gap: 22px;
}

.report-news-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    margin-bottom: 28px;
    padding: 22px 28px;
    border-radius: 18px;
    background: var(--report-modal-panel);
    color: var(--report-modal-text);
    text-align: center;
    font: 20px/1.35 "Benzin Medium", Arial, sans-serif;
}

.report-news-input,
.report-news-textarea {
    width: 100%;
    border: 3px solid var(--report-modal-border);
    border-radius: 16px;
    background: var(--report-modal-soft);
    color: var(--report-modal-text);
    padding: 16px 18px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    caret-color: var(--report-modal-text);
    font: 18px/1.4 "Benzin Medium", Arial, sans-serif;
}

.report-news-input::placeholder,
.report-news-textarea::placeholder {
    color: var(--report-modal-muted);
}

.report-news-input:focus,
.report-news-textarea:focus {
    border-color: color-mix(in srgb, var(--report-modal-accent) 32%, var(--report-modal-border));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--report-modal-accent) 12%, transparent);
}

.report-news-input {
    min-height: 62px;
}

.report-news-textarea {
    min-height: 200px;
    resize: vertical;
}

.report-news-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--report-modal-panel);
    color: var(--report-modal-text);
    cursor: pointer;
    text-align: center;
    transition: transform .2s ease, background .2s ease;
    font: 18px/1.2 "Benzin Medium", Arial, sans-serif;
}

.report-news-file:hover {
    transform: translateY(-1px);
}

.report-news-file-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.report-news-file-icon svg {
    width: 100%;
    height: 100%;
}

.report-news-file-name {
    min-height: 22px;
    margin-top: 10px;
    color: var(--report-modal-muted);
    text-align: center;
    font-size: 14px;
}

.report-news-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 12px 24px;
    border: 0;
    border-radius: 16px;
    background: var(--report-modal-accent);
    color: #fff;
    cursor: pointer;
    text-align: center;
    transition: filter .2s ease, transform .2s ease, opacity .2s ease;
    font: 20px "Benzin Bold", Arial, sans-serif;
}

.report-news-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.report-news-submit:active {
    transform: translateY(0);
}

.report-news-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.report-news-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.report-news-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--report-modal-soft);
    border: 2px solid var(--report-modal-border);
}

.report-news-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-news-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
    z-index: 2;
}

.report-news-preview-remove:hover {
    background: var(--report-modal-accent);
}

body.light-theme .report-news-modal .modal-content {
    box-shadow: 0 28px 80px rgba(77, 48, 48, .18);
}

@media (max-width: 767.98px) {
    .report-news-modal .modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: .5rem auto;
    }

    .report-news-modal .modal-content {
        border-radius: 24px;
    }

    .report-news-head {
        padding: 18px 56px 16px;
    }

    .report-news-body {
        padding: 18px 16px 20px;
        border-radius: 0 0 24px 24px;
    }

    .report-news-intro {
        min-height: 108px;
        margin-bottom: 18px;
        padding: 18px 14px;
        font-size: 14px;
    }

    .report-news-input,
    .report-news-textarea,
    .report-news-file {
        font-size: 14px;
    }

    .report-news-input {
        min-height: 56px;
    }

    .report-news-textarea {
        min-height: 160px;
    }
}


.hot-news-vk-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 28px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

body.light-theme .hot-news-vk-card {
    box-shadow: 0 24px 64px rgba(78, 43, 43, 0.12);
}

.hot-news-vk-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.hot-news-vk-kicker {
    font: 12px "Benzin SemiBold", Arial, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}

.hot-news-vk-title {
    margin: 0;
    font: clamp(22px, 2.6vw, 34px) "Benzin Bold", Arial, sans-serif;
    color: var(--text);
}

.hot-news-vk-note {
    max-width: 460px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.hot-news-vk-embed-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    border-radius: 28px;
    background: color-mix(in srgb, var(--bg) 76%, var(--surface) 24%);
    border: 1px solid var(--border);
    overflow: hidden;
}

.hot-news-vk-embed {
    width: min(100%, 363px);
    max-width: 363px;
    aspect-ratio: 363 / 714;
    min-height: 560px;
    border: 0;
    border-radius: 24px;
    display: block;
}

@media (max-width: 767.98px) {
    .hot-news-vk-card {
        padding: 18px;
        border-radius: 24px;
    }

    .hot-news-vk-header {
        flex-direction: column;
        margin-bottom: 18px;
    }

    .hot-news-vk-note {
        max-width: none;
        font-size: 13px;
    }

    .hot-news-vk-embed-wrap {
        padding: 10px;
        border-radius: 22px;
    }

    .hot-news-vk-embed {
        width: 100%;
        max-width: 363px;
        min-height: 480px;
        border-radius: 18px;
    }
}


/* === Hot news VK clips inside restored carousel === */
.hot-news-vk-slide-card {
    padding: 0;
    overflow: hidden;
    background: var(--surface-card);
}

body.light-theme .hot-news-vk-slide-card {
    background: var(--surface-card);
}

.hot-news-vk-slide-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    overflow: hidden;
}

.hot-news-vk-slide-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.12) 100%),
            var(--news-preview-bg, none) center center / cover no-repeat;
    filter: blur(22px);
    transform: scale(1.18);
    opacity: .9;
}

.hot-news-vk-slide-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.12);
}

.hot-news-vk-slide-frame-text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.hot-news-vk-slide-frame-text a {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hot-news-vk-slide-frame-text .hot-news-vk-slide-embed.carousel-image {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: transparent;
    display: block;
}

.hot-news-vk-slide-frame-text .video-fallback-thumb {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hot-news-vk-slide-frame-text .hot-news-vk-slide-embed.carousel-image {
    box-sizing: border-box;
}

/* мобильная версия тоже с фоном и центровкой */
@media (max-width: 767.98px) {
    .hot-news-vk-slide-frame-text .hot-news-vk-slide-embed.carousel-image {
        padding: 8px;
    }
}

.hot-news-vk-slide-frame-mobile {
    max-height: 78vh;
}

.hot-news-vk-slide-embed {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

@media (max-width: 767.98px) {
    .hot-news-vk-slide-card-mobile {
        max-width: 420px;
        margin: 0 auto;
    }
}


/* === v39 fix: comment button must not trigger video swipe === */
.video-floating-actions {
    z-index: 80 !important;
}

.video-floating-actions,
.video-floating-actions *,
.video-action-btn-floating,
.video-action-btn-floating * {
    pointer-events: auto !important;
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .video-floating-actions {
        top: 28% !important;
        right: var(--mobile-submenu-left) !important;
        transform: translateY(0) !important;
    }

    .video-gesture-zone-right {
        width: 8% !important;
    }

    .video-gesture-zone-top,
    .video-gesture-zone-bottom {
        left: 10% !important;
        width: 68% !important;
    }
}


/* === v40 fix: description toggle must stay clickable on all articles === */
.video-modal-body,
.video-modal-description-block,
.video-description-toggle {
    position: relative;
    z-index: 90;
    pointer-events: auto !important;
}

.video-description-toggle {
    touch-action: manipulation;
}

.video-modal .modal-content {
    overflow: hidden;
}

.video-modal-body {
    overflow: visible;
    max-height: none;
}

.video-comments-panel {
    display: none;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: .95rem;
    min-height: 0;
    max-height: none;
    overflow: visible;
}

.video-comments-panel.is-open {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
}

.video-comments-list {
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    margin-bottom: 0;
    scroll-margin-top: 1rem;
    -webkit-overflow-scrolling: auto;
}

@media (max-width: 767.98px) {
    .video-modal .modal-dialog {
        height: auto;
        max-height: none;
    }

    .video-modal .modal-content {
        min-height: calc(100vh - .7rem);
        height: auto;
        max-height: none;
    }

    .video-modal-body {
        max-height: none;
        overflow: visible;
    }

    .video-comments-panel.is-open {
        max-height: none;
        overflow: visible;
    }
}

/* === Fix submenu clipping and sizing for "Давайте Разберемся" === */
.header-card,
.site-header-redesign .site-header-inner,
.nav-wrap-redesign,
.nav-strip-redesign,
.nav-strip-redesign #mainNav,
.nav-item-has-submenu {
    overflow: visible !important;
}

.nav-strip-redesign .nav-item-has-submenu .submenu {
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    min-width: 260px;
    width: max-content;
    max-width: min(320px, calc(100vw - 40px));
    z-index: 5000;
}

@media (max-width: 767.98px) {
    .nav-strip-redesign,
    .nav-strip-redesign #mainNav {
        overflow: visible !important;
    }

    .nav-item-has-submenu {
        position: relative;
    }

    .nav-item-has-submenu .submenu {
        top: calc(100% + 12px);
        left: 12px;
        right: auto;
        width: min(320px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        min-width: 0;
        padding: 18px 0;
        border-radius: 28px;
        max-height: min(68vh, 520px);
    }

    .nav-item-has-submenu .submenu a {
        padding: 8px 24px;
        font-size: clamp(16px, 4.8vw, 21px);
    }
}

/* === Mobile submenu theme sync with desktop === */
:root {
    --mobile-submenu-bg: rgba(37, 37, 35, 0.96);
    --mobile-submenu-text: #ffffff;
    --mobile-submenu-hover-bg: rgba(255, 255, 255, 0.10);
    --mobile-submenu-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

body.light-theme {
    --mobile-submenu-bg: rgba(255, 255, 255, 0.97);
    --mobile-submenu-text: #404040;
    --mobile-submenu-hover-bg: rgba(184, 0, 0, 0.08);
    --mobile-submenu-shadow: 0 22px 48px rgba(76, 50, 50, 0.14);
}

@media (max-width: 767.98px) {
    .nav-item-has-submenu .submenu {
        background: var(--mobile-submenu-bg) !important;
        border: 1px solid var(--border) !important;
        box-shadow: var(--mobile-submenu-shadow) !important;
        backdrop-filter: blur(8px);
    }

    .nav-item-has-submenu .submenu a {
        color: var(--mobile-submenu-text) !important;
    }

    .nav-item-has-submenu .submenu a:hover,
    .nav-item-has-submenu .submenu a:focus {
        background: var(--mobile-submenu-hover-bg) !important;
        color: var(--mobile-submenu-text) !important;
    }
}


/* === Restore horizontal scrolling of mobile menu strip === */
@media (max-width: 767.98px) {
    .nav-wrap-redesign {
        overflow: visible !important;
    }

    .nav-strip-redesign {
        -webkit-overflow-scrolling: touch;
    }

    .nav-strip-redesign #mainNav {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        width: max-content;
        min-width: max-content;
        padding-right: 14px;
    }

    .nav-strip-redesign .nav-link-custom,
    .nav-strip-redesign .nav-item-has-submenu > .nav-link-custom {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    body.mobile-submenu-open .nav-strip-redesign {
        overflow: visible !important;
    }
}


/* === v14 submenu interaction fixes === */
@media (min-width: 768px) {
    .nav-item-has-submenu {
        padding-bottom: 18px;
        margin-bottom: -18px;
    }

    .nav-strip-redesign .nav-item-has-submenu .submenu {
        top: calc(100% + 2px);
    }

    .nav-strip-redesign .nav-item-has-submenu .submenu::before {
        top: -18px;
        height: 18px;
    }
}

@media (max-width: 767.98px) {
    .nav-strip-redesign {
        -webkit-overflow-scrolling: touch;
    }

    .nav-item-has-submenu .submenu {
        position: fixed !important;
        top: var(--mobile-submenu-top);
        left: var(--mobile-submenu-left) !important;
        right: auto !important;
        width: var(--mobile-submenu-width) !important;
        max-width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        z-index: 6000 !important;
    }

    body.mobile-submenu-open .nav-strip-redesign {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
}


/* === v17 fix: keep submenu working on narrow desktop with mouse === */
@media (max-width: 767.98px) and (hover: hover) and (pointer: fine) {
    .nav-item-has-submenu {
        position: relative !important;
    }

    .nav-item-has-submenu .submenu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: auto !important;
        width: max-content !important;
        min-width: 240px !important;
        max-width: min(320px, calc(100vw - 24px)) !important;
        margin: 0 !important;
        padding: 14px 0 !important;
        border-radius: 22px !important;
        z-index: 7000 !important;
    }

    .nav-item-has-submenu .submenu::before {
        display: block !important;
        top: -14px !important;
        height: 14px !important;
    }

    .nav-item-has-submenu:hover .submenu,
    .nav-item-has-submenu:focus-within .submenu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 767.98px) and (hover: none), (max-width: 767.98px) and (pointer: coarse) {
    .nav-item-has-submenu {
        position: static !important;
    }
}


/* === v18 fix: show submenu on narrow desktop when carousel is 1 card === */
@media (max-width: 767.98px) and (hover: hover) and (pointer: fine) {
    .nav-strip-redesign,
    body.mobile-submenu-open .nav-strip-redesign {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }

    .site-header,
    .site-header-redesign,
    .header-redesign,
    .topbar-redesign,
    .header-shell,
    .header-wrap {
        overflow: visible !important;
    }

    .nav-strip-redesign #mainNav,
    .nav-item-has-submenu {
        overflow: visible !important;
    }

    .nav-item-has-submenu .submenu {
        display: block !important;
        top: calc(100% + 6px) !important;
    }
}


/* === v20 mobile submenu must open above header, not inside it === */
@media (max-width: 767.98px) and (hover: none), (max-width: 767.98px) and (pointer: coarse) {
    body.mobile-submenu-open,
    body.mobile-submenu-open .site-header,
    body.mobile-submenu-open .site-header-redesign,
    body.mobile-submenu-open .header-card,
    body.mobile-submenu-open .nav-wrap-redesign,
    body.mobile-submenu-open .nav-strip-redesign,
    body.mobile-submenu-open .nav-strip-redesign #mainNav,
    body.mobile-submenu-open .nav-item-has-submenu {
        overflow: visible !important;
    }

    body.mobile-submenu-open .nav-item-has-submenu .submenu {
        position: fixed !important;
        top: var(--mobile-submenu-top) !important;
        left: var(--mobile-submenu-left) !important;
        right: var(--mobile-submenu-left) !important;
        width: auto !important;
        max-width: min(320px, calc(100vw - 24px)) !important;
        min-width: 0 !important;
        margin: 0 !important;
        transform: none !important;
        z-index: 200000 !important;
        pointer-events: auto !important;
    }
}


.mobile-submenu-portal {
    display: none;
}

@media (max-width: 767.98px) and (hover: none), (max-width: 767.98px) and (pointer: coarse) {
    .nav-item-has-submenu.nav-open > .submenu {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .mobile-submenu-portal {
        position: fixed;
        left: var(--mobile-submenu-left);
        top: var(--mobile-submenu-top);
        width: var(--mobile-submenu-width);
        max-width: calc(100vw - 24px);
        z-index: 300000;
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    .mobile-submenu-portal.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-submenu-portal .submenu {
        position: static !important;
        display: block !important;
        margin: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        z-index: auto !important;
        background: var(--mobile-submenu-bg) !important;
        border: 1px solid var(--border) !important;
        border-radius: 28px !important;
        box-shadow: var(--mobile-submenu-shadow) !important;
        backdrop-filter: blur(8px);
        padding: 18px 0 !important;
        max-height: min(68vh, 520px);
        overflow-y: auto;
    }

    .mobile-submenu-portal .submenu::before {
        display: none !important;
    }

    .mobile-submenu-portal .submenu a {
        color: var(--mobile-submenu-text) !important;
        padding: 8px 24px;
        font-size: clamp(16px, 4.8vw, 21px);
    }

    .mobile-submenu-portal .submenu a:hover,
    .mobile-submenu-portal .submenu a:focus {
        background: var(--mobile-submenu-hover-bg) !important;
        color: var(--mobile-submenu-text) !important;
    }
}


/* === v23 submenu toggle uses button, not link === */
.nav-link-submenu-toggle {
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    padding-left: 0;
    padding-right: 0;
    cursor: pointer;
}

.nav-link-submenu-toggle:focus {
    outline: none;
}


/* === v24 force real mobile submenu portal on all small widths === */
@media (max-width: 767.98px) {
    .nav-item-has-submenu.nav-open > .submenu,
    .nav-item-has-submenu:hover > .submenu,
    .nav-item-has-submenu:focus-within > .submenu {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: none !important;
    }

    .mobile-submenu-portal {
        position: fixed !important;
        left: var(--mobile-submenu-left) !important;
        top: var(--mobile-submenu-top) !important;
        width: var(--mobile-submenu-width) !important;
        max-width: calc(100vw - 24px) !important;
        z-index: 500000 !important;
        display: block !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
    }

    .mobile-submenu-portal.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .mobile-submenu-portal .submenu {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        margin: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: none !important;
        padding: 18px 0 !important;
        border-radius: 28px !important;
        background: var(--mobile-submenu-bg, rgba(37, 37, 35, 0.96)) !important;
        color: var(--mobile-submenu-text, #fff) !important;
        border: 1px solid var(--border, rgba(255,255,255,0.12)) !important;
        box-shadow: var(--mobile-submenu-shadow, 0 22px 48px rgba(0,0,0,0.28)) !important;
        max-height: min(68vh, 520px) !important;
        overflow-y: auto !important;
        backdrop-filter: blur(8px);
    }

    .mobile-submenu-portal .submenu li,
    .mobile-submenu-portal .submenu a {
        display: block !important;
    }

    .mobile-submenu-portal .submenu a {
        color: var(--mobile-submenu-text, #fff) !important;
        text-decoration: none !important;
        padding: 10px 24px !important;
        font-size: clamp(16px, 4.8vw, 21px) !important;
        line-height: 1.35 !important;
        font-weight: 700 !important;
    }
}


/* === v25 stable mobile submenu portal === */
@media (max-width: 767.98px) {
  .nav-item-has-submenu > .submenu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .mobile-submenu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 699998;
    display: none;
  }

  .mobile-submenu-backdrop.is-open {
    display: block;
  }

  .mobile-submenu-portal {
    position: fixed !important;
    left: var(--mobile-submenu-left) !important;
    right: var(--mobile-submenu-left) !important;
    top: var(--mobile-submenu-top) !important;
    width: auto !important;
    max-width: none !important;
    z-index: 699999 !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    transform: none !important;
  }

  .mobile-submenu-portal.is-open {
    display: block !important;
    pointer-events: auto !important;
  }

  .mobile-submenu-portal .submenu {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px 0 !important;
    border-radius: 18px !important;
    border: 1px solid var(--border, rgba(255,255,255,.12)) !important;
    background: var(--mobile-submenu-bg, rgba(37, 37, 35, 0.98)) !important;
    color: var(--mobile-submenu-text, #fff) !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.30) !important;
    backdrop-filter: blur(8px);
    max-height: min(62vh, 420px) !important;
    overflow-y: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .mobile-submenu-portal .submenu a {
    display: block !important;
    padding: 10px 18px !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: var(--mobile-submenu-text, #fff) !important;
    text-decoration: none !important;
  }
}


/* === v26 devtools/mobile submenu rendering must not depend on media-query display === */
.mobile-submenu-backdrop {
  display: none;
  pointer-events: none;
}

.mobile-submenu-portal {
  display: none;
  pointer-events: none;
}

body.mobile-submenu-open .mobile-submenu-backdrop {
  display: block !important;
  pointer-events: auto !important;
}

body.mobile-submenu-open .mobile-submenu-portal {
  display: block !important;
  pointer-events: auto !important;
}


/* === v28 fix: same submenu behavior in DevTools emulation and real mobile width === */
body.submenu-mobile-mode .nav-item-has-submenu > .submenu {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.submenu-mobile-mode .mobile-submenu-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.28) !important;
  z-index: 699998 !important;
  display: none !important;
  pointer-events: none !important;
}

body.submenu-mobile-mode .mobile-submenu-portal {
  position: fixed !important;
  left: var(--mobile-submenu-left) !important;
  right: var(--mobile-submenu-left) !important;
  top: var(--mobile-submenu-top) !important;
  width: auto !important;
  max-width: none !important;
  z-index: 699999 !important;
  display: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  transform: none !important;
}

body.submenu-mobile-mode.mobile-submenu-open .nav-strip-redesign {
  z-index: 699998 !important;
}

body.submenu-mobile-mode.mobile-submenu-open .mobile-submenu-backdrop {
  display: block !important;
  pointer-events: auto !important;
  z-index: 699997 !important;
}

body.submenu-mobile-mode.mobile-submenu-open .mobile-submenu-portal {
  display: block !important;
  pointer-events: auto !important;
}

body.submenu-mobile-mode .mobile-submenu-portal .submenu {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 14px 0 !important;
  border-radius: 18px !important;
  border: 1px solid var(--border, rgba(255,255,255,.12)) !important;
  background: var(--mobile-submenu-bg, rgba(37, 37, 35, 0.98)) !important;
  color: var(--mobile-submenu-text, #fff) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.30) !important;
  backdrop-filter: blur(8px) !important;
  max-height: min(62vh, 420px) !important;
  overflow-y: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

body.submenu-mobile-mode .mobile-submenu-portal .submenu a {
  display: block !important;
  padding: 10px 18px !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  color: var(--mobile-submenu-text, #fff) !important;
  text-decoration: none !important;
}

body.submenu-mobile-mode .mobile-submenu-portal .submenu .submenu-parent-link-item a {
  font-weight: 700 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-bottom: 4px !important;
  padding-bottom: 12px !important;
}

body:not(.submenu-mobile-mode) .mobile-submenu-backdrop,
body:not(.submenu-mobile-mode) .mobile-submenu-portal {
  display: none !important;
  pointer-events: none !important;
}

/* Fix: keep brand mark identical on mobile and desktop */
.site-header-redesign .brand-link {
  align-items: center !important;
}

.site-header-redesign .brand-mark {
  position: relative !important;
  width: 76px !important;
  min-width: 76px !important;
  height: 44px !important;
  padding: 0 0 0 14px !important;
  border: 3px solid var(--logo-border, rgba(255,255,255,.92)) !important;
  border-radius: 14px 0 14px 14px !important;
  background: var(--logo-bg, #1a1a1a) !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-shadow: none !important;
  flex: 0 0 auto !important;
  transform: none !important;
}

.site-header-redesign .brand-mark::before {
  content: "" !important;
  position: absolute !important;
  top: 3px !important;
  right: 3px !important;
  width: 30% !important;
  height: calc(50% - 3px) !important;
  background: var(--logo-accent, #d10f0f) !important;
  border-radius: 0 0 0 40px !important;
}

.site-header-redesign .brand-mark-main {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  font-family: "Benzin Bold", Arial, sans-serif !important;
  font-size: 24px !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
  color: var(--logo-text, #fff) !important;
  white-space: nowrap !important;
  text-indent: 0 !important;
}

@media (max-width: 767.98px) {
  .site-header-redesign .brand-link {
    gap: 14px !important;
    align-items: center !important;
  }

  .site-header-redesign .brand-mark {
    width: 76px !important;
    min-width: 76px !important;
    height: 44px !important;
    padding-left: 14px !important;
  }

  .site-header-redesign .brand-mark-main {
    font-size: 24px !important;
    line-height: 1 !important;
  }
}


/* === v32 mobile submenu width should match viewport/page width === */
body.submenu-mobile-mode .mobile-submenu-portal {
  left: 0 !important;
  right: auto !important;
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

body.submenu-mobile-mode .mobile-submenu-portal .submenu {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 18px !important;
}


/* === v33 mobile submenu width must follow viewport, not nav strip === */
body.submenu-mobile-mode .mobile-submenu-portal {
  box-sizing: border-box !important;
  width: calc(100vw - 24px) !important;
  max-width: calc(100vw - 24px) !important;
  left: 12px !important;
  right: 12px !important;
}

body.submenu-mobile-mode .mobile-submenu-portal .submenu {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* === Home page layout update: blocks, ads, footer tile layout === */
.main-layout {
    /*grid-template-columns: 120px minmax(0, 960px) 120px;*/
    justify-content: center;
    gap: clamp(18px, 4vw, 72px);
}
.main-content-column { max-width: 960px; }
.content-shell { max-width: 960px; }
.blc-rail { /*top: 420px;*/ align-items: flex-start; padding-top: 170px; }
.blc-rail-left { transform: translateX(-4px); }
.blc-rail-right { transform: translateX(4px); }
.ad-block,
.blc-rail::before {
    min-height: 380px;
    border-radius: 6px;
    background: var(--home-ad-bg, #d8d8d8);
}
.blc-rail::before {
    content: "РЕКЛАМА";
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--home-ad-text, #fff);
    font-family: "Benzin Medium", Arial, sans-serif;
    font-size: 13px;
    text-transform: uppercase;
}
.blc-rail .ad-block { display: none; }
body.light-theme { --home-ad-bg: #d9d9d9; --home-ad-text: #fff; }
body:not(.light-theme) { --home-ad-bg: #343434; --home-ad-text: rgba(255,255,255,.72); }

.home-section-separator {
    border-top: 2px solid var(--red);
    padding-top: 28px;
    margin-bottom: 52px;
}
.homepage-hidden-feed { display: none !important; }
.section-title {
    color: var(--red);
    font-size: clamp(18px, 1.3vw, 24px);
    letter-spacing: -.02em;
    text-transform: none;
}
.daily-stories-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(16px, 2.2vw, 28px);
    overflow-x: auto;
    padding: 4px 8px 8px;
    scrollbar-width: none;
}
.daily-stories-row::-webkit-scrollbar { display: none; }
.daily-story-card {
    flex: 0 0 92px;
    max-width: 92px;
    color: var(--text);
}
.daily-story-media {
    width: 92px;
    height: 176px;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: var(--surface);
    display: block;
    position: relative;
}
.daily-story-media img,
.featured-video-media img,
.video-tile-main-media img,
.playlist-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.daily-story-card h3 {
    margin: 8px 0 0;
    font: 9px/1.25 "Benzin Bold", Arial, sans-serif;
    color: var(--text);
}
.featured-section {
    max-width: 720px;
}
.featured-video-card {
    background: transparent;
    border: 0;
    color: var(--text);
}
.featured-video-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    padding: 0;
    overflow: hidden;
    background: var(--surface);
}
.featured-rubric {
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--red);
    color: #fff;
    font: 11px/1 "Benzin Bold", Arial, sans-serif;
    text-transform: uppercase;
    padding: 7px 12px 6px;
}
.featured-video-body {
    position: relative;
    padding-top: 18px;
}
.featured-video-body h3 {
    margin: 0 44px 14px 0;
    font: clamp(17px, 1.55vw, 24px)/1.18 "Benzin Bold", Arial, sans-serif;
    color: var(--text);
    text-transform: uppercase;
}
.featured-video-body p,
.video-tile-main p {
    margin: 0 0 16px;
    font: 13px/1.45 "Benzin Medium", Arial, sans-serif;
    color: var(--text);
}
.featured-toggle {
    position: absolute;
    top: 18px;
    right: 4px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 22px;
    line-height: 1;
}
.featured-meta,
.tile-date {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font: 10px/1.4 "Benzin Regular", Arial, sans-serif;
}
.video-tile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 32px;
    align-items: start;
    margin-top: 64px;
}
.video-tile-main-media {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    width: 100%;
    border: 0;
    padding: 0;
    overflow: hidden;
    background: var(--surface);
}
.video-tile-main h3 {
    margin: 14px 0 8px;
    font: 15px/1.18 "Benzin Bold", Arial, sans-serif;
    color: var(--text);
}
.video-playlist-column {
    display: grid;
    gap: 18px;
}
.playlist-tile button {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    padding: 0;
    overflow: hidden;
    background: var(--surface);
}
.playlist-tile h4 {
    margin: 8px 0 0;
    color: var(--text);
    font: 9px/1.25 "Benzin Bold", Arial, sans-serif;
}
.video-play-badge-xs {
    display: none !important;
}
.home-pagination {
    margin-top: 56px;
    display: flex;
    justify-content: center;
    gap: 18px;
    align-items: center;
    color: var(--red);
    font: 13px/1 "Benzin Bold", Arial, sans-serif;
}
.home-pagination a { color: var(--red); }
.home-pagination .active { color: var(--text); }

.site-footer-redesign .content-shell { max-width: 100%; width: 100%; }
.site-footer-redesign .footer-cta-bar { border-radius: 6px 6px 0 0; }
.site-footer-redesign .footer-panel {
    border-radius: 0;
    padding: 28px clamp(24px, 9vw, 160px) 34px;
}
.footer-social-row { margin-bottom: 34px; }
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 32px 64px;
}
.footer-links-col-service,
.footer-links-col-last { margin-left: 0; }
body.light-theme .footer-panel {
    background: #d9d9d9;
    color: #404040;
}
body.light-theme .footer-social-label,
body.light-theme .footer-handle,
body.light-theme .footer-policy-link,
body.light-theme .footer-disclaimer { color: rgba(64,64,64,.82); }
body.light-theme .footer-policy-link:hover,
body.light-theme .footer-policy-link.active { color: #D00000; }

@media (max-width: 1199.98px) {
    .main-layout { grid-template-columns: minmax(0, 1fr); }
    .blc-rail { display: none; }
    .main-content-column, .content-shell { max-width: min(960px, calc(100vw - 28px)); }
}
@media (max-width: 767.98px) {
    .site-shell { padding-left: 10px !important; padding-right: 10px !important; }
    .home-section-separator { padding-top: 22px; margin-bottom: 38px; }
    .featured-section { max-width: calc(100vw - 28px); }
    .daily-stories-row { justify-content: flex-start; }
    .video-tile-layout { grid-template-columns: 1fr; gap: 22px; margin-top: 38px; }
    .video-playlist-column { grid-template-columns: 1fr; }
    .playlist-tile { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
    .playlist-tile button { aspect-ratio: 16/9; }
    .footer-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .site-footer-redesign .footer-panel { padding: 24px 18px 28px; }
}

/* === v36 targeted fixes: theme toggle, section title alignment, footer width === */
.featured-section {
    max-width: 960px !important;
    width: 100%;
}
.featured-section > .featured-video-card {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.video-home-section > .featured-video-card:first-of-type {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.video-home-section .video-tile-layout {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.site-footer-redesign {
    width: 100%;
}
.site-footer-redesign .content-shell {
    max-width: 960px !important;
    width: min(960px, calc(100vw - 28px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.site-footer-redesign .footer-panel {
    padding-left: clamp(18px, 4vw, 52px) !important;
    padding-right: clamp(18px, 4vw, 52px) !important;
}
@media (max-width: 767.98px) {
    .featured-section,
    .featured-section > .featured-video-card,
    .video-home-section > .featured-video-card:first-of-type,
    .video-home-section .video-tile-layout {
        max-width: calc(100vw - 28px) !important;
    }
    .site-footer-redesign .content-shell {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
    }
}

/* === v38 fixes: hot-news carousel steps, footer width, video action hover === */
@media (min-width: 768px) {
    #heroCarouselDesktop .hot-news-step-row {
        flex-wrap: nowrap;
    }

    #heroCarouselDesktop .hot-news-visible-col {
        flex: 0 0 25%;
        max-width: 25%;
    }

    #heroCarouselDesktop .carousel-card.video-card-ready {
        width: 100%;
        max-width: 240px;
    }
}

.site-footer-redesign .content-shell {
    max-width: 1720px !important;
    width: min(1720px, calc(100vw - 32px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.site-footer-redesign .footer-panel {
    padding: 22px clamp(24px, 4vw, 72px) 24px !important;
}

.site-footer-redesign .footer-cta-bar {
    padding-top: 11px !important;
    padding-bottom: 10px !important;
}

.site-footer-redesign .footer-social-row {
    margin-bottom: 20px !important;
}

.site-footer-redesign .footer-links-grid {
    gap: 22px 42px !important;
}

.video-action-btn,
.video-action-btn-floating {
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.video-action-btn:hover,
.video-action-btn:focus-visible,
.video-action-btn-floating:hover,
.video-action-btn-floating:focus-visible {
    background: rgba(220, 0, 0, .82) !important;
    border-color: rgba(255, 255, 255, .42) !important;
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(220, 0, 0, .28), 0 0 0 2px rgba(255,255,255,.16) inset !important;
    transform: translateY(-1px);
}

.video-action-btn-floating:hover,
.video-action-btn-floating:focus-visible {
    transform: translateY(-1px) scale(1.04);
}

.video-action-btn:hover .video-action-text,
.video-action-btn:focus-visible .video-action-text,
.video-action-btn-floating:hover .video-action-text,
.video-action-btn-floating:focus-visible .video-action-text {
    color: #fff !important;
}

@media (max-width: 767.98px) {
    .site-footer-redesign .content-shell {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
    }

    .site-footer-redesign .footer-panel {
        padding: 20px 16px 22px !important;
    }
}


/* === v41 footer exact layout fix === */
.site-footer-redesign {
    width: 100% !important;
    background: transparent !important;
    border-top: 0 !important;
    margin-top: 36px !important;
}
.site-footer-redesign .content-shell {
    width: min(1600px, calc(100vw - 32px)) !important;
    max-width: min(1600px, calc(100vw - 32px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.site-footer-redesign .footer-cta-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 72px !important;
    padding: 0 24px !important;
    border-radius: 28px 28px 0 0 !important;
    background: #c90000 !important;
    color: #fff !important;
    font-family: "Benzin Bold", Arial, sans-serif !important;
    font-size: clamp(18px, 1.55vw, 28px) !important;
    line-height: 1 !important;
    text-align: center !important;
}
.site-footer-redesign .footer-panel {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #d9d9d9 !important;
    color: #4b4b4b !important;
    border-radius: 26px 26px 0 0 !important;
    padding: 70px clamp(70px, 12.7vw, 205px) 52px !important;
    box-shadow: none !important;
}
.site-footer-redesign .footer-social-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    margin: 0 0 64px !important;
    color: #4b4b4b !important;
}
.site-footer-redesign .footer-social-label,
.site-footer-redesign .footer-handle {
    color: #4b4b4b !important;
    font-family: "Benzin Medium", Arial, sans-serif !important;
    font-size: clamp(20px, 1.6vw, 31px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}
.site-footer-redesign .footer-handle {
    font-family: "Benzin Bold", Arial, sans-serif !important;
}
.site-footer-redesign .footer-social-icons {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #737373 !important;
}
.site-footer-redesign .social-link {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #737373 !important;
    font-family: "Benzin Bold", Arial, sans-serif !important;
    font-size: clamp(16px, 1.25vw, 24px) !important;
    line-height: 1 !important;
    opacity: 1 !important;
}
.site-footer-redesign .footer-links-grid {
    display: grid !important;
    grid-template-columns: 1.1fr .95fr 1.05fr 1fr !important;
    gap: clamp(44px, 6.8vw, 110px) !important;
    align-items: start !important;
    width: 100% !important;
}
.site-footer-redesign .footer-links-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    min-width: 0 !important;
    margin: 0 !important;
}
.site-footer-redesign .footer-policy-link,
.site-footer-redesign .footer-disclaimer {
    color: #4b4b4b !important;
    font-family: "Benzin Medium", Arial, sans-serif !important;
    font-size: clamp(13px, .94vw, 18px) !important;
    line-height: 1.18 !important;
    text-decoration: none !important;
    max-width: none !important;
    white-space: normal !important;
}
.site-footer-redesign .footer-policy-link::after { display: none !important; }
.site-footer-redesign .footer-policy-link:hover { color: #D00000 !important; }
.site-footer-redesign .footer-disclaimer {
    max-width: 310px !important;
}
body:not(.light-theme) .site-footer-redesign .footer-panel {
    background: #151515 !important;
    color: rgba(255,255,255,.82) !important;
}
body:not(.light-theme) .site-footer-redesign .footer-social-label,
body:not(.light-theme) .site-footer-redesign .footer-handle,
body:not(.light-theme) .site-footer-redesign .footer-policy-link,
body:not(.light-theme) .site-footer-redesign .footer-disclaimer,
body:not(.light-theme) .site-footer-redesign .social-link {
    color: rgba(255,255,255,.82) !important;
}
@media (max-width: 991.98px) {
    .site-footer-redesign .footer-panel {
        padding: 42px 26px 38px !important;
    }
    .site-footer-redesign .footer-social-row {
        flex-wrap: wrap !important;
        gap: 12px !important;
        margin-bottom: 38px !important;
    }
    .site-footer-redesign .footer-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px 34px !important;
    }
}
@media (max-width: 575.98px) {
    .site-footer-redesign .content-shell {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
    }
    .site-footer-redesign .footer-cta-bar {
        min-height: 54px !important;
        border-radius: 20px 20px 0 0 !important;
        font-size: 15px !important;
    }
    .site-footer-redesign .footer-panel {
        border-radius: 18px 18px 0 0 !important;
        padding: 30px 18px 30px !important;
    }
    .site-footer-redesign .footer-social-label,
    .site-footer-redesign .footer-handle {
        font-size: 16px !important;
        white-space: normal !important;
    }
    .site-footer-redesign .footer-links-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }
    .site-footer-redesign .footer-links-col { gap: 13px !important; }
    .site-footer-redesign .footer-policy-link,
    .site-footer-redesign .footer-disclaimer { font-size: 12px !important; white-space: normal !important; }
}

/* === v47 FINAL footer compact override: reduce real footer height and text only === */
.site-footer.site-footer-redesign {
    margin-top: 20px !important;
    padding: 0 !important;
    min-height: 0 !important;
}
.site-footer-redesign .content-shell {
    width: min(1600px, calc(100vw - 32px)) !important;
    max-width: min(1600px, calc(100vw - 32px)) !important;
}
.site-footer-redesign .footer-cta-bar {
    min-height: 46px !important;
    height: 46px !important;
    padding: 0 18px !important;
    border-radius: 18px 18px 0 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
}
.site-footer-redesign .footer-panel {
    padding: 22px clamp(32px, 7vw, 110px) 20px !important;
    border-radius: 18px 18px 0 0 !important;
    min-height: 0 !important;
}
.site-footer-redesign .footer-social-row {
    gap: 12px !important;
    margin: 0 0 18px !important;
    min-height: 0 !important;
}
.site-footer-redesign .footer-social-label,
.site-footer-redesign .footer-handle {
    font-size: 14px !important;
    line-height: 1.15 !important;
}
.site-footer-redesign .footer-social-icons {
    gap: 7px !important;
}
.site-footer-redesign .social-link {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}
.site-footer-redesign .footer-links-grid {
    gap: clamp(18px, 4vw, 64px) !important;
}
.site-footer-redesign .footer-links-col {
    gap: 8px !important;
}
.site-footer-redesign .footer-policy-link,
.site-footer-redesign .footer-disclaimer {
    font-size: 10px !important;
    line-height: 1.2 !important;
}
.site-footer-redesign .footer-disclaimer {
    max-width: 240px !important;
}
@media (max-width: 991.98px) {
    .site-footer-redesign .footer-panel {
        padding: 18px 20px 18px !important;
    }
    .site-footer-redesign .footer-social-row {
        margin-bottom: 14px !important;
        gap: 10px !important;
    }
    .site-footer-redesign .footer-links-grid {
        gap: 14px 20px !important;
    }
    .site-footer-redesign .footer-links-col {
        gap: 7px !important;
    }
}
@media (max-width: 575.98px) {
    .site-footer-redesign .content-shell {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
    }
    .site-footer-redesign .footer-cta-bar {
        min-height: 42px !important;
        height: 42px !important;
        font-size: 14px !important;
        border-radius: 14px 14px 0 0 !important;
    }
    .site-footer-redesign .footer-panel {
        padding: 14px 14px 14px !important;
        border-radius: 14px 14px 0 0 !important;
    }
    .site-footer-redesign .footer-social-row {
        margin-bottom: 12px !important;
    }
    .site-footer-redesign .footer-social-label,
    .site-footer-redesign .footer-handle {
        font-size: 12px !important;
        line-height: 1.15 !important;
    }
    .site-footer-redesign .social-link {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        font-size: 15px !important;
    }
    .site-footer-redesign .footer-links-grid {
        gap: 10px !important;
    }
    .site-footer-redesign .footer-links-col {
        gap: 6px !important;
    }
    .site-footer-redesign .footer-policy-link,
    .site-footer-redesign .footer-disclaimer {
        font-size: 9px !important;
        line-height: 1.15 !important;
    }
}


/* search field exact grey fill fix v49 */
.header-inline-search {
    background: #d9d9d9 !important;
    border-radius: 999px !important;
    border: 0 !important;
    box-shadow: none !important;
}

.header-inline-search-input {
    background: transparent !important;
    color: #747474 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.header-inline-search-input::placeholder {
    color: #9a9a9a !important;
    opacity: 1 !important;
}

.header-inline-search-btn {
    background: transparent !important;
    color: #777777 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.header-inline-search-btn .bi,
.header-inline-search-btn i {
    color: #777777 !important;
}


/* search theme fix v50 */
.header-inline-search {
    background: #d9d9d9 !important;
}

body.dark-theme .header-inline-search,
[data-theme="dark"] .header-inline-search,
.theme-dark .header-inline-search {
    background: #2b2b2b !important;
}

body.dark-theme .header-inline-search-input,
[data-theme="dark"] .header-inline-search-input,
.theme-dark .header-inline-search-input {
    color: #d0d0d0 !important;
}

body.dark-theme .header-inline-search-input::placeholder,
[data-theme="dark"] .header-inline-search-input::placeholder,
.theme-dark .header-inline-search-input::placeholder {
    color: #9b9b9b !important;
}

body.dark-theme .header-inline-search-btn,
[data-theme="dark"] .header-inline-search-btn,
.theme-dark .header-inline-search-btn {
    color: #c0c0c0 !important;
}


/* search dark theme restore fix v51 */
body.dark-theme .header-inline-search,
html.dark-theme .header-inline-search,
[data-theme="dark"] .header-inline-search,
.theme-dark .header-inline-search,
body.dark .header-inline-search {
    background: #1f1f1f !important;
    border-color: #1f1f1f !important;
}

body.dark-theme .header-inline-search-input,
html.dark-theme .header-inline-search-input,
[data-theme="dark"] .header-inline-search-input,
.theme-dark .header-inline-search-input,
body.dark .header-inline-search-input {
    background: transparent !important;
    color: #f0f0f0 !important;
}

body.dark-theme .header-inline-search-input::placeholder,
html.dark-theme .header-inline-search-input::placeholder,
[data-theme="dark"] .header-inline-search-input::placeholder,
.theme-dark .header-inline-search-input::placeholder,
body.dark .header-inline-search-input::placeholder {
    color: #b5b5b5 !important;
    opacity: 1 !important;
}

body.dark-theme .header-inline-search-btn,
html.dark-theme .header-inline-search-btn,
[data-theme="dark"] .header-inline-search-btn,
.theme-dark .header-inline-search-btn,
body.dark .header-inline-search-btn {
    background: transparent !important;
    color: #d8d8d8 !important;
}


/* v52 strict dark theme search restore */
html[data-theme="dark"] .header-inline-search,
html.dark-theme .header-inline-search,
body.dark-theme .header-inline-search,
body.theme-dark .header-inline-search,
body.dark .header-inline-search {
    background: #202020 !important;
    border: 1px solid #202020 !important;
}

html[data-theme="dark"] .header-inline-search-input,
html.dark-theme .header-inline-search-input,
body.dark-theme .header-inline-search-input,
body.theme-dark .header-inline-search-input,
body.dark .header-inline-search-input {
    background: transparent !important;
    color: #f2f2f2 !important;
}

html[data-theme="dark"] .header-inline-search-input::placeholder,
html.dark-theme .header-inline-search-input::placeholder,
body.dark-theme .header-inline-search-input::placeholder,
body.theme-dark .header-inline-search-input::placeholder,
body.dark .header-inline-search-input::placeholder {
    color: #bdbdbd !important;
    opacity: 1 !important;
}

html[data-theme="dark"] .header-inline-search-btn,
html.dark-theme .header-inline-search-btn,
body.dark-theme .header-inline-search-btn,
body.theme-dark .header-inline-search-btn,
body.dark .header-inline-search-btn {
    background: transparent !important;
    color: #d9d9d9 !important;
}


/* v53 force dark theme search exact override */
body.dark-theme .header-inline-search,
body.dark .header-inline-search,
body.theme-dark .header-inline-search,
html.dark-theme .header-inline-search,
html[data-theme="dark"] .header-inline-search {
    background-color: #1e1e1e !important;
    background: #1e1e1e !important;
}

body.dark-theme .header-inline-search *,
body.dark .header-inline-search *,
body.theme-dark .header-inline-search *,
html.dark-theme .header-inline-search *,
html[data-theme="dark"] .header-inline-search * {
    background-color: transparent !important;
}

body.dark-theme .header-inline-search-input,
body.dark .header-inline-search-input,
body.theme-dark .header-inline-search-input,
html.dark-theme .header-inline-search-input,
html[data-theme="dark"] .header-inline-search-input {
    color: #f2f2f2 !important;
}

body.dark-theme .header-inline-search-input::placeholder,
body.dark .header-inline-search-input::placeholder,
body.theme-dark .header-inline-search-input::placeholder,
html.dark-theme .header-inline-search-input::placeholder,
html[data-theme="dark"] .header-inline-search-input::placeholder {
    color: #bdbdbd !important;
    opacity: 1 !important;
}

/* v54 correct search colors for actual theme implementation */
body.light-theme .header-inline-search {
    background: #d9d9d9 !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.light-theme .header-inline-search-input {
    background: transparent !important;
    color: #747474 !important;
}

body.light-theme .header-inline-search-input::placeholder {
    color: #9a9a9a !important;
    opacity: 1 !important;
}

body.light-theme .header-inline-search-btn {
    background: transparent !important;
    color: #777777 !important;
}

body:not(.light-theme) .header-inline-search {
    background: rgba(255,255,255,.08) !important;
    border: 0 !important;
    box-shadow: none !important;
}

body:not(.light-theme) .header-inline-search-input {
    background: transparent !important;
    color: var(--header-search-text, #f1ecec) !important;
}

body:not(.light-theme) .header-inline-search-input::placeholder {
    color: var(--header-search-placeholder, rgba(255,255,255,.72)) !important;
    opacity: 1 !important;
}

body:not(.light-theme) .header-inline-search-btn {
    background: transparent !important;
    color: var(--header-search-button, rgba(255,255,255,.72)) !important;
}


/* v82 clean header/footer alignment fix */

/* Один и тот же контейнер для шапки и футера */
:root {
    --site-frame-width: min(1770px, calc(100vw - 96px));
}

.site-header-redesign .content-shell,
.site-footer-redesign > .content-shell {
    width: var(--site-frame-width) !important;
    max-width: var(--site-frame-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* Шапка */
.site-header-redesign {
    top: 0 !important;
    margin-top: 0 !important;
    transform: none !important;
    overflow: visible !important;
    z-index: 2000 !important;
}

.header-card {
    overflow: visible !important;
    border-radius: 0 0 34px 34px !important;
    background: var(--header-card-bg, #201f1f) !important;
}

.header-topbar {
    position: relative !important;
    z-index: 5 !important;
    min-height: 78px !important;
    margin: 0 !important;
    border-radius: 0 0 26px 26px !important;
    overflow: visible !important;
    background: var(--header-card-bg, #201f1f) !important;
}

body.light-theme .header-topbar {
    background: var(--header-card-bg, #f4f4f4) !important;
}

.nav-wrap,
.nav-wrap-redesign {
    position: relative !important;
    z-index: 2 !important;
    margin-top: -30px !important;
    padding: 0 !important;
    overflow: visible !important;
}

.nav-strip,
.nav-strip-redesign {
    width: 100% !important;
    min-height: 72px !important;
    padding: 0 24px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: #d00000 !important;
    border-radius: 0 0 34px 34px !important;
    touch-action: pan-x !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    display: block !important;
}

.nav-strip-redesign a {
    -webkit-user-drag: none !important;
}

.nav-strip-redesign:active {
    cursor: grabbing !important;
}

.nav-strip-redesign.active-drag {
    cursor: grabbing !important;
    user-select: none !important;
}

.nav-strip-redesign.active-drag a {
    /* pointer-events: none !important; -- Убрано, так как теперь блокируем через JS moved */
}

.nav-strip::-webkit-scrollbar,
.nav-strip-redesign::-webkit-scrollbar {
    display: none !important;
}

.nav-strip .d-flex.align-items-center.gap-3.gap-lg-4,
.nav-strip-redesign .d-flex.align-items-center.gap-3.gap-lg-4,
#mainNav {
    width: max-content !important;
    min-width: 100% !important;
    height: 72px !important;
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
}

/* Так как nav поднят под header-topbar на 30px, текст нужно вернуть в центр видимой красной части */
#mainNav .nav-link-custom,
#mainNav .nav-link-submenu-toggle {
    position: relative !important;
    top: 20px !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1 !important;
    padding: 0 !important;
}

/* Футер */
.site-footer-redesign {
    width: 100% !important;
    margin-top: 96px !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    border-top: 0 !important;
}

.site-footer-redesign .footer-cta-bar,
.site-footer-redesign #reportNewsTrigger {
    width: 100% !important;
    max-width: 100% !important;
    height: 76px !important;
    min-height: 76px !important;
    margin: 0 !important;
    padding: 18px 24px 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: 0 !important;
    transform: none !important;
    z-index: 2 !important;
    background: #d00000 !important;
    color: #fff !important;
    border-radius: 28px 28px 0 0 !important;
    font-family: "Benzin Bold", Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1 !important;
    text-align: center !important;
}

.site-footer-redesign .footer-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin: -28px 0 0 !important;
    padding: 58px clamp(70px, 8vw, 150px) 34px !important;
    position: relative !important;
    z-index: 3 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 28px 28px 0 0 !important;
    box-shadow: none !important;
}

body.light-theme .site-footer-redesign .footer-panel {
    background: #d9d9d9 !important;
    color: #444 !important;
}

body:not(.light-theme) .site-footer-redesign .footer-panel {
    background: #111111 !important;
    color: #e8e8e8 !important;
}

.site-footer-redesign .footer-social-row {
    margin: 0 0 24px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
}

.site-footer-redesign .footer-links-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: clamp(32px, 5vw, 82px) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer-redesign .footer-links-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

.site-footer-redesign .footer-policy-link,
.site-footer-redesign .footer-disclaimer {
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
}

.site-footer-redesign .footer-disclaimer {
    max-width: 300px !important;
}

.site-footer-redesign .social-link {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    background: transparent !important;
}

/* Отменяем случайные глобальные сдвиги main/content-shell */
main .content-shell,
.main-content-column,
.home-section-separator {
    margin-top: initial;
}

.home-section-separator::before,
.home-section-separator::after {
    z-index: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 1199.98px) {
    :root {
        --site-frame-width: min(960px, calc(100vw - 28px));
    }
}

@media (max-width: 767.98px) {
    :root {
        --site-frame-width: calc(100vw - 20px);
    }

    .nav-wrap,
    .nav-wrap-redesign {
        margin-top: 0 !important;
    }

    #mainNav .nav-link-custom,
    #mainNav .nav-link-submenu-toggle {
        top: 0 !important;
    }

    .site-footer-redesign {
        margin-top: 64px !important;
    }

    .site-footer-redesign .footer-panel {
        padding: 48px 20px 24px !important;
    }

    .site-footer-redesign .footer-links-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 22px !important;
    }
}


/* v83 footer centering + nav underline fix */

/* 1) Footer must be centered like header, not shifted left */
.site-footer-redesign {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.site-footer-redesign > .content-shell {
    width: min(1770px, calc(100vw - 96px)) !important;
    max-width: min(1770px, calc(100vw - 96px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

.site-footer-redesign .footer-cta-bar,
.site-footer-redesign #reportNewsTrigger,
.site-footer-redesign .footer-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/* 2) Header nav underline must sit under text, not through it */
#mainNav .nav-link-custom,
#mainNav .nav-link-submenu-toggle {
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 8px !important;
    text-decoration: none !important;
}

#mainNav .nav-link-custom::after,
#mainNav .nav-link-submenu-toggle::after {
    bottom: 0 !important;
    top: auto !important;
    transform: none !important;
    height: 2px !important;
}

#mainNav .nav-link-custom.active::after,
#mainNav .nav-link-custom:hover::after,
#mainNav .nav-link-submenu-toggle:hover::after {
    bottom: 0 !important;
    top: auto !important;
}

@media (max-width: 1199.98px) {
    .site-footer-redesign > .content-shell {
        width: min(960px, calc(100vw - 28px)) !important;
        max-width: min(960px, calc(100vw - 28px)) !important;
    }
}

@media (max-width: 767.98px) {
    .site-footer-redesign > .content-shell {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
    }
}


/* v84: fix active underline position under header menu */
#mainNav .nav-link-custom,
#mainNav .nav-link-submenu-toggle {
    position: relative !important;
    padding-bottom: 14px !important;
}

#mainNav .nav-link-custom::after,
#mainNav .nav-link-submenu-toggle::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    bottom: 4px !important;
    top: auto !important;
    height: 2px !important;
    transform: none !important;
}

#mainNav .nav-link-custom.active::after {
    bottom: 4px !important;
}


/* v85: underline only active and hover items, not all menu links */

#mainNav .nav-link-custom::after,
#mainNav .nav-link-submenu-toggle::after {
    content: none !important;
    display: none !important;
}

#mainNav .nav-link-custom.active::after,
#mainNav .nav-link-custom:hover::after,
#mainNav .nav-link-submenu-toggle:hover::after,
#mainNav .nav-link-submenu-toggle[aria-expanded="true"]::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    bottom: 4px !important;
    top: auto !important;
    height: 2px !important;
    transform: none !important;
}

/* v86: active menu item bold, others regular */

#mainNav .nav-link-custom,
#mainNav .nav-link-submenu-toggle {
    font-family: "Benzin", Arial, sans-serif !important;
    font-weight: 400 !important;
}

#mainNav .nav-link-custom.active,
#mainNav .nav-link-submenu-toggle.active,
#mainNav .nav-link-submenu-toggle[aria-expanded="true"] {
    font-family: "Benzin-Bold", "Benzin Bold", Arial, sans-serif !important;
    font-weight: 700 !important;
}

/* v87: regular font for non-active items + remove underline from active item */

#mainNav .nav-link-custom,
#mainNav .nav-link-submenu-toggle {
    font-family: "Benzin-Regular", "Benzin Regular", "Benzin", Arial, sans-serif !important;
    font-weight: 400 !important;
}

/* active item stays bold but without underline */
#mainNav .nav-link-custom.active,
#mainNav .nav-link-submenu-toggle.active,
#mainNav .nav-link-submenu-toggle[aria-expanded="true"] {
    font-family: "Benzin-Bold", "Benzin Bold", Arial, sans-serif !important;
    font-weight: 700 !important;
}

#mainNav .nav-link-custom.active::after,
#mainNav .nav-link-submenu-toggle.active::after,
#mainNav .nav-link-submenu-toggle[aria-expanded="true"]::after {
    content: none !important;
    display: none !important;
}

/* v88: section titles use Benzin-Regular */

.section-title,
.home-section-title,
.section-heading,
.section-header h2,
.section-title-redesign,
h2.section-title,
h2.home-section-title {
    font-family: "Benzin-Regular", "Benzin Regular", "Benzin", Arial, sans-serif !important;
    font-weight: 400 !important;
}

/* v89: replace header-topbar with theme svg logo */

.header-topbar {
    min-height: 140px !important;
    height: 140px !important;
    padding: 0 !important;
    background: transparent !important;
    position: relative !important;
    overflow: hidden !important;
}

/* hide old header content */
.header-topbar > * {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* show svg instead */
.header-topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/header-dark.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    z-index: 5;
    opacity: 1 !important;
    pointer-events: none;
}

body.light-theme .header-topbar::before {
    background-image: url("../images/header-light.svg");
}

/* v90: reduce header svg logo size x8 */

.header-topbar::before {
    background-size: 12.5% auto !important;
}

/* v91: put theme svg logo into .brand-link instead of header-topbar */

/* Restore header-topbar content area */
.header-topbar {
    min-height: initial !important;
    height: auto !important;
    padding: initial !important;
    background: var(--header-card-bg, #1f1f1f) !important;
    overflow: hidden !important;
}

body.light-theme .header-topbar {
    background: var(--header-card-bg, #f4f4f4) !important;
}

/* Remove svg from header-topbar */
.header-topbar::before {
    content: none !important;
    display: none !important;
    background-image: none !important;
}

/* Restore children visibility */
.header-topbar > * {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Replace brand text/mark with svg logo inside brand link */
.link-unstyled.brand-link,
.brand-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 180px !important;
    height: 54px !important;
    min-width: 180px !important;
    overflow: visible !important;
}

/* Hide old brand mark/title only inside brand link */
.link-unstyled.brand-link .brand-mark,
.link-unstyled.brand-link .brand-title,
.brand-link .brand-mark,
.brand-link .brand-title {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* SVG logo */
.link-unstyled.brand-link::before,
.brand-link::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    background-image: url("../images/header-dark.svg") !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: contain !important;
    pointer-events: none !important;
}

body.light-theme .link-unstyled.brand-link::before,
body.light-theme .brand-link::before {
    background-image: url("../images/header-light.svg") !important;
}

/* v92: brand-link SVG logo only, old brand blocks removed, header layout fixed */

/* The brand link now contains only the SVG background logo */
.link-unstyled.brand-link,
.brand-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    width: 360px !important;
    height: 108px !important;
    min-width: 360px !important;
    min-height: 108px !important;
    overflow: visible !important;
}

/* SVG logo x2 compared to previous version */
.link-unstyled.brand-link::before,
.brand-link::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    background-image: url("../images/header-dark.svg") !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: contain !important;
    pointer-events: none !important;
}

body.light-theme .link-unstyled.brand-link::before,
body.light-theme .brand-link::before {
    background-image: url("../images/header-light.svg") !important;
}

/* Header layout: keep logo and utility zone aligned, no collapse */
.header-topbar {
    min-height: 118px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.header-utility-zone {
    margin-left: auto !important;
    flex: 0 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 24px !important;
}

/* Ensure removed old elements never reserve space if still present elsewhere */
.brand-link .brand-mark,
.brand-link .brand-title,
.link-unstyled.brand-link .brand-mark,
.link-unstyled.brand-link .brand-title {
    display: none !important;
}

@media (max-width: 768px) {
    .link-unstyled.brand-link,
    .brand-link {
        width: 220px !important;
        height: 66px !important;
        min-width: 220px !important;
        min-height: 66px !important;
    }

    .header-topbar {
        min-height: 82px !important;
        padding: 0 16px 14px !important;
        gap: 12px !important;
    }
}

/* v93: reduce header-topbar height by 8px */

.header-topbar {
    min-height: 110px !important; /* was 118px */
}


/* v94: hard sync footer frame with header frame */

/* Shared visible frame width */
:root {
    --site-frame-width: min(1770px, calc(100vw - 200px));
}

/* Header and footer must use exactly the same horizontal frame */
.site-header-redesign > .content-shell,
.site-header-redesign .content-shell,
.site-footer-redesign > .content-shell,
.site-footer-redesign .content-shell.mx-auto {
    width: var(--site-frame-width) !important;
    max-width: var(--site-frame-width) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/* Cancel old footer offsets that pushed it left */
.site-footer-redesign {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
}

.site-footer-redesign .footer-cta-bar,
.site-footer-redesign #reportNewsTrigger,
.site-footer-redesign .footer-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/* Keep footer panel under CTA, but aligned to same frame */
.site-footer-redesign .footer-cta-bar,
.site-footer-redesign #reportNewsTrigger {
    border-radius: 28px 28px 0 0 !important;
}

.site-footer-redesign .footer-panel {
    border-radius: 28px 28px 0 0 !important;
    margin-top: -28px !important;
}

/* Responsive same logic */
@media (max-width: 1199.98px) {
    :root {
        --site-frame-width: calc(100vw - 28px);
    }
}

@media (max-width: 767.98px) {
    :root {
        --site-frame-width: calc(100vw - 20px);
    }
}


/* v95: footer uses the same structural wrapper as header */
.site-footer-redesign {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.site-footer-redesign > .container-fluid.site-shell {
    max-width: 1720px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.site-header-redesign .content-shell,
.site-footer-redesign .content-shell {
    max-width: min(1770px, calc(100vw - 24px)) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.site-footer-redesign .footer-cta-bar,
.site-footer-redesign #reportNewsTrigger,
.site-footer-redesign .footer-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* v96: exact footer width sync base styles */
.site-footer-redesign {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.site-footer-redesign > .container-fluid.site-shell,
.site-footer-redesign > .content-shell,
.site-footer-redesign .content-shell.mx-auto {
    width: var(--footer-exact-width) !important;
    max-width: var(--footer-exact-width) !important;
    margin-left: var(--footer-exact-left) !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

.site-footer-redesign .footer-cta-bar,
.site-footer-redesign #reportNewsTrigger,
.site-footer-redesign .footer-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/* v97: custom weather icons instead of bootstrap cloud-sun */

.header-market-weather {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.header-weather-icon {
    display: none !important;
}

.header-market-weather::before {
    content: "";
    display: inline-block;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    background-image: url("../images/cloudy.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}

/* optional condition mapping */
.header-market-weather[data-weather-condition="partly-cloudy"]::before {
    background-image: url("../images/partly-cloudy.png");
}

.header-market-weather[data-weather-condition="cloudy"]::before {
    background-image: url("../images/cloudy.png");
}

.header-market-weather[data-weather-condition="rain"]::before {
    background-image: url("../images/rain.png");
}

.header-market-weather[data-weather-condition="snow"]::before {
    background-image: url("../images/snow.png");
}


/* v98-fixed: visible custom weather icon */
.header-market-weather {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    position: relative !important;
}
.header-market-weather .header-weather-icon,
.header-weather-icon.bi,
.header-weather-icon {
    display: none !important;
}
.header-market-weather::before {
    display: none !important;
}
.header-market-weather[data-weather-condition="partly-cloudy"]::before { background-image: url("../images/partly-cloudy.png") !important; }
.header-market-weather[data-weather-condition="cloudy"]::before { background-image: url("../images/cloudy.png") !important; }
.header-market-weather[data-weather-condition="rain"]::before { background-image: url("../images/rain.png") !important; }
.header-market-weather[data-weather-condition="snow"]::before { background-image: url("../images/snow.png") !important; }


/* v100: REAL Hot News redesign for #heroCarouselDesktop / .hot-news-vk-slide-card */
.hot-news-section {
    margin-top: 0 !important;
    margin-bottom: 72px !important;
}

.hot-news-section > .section-title {
    font-family: "Benzin-Regular", "Benzin Regular", "Benzin", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    color: #D00000 !important;
    margin: 0 0 72px 0 !important;
}

#heroCarouselDesktop,
#heroCarouselMobile {
    position: relative !important;
    overflow: visible !important;
}

#heroCarouselDesktop .carousel-inner,
#heroCarouselMobile .carousel-inner {
    overflow: hidden !important;
}

#heroCarouselDesktop .carousel-item.active,
#heroCarouselDesktop .carousel-item-next,
#heroCarouselDesktop .carousel-item-prev {
    display: block !important;
}

#heroCarouselDesktop .row {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 64px !important;
    margin: 0 !important;
}

#heroCarouselDesktop .row > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    flex: initial !important;
    padding: 0 !important;
}

#heroCarouselDesktop .hot-news-vk-slide-card,
#heroCarouselMobile .hot-news-vk-slide-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
    display: block !important;
}

body.light-theme #heroCarouselDesktop .hot-news-vk-slide-card,
body.light-theme #heroCarouselMobile .hot-news-vk-slide-card {
    background: transparent !important;
}

#heroCarouselDesktop .hot-news-vk-slide-frame,
#heroCarouselMobile .hot-news-vk-slide-frame {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 8.25 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: var(--news-preview-bg, #ddd) center center / cover no-repeat !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

#heroCarouselDesktop .hot-news-vk-slide-frame::before,
#heroCarouselDesktop .hot-news-vk-slide-frame::after,
#heroCarouselMobile .hot-news-vk-slide-frame::before,
#heroCarouselMobile .hot-news-vk-slide-frame::after {
    content: none !important;
    display: none !important;
}

#heroCarouselDesktop .hot-news-vk-slide-frame a,
#heroCarouselMobile .hot-news-vk-slide-frame a,
#heroCarouselDesktop .video-thumb-button,
#heroCarouselMobile .video-thumb-button {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    display: block !important;
    background: transparent !important;
    position: relative !important;
    overflow: hidden !important;
}

#heroCarouselDesktop .hot-news-vk-slide-embed.carousel-image,
#heroCarouselMobile .hot-news-vk-slide-embed.carousel-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

/* If img src is empty, still show frame background */
#heroCarouselDesktop img.hot-news-vk-slide-embed.carousel-image[src=""],
#heroCarouselMobile img.hot-news-vk-slide-embed.carousel-image[src=""] {
    opacity: 0 !important;
}

/* white play triangle over the image */
#heroCarouselDesktop .video-play-badge,
#heroCarouselMobile .video-play-badge {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 56px !important;
    height: 56px !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5 !important;
    background: none !important;
    border: 0 !important;
    pointer-events: none !important;
}

#heroCarouselDesktop .video-play-badge::before,
#heroCarouselMobile .video-play-badge::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M26 18 L54 36 L26 54 Z' fill='none' stroke='%23fff' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)) !important;
}

#heroCarouselDesktop .hot-news-card-title,
#heroCarouselMobile .hot-news-card-title {
    font-family: "Benzin-Bold", "Benzin Bold", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.22 !important;
    color: var(--text-color) !important;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

body:not(.light-theme) #heroCarouselDesktop .hot-news-card-title,
body:not(.light-theme) #heroCarouselMobile .hot-news-card-title {
    color: #f2f2f2 !important;
}

/* red arrows outside the video row */
#heroCarouselDesktop .carousel-control-prev,
#heroCarouselDesktop .carousel-control-next,
#heroCarouselMobile .carousel-control-prev,
#heroCarouselMobile .carousel-control-next {
    width: 42px !important;
    height: 72px !important;
    top: 50% !important;
    transform: translateY(-52%) !important;
    opacity: 1 !important;
    z-index: 20 !important;
}

#heroCarouselDesktop .carousel-control-prev { left: -72px !important; }
#heroCarouselDesktop .carousel-control-next { right: -72px !important; }

#heroCarouselDesktop .carousel-control-prev-icon,
#heroCarouselDesktop .carousel-control-next-icon,
#heroCarouselMobile .carousel-control-prev-icon,
#heroCarouselMobile .carousel-control-next-icon {
    width: 30px !important;
    height: 52px !important;
    background-image: none !important;
    position: relative !important;
}

#heroCarouselDesktop .carousel-control-prev-icon::before,
#heroCarouselDesktop .carousel-control-next-icon::before,
#heroCarouselMobile .carousel-control-prev-icon::before,
#heroCarouselMobile .carousel-control-next-icon::before {
    content: "" !important;
    position: absolute !important;
    width: 26px !important;
    height: 26px !important;
    top: 13px !important;
    border-top: 6px solid #c90000 !important;
    border-left: 6px solid #c90000 !important;
    border-radius: 2px !important;
}

#heroCarouselDesktop .carousel-control-prev-icon::before,
#heroCarouselMobile .carousel-control-prev-icon::before {
    left: 10px !important;
    transform: rotate(-45deg) !important;
}

#heroCarouselDesktop .carousel-control-next-icon::before,
#heroCarouselMobile .carousel-control-next-icon::before {
    right: 10px !important;
    transform: rotate(135deg) !important;
}

@media (max-width: 767.98px) {
    #heroCarouselDesktop { display: none !important; }
    #heroCarouselMobile { display: block !important; }

    .hot-news-section > .section-title {
        font-size: 22px !important;
        margin-bottom: 28px !important;
    }

    #heroCarouselMobile .hot-news-vk-slide-card-mobile {
        max-width: none !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    #heroCarouselMobile .hot-news-vk-slide-frame {
        aspect-ratio: 16 / 9 !important;
    }

    #heroCarouselMobile .carousel-control-prev { left: -16px !important; }
    #heroCarouselMobile .carousel-control-next { right: -16px !important; }
}


/* v101 HOT NEWS — exact mockup style, clean override */
.hot-news-section {
    position: relative !important;
    margin-top: 0 !important;
    margin-bottom: 54px !important;
    padding: 0 64px !important;
    overflow: visible !important;
}

.hot-news-heading {
    font-family: "Benzin-Regular", "Benzin Regular", "Benzin", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 30px !important;
    line-height: 1.2 !important;
    color: #bd0000 !important;
    margin: 0 0 72px 0 !important;
}

.hot-news-carousel {
    position: relative !important;
    overflow: visible !important;
}

.hot-news-carousel .carousel-inner {
    overflow: hidden !important;
}

.hot-news-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 62px !important;
    align-items: start !important;
}

.hot-news-item {
    display: block !important;
    min-width: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.hot-news-thumb {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 1.94 / 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

.hot-news-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    filter: none !important;
    opacity: 1 !important;
    transition: transform 0.3s ease, filter 0.3s ease !important;
}

.news-item-trigger:hover img {
    transform: scale(1.05) !important;
    filter: brightness(0.8) !important;
}

.news-item-trigger:hover .hot-news-play {
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 20 L58 40 L30 60 Z' fill='none' stroke='%23EF2C2C' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.hot-news-play {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 64px !important;
    height: 64px !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5 !important;
    pointer-events: auto !important;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 20 L58 40 L30 60 Z' fill='none' stroke='white' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)) !important;
    transition: background 0.2s ease-in-out !important;
}

@media (max-width: 767.98px) {
    .hot-news-play {
        width: 48px !important;
        height: 48px !important;
    }
}

.hot-news-play:hover {
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 20 L58 40 L30 60 Z' fill='none' stroke='%23EF2C2C' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.hot-news-title {
    font-family: "Benzin-Bold", "Benzin Bold", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    color: var(--text-color) !important;
    margin-top: 12px !important;
    max-width: 100% !important;
}

body:not(.light-theme) .hot-news-title {
    color: #f0f0f0 !important;
}

.hot-news-arrow {
    position: absolute !important;
    top: 42% !important;
    width: 44px !important;
    height: 74px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    z-index: 20 !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
}

.hot-news-arrow-prev {
    left: -58px !important;
}

.hot-news-arrow-next {
    right: -58px !important;
}

.hot-news-arrow span {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 28px !important;
    height: 48px !important;
    transform: translate(-50%, -50%) !important;
}

.hot-news-arrow span::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border-top: 6px solid #c50000 !important;
    border-left: 6px solid #c50000 !important;
    border-radius: 3px !important;
}

.hot-news-arrow-prev span::before {
    transform: rotate(-45deg) !important;
}

.hot-news-arrow-next span::before {
    transform: rotate(135deg) !important;
}

.hot-news-arrow:hover span::before {
    border-color: #e00000 !important;
}

/* remove old artifacts in case cached CSS still touches carousel */
.hot-news-section .video-play-badge,
.hot-news-section .carousel-control-prev,
.hot-news-section .carousel-control-next,
.hot-news-section .carousel-control-prev-icon,
.hot-news-section .carousel-control-next-icon {
    display: none !important;
}

@media (max-width: 1199.98px) {
    .hot-news-section {
        padding: 0 44px !important;
    }

    .hot-news-grid {
        gap: 32px !important;
    }

    .hot-news-title {
        font-size: 14px !important;
    }

    .hot-news-arrow-prev {
        left: -42px !important;
    }

    .hot-news-arrow-next {
        right: -42px !important;
    }
}

@media (max-width: 767.98px) {
    .hot-news-section {
        padding: 0 28px !important;
    }

    .hot-news-heading {
        font-size: 22px !important;
        margin-bottom: 32px !important;
    }

    .hot-news-grid,
    .hot-news-grid-mobile {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .hot-news-title {
        font-size: 15px !important;
    }

    .hot-news-arrow {
        top: 40% !important;
        width: 34px !important;
        height: 58px !important;
    }

    .hot-news-arrow-prev {
        left: -22px !important;
    }

    .hot-news-arrow-next {
        right: -22px !important;
    }

    .hot-news-arrow span {
        width: 22px !important;
        height: 38px !important;
    }
}


/* v102: hot news image/text/arrow corrections */
.hot-news-section {
    padding-left: 36px !important;
    padding-right: 36px !important;
}

.hot-news-grid {
    gap: 42px !important;
}

/* larger images */
.hot-news-thumb {
    aspect-ratio: 1.92 / 1 !important;
    min-height: 150px !important;
}

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

/* smaller Benzin-Regular titles */
.hot-news-title {
    font-family: "Benzin-Regular", "Benzin Regular", "Benzin", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.015em !important;
    margin-top: 10px !important;
}

/* keep play icon centered on larger thumbnails */
.hot-news-play {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* symmetric red arrows */
.hot-news-arrow {
    width: 44px !important;
    height: 64px !important;
    top: 39% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hot-news-arrow span {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 34px !important;
    height: 34px !important;
    transform: none !important;
    display: block !important;
}

.hot-news-arrow span::before {
    content: "" !important;
    position: absolute !important;
    width: 28px !important;
    height: 28px !important;
    top: 3px !important;
    left: 3px !important;
    border: 0 !important;
    border-top: 6px solid #c50000 !important;
    border-left: 6px solid #c50000 !important;
    border-radius: 2px !important;
    box-sizing: border-box !important;
}

.hot-news-arrow-prev span::before {
    transform: rotate(-45deg) !important;
}

.hot-news-arrow-next span::before {
    transform: rotate(135deg) !important;
}

/* desktop: image area closer to reference */
@media (min-width: 1200px) {
    .hot-news-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 54px !important;
    }

    .hot-news-thumb {
        min-height: 178px !important;
    }

    .hot-news-title {
        font-size: 15px !important;
        max-width: 100% !important;
    }
}

@media (max-width: 767.98px) {
    .hot-news-section {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .hot-news-thumb {
        min-height: 160px !important;
    }

    .hot-news-title {
        font-size: 14px !important;
    }

    .hot-news-arrow {
        top: 40% !important;
    }
}


/* v103: hot news title font size to 12px */
.hot-news-title {
    font-size: 12px !important;
    line-height: 1.2 !important;
}


/* v104: hot news thumbnails rectangular instead of square */
.hot-news-thumb {
    aspect-ratio: 16 / 9 !important;
    min-height: auto !important;
    height: auto !important;
}

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

@media (min-width: 1200px) {
    .hot-news-thumb {
        aspect-ratio: 16 / 9 !important;
        min-height: auto !important;
    }
}

@media (max-width: 767.98px) {
    .hot-news-thumb {
        aspect-ratio: 16 / 9 !important;
    }
}


/* v105: "События дня" — carousel layout matching the approved mockup */
.day-events-section {
    position: relative !important;
    max-width: 960px !important;
    padding: 42px 36px 48px !important;
    margin-top: 0 !important;
    margin-bottom: 52px !important;
    border-top: 2px solid #bd0000 !important;
    border-bottom: 0 !important;
    overflow: visible !important;
}

.day-events-heading {
    font-family: "Benzin-Regular", "Benzin Regular", "Benzin", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 30px !important;
    line-height: 1.2 !important;
    color: #bd0000 !important;
    margin: 0 0 24px 0 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
}

.day-events-carousel {
    position: relative !important;
    overflow: visible !important;
}

.day-events-carousel .carousel-inner {
    overflow: hidden !important;
}

.day-events-carousel .carousel-item.active,
.day-events-carousel .carousel-item-next,
.day-events-carousel .carousel-item-prev {
    display: block !important;
}

.day-events-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 32px !important;
    align-items: stretch !important;
    justify-content: center !important;
}

.day-events-card {
    display: block !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    color: var(--text) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.day-events-card h3,
.daily-story-card h3 {
    display: none !important;
}

.day-events-thumb {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 0.693 / 1 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #ececec !important;
    overflow: hidden !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.day-events-thumb::after {
    content: none !important;
    display: none !important;
}

.day-events-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit !important;
    filter: none !important;
    opacity: 1 !important;
}

.day-events-play {
    width: 64px !important;
    height: 64px !important;
}

.day-events-arrow {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.day-events-arrow-prev {
    left: -58px !important;
}

.day-events-arrow-next {
    right: -58px !important;
}

@media (min-width: 1200px) {
    .day-events-grid {
        gap: 34px !important;
    }
}

@media (max-width: 1199.98px) {
    .day-events-section {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    .day-events-grid {
        gap: 24px !important;
    }

    .day-events-arrow-prev {
        left: -38px !important;
    }

    .day-events-arrow-next {
        right: -38px !important;
    }
}

@media (max-width: 767.98px) {
    .day-events-section {
        padding: 28px 28px 34px !important;
        margin-bottom: 38px !important;
    }

    .day-events-heading {
        font-size: 22px !important;
        margin-bottom: 22px !important;
    }

    .day-events-grid {
        grid-template-columns: minmax(0, 240px) !important;
        gap: 0 !important;
        justify-content: center !important;
    }

    .day-events-grid .day-events-card:nth-child(n+2) {
        display: none !important;
    }

    .day-events-arrow {
        top: 55% !important;
    }

    .day-events-arrow-prev {
        left: -22px !important;
    }

    .day-events-arrow-next {
        right: -22px !important;
    }

    .day-events-play {
        width: 58px !important;
        height: 58px !important;
    }
}


/* v108: 'Давайте разберемся' transparent outline icons + white play icon */

.deep-dive-section .like-btn i,
.deep-dive-section .comment-btn i,
.deep-dive-section .share-btn i,
.analysis-section .like-btn i,
.analysis-section .comment-btn i,
.analysis-section .share-btn i,
[data-section="deep-dive"] .like-btn i,
[data-section="deep-dive"] .comment-btn i,
[data-section="deep-dive"] .share-btn i {
    font-size: 42px !important;
    color: transparent !important;
    -webkit-text-stroke: 2.5px #3d3d3d !important;
    text-stroke: 2.5px #3d3d3d !important;
    opacity: 1 !important;
    transition: all .2s ease !important;
}

/* numbers near icons */
.deep-dive-section .like-count,
.deep-dive-section .comment-count,
.analysis-section .like-count,
.analysis-section .comment-count {
    font-family: "Benzin-Regular", Arial, sans-serif !important;
    font-size: 22px !important;
    color: #3d3d3d !important;
}

/* hover */
.deep-dive-section .like-btn:hover i,
.deep-dive-section .comment-btn:hover i,
.deep-dive-section .share-btn:hover i,
.analysis-section .like-btn:hover i,
.analysis-section .comment-btn:hover i,
.analysis-section .share-btn:hover i {
    -webkit-text-stroke: 2.5px #D00000 !important;
    text-stroke: 2.5px #D00000 !important;
}

/* white play icon centered on video */
.deep-dive-section .video-thumb,
.analysis-section .video-thumb,
[data-section="deep-dive"] .video-thumb,
.deep-dive-section .video-card,
.analysis-section .video-card {
    position: relative !important;
    overflow: hidden !important;
}

.deep-dive-section .video-thumb::after,
.analysis-section .video-thumb::after,
[data-section="deep-dive"] .video-thumb::after,
.deep-dive-section .video-card::after,
.analysis-section .video-card::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 62px !important;
    height: 62px !important;
    transform: translate(-50%, -50%) !important;
    z-index: 8 !important;
    pointer-events: none !important;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 20 L58 40 L30 60 Z' fill='none' stroke='%23ffffff' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)) !important;
}

/* hide old play badges/icons */
.deep-dive-section .play-button,
.deep-dive-section .play-icon,
.deep-dive-section .video-play-badge,
.analysis-section .play-button,
.analysis-section .play-icon,
.analysis-section .video-play-badge {
    display: none !important;
}


/* v109: match play buttons in "Давайте разберемся" and "Видео" to Hot news / Day events */
.explain-section .video-play-badge,
.video-home-section .video-play-badge {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5 !important;
    pointer-events: none !important;
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 0 !important;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 20 L58 40 L30 60 Z' fill='none' stroke='%23ffffff' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
    box-shadow: none !important;
}

.explain-section .video-play-badge::before,
.video-home-section .video-play-badge::before {
    content: none !important;
    display: none !important;
}

.explain-section .video-play-badge.video-play-badge-sm,
.video-home-section .video-play-badge.video-play-badge-sm {
    width: 56px !important;
    height: 56px !important;
}

.explain-section .video-play-badge.video-play-badge-xs,
.video-home-section .video-play-badge.video-play-badge-xs {
    width: 44px !important;
    height: 44px !important;
}

@media (max-width: 767.98px) {
    .explain-section .video-play-badge,
    .video-home-section .video-play-badge {
        width: 56px !important;
        height: 56px !important;
    }

    .explain-section .video-play-badge.video-play-badge-sm,
    .video-home-section .video-play-badge.video-play-badge-sm {
        width: 50px !important;
        height: 50px !important;
    }

    .explain-section .video-play-badge.video-play-badge-xs,
    .video-home-section .video-play-badge.video-play-badge-xs {
        width: 38px !important;
        height: 38px !important;
    }
}


/* v112: additional ad blocks above side rails + wide ad above header */
.top-header-ad {
    width: 100% !important;
    padding: 18px 0 0 !important;
    background: transparent !important;
}

.top-header-ad-block {
    width: 100% !important;
    min-height: 96px !important;
    max-height: 200px !important;
    border-radius: 8px !important;
    background: var(--home-ad-bg, #d9d9d9) !important;
    color: var(--home-ad-text, #fff) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: "Benzin Medium", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

.blc-rail {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    padding-top: 0 !important;
}

.blc-rail::before,
.blc-rail::after {
    content: none !important;
    display: none !important;
}

.rail-ad-block {
    width: 100% !important;
    border-radius: 6px !important;
    /*background: var(--home-ad-bg, #d9d9d9) !important;*/
    color: var(--home-ad-text, #fff) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    writing-mode: vertical-rl !important;
    font-family: "Benzin Medium", Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
}

body.light-theme .top-header-ad-block,
body.light-theme .rail-ad-block {
    /*background: #d9d9d9 !important;*/
    color: #fff !important;
}

body:not(.light-theme) .top-header-ad-block,
body:not(.light-theme) .rail-ad-block {
    /*background: #343434 !important;*/
    color: rgba(255,255,255,.72) !important;
}

@media (max-width: 1199.98px) {
    .top-header-ad {
        padding-top: 12px !important;
    }

    .top-header-ad-block {
        min-height: 78px !important;
        max-height: 160px !important;
    }
}

@media (max-width: 767.98px) {
    .blc-rail {
        display: none !important;
    }

    .top-header-ad {
        padding-top: 10px !important;
    }

    .top-header-ad-block {
        min-height: 64px !important;
        max-height: 120px !important;
        border-radius: 6px !important;
        font-size: 12px !important;
    }
}


/* Modal Loader */
.news-modal-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.news-modal-loader-overlay.active {
    display: flex;
}

.news-modal-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: news-modal-spin 1s ease-in-out infinite;
    -webkit-animation: news-modal-spin 1s ease-in-out infinite;
}

@keyframes news-modal-spin {
    to { transform: rotate(360deg); }
}

@-webkit-keyframes news-modal-spin {
    to { -webkit-transform: rotate(360deg); }
}

/* News Modal */
.news-modal-container {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: flex;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .4);
    border-radius: 20px;
    overflow: hidden;
}

/* Fix for Bootstrap modal container */
.news-modal-bs {
    z-index: 2000010 !important;
}

.news-modal-bs + .modal-backdrop,
.modal-backdrop.show {
    z-index: 2000009 !important;
}

.news-modal-bs .modal-dialog {
    max-width: fit-content;
    margin: 1.75rem auto;
    z-index: 2000011 !important;
    display: flex;
    justify-content: center;
}

@media (max-width: 991.98px), (max-height: 500px) and (orientation: landscape), (pointer: coarse) {
    .news-modal-bs .modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
    }
    .news-modal-bs .modal-content {
        height: 100%;
        border-radius: 0;
    }
}

/* Desktop Modal (YouTube Shorts style) */
.news-modal-desktop {
    position: relative;
    width: fit-content;
    height: 80vh;
    max-height: 800px;
    background: #000;
    display: flex;
}

.news-modal-player {
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.news-modal-player.is-shorts {
    aspect-ratio: 9 / 16;
}

.news-modal-player.is-video {
    aspect-ratio: 16 / 9;
}

.news-modal-player iframe, .news-modal-player img {
    width: 100%;
    height: 100%;
}

/* Навигация в десктопной модалке */
.news-modal-nav-prev-desktop,
.news-modal-nav-next-desktop {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: rgba(var(--bg-rgb, 255, 255, 255), 0.1);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
    z-index: 1060;
}

.news-modal-nav-prev-desktop {
    left: 0;
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.news-modal-nav-prev-desktop:hover {
    /* Убрано смещение */
}

.news-modal-nav-next-desktop {
    right: 0;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.news-modal-nav-next-desktop:hover {
    /* Убрано смещение */
}

/* Фиксируем кнопку "Next" при скролле сайдбара, но позиционируем её относительно модалки */
.news-modal-desktop .news-modal-nav-next-desktop {
    position: absolute;
}

.news-modal-nav-prev-desktop:hover,
.news-modal-nav-next-desktop:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.news-modal-nav-prev-desktop:active,
.news-modal-nav-next-desktop:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.news-modal-sidebar {
    position: relative;
    width: 450px;
    max-width: 30vw;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    padding: 30px;
    color: var(--text);
    border-left: 1px solid var(--border);
    overflow-y: auto;
}

.news-modal-sidebar::-webkit-scrollbar {
    width: 6px;
}

.news-modal-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.news-modal-sidebar::-webkit-scrollbar-thumb {
    background: rgba(var(--text-rgb, 128, 128, 128), 0.2);
    border-radius: 10px;
}

.news-modal-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--text-rgb, 128, 128, 128), 0.4);
}

.news-modal-player.is-shorts iframe,
.news-modal-player.is-shorts img {
    object-fit: cover;
}

.news-modal-player.is-video iframe,
.news-modal-player.is-video img {
    object-fit: contain;
}

.news-modal-header {
    flex-shrink: 0;
    /*border-bottom: 1px solid var(--border);*/
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.news-modal-sidebar .btn-close {
    filter: invert(var(--hint-up));
}

body.light-theme .news-modal-sidebar .btn-close {
    filter: none;
}

.news-modal-lead {
    /*font-size: 1.1rem;
    line-height: 1.6;*/
    color: var(--text);
}

.news-modal-comments-wrapper {
    flex: 1;
    overflow-y: auto;
}

/* Mobile Modal (Instagram style) */
.news-modal-mobile {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--bg);
    overflow: hidden;
    touch-action: pan-y;
    will-change: transform;
    display: flex;
    flex-direction: column;
}

.news-modal-close-mobile-container {
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
    background: var(--bg);
    color: var(--text);
    border-bottom: 1px solid var(--border-color);
}

.news-modal-close-mobile {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-modal-mobile.swiping {
    transition: transform 0.1s linear;
}

.news-modal-mobile.closing-left {
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease-in;
}

.news-modal-mobile.closing-right {
    transform: translateX(100%) !important;
    transition: transform 0.3s ease-in;
}

.news-modal-player-mobile {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    margin-bottom: 90px; /* Чтобы шторка в свернутом состоянии не перекрывала плеер */
}

.news-modal-player-mobile.is-shorts iframe,
.news-modal-player-mobile.is-shorts img {
    object-fit: cover;
}

.news-modal-player-mobile.is-video iframe,
.news-modal-player-mobile.is-video img {
    object-fit: contain;
}

.news-modal-player-mobile iframe, .news-modal-player-mobile img {
    width: 100%;
    height: 100%;
}


.mobile-info-container {
    padding: 5px 20px 15px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
}

.mobile-info-container h2 {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
}

.news-modal-drawer .expanded-only {
    display: none;
}

.news-modal-drawer.expanded .expanded-only {
    display: block;
}

.news-modal-drawer.expanded .collapsed-only {
    display: none;
}

.mobile-info-clickable h2 {
    margin: 0;
    color: var(--text);
}

.news-modal-close-mobile-container,
.mobile-info-container {
    z-index: 20;
}

.news-modal-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    color: var(--text);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    max-height: 80%;
    transform: translateY(calc(100% - 90px));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 110;
    display: flex;
    flex-direction: column;
    touch-action: none;
    will-change: transform;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.news-modal-drawer.dragging {
    transition: none;
}

.news-modal-drawer.expanded {
    transform: translateY(0);
}

.drawer-handle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    height: 40px;
    position: relative;
}

.drawer-nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 2;
}

.drawer-nav-btn:active {
    opacity: 1;
    transform: scale(0.9);
}

.drawer-handle {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.drawer-handle::before {
    content: "";
    width: 40px;
    height: 4px;
    background-color: var(--muted);
    border-radius: 2px;
    opacity: 0.5;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}

.next-news-btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text);
}

.next-news-btn:active {
    background: var(--border-color);
    transform: scale(0.98);
}

@media (max-width: 991.98px), (max-height: 500px) and (orientation: landscape), (pointer: coarse) {
    #newsModalContent,
    .news-modal-container,
    .news-modal-mobile {
        width: 100%;
        height: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
    }
}

.mobile-info-overlay {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    z-index: 5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    pointer-events: auto;
    cursor: pointer;
}

/* Custom Modal Comments (YouTube/Instagram style) */
.news-modal-comments-custom {
    display: flex;
    flex-direction: column;
    /*height: 100%;*/
}

.modal-comments-header {
    background: #cc0000;
    color: #fff;
    padding: 10px 15px;
    margin: -15px -15px 15px -15px; /* компенсируем padding обертки */
    border-radius: 12px 12px 0 0;
}

.modal-comments-header .btn-close {
    background-size: 0.8rem;
    padding: 0.5rem;
}

.news-modal-desktop .modal-comments-header .btn-close {
    display: none; /* на десктопе у нас есть основная кнопка закрытия модалки */
}

.modal-comments-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.modal-comment-item {
    font-size: 0.9rem;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary, #f8f9fa);
}

.avatar-circle i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.modal-comment-author {
    font-weight: 600;
    color: var(--text);
}

.modal-comment-date {
    font-size: 0.75rem;
    color: var(--muted);
}

.modal-comment-text {
    line-height: 1.4;
    color: var(--text);
    margin-top: 2px;
}

.modal-comment-form-container {
    /*border-top: 1px solid var(--border);*/
    background: var(--bg);
}

.modal-comment-fake-input {
    background: #f0f0f0;
    border-radius: 20px;
    padding: 10px 15px;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.modal-comment-fake-input:hover {
    background: #e0e0e0;
}

[data-bs-theme="dark"] .modal-comment-fake-input {
    background: #333;
    color: #ccc;
}

[data-bs-theme="dark"] .avatar-circle {
    background: #1a1a1a;
}

/* Стили для мобильной шторки */
.news-modal-drawer {
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden;
}

.drawer-content {
    padding-top: 0 !important;
}

.news-modal-mobile .news-modal-comments-custom .modal-comments-header {
    position: sticky;
    top: 0;
    z-index: 10;
    margin-top: 0;
}
