:root {
    --bg-body: #f4f6f8;
    --bg-white: #ffffff;
    --bg-dark: #23365e; /* Deep Blue */
    --accent: #0be8de;  /* Cyan */
    --accent-red: #e17055; /* SVO Accent */
    --text-main: #303838;
    --text-muted: #8492a6;
    --border: #e8eaee;

    --w-container: 100%;
    --max-w: 1600px;

    --font-head: 'Manrope', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow: 0 12px 24px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0,0,0,0.15);
}

/* Reset & Basics */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-body); color: var(--text-main); font-family: var(--font-body); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; object-fit: cover; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 800; line-height: 1.2; }

/* Utility */
.container { 
    width: var(--w-container); 
    max-width: var(--max-w); 
    margin: 0 auto; 
    padding: 0 40px;
}
.block-section { padding: 50px 0; }
.bg-grey { background: #eef0f2; }
.block-title { font-size: 32px; margin-bottom: 30px; position: relative; display: inline-block; }
.block-title::after { content: ''; display: block; width: 40%; height: 4px; background: var(--accent); margin-top: 5px; border-radius: 2px; }

/* block head row (title + controls/notes) */
.block-head-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.block-head-row .block-title { margin-bottom: 0; }
.block-head-note { font-size: 12px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }

/* 1. Header */
.site-header { background: var(--bg-white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.05); }
.header-inner { height: 80px; display: flex; justify-content: space-between; align-items: center; }
.header-left { display: flex; align-items: center; gap: 30px; }
.logo img { height: 50px; }
.menu-btn, .search-btn {
    background: none; border: none; font-size: 24px; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 700; color: var(--text-main);
}
.menu-btn:hover, .search-btn:hover { color: var(--bg-dark); }

/* Мобильное меню и поиск */
.mobile-menu {
    display: none;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 20px;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.mobile-menu.active { display: block; }
.mobile-menu a {
    display: block;
    padding: 12px 0;
    font-weight: 700;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

.search-bar-dropdown {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 998;
}
.search-bar-dropdown.active { display: block; }
.search-bar-dropdown form { display: flex; gap: 10px; max-width: 800px; margin: 0 auto; }
.search-bar-dropdown input {
    flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px;
}
.search-bar-dropdown button {
    padding: 12px 24px; background: var(--bg-dark); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 700;
}

.main-nav { display: flex; gap: clamp(10px, 1.4vw, 24px); min-width: 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { flex: 0 0 auto; font-weight: 600; text-transform: uppercase; font-size: clamp(11px, 0.9vw, 14px); letter-spacing: 0.25px; position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: -28px; left: 0; width: 0; height: 3px; background: var(--accent); transition: 0.3s; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.incident-video { margin-top: 30px; }
.incident-video h2 { font-size: 22px; margin-bottom: 15px; }
.incident-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #142137; border-radius: 12px; overflow: hidden; }
.incident-video-frame iframe { width: 100%; height: 100%; border: 0; }
.incident-video p { margin-top: 10px; font-size: 13px; }

/* 2. Dashboard */
.dashboard-section { padding: 20px 0; background: var(--bg-body); border-bottom: 1px solid #dfe3e8; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.dash-item {
    background: var(--bg-white); padding: 20px; border-radius: var(--radius-md);
    box-shadow: var(--shadow); min-height: 178px; display: flex;
    flex-direction: column; justify-content: space-between; min-width: 0;
}

.dash-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.dash-main { display: flex; align-items: center; gap: 15px; margin-top: 10px; }
.weather-icon { font-size: 42px; color: var(--bg-dark); }
.temp { font-size: 36px; font-weight: 800; font-family: var(--font-head); }
.dash-sub { font-size: 13px; color: var(--text-muted); }
.currency-row { display: flex; gap: 20px; font-size: 13px; }
.currency-row strong { color: var(--bg-dark); }
.trend.up { color: #00b894; }
.trend.down { color: #d63031; }
.chart-wrapper { height: 60px; width: 100%; min-width: 0; overflow: hidden; }
.weather-chart-wrapper { height: 38px; width: 100%; min-width: 0; overflow: hidden; margin-top: 6px; }
.chart-wrapper canvas, .weather-chart-wrapper canvas { max-width: 100%; }
.weather-widget .dash-main { margin-top: 4px; }
.weather-widget .dash-sub { min-height: 18px; }

/* --- NEW: SVO Hot Widget (Замена гороскопа) --- */
.svo-hot-widget {
    border-bottom: 3px solid var(--accent-red); /* Акцент снизу */
    position: relative;
    overflow: hidden;
}
.svo-hot-widget::after {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 60px; height: 60px;
    background: radial-gradient(circle at top right, rgba(225, 112, 85, 0.1), transparent 70%);
    pointer-events: none;
}
.svo-hot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.svo-hot-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--accent-red);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
}
.svo-hot-link {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--bg-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.svo-hot-link:hover {
    color: var(--accent-red);
}

/* 3. Hero */
.hero-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; height: 500px; }
.card-hero { position: relative; border-radius: var(--radius-md); overflow: hidden; height: 100%; cursor: pointer; }
.card-hero img { width: 100%; height: 100%; transition: transform 0.6s; }
.card-hero:hover img { transform: scale(1.05); }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(to top, rgba(35,54,94,0.95), transparent); color: #fff; }
.tag { display: inline-block; padding: 4px 10px; background: var(--accent); color: var(--bg-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; border-radius: 4px; margin-bottom: 10px; }
.tag.tag--light { background: #fff; color: #000; }
.tag.tag--sm { font-size: 10px; padding: 3px 8px; border-radius: 5px; margin-bottom: 0; }
.card-hero h3 { font-size: 24px; margin-bottom: 10px; }
.card-hero p { font-size: 14px; opacity: 0.9; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 4. Breaking news ticker */
.ticker-strip { background: var(--bg-dark); color: #fff; display: flex; height: 45px; align-items: center; overflow: hidden; }
.ticker-strip[hidden] { display: none !important; }
.ticker-title { background: #c82e2e; height: 100%; padding: 0 24px; display: flex; align-items: center; flex: none; font-weight: 800; font-size: 14px; letter-spacing: 1px; }
.ticker-toggle { align-self: stretch; flex: none; width: 38px; background: #9f2525; border: 0; color: #fff; cursor: pointer; font-size: 15px; }
.ticker-toggle[hidden] { display: none !important; }
.ticker-toggle:hover, .ticker-toggle:focus-visible { background: #751e1e; }
.marquee { flex: 1; overflow: hidden; white-space: nowrap; }
.marquee-content { display: flex; width: max-content; }
.marquee-content.is-scrolling { animation: scroll 65s linear infinite; }
.marquee-content.is-paused { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.mq-item { display: inline-block; padding: 0 30px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.mq-item:hover, .mq-item:focus-visible { text-decoration: underline; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 5. Editors */
.editors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.card-horizontal { background: var(--bg-white); border-radius: var(--radius-md); overflow: hidden; display: flex; box-shadow: var(--shadow); transition: 0.3s; height: 250px; }
.card-horizontal:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-horizontal img { width: 45%; height: 100%; }
.card-horizontal > .source-photo { flex: 0 0 45%; width: 45%; height: 100%; }
.card-horizontal > .source-photo img { width: 100%; height: 100%; }
.card-hero h3 a, .card-horizontal h3 a { color: inherit; }
.all-news-link { margin: 18px 0 0; font-weight: 800; }
.all-news-link a { color: var(--bg-dark); text-decoration: underline; text-underline-offset: 3px; }
.card-content { padding: 25px; display: flex; flex-direction: column; justify-content: center; width: 55%; }
.meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.card-horizontal h3 { font-size: 20px; margin-bottom: 15px; color: var(--text-main); }
.read-more { font-size: 13px; font-weight: 700; color: var(--bg-dark); margin-top: auto; }

/* 5.1 SVO BLOCK */
.svo-section {
    padding: 70px 0;
    background: radial-gradient(1200px 600px at 20% 0%, rgba(11,232,222,0.12), transparent 60%),
                radial-gradient(900px 450px at 85% 20%, rgba(225,112,85,0.12), transparent 60%),
                linear-gradient(180deg, #1b2a4b 0%, #23365e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.svo-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,0.04) 0px,
            rgba(255,255,255,0.04) 2px,
            transparent 2px,
            transparent 10px
        );
    opacity: 0.25;
    pointer-events: none;
}

.svo-head {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.svo-title { font-size: 32px; color: #fff; display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0.2px; }
.svo-title i { color: #e17055; filter: drop-shadow(0 12px 22px rgba(225,112,85,0.35)); font-size: 26px; }
.svo-note { color: rgba(255,255,255,0.8); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; }

.svo-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 766px) minmax(270px, 1fr); grid-template-areas: "feature feature" "map news"; gap: 20px; align-items: stretch; max-width: 1200px; margin-inline: auto; }

/* Poster */
.svo-poster {
    grid-area: feature; border-radius: var(--radius-md); overflow: hidden; min-width: 0;
    display: grid; grid-template-columns: minmax(0, min(786px, calc(100% - 270px))) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 520px;
    background: #101b2d;
    border: 1px solid rgba(11,232,222,0.28); box-shadow: 0 34px 80px -52px rgba(0,0,0,0.75);
}
.svo-poster-photo { width: 100%; height: 100%; min-width: 0; object-fit: cover; object-position: center; opacity: 0; transition: opacity .35s; }
.svo-poster.has-photo .svo-poster-photo { opacity: 1; }
.svo-poster-overlay { min-width: 0; padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; gap: 10px; background: #172641; }
.svo-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(11,232,222,0.14); border: 1px solid rgba(11,232,222,0.35); color: #fff; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; }
#svo-feature-title { font-family: var(--font-head); font-weight: 900; font-size: clamp(22px, 2.1vw, 29px); line-height: 1.2; margin-top: 6px; }
#svo-feature-text { color: rgba(255,255,255,0.8); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.svo-cta { margin-top: 6px; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; font-size: 12px; transition: 0.25s; }
.svo-cta:hover { transform: translateY(-2px); background: rgba(11,232,222,0.16); border-color: rgba(11,232,222,0.35); }

/* Map */
.svo-map-card { grid-area: map; position: relative; border-radius: var(--radius-md); overflow: hidden; min-width: 0; height: 760px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 30px 70px -55px rgba(0,0,0,0.7); }
.svo-map-head { position: absolute; top: 14px; left: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(14,19,34,0.75); border: 1px solid rgba(255,255,255,0.12); color: #fff; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; backdrop-filter: blur(6px); }
.svo-map-card iframe { width: 100%; height: 100%; border: 0; }

/* News list */
.svo-news { grid-area: news; border-radius: var(--radius-md); overflow: hidden; min-width: 0; height: 760px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 30px 70px -55px rgba(0,0,0,0.7); display: flex; flex-direction: column; }
.svo-news-head { padding: 16px 16px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.10); background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent); }
.svo-news-title { font-family: var(--font-head); font-weight: 900; letter-spacing: 0.3px; font-size: 16px; }
.svo-news-sub { color: rgba(255,255,255,0.75); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 8px; }
.svo-news-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(11,232,222,0.65) transparent; }

/* item */
.svo-item { display: flex; gap: 10px; padding: 14px 12px; cursor: pointer; transition: 0.25s; border-bottom: 1px solid rgba(255,255,255,0.08); }
.svo-item:last-child { border-bottom: none; }
.svo-item:hover { background: rgba(11,232,222,0.10); }
.svo-item.active { background: rgba(11,232,222,0.18); }
.svo-item-media { width: 68px; height: 88px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); }
.svo-item-media img, .svo-item-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.svo-item-body { flex: 1; min-width: 0; }
.tag.tag--svo { background: rgba(11,232,222,0.18); color: #fff; border: 1px solid rgba(11,232,222,0.35); }
.svo-item-title { font-family: var(--font-head); font-weight: 900; font-size: 14px; line-height: 1.25; margin-top: 8px; }
.svo-item-text { font-size: 12px; line-height: 1.45; color: rgba(255,255,255,0.75); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 6. Dark Investigations */
.dark-section { background: var(--bg-dark); padding: 60px 0; color: #fff; }
.section-head-light { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.section-head-light h2 { font-size: 32px; color: #fff; }
.section-head-light a, .section-head-light span { color: var(--accent); font-weight: 600; }
.investigations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-dark { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); overflow: hidden; position: relative; transition: 0.35s; }
.card-dark:hover { transform: translateY(-6px); box-shadow: 0 26px 55px -22px rgba(0,0,0,0.55); border-color: rgba(11,232,222,0.35); }
.card-dark .dark-media { position: relative; height: 180px; overflow: hidden; }
.card-dark .dark-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transform: scale(1.02); transition: 0.6s; }
.card-dark:hover .dark-media img { transform: scale(1.08); opacity: 0.9; }
.card-dark .dark-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.05)); }
.dark-body { padding: 18px 18px 20px; }
.dark-body h3 { font-size: 16px; margin-top: 10px; line-height: 1.45; }
.dark-excerpt { margin-top: 10px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.8); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dark-more { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--accent); opacity: 0.95; }
.dark-more i { font-size: 14px; }

/* 7. Analytics */
.analytics-masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.card-tile { position: relative; height: 300px; border-radius: var(--radius-md); overflow: hidden; }
.card-tile img { width: 100%; height: 100%; }
.tile-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(35,54,94,0.9) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; color: #fff; }
.card-tile h3 { font-size: 22px; margin-bottom: 10px; font-family: var(--font-head); }
.tile-overlay .tag { align-self: flex-start; }
.author-block { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #ccc; }

/* 8. Full Banner */
.full-width-banner { min-height: 360px; padding: 46px 18px; background: linear-gradient(135deg, #112746 0%, #1d4262 60%, #145b6c 100%); display: flex; align-items: center; justify-content: center; position: relative; margin: 40px 0; }
.full-width-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 25%, rgba(35,220,210,.18), transparent 42%); pointer-events: none; }
.banner-content { position: relative; z-index: 2; text-align: center; color: #fff; max-width: 800px; }
.banner-content .badge { background: var(--accent); color: var(--bg-dark); padding: 5px 15px; font-weight: 800; text-transform: uppercase; border-radius: 20px; margin-bottom: 20px; display: inline-block; }
.banner-content h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.16; margin-bottom: 22px; }
.banner-weekly-story { font-size: clamp(15px, 2vw, 19px); line-height: 1.5; margin: 0 auto 24px; max-width: 670px; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; padding: 15px 40px; font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.full-width-banner .btn-outline { display: inline-block; text-decoration: none; }
.btn-outline:hover { background: #fff; color: var(--bg-dark); }

/* 9. Opinions */
.opinions-slider { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card-opinion { background: var(--bg-white); padding: 30px; border-radius: var(--radius-md); position: relative; box-shadow: var(--shadow); border-top: 5px solid var(--bg-dark); }
.quote-icon { font-size: 40px; color: #dfe3e8; position: absolute; top: 20px; right: 20px; }
.opinion-text { font-size: 16px; font-style: italic; line-height: 1.6; margin-bottom: 20px; color: var(--text-main); }
.opinion-author { display: flex; align-items: center; gap: 15px; }
.opinion-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.opinion-author div strong { display: block; font-size: 14px; }
.opinion-author div span { font-size: 12px; color: var(--text-muted); }

/* 10. Feed & Sidebar */
.layout-split { display: grid; grid-template-columns: 2.5fr 1fr; gap: 40px; }
.card-feed { display: flex; gap: 20px; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.card-feed img { width: 260px; height: 180px; border-radius: var(--radius-sm); }
.feed-body { flex: 1; }
.feed-body h3 { font-size: 20px; margin-bottom: 10px; transition: 0.3s; }
.feed-body h3:hover { color: #2980b9; }
.feed-text { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 10px; }
.sidebar-widget { background: var(--bg-white); padding: 25px; border-radius: var(--radius-md); margin-bottom: 30px; }
.sidebar-widget h3 { font-size: 18px; margin-bottom: 20px; }
.sidebar-item { display: flex; gap: 15px; margin-bottom: 15px; align-items: flex-start; }
.sidebar-num { font-size: 24px; font-weight: 800; color: #dfe3e8; line-height: 1; }
.sidebar-item a { font-size: 14px; font-weight: 600; line-height: 1.4; }
.load-more { width: 100%; padding: 15px; background: var(--bg-white); border: 1px solid var(--border); font-weight: 700; cursor: pointer; color: var(--text-muted); }

/* 11. Video */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card-video { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; }
.card-video img { width: 100%; height: 220px; opacity: 0.7; transition: 0.3s; }
.card-video:hover img { opacity: 0.5; }
.play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 50px; height: 50px; background: var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--bg-dark); font-size: 24px; box-shadow: 0 0 20px rgba(11, 232, 222, 0.5);
}
.video-title { position: absolute; bottom: 0; left: 0; padding: 15px; width: 100%; font-weight: 600; font-size: 15px; }

/* 12. News Map (лист + карта) */
.news-map-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; align-items: stretch; }
.news-map-picker { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 12px; font-weight: 800; }
.news-map-picker select { min-width: 190px; max-width: 250px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-white); color: var(--text-main); font: inherit; cursor: pointer; }
.news-map-picker select:focus-visible, .news-map-reset:focus-visible, .news-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.news-map-list { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 18px; height: 520px; display: flex; flex-direction: column; overflow: hidden; }
.news-map-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.news-map-city { font-family: var(--font-head); font-weight: 900; color: var(--bg-dark); font-size: 18px; line-height: 1.1; }
.news-map-reset { background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; cursor: pointer; font-weight: 900; font-size: 12px; color: var(--text-muted); transition: 0.25s; white-space: nowrap; }
.news-map-reset:hover { background: rgba(11,232,222,0.12); color: var(--bg-dark); border-color: rgba(11,232,222,0.35); }
.news-map-city-link { display:inline-flex; align-items:center; width:fit-content; margin:-2px 0 9px 12px; color:#0b6976; font-size:12px; font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.news-map-city-link[hidden] { display:none !important; }
.news-map-city-link:hover { color:#23365e; }
.news-map-items { overflow: auto; padding-right: 6px; }
.news-item { display: block; padding: 14px 12px; border-radius: 14px; border: 1px solid transparent; cursor: pointer; transition: 0.25s; text-decoration: none; }
.news-item:hover { background: rgba(11,232,222,0.08); border-color: rgba(11,232,222,0.35); }
.news-item.active { background: rgba(11,232,222,0.14); border-color: rgba(11,232,222,0.65); }
.news-item-title { font-family: var(--font-head); font-weight: 900; font-size: 14px; line-height: 1.35; color: var(--text-main); }
.news-item-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--text-muted); font-weight: 900; text-transform: uppercase; letter-spacing: 0.3px; }
.news-item-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(132,146,166,0.7); display: inline-block; align-self: center; }
.news-empty { padding: 14px; color: var(--text-muted); font-weight: 700; }
.news-map { position: relative; height: 520px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-white); box-shadow: var(--shadow); border: 1px solid var(--border); }
.news-map-canvas { position: absolute; inset: 0; }
.news-map .leaflet-control-attribution, .news-map .leaflet-control-zoom { filter: drop-shadow(0 10px 18px rgba(0,0,0,0.08)); }
/* Скрываем служебную подпись Leaflet/OSM по просьбе владельца сайта */
.leaflet-bottom.leaflet-right,
.leaflet-control-attribution { display: none !important; }


/* 13. Stories */
.stories-wrapper { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; }
.card-story { min-width: 220px; height: 350px; border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: pointer; border: 2px solid transparent; transition: 0.3s; }
.card-story:hover { border-color: var(--accent); }
.card-story img { width: 100%; height: 100%; }
.story-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px; background: linear-gradient(to top, #000, transparent); color: #fff; font-size: 14px; font-weight: 600; }

/* 14. World Grid */
.world-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 20px; grid-template-areas: "feature a b" "feature c d"; }
.world-card { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; background: #0e1322; min-height: 220px; }
.world-card img { width: 100%; height: 100%; transition: transform 0.7s, opacity 0.7s; opacity: 0.92; }
.world-card:hover img { transform: scale(1.06); opacity: 0.82; }
.world-overlay { position: absolute; inset: 0; padding: 18px 18px 16px; background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.78) 100%); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.world-overlay h3 { font-family: var(--font-head); font-weight: 900; margin-top: 10px; line-height: 1.2; }
.world-overlay .meta-row { margin: 8px 0 0; }
.world-overlay .meta-row .meta-item { font-size: 11px; }
.world-overlay .meta-row .meta-dot { opacity: 0.6; }
.world-card--feature { grid-area: feature; }
.world-card--feature .world-overlay { padding: 24px 24px 22px; }
.world-card--feature .world-overlay h3 { font-size: 28px; }
.world-card:not(.world-card--feature) .world-overlay h3 { font-size: 18px; }
.world-card--a { grid-area: a; } .world-card--b { grid-area: b; } .world-card--c { grid-area: c; } .world-card--d { grid-area: d; }

/* 15. Footer */
.site-footer { background: var(--bg-dark); color: #b0b8c3; padding: 80px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.branding img { filter: brightness(0) invert(1); height: 40px; margin-bottom: 20px; }
.branding p { font-size: 14px; margin-bottom: 20px; max-width: 300px; }
.socials a { font-size: 24px; color: #fff; margin-right: 15px; }
.f-col h4 { color: #fff; margin-bottom: 20px; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }
.f-col a { display: block; margin-bottom: 12px; font-size: 14px; }
.f-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; font-size: 12px; opacity: 0.5; }
.site-footer { margin-top: 0; padding: 64px 0 26px; background: #142e51; color: #c9d6e7; }
.site-footer .footer-grid { grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; margin-bottom: 46px; }
.footer-brand { max-width: 330px; }
.footer-logo { display: inline-block; margin-bottom: 15px; }
.footer-logo img { display: block; width: min(210px, 100%); height: auto; filter: brightness(0) invert(1); }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.65; color: #d2deec; }
.footer-column { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer-column h2 { margin: 0 0 7px; color: #fff; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.footer-column a { display: inline-block; width: fit-content; max-width: 100%; color: #d2deec; font-size: 14px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.footer-column a:hover, .footer-column a:focus-visible { color: #20d4d1; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; text-align: left; opacity: 1; color: #aebfd5; font-size: 12px; }
.site-footer .footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .site-footer .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer { padding: 48px 0 24px; } .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; margin-bottom: 35px; } .footer-brand { grid-column: 1 / -1; } .footer-column:last-child { grid-column: 1 / -1; } .site-footer .footer-bottom { flex-direction: column; } }

/* META ROW & FEED HELPERS */
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 10px; }
.meta-row.meta-row--tight { margin: 6px 0 10px; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.2px; }
.meta-item i { font-size: 14px; opacity: 0.9; }
.meta-item.meta-item--light { color: rgba(255,255,255,0.85); }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(132,146,166,0.7); display: inline-block; }
.meta-dot.meta-dot--light { background: rgba(255,255,255,0.45); }

.feed-view-switch { display: inline-flex; gap: 8px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); }
.switch-btn { width: 42px; height: 34px; border-radius: 999px; border: none; cursor: pointer; background: transparent; color: var(--text-muted); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; transition: 0.25s; }
.switch-btn:hover { background: rgba(11,232,222,0.12); color: var(--bg-dark); }
.switch-btn.active { background: var(--accent); color: var(--bg-dark); font-weight: 800; }

.feed-list.feed-view-classic .card-feed { margin-bottom: 30px; }
.feed-list.feed-view-compact .card-feed-compact { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: center; }
.feed-list.feed-view-compact .compact-media { width: 120px; height: 78px; border-radius: var(--radius-sm); overflow: hidden; flex: 0 0 auto; }
.feed-list.feed-view-compact .compact-media img, .feed-list.feed-view-compact .compact-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.feed-list.feed-view-compact .compact-body h3 { font-size: 16px; line-height: 1.35; margin-top: 6px; }
.feed-list.feed-view-compact .compact-body h3 a:hover { color: #2980b9; }
.feed-list.feed-view-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feed-list.feed-view-cards .card-feed-tile { background: var(--bg-white); border-radius: var(--radius-md); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: 0.3s; }
.feed-list.feed-view-cards .card-feed-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feed-list.feed-view-cards .tile-media { height: 180px; }
.feed-list.feed-view-cards .tile-media img, .feed-list.feed-view-cards .tile-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.feed-list.feed-view-cards .tile-body { padding: 18px 18px 20px; }
.feed-list.feed-view-cards .tile-body h3 { font-size: 18px; margin-top: 8px; line-height: 1.35; }
.feed-list.feed-view-cards .tile-body .feed-text { margin-top: 10px; margin-bottom: 0; }

.ad-placeholder { background: #e8eaee; border: 1px dashed rgba(35,54,94,0.35); border-radius: var(--radius-md); padding: 18px; position: relative; overflow: hidden; }
.ad-placeholder::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(35,54,94,0.04)); pointer-events: none; }
.ad-badge { position: absolute; top: 12px; left: 12px; background: rgba(35,54,94,0.9); color: #fff; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; }
.ad-body { position: relative; padding-top: 38px; }
.ad-title { font-family: var(--font-head); font-weight: 800; color: var(--bg-dark); font-size: 16px; margin-bottom: 6px; }
.ad-sub { font-size: 13px; color: rgba(48,56,56,0.7); line-height: 1.5; }
.img-placeholder { background: linear-gradient(135deg, rgba(11,232,222,0.25), rgba(35,54,94,0.15)); display: flex; align-items: center; justify-content: center; color: rgba(35,54,94,0.75); }
.img-placeholder i { font-size: 26px; opacity: 0.9; }

/* Weather map styles */
.weather-map { position: relative; height: 520px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-white); box-shadow: var(--shadow); border: 1px solid var(--border); }
.weather-map-canvas { position: absolute; inset: 0; }
.weather-divicon { background: transparent; border: none; }
.weather-divicon .weather-marker { transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.95); border: 1px solid rgba(232,234,238,0.9); box-shadow: 0 14px 28px -18px rgba(0,0,0,0.35); user-select: none; white-space: nowrap; }
.weather-divicon .weather-marker::after { content: ''; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 9px solid rgba(255,255,255,0.95); filter: drop-shadow(0 8px 10px rgba(0,0,0,0.08)); }
.weather-divicon .wm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(11,232,222,0.18); }
.weather-divicon .wm-city { font-size: 12px; font-weight: 900; font-family: var(--font-head); color: var(--bg-dark); text-transform: uppercase; letter-spacing: 0.4px; }
.weather-divicon .wm-temp { font-size: 12px; font-weight: 800; color: var(--text-main); }
.weather-divicon .wm-desc { font-size: 11px; font-weight: 700; color: rgba(48,56,56,0.65); }
.map-legend { position: absolute; bottom: 16px; right: 16px; z-index: 600; background: rgba(255,255,255,0.92); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; box-shadow: var(--shadow); pointer-events: auto; }
.legend-title { font-size: 12px; font-weight: 900; font-family: var(--font-head); color: var(--bg-dark); display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.legend-sub { font-size: 12px; color: rgba(48,56,56,0.7); margin-top: 4px; }

/* Markets Tabs */
.tabs { background: transparent; }
.tabs-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.tab-btn { border: 1px solid var(--border); background: var(--bg-white); border-radius: 999px; padding: 10px 14px; cursor: pointer; font-weight: 900; font-family: var(--font-head); font-size: 13px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow); transition: 0.25s; }
.tab-btn:hover { background: rgba(11,232,222,0.12); color: var(--bg-dark); border-color: rgba(11,232,222,0.35); }
.tab-btn.active { background: var(--accent); color: var(--bg-dark); border-color: rgba(11,232,222,0.35); }
.tabs-panels { position: relative; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.markets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.market-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 16px 16px 14px; height: 220px; display: flex; flex-direction: column; min-width: 0; }
.market-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.market-title { font-size: 16px; font-weight: 900; font-family: var(--font-head); color: var(--bg-dark); }
.market-sub { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 3px; }
.market-canvas { flex: 1 1 auto; min-height: 120px; min-width: 0; overflow: hidden; margin-top: 10px; }
.market-canvas canvas { max-width: 100%; }
.market-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; font-weight: 800; color: var(--text-muted); }
.market-value { color: var(--text-main); font-size: 14px; }
.market-muted i { font-size: 14px; margin-right: 6px; }

/* Responsive */
@media (max-width: 1024px) {
    /* Фикс ширины на мобильных */
    .container { padding: 0 20px; width: 100%; } 
    
    .hero-grid { grid-template-columns: 1fr; height: auto; }
    .card-hero { height: 300px; }
    .editors-grid { grid-template-columns: 1fr; }
    .investigations-grid, .analytics-masonry, .video-grid { grid-template-columns: repeat(2, 1fr); }
    .layout-split { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    .markets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feed-list.feed-view-cards { grid-template-columns: 1fr; }
    .news-map-layout { grid-template-columns: 1fr; }
    .news-map-list, .news-map { height: 420px; min-height: 420px; }
    .world-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 220px 220px; grid-template-areas: "feature feature" "a b" "c d"; }
    .svo-layout { grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr); }
    .svo-poster { grid-template-columns: minmax(0, calc(100% - 250px)) minmax(0, 1fr); height: 480px; }
    .svo-map-card, .svo-news { height: 720px; }
    .svo-item-text { display: none; }
}

@media (max-width: 768px) {
    .header-inner { height: 60px; }
    .main-nav { display: none; } /* Скрываем десктопное меню */
    .investigations-grid, .analytics-masonry, .video-grid { grid-template-columns: 1fr; }
    .opinions-slider { grid-template-columns: 1fr; }
    .markets-grid { grid-template-columns: minmax(0, 1fr); }
    .feed-view-switch { width: 100%; justify-content: space-between; }
    .world-grid { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "feature" "a" "b" "c" "d"; }
    .svo-layout { grid-template-columns: 1fr; grid-template-areas: "feature" "map" "news"; }
    .svo-poster { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; }
    .svo-poster-photo { height: auto; max-height: none; aspect-ratio: 3 / 2; }
    .svo-poster-overlay { padding: 20px; }
    .svo-map-card { min-height: 480px; height: 480px; }
    .svo-news { height: 450px; }
    .svo-item-text { display: -webkit-box; }
    .news-map-picker { flex-direction: column; align-items: flex-start; }
    .news-map-picker select { min-width: 0; width: min(210px, 100%); }
}

/* News photographs must remain complete; headlines live outside the picture. */
.source-photo { display: block; overflow: hidden; background: #e8edf1; cursor: pointer; }
.source-photo img { display: block; width: 100%; height: 100%; object-fit: contain !important; transform: none !important; }
.source-photo:hover img { transform: none !important; }
.hero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; height: auto; align-items: stretch; }
.card-hero { min-width: 0; height: auto; display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow); }
.card-hero:first-child { grid-row: auto; }
.card-hero .source-photo { flex: 0 0 auto; width: 100%; aspect-ratio: 3 / 2; }
.card-hero .hero-overlay { position: static; flex: 0 0 auto; padding: 14px 18px; background: #fff; color: var(--bg-dark); }
.card-hero:first-child .hero-overlay { padding: 14px 18px; }
.card-hero .hero-overlay h3 { margin: 4px 0 0; font-size: 18px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-hero:first-child .hero-overlay h3 { font-size: 18px; -webkit-line-clamp: 2; }
.card-hero .hero-overlay p { display: none; }
.card-hero .hero-overlay .meta-item, .card-hero .hero-overlay .meta-dot { color: var(--text-muted); }
.card-feed > .source-photo { flex: 0 0 260px; width: 260px; height: 180px; border-radius: var(--radius-sm); }
.card-feed-compact .source-photo { width: 100%; height: 100%; }
.card-feed-tile .source-photo { width: 100%; height: 180px; }
.stories-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stories-controls { display: flex; gap: 8px; }
.stories-controls button { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--bg-dark); cursor: pointer; font-size: 18px; }
.stories-controls button:disabled { opacity: .35; cursor: default; }
.stories-wrapper { gap: 16px; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: auto; overflow-x: auto; }
.card-story { flex: 0 0 calc((100% - 48px) / 4); min-width: 0; height: 250px; border: 0; background: #fff; box-shadow: var(--shadow); scroll-snap-align: start; display: flex; flex-direction: column; }
.card-story .source-photo { flex: 0 0 185px; width: 100%; }
.card-story .story-overlay { position: static; min-height: 0; flex: 1; padding: 10px 12px; background: #fff; color: var(--bg-dark); font-size: 13px; }
.card-story .story-overlay .story-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-story .story-overlay .story-meta { display: block; margin-top: 5px; color: var(--text-muted); font-size: 11px; }
.world-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-template-rows: auto; grid-template-areas: none; }
.world-card, .world-card--feature { grid-area: auto; height: 330px; display: flex; flex-direction: column; background: #fff; }
.world-card .source-photo { flex: 1 1 auto; min-height: 0; }
.world-card .world-overlay, .world-card--feature .world-overlay { position: static; flex: 0 0 auto; padding: 12px 14px; background: #fff; color: var(--bg-dark); }
.world-card .world-overlay h3, .world-card--feature .world-overlay h3 { font-size: 16px; line-height: 1.3; margin: 5px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.world-card .world-overlay .meta-item, .world-card .world-overlay .meta-dot { color: var(--text-muted); }

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-hero { height: auto; }
    .card-story { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 850px) {
    .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .hero-grid { grid-template-columns: 1fr; }
    .card-hero, .card-hero:first-child { grid-column: auto; }
    .card-feed { flex-direction: column; }
    .card-feed > .source-photo { flex-basis: auto; width: 100%; height: 220px; }
    .card-story { flex-basis: 100%; }
}

/* Test homepage: lead with stories, then keep service widgets compact. */
.top-news { padding: 28px 0 30px; background: #f2f5f8; }
.top-news-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.top-news-kicker { display: block; color: #087986; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 3px; }
.top-news-heading h1 { color: var(--bg-dark); font-family: var(--font-head); font-size: clamp(27px, 3vw, 38px); line-height: 1.15; margin: 0; }
.top-news-heading > a { color: #096e7d; font-size: 13px; font-weight: 800; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.top-news .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; }
.top-news .card-hero:first-child { grid-row: 1 / span 2; }
.top-news .card-hero:first-child .source-photo { aspect-ratio: 16 / 10; }
.top-news .card-hero:first-child .hero-overlay h3 { font-size: clamp(20px, 2vw, 25px); -webkit-line-clamp: 3; }
.top-news .card-hero:not(:first-child) { display: flex; flex-direction: column; min-height: 0; }
.top-news .card-hero:not(:first-child) .source-photo { aspect-ratio: 16 / 7.5; height: auto; min-height: 0; }
.top-news .card-hero:not(:first-child) .hero-overlay { padding: 10px 14px; min-width: 0; }
.top-news .card-hero:not(:first-child) .hero-overlay h3 { font-size: 16px; -webkit-line-clamp: 2; }
.top-news .card-hero:not(:first-child) .meta-row { font-size: 10px; }
.dashboard-section { padding: 15px 0 18px; }
.dashboard-section .dash-item { min-height: 142px; padding: 16px; }
.dashboard-section .chart-wrapper { height: 42px; }
.dashboard-section .weather-chart-wrapper { height: 29px; }
@media (max-width: 850px) {
    .top-news .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
    .top-news .card-hero:first-child { grid-column: 1 / -1; grid-row: auto; }
    .top-news .card-hero:first-child .source-photo { aspect-ratio: 3 / 2; }
    .top-news .card-hero:not(:first-child) { display: flex; }
    .top-news .card-hero:not(:first-child) .source-photo { aspect-ratio: 4 / 3; height: auto; }
}
@media (max-width: 650px) {
    .top-news { padding: 18px 0 22px; }
    .top-news-heading { margin-bottom: 14px; }
    .top-news-heading h1 { font-size: 26px; }
    .top-news-heading > a { font-size: 12px; }
    .top-news .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .top-news .card-hero:first-child { grid-column: auto; }
    .top-news .card-hero:first-child .source-photo { aspect-ratio: 3 / 2; }
    .top-news .card-hero:first-child .hero-overlay h3 { font-size: 20px; }
    .top-news .card-hero:not(:first-child) { display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 118px; }
    .top-news .card-hero:not(:first-child) .source-photo { aspect-ratio: auto; height: 100%; }
    .top-news .card-hero:not(:first-child) .hero-overlay { padding: 10px 12px; min-width: 0; }
    .top-news .card-hero:not(:first-child) .hero-overlay h3 { font-size: 14px; line-height: 1.27; -webkit-line-clamp: 3; }
    .top-news .card-hero:not(:first-child) .meta-row { display: none; }
    .top-news .card-hero:not(:first-child) .tag { font-size: 9px; padding: 3px 6px; margin-bottom: 4px; }
    .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .dashboard-section .dash-item { min-height: 128px; padding: 12px; }
    .dashboard-section .weather-chart-wrapper, .dashboard-section .chart-wrapper { display: none; }
    .dashboard-section .weather-icon { font-size: 27px; }
    .dashboard-section .temp { font-size: 27px; }
    .dashboard-section .dash-main { gap: 6px; }
    .dashboard-section .dash-top .date, .dashboard-section .currency-widget .trend { display: none; }
    .dashboard-section .dash-sub, .dashboard-section .currency-row { font-size: 11px; line-height: 1.3; }
    .dashboard-section .currency-row { gap: 4px 10px; flex-wrap: wrap; }
    .dashboard-section .svo-hot-widget { grid-column: 1 / -1; min-height: 110px; }
}

/* World preview: one balanced row of five regions on wide screens. */
.world-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.world-grid .world-card { width: 100%; min-width: 0; height: 330px; }
.world-grid .world-card .source-photo { flex: 0 0 185px; height: 185px; }
.world-grid .world-card .world-overlay { flex: 1 1 auto; min-height: 0; }
@media (max-width: 1120px) {
    .world-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
    .world-grid .world-card { flex: 0 0 230px; width: 230px; scroll-snap-align: start; }
}
@media (max-width: 620px) {
    .world-grid { flex-wrap: wrap; overflow-x: visible; padding-bottom: 0; }
    .world-grid .world-card { flex: 0 0 100%; width: 100%; }
}

/* Four concise news selections near the top of the staging home page. */
.home-main-section { padding: 44px 0 54px; }
.home-main-section .editors-grid { gap: 16px; }
.home-main-section .card-horizontal { height: 214px; border: 1px solid #e1e8ed; box-shadow: none; }
.home-main-section .card-horizontal:hover { transform: none; border-color: #7fbcc1; box-shadow: none; }
.home-main-section .card-horizontal .source-photo { flex-basis: 42%; width: 42%; }
.home-main-section .card-content { width: 58%; padding: 20px 22px; }
.home-main-section .card-horizontal h3 { font-size: 17px; line-height: 1.36; margin: 0 0 12px; }
.home-main-section .card-content .meta { display: block; font-size: 11px; font-weight: 700; line-height: 1.5; }
.home-city-section { padding: 52px 0; background: #e9f1f3; }
.home-city-layout { display: grid; grid-template-columns: minmax(260px, .36fr) minmax(0, .64fr); gap: clamp(24px, 5vw, 74px); align-items: start; }
.home-city-intro .block-title { margin: 0 0 20px; }
.home-city-intro p { max-width: 33ch; margin: 0 0 26px; color: #566a7b; font-size: 16px; line-height: 1.55; }
.home-city-intro label { display: block; margin: 0 0 8px; color: #23365e; font-size: 13px; font-weight: 800; }
.home-city-intro select { display: block; width: min(320px,100%); min-height: 46px; border: 1px solid #9fb9c5; border-radius: 8px; background: #fff; color: #23365e; padding: 8px 11px; font: 700 14px Montserrat,sans-serif; }
.home-city-intro select:focus-visible { outline: 3px solid #16c8c3; outline-offset: 2px; }
.home-city-locate { display: block; margin-top: 12px; padding: 0; border: 0; background: transparent; color: #155b69; font: 800 13px/1.45 Manrope,sans-serif; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.home-city-locate:hover, .home-city-locate:focus-visible { color: #087d89; }
.home-city-locate:disabled { opacity: .6; cursor: wait; }
.home-city-locate[hidden] { display: none; }
.home-city-geo-status { max-width: 36ch; margin: 9px 0 0 !important; color: #526779 !important; font-size: 12px !important; line-height: 1.5 !important; }
.home-city-geo-status:empty { display: none; }
.home-city-intro > a { display: inline-block; margin-top: 17px; color: #155b69; font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.home-city-feed { min-height: 200px; background: #fff; border: 1px solid #d7e4e9; border-radius: 12px; overflow: hidden; }
.home-city-prompt { margin: 0; padding: 38px; max-width: 42ch; color: #526779; font-size: 17px; line-height: 1.5; }
.home-city-story { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 20px; align-items: start; padding: 20px 24px; color: #23365e; text-decoration: none; border-bottom: 1px solid #e6edf0; }
.home-city-story:last-child { border-bottom: 0; }
.home-city-story:hover, .home-city-story:focus-visible { background: #f3fafb; }
.home-city-story-meta { color: #61788a; font-size: 12px; font-weight: 800; text-transform: uppercase; line-height: 1.4; }
.home-city-story-title { font: 800 16px/1.4 Manrope,sans-serif; }
.home-incidents-section { padding: 51px 0 60px; }
.home-incidents-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.home-incident-card { background: #fff; border: 1px solid #dfe8ee; border-radius: 12px; overflow: hidden; }
.home-incident-photo { display: block; height: 190px; background: #e5eaef; }
.home-incident-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-incident-copy { padding: 17px 19px 21px; }
.home-incident-meta { color: #6a7e90; font-size: 12px; font-weight: 800; text-transform: uppercase; margin-bottom: 9px; }
.home-incident-copy h3 { font: 800 17px/1.38 Manrope,sans-serif; margin: 0; }
.home-incident-copy h3 a { color: #23365e; text-decoration: none; }
.home-incident-copy h3 a:hover, .home-incident-copy h3 a:focus-visible { color: #087d89; text-decoration: underline; }
.home-world-section { padding: 50px 0 58px; }
.home-world-section .world-grid { grid-template-columns: repeat(var(--home-world-count,5),minmax(0,1fr)); }
.home-world-section .world-card { cursor: default; }
.home-world-section .world-card h3 a { color: inherit; text-decoration: none; }
.home-world-section .world-card h3 a:hover, .home-world-section .world-card h3 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:1120px) { .home-world-section .world-grid { display:flex; } }
@media(max-width:800px) {
    .home-city-layout { grid-template-columns: 1fr; gap: 26px; }
    .home-city-feed { min-height: 0; }
    .home-incidents-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:620px) {
    .home-main-section .card-horizontal { height:auto; min-height:0; flex-direction:column; }
    .home-main-section .card-horizontal .source-photo { width:100%; height:185px; flex:none; }
    .home-main-section .card-content { width:100%; padding:16px; min-height:145px; }
    .home-city-section, .home-incidents-section, .home-world-section { padding:39px 0; }
    .home-city-story { grid-template-columns:1fr; gap:6px; padding:18px; }
    .home-incidents-grid { grid-template-columns:1fr; }
    .home-incident-card { display:grid; grid-template-columns:110px minmax(0,1fr); min-height:150px; }
    .home-incident-photo { height:100%; min-height:150px; }
    .home-incident-copy { padding:14px; }
    .home-incident-copy h3 { font-size:15px; }
    .home-world-section .world-grid { display:flex; flex-wrap:wrap; }
}


/* Keep the aligned SVO columns readable on narrower screens. */
@media (min-width: 851px) and (max-width: 1024px) {
    .svo-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .svo-poster { grid-template-columns: minmax(0, calc(100% - 320px)) minmax(0, 1fr); }
}
@media (min-width: 769px) and (max-width: 850px) {
    .svo-layout { grid-template-columns: 1fr; grid-template-areas: "feature" "map" "news"; }
    .svo-poster { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; }
    .svo-poster-photo { height: auto; max-height: none; aspect-ratio: 3 / 2; }
    .svo-map-card { width: 100%; max-width: 766px; justify-self: center; height: 520px; }
    .svo-news { height: 450px; }
    .svo-item-text { display: -webkit-box; }
}
