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

:root {
  --color-bg: #f5f6f7;
  --color-surface: #ffffff;
  --color-surface-soft: #fafafa;
  --color-text: #17191c;
  --color-muted: #68707a;
  --color-faint: #8c939b;
  --color-line: #e2e5e9;
  --color-line-strong: #cfd4da;
  --color-nav: #090d12;
  --color-nav-soft: #141b24;
  --color-accent: #d71920;
  --color-accent-dark: #a90f15;
  --color-accent-soft: #fff1f2;
  --font-sans: Inter, Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.45rem;
  --fs-2xl: 2rem;
  --fs-3xl: 3.15rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shell: 1180px;
  --article: 740px;
  --shadow-soft: 0 18px 40px rgba(9, 13, 18, 0.08);
  --shadow-panel: 0 22px 70px rgba(9, 13, 18, 0.16);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.5;
}

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

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

a:hover {
  color: var(--color-accent);
}

button,
input {
  font: inherit;
}

button,
a,
input {
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.38);
}

.site-shell {
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
}

.page-main {
  padding: var(--space-8) 0 var(--space-10);
}

.breaking {
  background: var(--color-accent);
  color: #ffffff;
}

.breaking[hidden] {
  display: none;
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 36px;
  font-size: var(--fs-sm);
}

.breaking-label {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.breaking-text a {
  color: #ffffff;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-nav);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: var(--space-5);
  min-height: 82px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  line-height: 1;
}

.logo img,
.footer-logo img {
  display: block;
  width: auto;
  object-fit: contain;
}

.logo img {
  height: 64px;
  max-width: 260px;
}

.footer-logo img {
  height: 46px;
  max-width: 190px;
}

.tagline {
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.nav {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #25476f;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 42px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-links a {
  flex: 0 0 auto;
  padding: 12px 11px;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  border-bottom-color: var(--color-accent);
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

.nav-search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-self: end;
}

.nav-search-input {
  width: 250px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: var(--fs-sm);
}

.nav-search-input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.nav-search,
.nav-search-submit {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-search {
  width: 38px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.25rem;
}

.nav-search-submit,
.btn-primary {
  padding: 8px 14px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.header-social {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-social a {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.social-icon {
  position: relative;
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  font-style: normal;
  line-height: 1;
}

.social-icon-facebook {
  color: #1877f2;
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  text-transform: lowercase;
}

.social-icon-instagram {
  border-radius: 7px;
  background: radial-gradient(circle at 30% 105%, #feda75 0 18%, #fa7e1e 30%, #d62976 52%, #962fbf 72%, #4f5bd5 100%);
}

.social-icon-instagram::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 5px;
}

.social-icon-instagram::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #ffffff;
}

.social-icon-tiktok {
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 900;
  text-shadow: -1px 0 #25f4ee, 1px 0 #fe2c55;
}

.header-social a:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: var(--color-accent);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 800;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: none;
  width: min(360px, 92vw);
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
}

.search-suggestions.visible {
  display: block;
}

.search-suggestions a,
.search-suggestions .no-results {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text);
  font-size: var(--fs-sm);
}

.search-suggestions a:last-child,
.search-suggestions .no-results:last-child {
  border-bottom: 0;
}

.search-suggestions span {
  display: block;
  margin-bottom: 3px;
  color: var(--color-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker,
.card-cat {
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-text);
}

.section-heading h1,
.section-heading h2,
.page-hero h1,
.not-found-panel h1 {
  font-size: var(--fs-2xl);
  line-height: 1.1;
}

.home-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) 360px;
  gap: var(--space-6);
  align-items: stretch;
}

.hero-card {
  display: grid;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-nav);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.hero-card a {
  display: grid;
  min-height: inherit;
  color: inherit;
}

.hero-card img,
.hero-placeholder {
  grid-area: 1 / 1;
  height: 100%;
  min-height: 520px;
}

.hero-placeholder,
.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111820, #343a40);
  color: rgba(255, 255, 255, 0.42);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-content {
  grid-area: 1 / 1;
  align-self: end;
  padding: var(--space-8);
  background: linear-gradient(180deg, rgba(9, 13, 18, 0.08), rgba(9, 13, 18, 0.86));
}

.hero-content h2 {
  max-width: 760px;
  margin: var(--space-3) 0;
  font-size: var(--fs-3xl);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero-content p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-lg);
}

.meta-line,
.card-meta {
  color: var(--color-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.hero-content .meta-line {
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.68);
}

.today-panel,
.rail-section,
.policy-article,
.not-found-panel,
.editorial-info,
.newsletter-panel,
.empty-state {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.today-panel,
.rail-section {
  padding: var(--space-5);
}

.today-panel .section-kicker,
.rail-section .section-kicker {
  margin-bottom: var(--space-4);
}

.rank-list {
  display: grid;
  gap: var(--space-4);
}

.rank-item {
  display: grid;
  grid-template-columns: 34px 72px 1fr;
  gap: var(--space-3);
  align-items: start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-line);
}

.rank-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rank-num {
  color: var(--color-accent);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.rank-thumb,
.thumb-placeholder {
  aspect-ratio: 1 / 0.78;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.rank-title,
.related-item h3,
.card-title {
  font-size: var(--fs-sm);
  line-height: 1.35;
}

.top-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.news-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.news-card img,
.news-card .thumb-placeholder {
  aspect-ratio: 16 / 10;
}

.news-card-body {
  padding: var(--space-4);
}

.news-card h2,
.news-card h3 {
  margin: var(--space-2) 0;
  font-size: 1.05rem;
  line-height: 1.32;
}

.news-card p,
.list-item p,
.policy-article p,
.not-found-panel p,
.newsletter-panel p,
.empty-state p {
  color: var(--color-muted);
}

.content-grid,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-8);
  align-items: start;
  margin-top: var(--space-8);
}

.editorial-list {
  display: grid;
  gap: var(--space-4);
}

.list-item {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-line);
}

.list-item:first-child {
  padding-top: 0;
}

.list-item img,
.list-item .thumb-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
}

.list-item h2,
.list-item h3 {
  margin: var(--space-2) 0;
  font-size: var(--fs-xl);
  line-height: 1.18;
}

.compact-list .list-item,
.search-results .list-item {
  grid-template-columns: 170px minmax(0, 1fr);
}

.rail {
  display: grid;
  gap: var(--space-4);
}

.category-blocks,
.latest-section,
.editorial-info,
.newsletter-panel {
  margin-top: var(--space-10);
}

.editorial-info {
  padding: var(--space-8);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.info-grid article {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
}

.info-grid h3 {
  font-size: var(--fs-xl);
}

.info-grid p {
  color: var(--color-muted);
}

.category-block-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.category-block {
  min-height: 220px;
  padding: var(--space-5);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.category-block h3 {
  margin: var(--space-2) 0 var(--space-4);
  font-size: var(--fs-xl);
}

.category-block ul {
  display: grid;
  gap: var(--space-3);
  list-style: none;
}

.newsletter-panel {
  padding: var(--space-8);
  background: var(--color-nav);
  color: #ffffff;
}

.newsletter-panel h2 {
  margin: var(--space-2) 0;
  font-size: var(--fs-2xl);
}

.newsletter-panel p:not(.section-kicker) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

.page-hero {
  padding: var(--space-8);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.compact-hero h1,
.cat-header-title {
  margin: var(--space-2) 0;
  font-size: var(--fs-3xl);
  line-height: 1.02;
}

.cat-header-desc {
  max-width: 720px;
  color: var(--color-muted);
  font-size: var(--fs-lg);
}

.market-ticker {
  margin: var(--space-5) 0 var(--space-7);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.market-ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink);
  font-size: var(--fs-xs);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-ticker-head small {
  color: var(--color-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.market-ticker-widget {
  min-height: 48px;
  background: #ffffff;
}

.football-ticker {
  margin: var(--space-5) 0 var(--space-7);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.football-ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink);
  font-size: var(--fs-xs);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.football-ticker-head small {
  color: var(--color-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.football-match-strip {
  display: grid;
  grid-auto-columns: minmax(168px, 192px);
  grid-auto-flow: column;
  gap: 12px;
  padding: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  background: #f7f8fa;
}

.football-match-card {
  min-height: 168px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #ffffff;
  scroll-snap-align: start;
}

.football-teams {
  display: grid;
  gap: 8px;
}

.football-teams div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--color-ink);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.football-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f2f4f7;
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
}

.football-badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.football-score {
  margin-top: 14px;
  color: var(--color-ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.football-status {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.football-league {
  margin-top: 10px;
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.football-loading {
  padding: 18px;
  color: var(--color-muted);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.feature-card {
  margin-bottom: var(--space-6);
}

.feature-card .news-card-body {
  padding: var(--space-6);
}

.feature-card h2 {
  font-size: var(--fs-2xl);
}

.cat-menu {
  display: grid;
  gap: 2px;
}

.cat-menu-item {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.cat-menu-item:hover,
.cat-menu-item.active {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.article-shell {
  display: block;
  max-width: var(--article);
}

.article-header {
  margin-bottom: var(--space-6);
}

.article-title {
  margin: var(--space-3) 0;
  font-size: var(--fs-3xl);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.article-lead {
  color: var(--color-muted);
  font-size: 1.22rem;
  line-height: 1.65;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.meta-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.meta-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-nav);
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 900;
}

.meta-name {
  font-weight: 800;
}

.meta-date,
.meta-read {
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

.article-media {
  margin: 0 0 var(--space-8);
}

.article-img,
.article-media .thumb-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--color-nav-soft);
}

.article-img[src=""] {
  display: none;
}

.article-caption {
  margin-top: var(--space-2);
  color: var(--color-faint);
  font-size: var(--fs-xs);
}

.article-text {
  font-size: 1.06rem;
  line-height: 1.9;
}

.article-text p,
.article-text ul,
.article-text ol {
  margin-bottom: var(--space-5);
}

.article-text h2,
.article-text h3 {
  margin: var(--space-8) 0 var(--space-3);
  line-height: 1.2;
}

.article-text h2 {
  font-size: var(--fs-xl);
}

.article-text h3 {
  font-size: var(--fs-lg);
}

.article-text a {
  color: var(--color-accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-quote {
  margin: var(--space-8) 0;
  padding: var(--space-5) var(--space-6);
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface-soft);
  color: var(--color-text);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.65;
}

.share-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
}

.share-label {
  color: var(--color-muted);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.share-btn {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
}

.post-article-block {
  margin-top: var(--space-10);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.related-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-line);
}

.related-item:last-child {
  border-bottom: 0;
}

.policy-page {
  display: grid;
  justify-items: center;
}

.policy-page .breadcrumb,
.policy-article {
  width: min(var(--article), 100%);
}

.policy-article {
  padding: var(--space-8);
}

.policy-article h1 {
  margin: var(--space-2) 0 var(--space-6);
  font-size: var(--fs-3xl);
}

.policy-article h2 {
  margin: var(--space-8) 0 var(--space-3);
  font-size: var(--fs-xl);
}

.policy-article p {
  margin-bottom: var(--space-4);
  font-size: var(--fs-md);
  line-height: 1.8;
}

.policy-article code {
  padding: 2px 5px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

.not-found-panel {
  padding: var(--space-10);
  text-align: center;
}

.not-found-panel h1 {
  margin: var(--space-2) 0 var(--space-3);
}

.not-found-search {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-6) auto var(--space-4);
}

.not-found-search input {
  width: min(360px, 100%);
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
}

.page-search-form {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.page-search-form input {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
}

.page-search-form button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.empty-state {
  display: none;
  padding: var(--space-8);
}

.empty-state.visible {
  display: block;
}

.article-empty {
  margin-top: var(--space-6);
}

.footer {
  margin-top: var(--space-10);
  background: var(--color-nav);
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--space-8);
  padding: var(--space-10) 0 var(--space-6);
}

.footer-brand p,
.footer-copy {
  color: rgba(255, 255, 255, 0.58);
  font-size: var(--fs-sm);
}

.footer-brand p {
  max-width: 340px;
  margin-top: var(--space-4);
}

.footer-brand .footer-note {
  margin-top: var(--space-3);
  color: rgba(255, 255, 255, 0.42);
}

.footer-logo {
  font-size: 1.25rem;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: var(--space-2);
}

.footer-col h2 {
  margin-bottom: var(--space-2);
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col a,
.footer-col button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font: inherit;
  font-size: var(--fs-sm);
  text-align: left;
  cursor: pointer;
}

.footer-col a:hover,
.footer-col button:hover {
  color: #ffffff;
}

.footer-contact .social-links {
  margin-top: var(--space-2);
}

.social-links {
  display: flex;
  gap: var(--space-2);
}

.footer-col .social-link {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.footer-col .social-link:hover .social-icon-facebook,
.header-social a:hover .social-icon-facebook {
  color: #ffffff;
}

.footer-col .social-link:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: var(--color-accent);
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  max-width: 980px;
  margin: 0 auto;
  padding: var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner strong,
.cookie-modal strong {
  color: var(--color-text);
  font-size: var(--fs-sm);
}

.cookie-banner p,
.cookie-option p {
  margin-top: var(--space-1);
  color: var(--color-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--color-accent);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cookie-btn {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 800;
  cursor: pointer;
}

.cookie-btn.primary {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #ffffff;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 13, 18, 0.52);
}

.cookie-modal.visible {
  display: flex;
}

.cookie-modal-panel {
  width: min(520px, 100%);
  max-height: min(620px, calc(100vh - 40px));
  overflow: auto;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.cookie-modal-header h2 {
  font-size: var(--fs-lg);
}

.cookie-close {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-line);
}

.cookie-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.cookie-option.locked {
  opacity: 0.82;
}

@media (max-width: 1024px) {
  .home-lead,
  .content-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .rail,
  .cat-sidebar,
  .article-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-shell {
    width: min(100% - 32px, var(--shell));
  }

  .masthead {
    grid-template-columns: 1fr auto auto;
    min-height: auto;
    padding: var(--space-4) 0;
  }

  .tagline {
    grid-column: 1 / -1;
    order: 3;
  }

  .nav-search-form {
    grid-column: 1 / -1;
    order: 4;
    justify-self: stretch;
  }

  .header-social {
    justify-self: end;
  }

  .nav-search-input {
    width: 100%;
  }

  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
  }

  .nav {
    display: none;
  }

  .site-header:has(.nav-toggle:checked) .nav {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2) 0;
    overflow: visible;
  }

  .nav-links a {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-card,
  .hero-card a,
  .hero-card img,
  .hero-placeholder {
    min-height: 420px;
  }

  .hero-content {
    padding: var(--space-6);
  }

  .hero-content h2,
  .article-title,
  .compact-hero h1,
  .cat-header-title,
  .policy-article h1 {
    font-size: 2.25rem;
  }

  .top-strip,
  .category-block-grid,
  .info-grid,
  .related-grid,
  .rail,
  .cat-sidebar,
  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .list-item,
  .compact-list .list-item,
  .search-results .list-item {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 24px, var(--shell));
  }

  .page-main {
    padding-top: var(--space-5);
  }

  .logo img {
    height: 52px;
    max-width: 210px;
  }

  .header-social a {
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
  }

  .breaking-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-2) 0;
  }

  .hero-card,
  .hero-card a,
  .hero-card img,
  .hero-placeholder {
    min-height: 360px;
  }

  .hero-content,
  .page-hero,
  .editorial-info,
  .policy-article,
  .not-found-panel,
  .newsletter-panel {
    padding: var(--space-5);
  }

  .hero-content h2,
  .article-title,
  .compact-hero h1,
  .cat-header-title,
  .policy-article h1 {
    font-size: 1.9rem;
  }

  .hero-content p,
  .article-lead,
  .cat-header-desc {
    font-size: var(--fs-md);
  }

  .list-item,
  .compact-list .list-item,
  .search-results .list-item {
    grid-template-columns: 1fr;
  }

  .article-meta,
  .not-found-search,
  .page-search-form,
  .cookie-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-search-form,
  .page-search-form input,
  .page-search-form button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Home page modern media layout */
body[data-page="home"] .page-main {
  display: grid;
  gap: var(--space-8);
}

body[data-page="home"] .home-lead,
body[data-page="home"] .top-strip,
body[data-page="home"] .content-grid,
body[data-page="home"] .category-block-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: 0;
}

body[data-page="home"] .hero-card,
body[data-page="home"] .hero-card a,
body[data-page="home"] .hero-card img,
body[data-page="home"] .hero-placeholder {
  min-height: 430px;
}

body[data-page="home"] .hero-content {
  padding: var(--space-5);
}

body[data-page="home"] .hero-content h1 {
  max-width: 820px;
  margin: var(--space-3) 0;
  color: #ffffff;
  font-size: 2.15rem;
  line-height: 1.03;
  letter-spacing: -0.01em;
}

body[data-page="home"] .top-news-section,
body[data-page="home"] .latest-section,
body[data-page="home"] .category-blocks,
body[data-page="home"] .editorial-info,
body[data-page="home"] .newsletter-panel {
  margin-top: 0;
}

body[data-page="home"] .compact-heading {
  margin-bottom: var(--space-4);
}

body[data-page="home"] .top-strip .news-card h2,
body[data-page="home"] .top-strip .news-card h3 {
  font-size: 1.08rem;
}

body[data-page="home"] .today-panel {
  align-self: start;
}

body[data-page="home"] .category-block {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

body[data-page="home"] .category-visual {
  position: relative;
  display: block;
  overflow: hidden;
  color: #ffffff;
}

body[data-page="home"] .category-visual img,
body[data-page="home"] .category-visual .thumb-placeholder {
  aspect-ratio: 16 / 9;
  transition: transform 0.2s ease;
}

body[data-page="home"] .category-visual:hover img,
body[data-page="home"] .category-visual:hover .thumb-placeholder {
  transform: scale(1.03);
}

body[data-page="home"] .category-visual span {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  background: rgba(9, 13, 18, 0.76);
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="home"] .category-block-body {
  padding: var(--space-5);
}

body[data-page="home"] .category-block-body h3 {
  margin: var(--space-2) 0 var(--space-4);
}

@media (min-width: 700px) {
  body[data-page="home"] .top-strip,
  body[data-page="home"] .category-block-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .hero-content {
    padding: var(--space-8);
  }

  body[data-page="home"] .hero-content h1 {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  body[data-page="home"] .page-main {
    gap: var(--space-10);
  }

  body[data-page="home"] .top-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="home"] .content-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--space-8);
  }

  body[data-page="home"] .category-block-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="home"] .today-panel {
    position: sticky;
    top: 156px;
  }

  body[data-page="home"] .hero-card,
  body[data-page="home"] .hero-card a,
  body[data-page="home"] .hero-card img,
  body[data-page="home"] .hero-placeholder {
    min-height: 560px;
  }

  body[data-page="home"] .hero-content h1 {
    font-size: 3.45rem;
  }
}
