:root {
  --b24-bg: #f3f6fb;
  --b24-card: #ffffff;
  --b24-text: #152033;
  --b24-muted: #667085;
  --b24-line: #dbe4f0;
  --b24-blue: #1769e0;
  --b24-blue-dark: #0f4fb5;
  --b24-blue-soft: #e8f1ff;
  --b24-red: #e5484d;
  --b24-yellow: #f5b940;
  --b24-green: #1b9b63;
  --b24-radius: 20px;
  --b24-shadow: 0 14px 40px rgba(21, 32, 51, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--b24-bg);
  color: var(--b24-text);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--b24-blue); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
.b24-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.b24-main { padding: 26px 0 44px; }
.b24-muted { color: var(--b24-muted); }
.b24-button,
.b24-load-more,
.b24-add-news,
.b24-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--b24-blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.b24-button:hover,
.b24-load-more:hover,
.b24-add-news:hover,
.b24-search-form button:hover { background: var(--b24-blue-dark); color: #fff; }

/* Header */
.b24-top-ad { background: #fff; border-bottom: 1px solid var(--b24-line); padding: 10px 0; }
.b24-header-main { background: #fff; border-bottom: 1px solid var(--b24-line); }
.b24-header-row { min-height: 82px; display: flex; align-items: center; gap: 18px; justify-content: space-between; }
.b24-logo { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 950; letter-spacing: -0.055em; color: var(--b24-text); font-size: clamp(28px, 4vw, 44px); line-height: 1; }
.b24-logo strong { color: var(--b24-blue); }
.b24-logo-footer { font-size: 30px; }
.b24-header-actions { display: flex; align-items: center; gap: 10px; }
.b24-search-toggle,
.b24-menu-toggle { border: 1px solid var(--b24-line); background: #fff; color: var(--b24-text); border-radius: 999px; min-height: 44px; padding: 10px 15px; cursor: pointer; font-weight: 800; }
.b24-menu-toggle { display: none; gap: 4px; align-items: center; }
.b24-menu-toggle span { display: block; width: 18px; height: 2px; background: var(--b24-text); border-radius: 99px; }
.b24-menu-toggle em { font-style: normal; margin-left: 5px; }
.b24-main-nav { background: #fff; border-bottom: 1px solid var(--b24-line); }
.b24-menu,
.b24-top-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.b24-menu > li { position: relative; }
.b24-menu a { display: block; padding: 15px 12px; font-weight: 800; color: var(--b24-text); }
.b24-menu a:hover { color: var(--b24-blue); }
.b24-menu .sub-menu { display: none; position: absolute; z-index: 20; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--b24-line); border-radius: 14px; box-shadow: var(--b24-shadow); padding: 8px; list-style: none; }
.b24-menu li:hover > .sub-menu { display: block; }
.b24-menu .sub-menu a { padding: 9px 10px; border-radius: 10px; }
.b24-menu .sub-menu a:hover { background: var(--b24-blue-soft); }
.b24-search-panel { background: #fff; border-bottom: 1px solid var(--b24-line); padding: 14px 0; }
.b24-search-form { display: flex; gap: 10px; }
.b24-search-form input { flex: 1; min-height: 48px; border: 1px solid var(--b24-line); border-radius: 999px; padding: 0 18px; font-size: 16px; }

/* Sections */
.b24-section { margin: 0 0 28px; }
.b24-section-head { margin: 0 0 16px; }
.b24-section-head-row { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.b24-section-head h1,
.b24-section-head h2 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -0.04em; }
.b24-section-head p { max-width: 470px; margin: 0; color: var(--b24-muted); font-size: 15px; }
.b24-kicker { display: inline-block; margin: 0 0 6px; color: var(--b24-blue); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 900; }

/* Now block */
.b24-now-section { padding-top: 4px; }
.b24-now-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.b24-now-card { position: relative; min-height: 132px; background: var(--b24-card); border: 1px solid var(--b24-line); border-radius: var(--b24-radius); padding: 16px; box-shadow: var(--b24-shadow); overflow: hidden; display: flex; flex-direction: column; gap: 7px; }
.b24-now-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--b24-blue); opacity: .9; }
.b24-now-card span { color: var(--b24-muted); font-size: 13px; font-weight: 800; }
.b24-now-card strong { font-size: 18px; line-height: 1.15; letter-spacing: -0.02em; }
.b24-now-card em { margin-top: auto; color: var(--b24-muted); font-style: normal; font-size: 13px; }
.b24-now-tension { grid-column: span 2; }
.b24-tension-scale { display: flex; gap: 5px; margin: 2px 0 0; }
.b24-tension-scale i { height: 8px; flex: 1; border-radius: 999px; background: #e3e9f2; }
.b24-tension-scale i.is-active:nth-child(1),
.b24-tension-scale i.is-active:nth-child(2) { background: var(--b24-green); }
.b24-tension-scale i.is-active:nth-child(3) { background: var(--b24-yellow); }
.b24-tension-scale i.is-active:nth-child(4),
.b24-tension-scale i.is-active:nth-child(5) { background: var(--b24-red); }
.b24-info-dot { position: absolute; top: 13px; right: 13px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--b24-line); background: #fff; color: var(--b24-blue); font-weight: 900; cursor: help; }
.b24-tooltip { display: none; position: absolute; z-index: 5; right: 12px; top: 44px; width: min(300px, calc(100% - 24px)); padding: 12px; background: var(--b24-text); color: #fff; border-radius: 14px; font-size: 13px; line-height: 1.4; box-shadow: var(--b24-shadow); }
.b24-info-dot:hover + .b24-tooltip,
.b24-info-dot:focus + .b24-tooltip { display: block; }

/* Ads */
.b24-ad-zone { margin: 18px auto 28px; }
.b24-ad-widget { max-width: 100%; }
.b24-ad-zone-inline { margin: 24px 0; padding: 12px; border: 1px dashed var(--b24-line); border-radius: 16px; background: #f8fbff; }

/* Cards */
.b24-filter { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; margin: -2px 0 10px; }
.b24-filter button { flex: 0 0 auto; min-height: 38px; border: 1px solid var(--b24-line); background: #fff; color: var(--b24-text); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 800; }
.b24-filter button.is-active { background: var(--b24-blue); border-color: var(--b24-blue); color: #fff; }
.b24-latest-content.is-loading { opacity: .55; pointer-events: none; }
.b24-latest-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); gap: 16px; margin-bottom: 16px; }
.b24-latest-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.b24-latest-grid,
.b24-more-grid,
.b24-archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.b24-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.b24-card { background: var(--b24-card); border: 1px solid var(--b24-line); border-radius: var(--b24-radius); overflow: hidden; box-shadow: var(--b24-shadow); min-width: 0; }
.b24-card-link { display: grid; height: 100%; color: var(--b24-text); }
.b24-card-image { background: #dbe4f0; overflow: hidden; }
.b24-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.b24-card:hover .b24-card-image img { transform: scale(1.035); }
.b24-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.b24-card-cat { color: var(--b24-blue); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.b24-card h3 { margin: 0; font-size: 18px; line-height: 1.2; letter-spacing: -0.02em; }
.b24-card p { margin: 0; color: var(--b24-muted); }
.b24-card-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--b24-muted); font-size: 12px; margin-top: auto; }
.b24-card-featured .b24-card-image { min-height: 310px; }
.b24-card-featured h3 { font-size: clamp(24px, 3vw, 34px); }
.b24-card-news .b24-card-image { height: 138px; }
.b24-card-news h3 { font-size: 16px; }
.b24-card-compact .b24-card-link { grid-template-columns: 110px minmax(0, 1fr); }
.b24-card-compact .b24-card-image { height: 112px; }
.b24-card-compact h3 { font-size: 15px; line-height: 1.25; }
.b24-card-compact .b24-card-body { padding: 11px; }
.b24-load-more { margin: 22px auto 0; display: flex; }
.b24-empty { padding: 20px; background: #fff; border: 1px solid var(--b24-line); border-radius: var(--b24-radius); color: var(--b24-muted); }

/* Pulse */
.b24-pulse-section .b24-container { background: linear-gradient(135deg, #ffffff, #eef5ff); border: 1px solid var(--b24-line); border-radius: 26px; padding: 22px; box-shadow: var(--b24-shadow); }
.b24-pulse-list { display: grid; gap: 0; }
.b24-pulse-item,
.b24-pulse-empty { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-top: 1px solid rgba(23,105,224,.14); }
.b24-pulse-item:first-child { border-top: 0; }
.b24-pulse-item time,
.b24-pulse-empty time { color: var(--b24-blue); font-weight: 950; }
.b24-pulse-item span,
.b24-pulse-item a,
.b24-pulse-empty span { font-weight: 750; }

/* Editor picks */
.b24-editor-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, .85fr)); gap: 14px; }
.b24-editor-grid .b24-card-featured { grid-column: span 1; }
.b24-editor-grid .b24-card-featured .b24-card-image { min-height: 230px; }
.b24-editor-grid .b24-card-featured h3 { font-size: 24px; }

/* Archive / Single */
.b24-archive-layout,
.b24-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.b24-archive-main,
.b24-single-main,
.b24-page { min-width: 0; }
.b24-page,
.b24-single-article { background: #fff; border: 1px solid var(--b24-line); border-radius: 26px; padding: clamp(20px, 4vw, 38px); box-shadow: var(--b24-shadow); }
.b24-page-wrap { max-width: 900px; }
.b24-breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: var(--b24-muted); font-size: 13px; margin-bottom: 18px; }
.b24-breadcrumbs a { color: var(--b24-blue); }
.b24-single-cat { display: inline-flex; color: var(--b24-blue); background: var(--b24-blue-soft); border-radius: 999px; padding: 6px 10px; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.b24-single-header h1,
.b24-page h1 { margin: 0 0 14px; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.06; letter-spacing: -0.045em; }
.b24-single-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--b24-muted); font-size: 14px; margin-bottom: 22px; }
.b24-single-hero { margin: 18px 0; border-radius: 22px; overflow: hidden; background: #e9eef5; }
.b24-single-hero img { width: 100%; }
.b24-share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0 22px; color: var(--b24-muted); }
.b24-share-row a { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 10px; border-radius: 999px; background: var(--b24-blue-soft); color: var(--b24-blue); font-weight: 900; }
.b24-entry-content { font-size: 18px; line-height: 1.72; }
.b24-entry-content p { margin: 0 0 1.2em; }
.b24-entry-content h2,
.b24-entry-content h3 { line-height: 1.2; letter-spacing: -0.025em; margin: 1.5em 0 .6em; }
.b24-entry-content a { color: var(--b24-blue); text-decoration: underline; text-underline-offset: 3px; }
.b24-entry-content blockquote { margin: 26px 0; padding: 20px 24px; border-left: 5px solid var(--b24-blue); background: var(--b24-blue-soft); border-radius: 0 18px 18px 0; }
.b24-single-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; color: var(--b24-muted); }
.b24-single-tags a { display: inline-flex; padding: 6px 10px; background: var(--b24-bg); border-radius: 999px; color: var(--b24-blue); font-weight: 800; }
.b24-error-note { margin-top: 22px; padding: 13px 15px; border-radius: 16px; background: #fff7e5; color: #6d4b00; }
.b24-error-note span { font-weight: 950; }
.b24-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.b24-gallery img { border-radius: 14px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.b24-related { margin-top: 26px; }
.b24-sidebar { display: grid; gap: 18px; }
.b24-side-box { background: #fff; border: 1px solid var(--b24-line); border-radius: 22px; padding: 18px; box-shadow: var(--b24-shadow); }
.b24-side-box h3 { margin: 0 0 12px; font-size: 20px; letter-spacing: -0.025em; }
.b24-side-news { display: grid; gap: 0; }
.b24-side-news-item { display: grid; gap: 4px; padding: 11px 0; border-top: 1px solid var(--b24-line); }
.b24-side-news-item:first-child { border-top: 0; }
.b24-side-news-item span { color: var(--b24-muted); font-size: 12px; }
.b24-side-news-item strong { line-height: 1.22; }

/* Comments */
.b24-comments { margin-top: 26px; background: #fff; border: 1px solid var(--b24-line); border-radius: 26px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--b24-shadow); }
.b24-comments h2 { margin-top: 0; }
.b24-comment-list { padding-left: 22px; }
.b24-comments textarea,
.b24-comments input[type="text"] { width: 100%; border: 1px solid var(--b24-line); border-radius: 16px; padding: 12px; font-size: 16px; }

/* Footer */
.b24-footer { background: #111827; color: #d1d5db; padding: 36px 0; margin-top: 30px; }
.b24-footer a { color: #fff; }
.b24-footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 26px; }
.b24-footer h3 { color: #fff; margin-top: 0; }
.b24-footer .b24-logo { color: #fff; }
.b24-logo-footer { width: auto; height: auto; display: inline-flex; align-items: baseline; gap: 3px; font-size: 30px; font-weight: 900; }
.b24-logo-footer strong { color: #ff5962; }

.navigation.pagination { margin-top: 24px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 38px; min-height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--b24-line); }
.page-numbers.current { background: var(--b24-blue); color: #fff; border-color: var(--b24-blue); }

@media (max-width: 1100px) {
  .b24-now-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .b24-now-tension { grid-column: span 2; }
  .b24-latest-top { grid-template-columns: 1fr; }
  .b24-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b24-archive-layout,
  .b24-single-layout { grid-template-columns: 1fr; }
  .b24-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


@media (max-width: 980px) {
  .b24-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .b24-container { width: min(100% - 24px, 1180px); }
  .b24-main { padding-top: 18px; }
  .b24-header-row { min-height: 70px; }
  .b24-logo { font-size: 30px; }
  .b24-menu-toggle { display: inline-grid; grid-template-columns: 18px auto; }
  .b24-header-actions { gap: 8px; }
  .b24-add-news { padding: 8px 12px; font-size: 14px; }
  .b24-search-toggle { padding: 8px 12px; font-size: 14px; }
  .b24-main-nav { display: none; }
  .b24-main-nav.is-open { display: block; }
  .b24-menu { display: grid; gap: 0; padding: 8px 0; }
  .b24-menu a { padding: 12px 0; border-bottom: 1px solid var(--b24-line); }
  .b24-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding-left: 14px; }
  .b24-section-head-row { display: block; }
  .b24-section-head p { margin-top: 8px; }
  .b24-now-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b24-now-card { min-height: 120px; padding: 14px; }
  .b24-now-tension { grid-column: span 2; }
  .b24-latest-side,
  .b24-latest-grid,
  .b24-more-grid,
  .b24-archive-grid,
  .b24-related-grid { grid-template-columns: 1fr; }
  .b24-card-featured .b24-card-image { min-height: 210px; }
  .b24-card-news .b24-card-image { height: 170px; }
  .b24-card-compact .b24-card-link { grid-template-columns: 92px minmax(0, 1fr); }
  .b24-card-compact .b24-card-image { height: 98px; }
  .b24-pulse-section .b24-container { padding: 16px; }
  .b24-pulse-item,
  .b24-pulse-empty { grid-template-columns: 52px 1fr; }
  .b24-editor-grid { grid-template-columns: 1fr; }
  .b24-single-article,
  .b24-page { padding: 18px; border-radius: 22px; }
  .b24-entry-content { font-size: 17px; line-height: 1.65; }
  .b24-sidebar { grid-template-columns: 1fr; }
  .b24-gallery { grid-template-columns: repeat(2, 1fr); }
  .b24-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .b24-now-grid { grid-template-columns: 1fr; }
  .b24-now-tension { grid-column: auto; }
  .b24-header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .b24-add-news { min-height: 38px; }
}

/* v1.2 editorial UI */
:root {
  --b24-blue: #1f65c7;
  --b24-blue-dark: #14345e;
  --b24-blue-soft: #edf4fd;
  --b24-red: #e33d46;
  --b24-bg: #f4f6f9;
  --b24-text: #17263a;
  --b24-muted: #68778b;
  --b24-line: #dde4ec;
  --b24-radius: 16px;
  --b24-shadow: 0 8px 24px rgba(28, 49, 76, .06);
}
.b24-container { width: min(1240px, calc(100% - 36px)); }
.b24-main { padding-top: 24px; }
.b24-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* Header */
.b24-header-row { min-height: 78px; }
.b24-logo { display: block; width: 245px; height: 54px; letter-spacing: 0; }
.b24-logo::after, .b24-logo strong::after { display: none; }
.b24-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.b24-header-actions { margin-left: auto; }
.b24-header-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 9px 14px; font-weight: 750; cursor: pointer; }
.b24-search-toggle, .b24-menu-toggle { border: 1px solid var(--b24-line); background: #fff; color: var(--b24-blue-dark); }
.b24-menu-toggle { display: none; }
.b24-add-news { background: var(--b24-red); }
.b24-add-news .b24-icon { width: 17px; height: 17px; }
.b24-mobile-report { display: none; }
.b24-menu a { font-weight: 700; }

/* Service dashboard */
.b24-now-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.b24-now-card { min-height: 128px; padding: 15px; border-radius: 16px; box-shadow: var(--b24-shadow); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
a.b24-now-card:hover { transform: translateY(-2px); border-color: #bfd0e5; box-shadow: 0 12px 28px rgba(28,49,76,.09); color: inherit; }
.b24-now-card::before { height: 3px; background: var(--b24-blue); }
.b24-now-card.is-alert::before { background: var(--b24-red); }
.b24-now-card.is-alert strong { color: var(--b24-red); }
.b24-now-label { display: flex; align-items: center; gap: 7px; }
.b24-now-label .b24-icon { width: 17px; height: 17px; color: var(--b24-blue); }
.b24-now-card strong { font-size: 17px; font-weight: 780; }
.b24-now-roads strong { color: var(--b24-text); }
.b24-now-tension { grid-column: 1 / -1; min-height: 126px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .45fr); align-items: center; gap: 22px; padding: 20px 22px; }
.b24-tension-copy { display: grid; gap: 7px; }
.b24-tension-copy p { margin: 0; color: var(--b24-muted); max-width: 740px; }
.b24-tension-data { display: grid; gap: 9px; }
.b24-tension-data em { text-align: right; }
.b24-info-dot { display: grid; place-items: center; padding: 0; }
.b24-info-dot .b24-icon { width: 16px; height: 16px; }

/* Pulse */
.b24-pulse-section { margin-top: -2px; }
.b24-pulse-section .b24-container { padding: 20px 22px; border-radius: 18px; background: #fff; }
.b24-pulse-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.b24-pulse-head h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: clamp(23px, 3vw, 30px); letter-spacing: -.035em; }
.b24-pulse-head h2 .b24-icon { color: var(--b24-red); width: 24px; height: 24px; }
.b24-pulse-intro { margin: 7px 0 13px; color: var(--b24-muted); font-size: 14px; }
.b24-pulse-submit, .b24-pulse-more { border: 1px solid var(--b24-line); background: #fff; color: var(--b24-blue-dark); border-radius: 10px; padding: 8px 12px; font-weight: 750; cursor: pointer; }
.b24-pulse-item, .b24-pulse-empty { grid-template-columns: 58px minmax(0, 1fr); padding: 11px 0; }
.b24-pulse-item time, .b24-pulse-empty time { color: var(--b24-red); font-weight: 800; }
.b24-pulse-message { display: grid; gap: 3px; }
.b24-pulse-message > span, .b24-pulse-message > a { font-weight: 650; }
.b24-pulse-message small { color: var(--b24-muted); }
.b24-pulse-status { color: var(--b24-blue); }
.b24-pulse-item.is-extra { display: none; }
.b24-pulse-list.is-expanded .b24-pulse-item.is-extra { display: grid; }
.b24-pulse-more { justify-self: start; margin-top: 10px; }

/* News flow */
.b24-latest-primary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.b24-latest-primary .b24-card-news .b24-card-image { height: 190px; }
.b24-latest-primary .b24-card-news h3 { font-size: 18px; }
.b24-latest-grid { margin-top: 18px; }
.b24-ad-after-six { margin: 20px 0; }
.b24-card { border-radius: 16px; box-shadow: var(--b24-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.b24-card:hover { transform: translateY(-2px); border-color: #c9d6e5; box-shadow: 0 12px 28px rgba(28,49,76,.09); }
.b24-card h3 { font-weight: 750; }
.b24-card-cat { font-weight: 800; color: var(--b24-blue); }
.b24-card-meta { gap: 7px 13px; }
.b24-card-meta span, .b24-single-meta span, .b24-single-meta a, .b24-side-news-item span { display: inline-flex; align-items: center; gap: 5px; }
.b24-card-meta .b24-icon, .b24-side-news-item .b24-icon { width: 14px; height: 14px; }
.b24-editor-inline { margin: 24px 0; padding: 20px; background: #eaf2fc; border: 1px solid #ccdaea; border-radius: 18px; }
.b24-editor-inline .b24-section-head { margin-bottom: 14px; }
.b24-editor-inline h3 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.b24-editor-inline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.b24-editor-inline .b24-card { box-shadow: none; }

/* Archive and article */
.b24-archive-layout-wide .b24-archive-grid { grid-template-columns: 1fr; gap: 12px; }
.b24-archive-layout-wide .b24-card-compact .b24-card-link { grid-template-columns: 260px minmax(0, 1fr); }
.b24-archive-layout-wide .b24-card-compact .b24-card-image { height: 160px; }
.b24-archive-layout-wide .b24-card-compact h3 { font-size: 21px; }
.b24-single-layout { grid-template-columns: minmax(0, 1fr) 286px; gap: 22px; }
.b24-single-article { border-radius: 18px; padding: clamp(22px, 4vw, 42px); }
.b24-single-header h1 { max-width: 900px; font-size: clamp(32px, 4.5vw, 52px); }
.b24-single-meta { align-items: center; margin-bottom: 12px; }
.b24-single-meta .b24-icon { width: 16px; height: 16px; }
.b24-entry-content { max-width: 790px; font-size: 18px; line-height: 1.75; }
.b24-share-panel { margin-top: 24px; background: #f6f8fb; }
.b24-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b24-side-box { border-radius: 16px; box-shadow: var(--b24-shadow); }

/* Weather and traffic */
.b24-page-wrap.b24-service-wrap, .b24-service-wrap { max-width: 1240px; }
.b24-weather-page { border-radius: 18px; }
.b24-weather-hero { grid-template-columns: minmax(220px, .65fr) 1.35fr; }
.b24-weather-current small { color: var(--b24-muted); font-weight: 650; }
.b24-weather-facts { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.b24-day-card strong { display: flex; align-items: baseline; gap: 6px; }
.b24-day-card strong small { color: var(--b24-muted); font-size: 16px; font-weight: 700; }
.b24-traffic-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 18px; }
.b24-traffic-header h1 { margin: 0 0 8px; font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -.04em; }
.b24-traffic-header p { margin: 0; }
.b24-traffic-score { min-width: 230px; display: grid; grid-template-columns: auto auto; gap: 2px 12px; align-items: end; padding: 15px 18px; background: #fff; border: 1px solid var(--b24-line); border-radius: 16px; }
.b24-traffic-score > span { color: var(--b24-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.b24-traffic-score strong { grid-row: 1 / span 3; grid-column: 2; color: var(--b24-red); font-size: 48px; line-height: 1; }
.b24-traffic-score strong small { font-size: 18px; color: var(--b24-muted); }
.b24-traffic-score em { font-style: normal; font-weight: 750; }
.b24-traffic-score time { color: var(--b24-muted); font-size: 12px; }
.b24-traffic-map { min-height: 650px; margin: 0; border-radius: 18px; }
.b24-traffic-footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 14px; }
.b24-traffic-footer p { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; color: var(--b24-muted); font-size: 13px; }
.b24-traffic-footer i { width: 12px; height: 12px; border-radius: 50%; margin-left: 8px; }
.b24-traffic-footer i:first-child { margin-left: 0; }
.b24-traffic-footer .is-free { background: #33a852; }
.b24-traffic-footer .is-medium { background: #f4bd24; }
.b24-traffic-footer .is-heavy { background: #e33d46; }

@media (max-width: 1000px) {
  .b24-now-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b24-now-tension { grid-column: 1 / -1; }
  .b24-latest-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b24-single-layout { grid-template-columns: 1fr; }
  .b24-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b24-weather-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 760px) {
  .b24-container { width: min(100% - 24px, 1240px); }
  .b24-header-row { display: flex; min-height: 64px; padding: 7px 0; gap: 8px; }
  .b24-logo { width: min(180px, calc(100% - 144px)); height: 48px; }
  .b24-logo img { object-fit: contain; }
  .b24-header-actions { display: flex; width: auto; gap: 6px; }
  .b24-header-button { width: 40px; min-width: 40px; min-height: 40px; height: 40px; padding: 0; border-radius: 11px; }
  .b24-header-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .b24-header-button .b24-icon { width: 20px; height: 20px; }
  .b24-menu-toggle { display: inline-flex; }
  .b24-search-toggle { color: var(--b24-blue-dark); background: #fff; }
  .b24-search-toggle::before { display: none; }
  .b24-main-nav .b24-container { padding-bottom: 12px; }
  .b24-mobile-report { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin-top: 10px; border-radius: 11px; background: var(--b24-red); color: #fff; font-weight: 750; }
  .b24-mobile-report:hover { color: #fff; }
  .b24-now-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b24-now-tension { display: grid; grid-template-columns: 1fr; }
  .b24-tension-data em { text-align: left; }
  .b24-latest-primary, .b24-editor-inline-grid, .b24-related-grid { grid-template-columns: 1fr; }
  .b24-latest-primary .b24-card-news .b24-card-image { height: 210px; }
  .b24-editor-inline { padding: 16px; }
  .b24-archive-layout-wide .b24-card-compact .b24-card-link { grid-template-columns: 120px minmax(0, 1fr); }
  .b24-archive-layout-wide .b24-card-compact .b24-card-image { height: 124px; }
  .b24-archive-layout-wide .b24-card-compact h3 { font-size: 16px; }
  .b24-sidebar { grid-template-columns: 1fr; }
  .b24-weather-hero { grid-template-columns: 1fr; }
  .b24-weather-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .b24-daily-grid { display: flex; overflow-x: auto; }
  .b24-day-card { min-width: 145px; }
  .b24-traffic-header { display: grid; align-items: stretch; }
  .b24-traffic-score { min-width: 0; }
  .b24-traffic-map { min-height: 68vh; border-radius: 14px; }
  .b24-traffic-footer { align-items: stretch; flex-direction: column; }
}

@media (max-width: 440px) {
  .b24-logo { width: min(150px, calc(100% - 132px)); }
  .b24-now-grid { grid-template-columns: 1fr; }
  .b24-weather-facts { grid-template-columns: 1fr !important; }
}

/* v1.1 refinements */
.b24-logo { position: relative; gap: 4px; color: var(--b24-blue-dark); }
.b24-logo strong { color: var(--b24-red); position: relative; display: inline-flex; align-items: center; }
.b24-logo strong::after { content: ''; width: .38em; height: .38em; border: .08em solid currentColor; border-radius: 50%; margin-left: .08em; opacity: .8; }
.b24-add-news { background: var(--b24-red); }
.b24-add-news:hover { background: #c2262c; }
.b24-filter button.is-active { background: var(--b24-blue); }
.b24-kicker::before { background: var(--b24-red); }

.b24-now-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.b24-now-currency { grid-column: span 1; }
.b24-now-tension { grid-column: span 4; min-height: 156px; }
.b24-now-tension p { margin: 0; color: var(--b24-muted); max-width: 720px; font-size: 14px; line-height: 1.42; }
.b24-mini-scale { display: flex; gap: 4px; margin: -2px 0 2px; }
.b24-mini-scale i { display: block; height: 6px; flex: 1; border-radius: 999px; background: rgba(102,112,133,.22); }
.b24-mini-scale i.is-active { background: var(--b24-red); }
.b24-now-roads strong { color: var(--b24-red); }

.b24-latest-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.b24-latest-grid .b24-ad-after-eight { grid-column: 1 / -1; }
.b24-latest-list { background: #fff; border: 1px solid var(--b24-line); border-radius: 22px; padding: 18px; box-shadow: var(--b24-shadow); }
.b24-latest-list h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.03em; }
.b24-latest-list-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.b24-line-news { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--b24-line); align-items: start; }
.b24-line-news:nth-child(1), .b24-line-news:nth-child(2) { border-top: 0; }
.b24-line-news time { color: var(--b24-red); font-weight: 950; font-size: 13px; }
.b24-line-news span { font-weight: 800; line-height: 1.25; min-width: 0; }
.b24-line-news em { grid-column: 2; color: var(--b24-muted); font-size: 12px; font-style: normal; }

.b24-archive-layout-wide { display: block; }
.b24-archive-layout-wide .b24-archive-main { width: 100%; }
.b24-archive-layout-wide .b24-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b24-archive-layout-wide .b24-card-compact .b24-card-link { grid-template-columns: 210px minmax(0, 1fr); }
.b24-archive-layout-wide .b24-card-compact .b24-card-image { height: 140px; }
.b24-archive-layout-wide .b24-card-compact h3 { font-size: 18px; }

.b24-share-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 22px; padding: 12px 14px; background: #f8fbff; border: 1px solid var(--b24-line); border-radius: 18px; }
.b24-share-panel > span { color: var(--b24-muted); font-weight: 850; }
.b24-share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.b24-share-button { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #fff; font-size: 0; transition: transform .15s ease, box-shadow .15s ease; }
.b24-share-button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(21,32,51,.16); }
.b24-share-button svg { width: 23px; height: 23px; fill: currentColor; }
.b24-share-button strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.b24-share-vk { background: #0077ff; }
.b24-share-ok { background: #ee8208; }
.b24-share-telegram { background: #229ed9; }
.b24-share-max { background: #111827; }

.b24-post-section { margin-top: 26px; background: #fff; border: 1px solid var(--b24-line); border-radius: 26px; padding: clamp(18px, 3vw, 26px); box-shadow: var(--b24-shadow); }
.b24-section-link { color: var(--b24-blue); font-weight: 900; }
.b24-under-list { grid-template-columns: 1fr; }
.b24-under-list .b24-line-news:nth-child(2) { border-top: 1px solid var(--b24-line); }

.b24-service-wrap { max-width: 1060px; }
.b24-service-header p { color: var(--b24-muted); font-size: 18px; margin: 0 0 22px; }
.b24-weather-hero { display: grid; grid-template-columns: minmax(240px, .75fr) 1.25fr; gap: 18px; padding: 22px; border-radius: 24px; background: linear-gradient(135deg, var(--b24-blue-soft), #fff); border: 1px solid var(--b24-line); margin: 20px 0 24px; }
.b24-weather-hero > div { display: grid; gap: 6px; align-content: center; }
.b24-weather-hero > div span { color: var(--b24-muted); font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.b24-weather-hero > div strong { font-size: clamp(52px, 8vw, 86px); line-height: 1; letter-spacing: -.07em; color: var(--b24-blue-dark); }
.b24-weather-hero > div em { font-style: normal; font-weight: 850; color: var(--b24-red); }
.b24-weather-hero ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.b24-weather-hero li { background: #fff; border: 1px solid var(--b24-line); border-radius: 16px; padding: 12px; display: grid; gap: 4px; }
.b24-weather-hero li b { color: var(--b24-muted); font-size: 13px; }
.b24-weather-hero li span { font-weight: 950; }
.b24-weather-hero p { grid-column: 1 / -1; margin: 0; color: var(--b24-muted); font-size: 13px; }
.b24-weather-block { margin-top: 26px; }
.b24-weather-block h2, .b24-service-text h2 { letter-spacing: -.03em; }
.b24-hourly-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.b24-hour-card, .b24-day-card { background: #fff; border: 1px solid var(--b24-line); border-radius: 18px; padding: 14px; display: grid; gap: 6px; min-width: 132px; }
.b24-hour-card time, .b24-day-card time { color: var(--b24-muted); font-size: 13px; font-weight: 900; }
.b24-hour-card strong, .b24-day-card strong { font-size: 22px; color: var(--b24-blue-dark); }
.b24-hour-card span, .b24-day-card span { font-size: 13px; font-weight: 800; }
.b24-hour-card em, .b24-day-card em { color: var(--b24-muted); font-size: 12px; font-style: normal; }
.b24-daily-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.b24-service-text { margin-top: 28px; color: var(--b24-muted); }
.b24-service-warning { padding: 14px 16px; border: 1px solid #fed7aa; background: #fff7ed; color: #9a3412; border-radius: 16px; margin: 18px 0; }
.b24-traffic-map { min-height: 620px; border-radius: 24px; overflow: hidden; border: 1px solid var(--b24-line); background: #e5e7eb; margin: 18px 0; }
.b24-traffic-actions { margin: 18px 0 8px; }

@media (max-width: 1100px) {
  .b24-now-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b24-now-tension { grid-column: span 2; }
  .b24-daily-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .b24-header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo menu" "actions actions"; gap: 10px 12px; padding: 12px 0; min-height: 0; }
  .b24-logo { grid-area: logo; min-width: 0; font-size: 28px; }
  .b24-menu-toggle { grid-area: menu; justify-self: end; min-height: 44px; }
  .b24-header-actions { grid-area: actions; display: grid; grid-template-columns: minmax(0, 1fr) 48px; width: 100%; gap: 8px; }
  .b24-add-news { width: 100%; min-height: 44px; padding: 10px 12px; }
  .b24-search-toggle { width: 48px; min-width: 48px; min-height: 44px; padding: 0; overflow: hidden; color: transparent; position: relative; border-radius: 999px; }
  .b24-search-toggle::before { content: '🔍'; color: #fff; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; }
  .b24-search-form { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .b24-search-form input, .b24-search-form button { width: 100%; }
  .b24-now-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b24-now-currency { grid-column: span 1; }
  .b24-now-tension { grid-column: 1 / -1; }
  .b24-latest-list-inner { grid-template-columns: 1fr; }
  .b24-line-news:nth-child(2) { border-top: 1px solid var(--b24-line); }
  .b24-archive-layout-wide .b24-archive-grid { grid-template-columns: 1fr; }
  .b24-archive-layout-wide .b24-card-compact .b24-card-link { grid-template-columns: 110px minmax(0, 1fr); }
  .b24-archive-layout-wide .b24-card-compact .b24-card-image { height: 112px; }
  .b24-weather-hero { grid-template-columns: 1fr; padding: 18px; }
  .b24-weather-hero ul { grid-template-columns: 1fr; }
  .b24-daily-grid { grid-template-columns: 1fr; }
  .b24-traffic-map { min-height: 460px; }
}

@media (max-width: 430px) {
  .b24-now-grid { grid-template-columns: 1fr; }
  .b24-now-currency, .b24-now-tension { grid-column: auto; }
  .b24-archive-layout-wide .b24-card-compact .b24-card-link { grid-template-columns: 92px minmax(0, 1fr); }
  .b24-share-panel { align-items: flex-start; }
  .b24-share-buttons { width: 100%; }
  .b24-share-button { flex: 1 1 42px; }
}

/* v1.2 precedence over legacy refinements */
.b24-line-news { grid-template-columns: 100px minmax(0, 1fr); }
.b24-logo { display: block; width: 245px; height: 54px; letter-spacing: 0; }
.b24-logo-footer { width: auto; height: auto; display: inline-flex; align-items: baseline; gap: 3px; font-size: 30px; font-weight: 900; }
.b24-logo::after, .b24-logo strong::after { display: none; }
.b24-now-tension { grid-column: 1 / -1; min-height: 126px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .45fr); align-items: center; gap: 22px; padding: 20px 22px; }
.b24-now-roads strong { color: var(--b24-text); }
.b24-archive-layout-wide .b24-archive-grid { grid-template-columns: 1fr; gap: 12px; }
.b24-archive-layout-wide .b24-card-compact .b24-card-link { grid-template-columns: 260px minmax(0, 1fr); }
.b24-archive-layout-wide .b24-card-compact .b24-card-image { height: 160px; }
.b24-service-wrap, .b24-page-wrap.b24-service-wrap { max-width: 1240px; }
.b24-weather-hero { grid-template-columns: minmax(220px, .65fr) 1.35fr; }
.b24-weather-facts { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.b24-traffic-map { min-height: 650px; margin: 0; border-radius: 18px; }

@media (max-width: 1100px) {
  .b24-now-tension { grid-column: 1 / -1; }
  .b24-archive-layout-wide .b24-archive-grid { grid-template-columns: 1fr; }
  .b24-weather-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 760px) {
  .b24-header-row { display: flex; min-height: 64px; padding: 7px 0; gap: 8px; }
  .b24-logo { width: min(180px, calc(100% - 144px)); height: 48px; min-width: 0; }
  .b24-header-actions { display: flex; width: auto; gap: 6px; }
  .b24-header-button, .b24-add-news, .b24-search-toggle, .b24-menu-toggle { width: 40px; min-width: 40px; min-height: 40px; height: 40px; padding: 0; border-radius: 11px; }
  .b24-menu-toggle { display: inline-flex; }
  .b24-search-toggle { color: var(--b24-blue-dark); background: #fff; position: static; overflow: visible; }
  .b24-search-toggle::before { display: none; }
  .b24-now-tension { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .b24-archive-layout-wide .b24-card-compact .b24-card-link { grid-template-columns: 120px minmax(0, 1fr); }
  .b24-archive-layout-wide .b24-card-compact .b24-card-image { height: 124px; }
  .b24-weather-hero { grid-template-columns: 1fr; }
  .b24-weather-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .b24-daily-grid { display: flex; overflow-x: auto; }
  .b24-traffic-map { min-height: 68vh; }
}

@media (max-width: 440px) {
  .b24-logo { width: min(150px, calc(100% - 132px)); }
  .b24-now-tension { grid-column: auto; }
  .b24-archive-layout-wide .b24-card-compact .b24-card-link { grid-template-columns: 108px minmax(0, 1fr); }
  .b24-weather-facts { grid-template-columns: 1fr !important; }
}
