/* Журнал «Дагестан» — dagjur.com */

@font-face {
  font-family: "DIN Pro";
  src:
    local("DIN Pro"),
    local("DINPro"),
    local("DIN Pro Regular"),
    url("../assets/fonts/DINPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DIN Pro";
  src:
    local("DIN Pro Medium"),
    local("DINPro-Medium"),
    url("../assets/fonts/DINPro-Regular.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DIN Pro";
  src:
    local("DIN Pro"),
    local("DINPro"),
    url("../assets/fonts/DINPro-Regular.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DIN Pro";
  src:
    local("DIN Pro Bold"),
    local("DINPro-Bold"),
    url("../assets/fonts/DINPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-black: #111111;
  --color-white: #ffffff;
  --color-bg: #f6f3ec;
  --color-paper: #fdfcf9;
  --color-muted: #666666;
  --color-border: #d9d3c7;
  --color-visited: #444444;
  --color-hover: #000000;
  --font-sans: "DIN Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "DIN Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-height: calc(76px * var(--hdr-scale));
  --hdr-scale: 0.8;
  --hdr-pill-height: calc(34px * var(--hdr-scale));
  --site-scale: 1.4;
  --shell-radius: calc(60px * var(--hdr-scale));
  --container-wide: 1120px;
  --transition: 0.25s ease;
  --header-glass-bg: rgba(246, 243, 236, 0.78);
  --header-glass-bg-scrolled: rgba(246, 243, 236, 0.92);
  --header-glass-blur: blur(16px) saturate(160%);
  --header-glass-border: rgba(17, 17, 17, 0.07);
  --color-surface: #ebe5da;
  --color-surface-strong: #e4ddd2;
  --color-surface-muted: #f0ebe3;
  --footer-bg: #fdfcf9;
  --block-radius: 14px;
  --page-block-gap: 0.5rem;
  --card-media-gap: clamp(0.4rem, 0.7vw, 0.55rem);
  --card-media-bg: #dbd6d6;
  --radius-sm: var(--block-radius);
  --btn-pill-bg: #262626;
  --btn-pill-bg-hover: #e4e0d8;
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-black: #efefef;
  --color-white: #ffffff;
  --color-bg: #111111;
  --color-paper: #1a1a1a;
  --color-muted: #9a9a9a;
  --color-border: #333333;
  --color-visited: #b8b8b8;
  --color-hover: #ffffff;
  --header-glass-bg: rgba(17, 17, 17, 0.78);
  --header-glass-bg-scrolled: rgba(17, 17, 17, 0.92);
  --header-glass-border: rgba(255, 255, 255, 0.1);
  --color-surface: #1a1a1a;
  --color-surface-strong: #222222;
  --color-surface-muted: #161616;
  --footer-bg: #1a1a1a;
  --card-media-bg: #2c2c2c;
  --btn-pill-bg: #dcdcdc;
  --btn-pill-bg-hover: #333333;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (min-width: 992px) {
  html {
    zoom: var(--site-scale);
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  overflow-x: clip;
}

.logo-img--site {
  object-fit: contain;
  filter: brightness(0);
}

[data-theme="dark"] .logo-img--site {
  filter: brightness(0) invert(1);
}

.logo-img--simple {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-black);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--color-hover);
  opacity: 0.75;
}

a:active {
  opacity: 0.55;
}

a:visited {
  color: var(--color-visited);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0;
}

.container-wide {
  --container-gutter: 1.25rem;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

/* Единое закругление блоков и карточек (как на главной) */
.article-figure,
.article-figure img,
.latest-card-image,
.latest-card-image img,
.latest-card-media,
.news-card-image,
.news-card-image img,
.news-card-media,
.mega-feature-card,
.mega-feature-card-visual,
.mega-feature-card-visual img,
.home-issue-showcase,
.home-issue-cover,
.home-issue-thumb-image,
.home-feed-inline-box,
.hero-cover-image,
.wide-banner,
.chart-block,
.chart-block img,
.video-player-wrap,
.data-table-wrap,
.map-placeholder,
.contact-map,
.contact-card,
.contact-requisites,
.contact-form-panel,
.sub-card,
.sub-form-panel,
.sub-info-panel,
.archive-item img,
.issue-detail-cover,
.issue-detail-cover img,
.issue-detail-thumb-image,
.issue-detail-thumb-image img,
.widget-issue img,
.project-card-photo img,
.container-wide .article-body img {
  border-radius: var(--block-radius);
}

/* Контейнеры медиа: обрезка по скруглению */
.video-player-wrap,
.issue-detail-cover,
.map-placeholder,
.contact-map,
.wide-banner,
.mega-feature-card,
.article-figure {
  overflow: hidden;
}

/* Закругление кнопок — как у карточек и баннеров */
.btn-dag,
.btn-dag-outline,
.filter-btn,
.issue-promo-btn,
.nav-toggle,
.back-to-top {
  border-radius: var(--radius-sm);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.divider {
  border: 0;
  border-top: 1px solid var(--color-black);
  margin: 0;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: var(--color-paper);
  color: var(--color-black);
  border-color: var(--color-border);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: var(--color-paper);
  color: var(--color-black);
  border-color: var(--color-muted);
  box-shadow: none;
}

/* ===== HEADER (Frieze-style — одна строка) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: transparent;
  border-bottom: none;
  transition: box-shadow var(--transition);
  overflow: visible;
}

/* Единый матовый слой: хедер + mega-menu */
.header-glass {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--header-height);
  background: var(--header-glass-bg);
  backdrop-filter: var(--header-glass-blur);
  -webkit-backdrop-filter: var(--header-glass-blur);
  border-bottom: 1px solid var(--header-glass-border);
  border-radius: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transition: height 0.32s ease, background var(--transition), border-radius 0.32s ease;
}

.site-header.is-scrolled .header-glass {
  background: var(--header-glass-bg-scrolled);
}

.site-header.is-scrolled:not(.mega-open) {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.site-header.mega-open {
  box-shadow: none;
}

.site-header.mega-open .header-glass {
  border-bottom-left-radius: var(--shell-radius);
  border-bottom-right-radius: var(--shell-radius);
}

.site-header.search-open {
  box-shadow: none;
}

.site-header.search-open .header-glass {
  border-bottom: 1px solid var(--header-glass-border);
}

.header-frieze {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(1rem * var(--hdr-scale));
  min-height: var(--header-height);
  position: relative;
  z-index: 2;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: calc(0.55rem * var(--hdr-scale));
  flex-shrink: 0;
  min-width: 0;
}

.header-age-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: calc(var(--hdr-pill-height) + 4px);
  min-height: calc(var(--hdr-pill-height) + 4px);
  min-width: calc(var(--hdr-pill-height) + 4px);
  padding: 0 calc(0.5rem * var(--hdr-scale));
  border: 2px solid var(--color-black);
  border-radius: 999px;
  background: transparent;
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: calc(0.8125rem * var(--hdr-scale));
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-black) !important;
  flex-shrink: 0;
}

.site-logo:hover {
  opacity: 1;
}

.site-logo--img {
  flex-direction: row;
  align-items: center;
}

.logo-img--simple {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-img {
  display: block;
  width: 96px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.site-logo .logo-img--site {
  width: calc(42px * var(--hdr-scale));
  height: calc(42px * var(--hdr-scale));
}

.logo-img--footer.logo-img--site {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
}

.footer-logo--img {
  display: inline-block;
}

.logo-word {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
}

.logo-mark {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: calc(0.875rem * var(--hdr-scale));
  flex-shrink: 0;
}

.btn-signin {
  display: none;
  box-sizing: border-box;
  height: var(--hdr-pill-height);
  min-height: var(--hdr-pill-height);
  padding: 0 calc(0.85rem * var(--hdr-scale));
  background: var(--btn-pill-bg);
  color: var(--color-bg) !important;
  font-family: var(--font-sans);
  font-size: calc(0.8125rem * var(--hdr-scale));
  font-weight: 700;
  line-height: var(--hdr-pill-height);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}

.btn-signin:hover {
  opacity: 1;
  color: var(--color-bg) !important;
}

.theme-toggle {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: calc(3px * var(--hdr-scale));
  border-radius: 999px;
}

.theme-toggle-track {
  position: relative;
  display: block;
  width: calc(66px * var(--hdr-scale));
  height: calc(34px * var(--hdr-scale));
  border-radius: 999px;
  background: #eceae4;
  box-shadow: inset 0 1px 2px rgba(17, 17, 17, 0.1);
  transition: background 0.28s ease, box-shadow 0.28s ease;
}

[data-theme="dark"] .theme-toggle-track {
  background: #1f1f1f;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.theme-toggle-knob {
  position: absolute;
  top: calc(3px * var(--hdr-scale));
  left: calc(100% - 31px * var(--hdr-scale));
  width: calc(28px * var(--hdr-scale));
  height: calc(28px * var(--hdr-scale));
  border-radius: 50%;
  background: linear-gradient(180deg, #343434 0%, #1f1f1f 100%);
  box-shadow: 0 1px 3px rgba(17, 17, 17, 0.28);
  transition: left 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

[data-theme="dark"] .theme-toggle-knob {
  left: calc(3px * var(--hdr-scale));
  background: linear-gradient(180deg, #ffffff 0%, #ededed 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.theme-toggle-icon {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(28px * var(--hdr-scale));
  height: calc(28px * var(--hdr-scale));
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.theme-toggle-icon--sun {
  left: calc(7px * var(--hdr-scale));
  color: #1f1f1f;
  opacity: 1;
}

.theme-toggle-icon--moon {
  right: calc(6px * var(--hdr-scale));
  color: #ffffff;
  opacity: 0;
}

[data-theme="dark"] .theme-toggle-icon--sun {
  opacity: 0;
}

[data-theme="dark"] .theme-toggle-icon--moon {
  opacity: 1;
}

.theme-toggle-icon svg {
  width: calc(18px * var(--hdr-scale));
  height: calc(18px * var(--hdr-scale));
}

.theme-toggle-icon--moon svg {
  width: calc(19px * var(--hdr-scale));
  height: calc(19px * var(--hdr-scale));
}

.header-search-btn {
  background: none;
  border: none;
  padding: calc(0.45rem * var(--hdr-scale));
  cursor: pointer;
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-btn svg,
.header-search-btn .header-search-icon,
.search-submit .header-search-icon {
  display: block;
  height: calc(29px * var(--hdr-scale));
  width: auto;
  max-width: none;
  object-fit: contain;
}

.header-search-icon {
  display: block;
}

[data-theme="dark"] .header-search-icon {
  filter: brightness(0) invert(1);
}

.header-search-btn[aria-expanded="true"] {
  opacity: 0.85;
}

/* Search panel — под хедером, как на Frieze */
.search-panel {
  position: relative;
  z-index: 2;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: max-height 0.38s ease, opacity 0.28s ease, visibility 0.28s;
}

.site-header.search-open .search-panel {
  max-height: 160px;
  visibility: visible;
  opacity: 1;
}

.search-panel-inner {
  padding: 0.75rem 0 1.5rem;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.35rem;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 400;
  color: var(--color-black);
  padding: 0.35rem 0;
  outline: none;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--color-muted);
  opacity: 0.85;
}

.search-submit {
  background: none;
  border: none;
  padding: 0.35rem;
  cursor: pointer;
  color: var(--color-black);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.search-submit:hover {
  opacity: 0.65;
}

.header-nav-inline {
  flex: 1;
  display: none;
}

.mobile-menu {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  position: static;
}

.mobile-menu-backdrop {
  display: none;
}

.mobile-menu-panel {
  width: 100%;
  min-width: 0;
}

.main-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(0.4rem * var(--hdr-scale));
}

.nav-list > li {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--hdr-pill-height);
  min-height: var(--hdr-pill-height);
  padding: 1px calc(0.85rem * var(--hdr-scale)) 0;
  font-family: var(--font-sans);
  font-size: calc(0.8125rem * var(--hdr-scale));
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-black) !important;
  background: transparent;
  border-bottom: none;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  text-align: center;
}

.nav-link:hover:not(.is-active):not(.is-mega-hover) {
  opacity: 1;
  background: var(--btn-pill-bg-hover);
  color: var(--color-black) !important;
}

.nav-link.is-active,
.nav-link.is-mega-hover,
.has-mega.is-mega-hover > .nav-link {
  background: var(--btn-pill-bg);
  color: var(--color-bg) !important;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: calc(42px * var(--hdr-scale));
  min-width: calc(42px * var(--hdr-scale));
  height: var(--hdr-pill-height);
  min-height: var(--hdr-pill-height);
  padding: 0;
  background: none;
  border: 1px solid var(--color-black);
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-black);
  flex-shrink: 0;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(4px * var(--hdr-scale));
  width: calc(16px * var(--hdr-scale));
}

.nav-toggle-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(calc(6px * var(--hdr-scale))) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(calc(-6px * var(--hdr-scale))) rotate(-45deg);
}

/* Mega menu — те же glass-свойства, что у хедера */
.mega-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1;
  pointer-events: none;
}

.mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  border-bottom: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s ease, visibility 0.28s;
  pointer-events: none;
}

.mega-panel.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mega-panel-inner {
  position: relative;
  padding: 2rem 0 2.25rem;
}

.mega-grid-frieze {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 992px) {
  .mega-grid-frieze {
    grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(200px, 1.3fr) minmax(200px, 1.3fr);
    gap: 2.5rem;
  }
}

.mega-col--feature {
  display: flex;
  min-width: 0;
  min-height: 0;
}

.mega-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-links li + li {
  margin-top: 0.7rem;
}

.mega-links a {
  font-size: 0.9375rem;
  color: var(--color-black) !important;
  line-height: 1.35;
}

.mega-links a:hover {
  opacity: 0.65;
}

.mega-feature-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: var(--card-media-gap);
  background: var(--card-media-bg);
  border-radius: var(--block-radius);
  color: var(--color-black) !important;
}

.mega-feature-card:hover {
  opacity: 1;
}

.mega-feature-card-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--block-radius);
  background: var(--color-surface);
  margin-bottom: var(--card-media-gap);
  flex-shrink: 0;
}

.mega-feature-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.mega-feature-card-title {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.4rem;
  min-height: calc(2 * 1.35em);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  flex-grow: 0;
}

.mega-feature-card-meta {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
  flex-grow: 0;
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }

  .mobile-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    position: static;
  }

  .mobile-menu-backdrop {
    display: none !important;
  }

  .mobile-menu-panel {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    background: transparent;
    border: none;
    padding: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .header-nav-inline {
    display: block !important;
  }

  .mega-container {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1;
    pointer-events: none;
  }

  .btn-signin {
    display: inline-block;
  }

  .nav-list {
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  .nav-link {
    padding: 0 calc(0.95rem * var(--hdr-scale));
    font-size: calc(0.875rem * var(--hdr-scale));
  }

  .btn-signin {
    padding: 0 calc(0.95rem * var(--hdr-scale));
    font-size: calc(0.875rem * var(--hdr-scale));
  }
}

@media (max-width: 991.98px) {
  :root {
    --hdr-scale: 1;
    --shell-radius: 0;
  }

  .container-wide {
    --container-gutter: clamp(1.25rem, 4.5vw, 1.5rem);
  }

  .header-frieze {
    flex-wrap: wrap;
    padding-top: calc(0.875rem * var(--hdr-scale));
    padding-bottom: calc(0.875rem * var(--hdr-scale));
  }

  .header-actions {
    gap: calc(0.5rem * var(--hdr-scale));
    margin-left: auto;
  }

  .header-search-btn {
    display: none;
  }

  .nav-toggle {
    border: none;
  }

  .search-panel {
    max-height: none;
    visibility: visible;
    opacity: 1;
    overflow: visible;
    position: static;
    z-index: auto;
  }

  .search-panel--mobile-standalone {
    background: var(--color-bg);
  }

  .search-panel-inner {
    padding: 0.75rem 0 1rem;
  }

  .search-form {
    gap: 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    background: var(--color-bg);
    box-sizing: border-box;
  }

  .search-input {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0;
  }

  .search-submit {
    padding: 0;
  }

  .search-submit .header-search-icon {
    height: 20px;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
  }

  .mobile-menu.is-open {
    pointer-events: auto;
  }

  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    cursor: pointer;
  }

  .mobile-menu.is-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100dvh;
    max-height: 100dvh;
    padding:
      calc(4.75rem + env(safe-area-inset-top, 0px))
      1.25rem
      calc(1.5rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: var(--header-glass-bg);
    backdrop-filter: var(--header-glass-blur);
    -webkit-backdrop-filter: var(--header-glass-blur);
    border-left: 1px solid var(--header-glass-border);
    border-radius: var(--block-radius) 0 0 var(--block-radius);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    z-index: 1;
  }

  .mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open .site-logo,
  body.mobile-nav-open .header-brand,
  body.mobile-nav-open .header-actions {
    position: relative;
    z-index: 1102;
  }

  .header-nav-inline {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
  }

  .mega-container {
    position: static;
    pointer-events: auto;
    width: 100%;
  }

  .mega-panel {
    position: static;
    visibility: visible;
    border: none;
    display: none;
    pointer-events: auto;
    opacity: 1;
    background: transparent;
  }

  .mega-panel.is-active {
    display: block;
  }

  .mega-panel-inner {
    padding: 0.75rem 0 0;
  }

  .mega-grid-frieze {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .mega-col--feature {
    display: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav-list > li,
  .has-mega {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .issue-hero-inner {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .issue-hero-panel {
    order: 1;
  }

  .issue-hero-aside {
    order: 2;
  }

  .issue-hero-promo--main {
    display: none !important;
  }

  .issue-hero-promo-row {
    width: 100%;
  }

  .issue-hero-promo-title {
    font-size: clamp(1.35rem, 7.5vw, 2rem);
  }

  .issue-hero-cover img {
    max-height: min(72vh, 560px);
  }

  .home-latest {
    padding: 2rem 0 1.75rem;
  }

  .home-ad-banners {
    padding-bottom: 1.25rem;
  }
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.breadcrumbs a {
  color: var(--color-muted) !important;
}

.breadcrumbs a:hover {
  color: var(--color-black) !important;
}

.breadcrumbs span[aria-current] {
  color: var(--color-black);
}

/* ===== HERO — Frieze full-screen ===== */
.hero-frieze {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-frieze-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frieze-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.48) 45%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.hero-frieze-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 3rem 1.5rem;
  color: #fff;
}

.hero-frieze-link {
  color: #fff !important;
  display: block;
}

.hero-frieze-link:hover {
  opacity: 0.92;
}

.hero-frieze-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.hero-frieze-lead {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.96);
  max-width: 640px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.hero-frieze-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  padding: 0.55rem 1.1rem;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.hero-frieze-meta a {
  color: #fff !important;
  font-weight: 600;
}

.hero-frieze-meta-sep {
  margin: 0 0.35rem;
  opacity: 0.65;
}

/* ===== HOME — лёгкие фоны разделов ===== */
.page-home {
  --home-section-hero-bg: #f8f5ef;
  --home-section-latest-bg: #f3efe6;
  --home-section-authors-bg: #eee9df;
}

[data-theme="dark"] .page-home {
  --home-section-hero-bg: #111111;
  --home-section-latest-bg: #141412;
  --home-section-authors-bg: #181715;
}

.page-home .issue-hero {
  background: var(--home-section-hero-bg);
}

.page-home .home-ad-banners {
  background: var(--home-section-hero-bg);
}

.page-home .home-ad-banners--bottom {
  position: relative;
  z-index: 3;
  background: var(--home-section-authors-bg);
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  padding-bottom: clamp(2.25rem, 3.5vw, 3.25rem);
}

.page-home .home-latest {
  background: var(--home-section-latest-bg);
}

.page-home .home-authors {
  background: var(--home-section-authors-bg);
  border-top: none;
}

/* ===== HOME — Актуальный номер (редакционный первый экран) ===== */
.issue-hero {
  --issue-hero-radius: var(--block-radius);
  --issue-hero-gap: var(--page-block-gap);
  --issue-hero-panel-gap: var(--card-media-gap);
  width: 100%;
}

.issue-hero-panel,
.issue-hero-promo--main,
.issue-hero-promo--tile,
.issue-hero-promo--fresh-news,
.issue-hero-cover,
.issue-hero-cover img,
.issue-hero-thumb-image,
.issue-hero-thumb-image img {
  border-radius: var(--issue-hero-radius);
}

.issue-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--issue-hero-gap);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-top: clamp(1.75rem, 2.8vw, 2.45rem);
  padding-bottom: clamp(1.75rem, 2.8vw, 2.45rem);
  transition: opacity 0.25s ease;
}

@media (min-width: 992px) {
  .issue-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--issue-hero-gap);
    align-items: start;
  }

  .issue-hero-aside {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .issue-hero-panel {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    align-self: start;
    width: 100%;
    max-width: 100%;
  }
}

.issue-hero-panel {
  --issue-hero-panel-inset: clamp(1.1rem, 2.2vw, 1.75rem);
  --issue-hero-thumb-gap: var(--issue-hero-panel-gap);
  display: flex;
  flex-direction: column;
  gap: var(--issue-hero-panel-inset);
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: clamp(1.1rem, 2vw, 1.6rem) var(--issue-hero-panel-inset);
  background: #dbd6d6;
}

@media (min-width: 992px) {
  .issue-hero-panel {
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: var(--issue-hero-thumb-gap);
    padding: clamp(1.1rem, 2vw, 1.6rem) var(--issue-hero-thumb-gap) clamp(1.1rem, 2vw, 1.6rem) var(--issue-hero-panel-inset);
    --issue-hero-cover-height: clamp(440px, 64vh, 720px);
  }

  .issue-hero-cover-col {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .issue-hero-thumbs {
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: var(--issue-hero-thumb-gap);
    justify-content: flex-start;
    min-height: 0;
    width: clamp(4.75rem, 5.5cqi, 7.5rem);
    max-width: 7.5rem;
    min-width: 4.75rem;
  }

  .issue-hero-thumb {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
  }

  .issue-hero-thumb-image {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
}

[data-theme="dark"] .issue-hero-panel {
  background: #2c2c2c;
}

.issue-hero-inner.is-changing {
  opacity: 0.92;
}

/* --- Левая колонка: промо-блоки --- */
.issue-hero-aside {
  display: grid;
  grid-template-rows: auto auto;
  gap: var(--issue-hero-gap);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  container-type: inline-size;
}

@media (min-width: 992px) {
  .issue-hero-aside {
    grid-template-rows: minmax(0, 1fr) minmax(7.5rem, 0.5fr);
    min-height: 0;
  }

  .issue-hero-promo-row {
    min-height: 7.5rem;
    height: 100%;
    align-items: stretch;
  }
}

.issue-hero-promo--main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(1.15rem, 2vw, 1.65rem);
  background: #dbd6d6;
  container-type: inline-size;
}

.issue-hero-promo-main-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  min-height: 100%;
  padding-left: calc(clamp(7.8rem, 36cqi, 13.2rem) + 0.65rem);
}

.issue-hero-promo-mark {
  position: absolute;
  top: clamp(1.15rem, 2vw, 1.65rem);
  left: clamp(1.15rem, 2vw, 1.65rem);
  display: block;
  width: clamp(7.8rem, 36cqi, 13.2rem);
  aspect-ratio: 1;
  background-color: var(--color-bg);
  -webkit-mask-image: url('../assets/logo-promo-mark.png');
  mask-image: url('../assets/logo-promo-mark.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0.95;
  z-index: 1;
}

[data-theme="dark"] .issue-hero-promo-mark {
  opacity: 0.88;
}

.issue-hero-promo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--issue-hero-gap);
  min-height: 0;
  width: 100%;
}

.issue-hero-promo-row > * {
  min-width: 0;
  max-width: 100%;
}

.issue-hero-promo-kicker {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.45;
}

.issue-hero-promo-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(1.65rem, 7.5cqi, 2.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-black);
  margin: 0;
}

.issue-hero-promo-arrow {
  display: inline-block;
  margin-right: 0.15rem;
}

.issue-hero-promo-text {
  font-size: clamp(0.8125rem, 2.2cqi, 0.9375rem);
  line-height: 1.5;
  color: var(--color-black);
  margin: 0;
  max-width: 28rem;
}

.issue-hero-promo--tile {
  position: relative;
  display: block;
  min-height: 11rem;
  overflow: hidden;
  color: #fff !important;
  opacity: 1;
}

.issue-hero-promo--tile:hover {
  opacity: 1;
}

@media (min-width: 992px) {
  .issue-hero-promo--tile {
    min-height: 7.5rem;
    height: 100%;
  }
}

.issue-hero-promo-row .issue-hero-promo--tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--transition);
}

.issue-hero-promo-row .issue-hero-promo--tile:hover img {
  transform: scale(1.03);
}

.issue-hero-promo--news-day,
.issue-hero-promo--project-day {
  display: flex;
  flex-direction: column;
  padding: var(--card-media-gap);
  background: var(--card-media-bg);
  box-sizing: border-box;
  overflow: hidden;
}

.issue-hero-promo--project-day {
  color: var(--color-black) !important;
  opacity: 1;
}

.issue-hero-promo-visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  border-radius: var(--issue-hero-radius);
}

.issue-hero-promo--news-day img,
.issue-hero-promo--project-day img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--issue-hero-radius);
}

.issue-hero-promo--news-day .issue-hero-promo-tag,
.issue-hero-promo--project-day .issue-hero-promo-tag {
  top: 0.85rem;
  bottom: auto;
  left: 0.85rem;
}

.issue-hero-promo-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.35rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.issue-hero-promo-overlay-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(0.75rem, 2.1cqi, 0.875rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-white);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.issue-hero-promo-overlay-text {
  margin: 0;
  font-size: clamp(0.6875rem, 1.9cqi, 0.8125rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

[data-theme="dark"] .issue-hero-promo--news-day,
[data-theme="dark"] .issue-hero-promo--project-day {
  background: var(--card-media-bg);
}

@media (min-width: 992px) {
  .issue-hero-promo--news-day,
  .issue-hero-promo--project-day {
    min-height: 7.5rem;
    height: 100%;
  }
}

.issue-hero-promo-tag {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .issue-hero-promo--main {
  background: #2c2c2c;
}

/* --- Миниатюры прошлых выпусков справа от обложки --- */
.issue-hero-thumbs {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--issue-hero-thumb-gap, clamp(0.4rem, 0.7vw, 0.55rem));
  min-width: 0;
  flex-shrink: 0;
}

.issue-hero-thumb {
  display: block;
  flex: 1 1 0;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
  transition: transform var(--transition);
}

.issue-hero-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 3.5rem;
  overflow: hidden;
  box-sizing: border-box;
  border: 2px solid transparent;
  background: color-mix(in srgb, var(--color-black) 6%, #dbd6d6);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--color-black) 8%, transparent);
}

.issue-hero-thumb.is-current .issue-hero-thumb-image {
  border-color: var(--color-black);
}

[data-theme="dark"] .issue-hero-thumb-image {
  background: color-mix(in srgb, var(--color-white) 8%, #2c2c2c);
}

.issue-hero-thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(0.45) saturate(0.86) brightness(0.93);
  transition: filter var(--transition);
}

.issue-hero-thumb.is-current .issue-hero-thumb-image img {
  filter: none;
}

.issue-hero-thumb:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.issue-hero-thumb:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 3px;
}

.issue-hero-thumb:hover .issue-hero-thumb-image img,
.issue-hero-thumb:focus-visible .issue-hero-thumb-image img {
  filter: grayscale(0.1) saturate(0.94) brightness(0.95);
}

@media (max-width: 991.98px) {
  .issue-hero-thumbs {
    flex-direction: row;
    width: 100%;
    min-height: 0;
    gap: 0.45rem;
    padding: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .issue-hero-thumbs::-webkit-scrollbar {
    display: none;
  }

  .issue-hero-thumb {
    flex: 0 0 clamp(5.5rem, 24vw, 7.5rem);
    min-height: 0;
  }

  .issue-hero-thumb-image {
    aspect-ratio: 3 / 4;
    height: auto;
    min-height: 0;
  }
}

/* --- Центральная колонка: обложка --- */
.issue-hero-cover-col {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: auto;
  max-width: 100%;
  min-width: 0;
}

.issue-hero-cover {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  line-height: 0;
  transition: opacity var(--transition);
}

.issue-hero-cover:hover {
  opacity: 1;
}

.issue-hero-cover img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(440px, 64vh, 720px);
  display: block;
  vertical-align: top;
}

@media (min-width: 992px) {
  .issue-hero-cover img {
    max-height: var(--issue-hero-cover-height, clamp(440px, 64vh, 720px));
  }
}

.home-feed {
  padding: 2rem 0 3rem;
}

.home-issue-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  background: var(--color-surface-muted);
  box-sizing: border-box;
  overflow: hidden;
}

.home-issue-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-color: #111;
  -webkit-mask-image: url('../assets/logo-pattern.png');
  mask-image: url('../assets/logo-pattern.png');
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-size: 100px 112px;
  mask-size: 100px 112px;
  -webkit-mask-position: center;
  mask-position: center;
}

[data-theme="dark"] .home-issue-showcase {
  background: var(--color-surface-strong);
}

[data-theme="dark"] .home-issue-showcase::before {
  background-color: var(--color-paper);
  opacity: 0.06;
}

.home-issue-featured {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: min(760px, 100%);
  text-align: center;
}

@media (min-width: 640px) {
  .home-issue-featured {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: clamp(1.25rem, 3vw, 2.25rem);
    max-width: min(860px, 100%);
    margin: 0 auto;
  }
}

.home-issue-cover-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-shrink: 0;
  width: auto;
}

.home-issue-nav {
  flex-shrink: 0;
  width: 0;
  height: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity var(--transition), transform var(--transition);
}

.home-issue-nav--prev {
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 18px solid var(--color-black);
}

.home-issue-nav--next {
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid var(--color-black);
}

[data-theme="dark"] .home-issue-nav--prev {
  border-right-color: var(--color-white);
}

[data-theme="dark"] .home-issue-nav--next {
  border-left-color: var(--color-white);
}

.home-issue-nav:hover {
  opacity: 1;
}

.home-issue-nav:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 4px;
}

.home-issue-featured.is-changing {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.home-issue-body {
  flex: 1;
  min-width: 0;
}

.home-issue-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .home-issue-actions {
    justify-content: flex-start;
  }
}

.home-issue-featured .home-issue-cover {
  width: clamp(110px, 22vw, 150px);
  max-width: 150px;
  margin: 0;
  padding: 4px;
  background: var(--color-paper);
  box-shadow: none;
}

[data-theme="dark"] .home-issue-featured .home-issue-cover {
  background: var(--color-surface-muted);
}

.home-issue-archive-label {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
  margin: 0 0 1rem;
}

.home-issue-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  width: 100%;
}

@media (min-width: 992px) {
  .home-issue-archive-grid {
    gap: 1.5rem 1.25rem;
  }
}

.home-issue-thumb {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition);
}

.home-issue-thumb:hover {
  opacity: 0.78;
}

.home-issue-thumb-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-paper);
  margin-bottom: 0.65rem;
}

[data-theme="dark"] .home-issue-thumb-image {
  background: var(--color-surface-muted);
}

.home-issue-thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-issue-thumb-title {
  font-family: var(--font-serif);
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  line-height: 1.3;
  margin: 0 0 0.2rem;
}

.home-issue-thumb-meta {
  font-size: clamp(0.6875rem, 0.95vw, 0.8125rem);
  line-height: 1.35;
  color: var(--color-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-issue-cover {
  display: block;
  max-width: 720px;
  margin: 0 auto 2rem;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
  transition: opacity var(--transition);
}

.home-issue-cover:hover {
  opacity: 0.92;
}

.home-issue-featured .home-issue-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.home-issue-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.home-issue-label {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0.4rem;
}

.home-issue-title {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}

.home-issue-sub {
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  color: var(--color-muted);
  line-height: 1.4;
  margin: 0;
}

.home-issue-btn {
  display: inline-block;
  width: auto;
  min-width: 0;
  text-align: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.75rem;
}

.home-issue-btn:hover {
  background: var(--color-black);
  color: var(--color-white) !important;
}

.home-issue-extra {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
  text-align: center;
}

.home-issue-extra a {
  color: var(--color-black) !important;
  font-weight: 500;
}

.home-issue-extra span {
  margin: 0 0.4rem;
  opacity: 0.45;
}

.home-sections-nav {
  width: 100%;
  max-width: 420px;
  padding: 1.75rem 0 0;
  text-align: center;
}

.home-feed-announce {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.home-announce-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .home-announce-list {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
  }
}

.home-announce-list a {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--color-black) !important;
}

.home-sections-label {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
  margin: 0 0 1rem;
}

.home-sections-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
}

.home-sections-list li + li {
  margin-top: 0;
}

.home-sections-list a {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--color-black) !important;
  line-height: 1.35;
  transition: opacity var(--transition);
}

.home-sections-list a:hover {
  opacity: 0.55;
}

.home-feed-main .home-latest-title {
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.home-feed-more {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-black);
  color: var(--color-black) !important;
}

.news-feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-feed-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.news-feed-item time {
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  padding-top: 0.15rem;
}

.news-feed-cat {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0.35rem;
}

.news-feed-title {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.4vw, 1.0625rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}

.news-feed-title a {
  color: var(--color-black) !important;
}

.news-feed-meta {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin: 0;
}

.news-feed-meta a {
  color: var(--color-black) !important;
  font-weight: 500;
}

@media (max-width: 575px) {
  .news-feed-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* ===== HOME — Рекламные баннеры ===== */
.home-ad-banners {
  padding: 0 0 clamp(1.25rem, 2.2vw, 1.75rem);
}

.home-ad-banners-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--page-block-gap);
  align-items: stretch;
}

.home-ad-card {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: var(--block-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.home-ad-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-black) 18%, var(--color-border));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.home-ad-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #dbd6d6;
}

[data-theme="dark"] .home-ad-card-media {
  background: #2c2c2c;
}

.home-ad-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-ad-card--placeholder .home-ad-card-media {
  background: color-mix(in srgb, var(--color-black) 6%, #dbd6d6);
}

[data-theme="dark"] .home-ad-card--placeholder .home-ad-card-media {
  background: color-mix(in srgb, var(--color-white) 8%, #2c2c2c);
}

.home-ad-card-placeholder-text {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  user-select: none;
}

@media (max-width: 1199.98px) {
  .home-ad-banners-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-ad-card:nth-child(5) {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .home-ad-banners-row {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-ad-banners-row::-webkit-scrollbar {
    display: none;
  }

  .home-ad-card {
    flex: 0 0 clamp(9.5rem, 28vw, 11.5rem);
    scroll-snap-align: start;
  }

  .home-ad-card:nth-child(5) {
    display: block;
  }
}

/* ===== HOME — Последние (4 col) ===== */
.home-latest,
.home-authors {
  --home-block-gap: var(--page-block-gap);
}

.home-latest {
  padding: 3rem 0 2.5rem;
}

.home-latest-footer {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.home-latest-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-block-gap);
  align-items: start;
}

.home-latest-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-block-gap);
  align-items: stretch;
  min-width: 0;
}

@media (min-width: 576px) {
  .home-latest-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .home-latest-mosaic {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: var(--home-block-gap);
    align-items: start;
  }

  .home-latest-cards {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: var(--home-block-gap);
    align-items: stretch;
    min-width: 0;
  }

  .home-feed-inline {
    grid-column: 2;
    grid-row: 1;
    position: static;
    top: auto;
    right: auto;
    width: auto;
    align-self: stretch;
    justify-self: stretch;
    min-width: 0;
    min-height: 0;
    height: 0;
    min-height: 100%;
    max-height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .home-feed-inline-box {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
  }
}

@media (max-width: 991px) {
  .home-feed-inline {
    grid-column: 1 / -1;
  }

  .home-feed-inline-box {
    max-height: min(420px, 55vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
}

.home-feed-inline-box {
  border: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  padding: 0.85rem 0.6rem 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  width: 100%;
}

.home-feed-inline-box .home-feed-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  --feed-scroll-rail: 0.55rem;
  padding-right: var(--feed-scroll-rail);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.home-feed-inline-box .home-feed-scroll::-webkit-scrollbar {
  width: calc(var(--feed-scroll-rail) * 2 + 4px);
}

.home-feed-inline-box .home-feed-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.home-feed-inline-box .home-feed-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 999px;
  border: var(--feed-scroll-rail) solid transparent;
  background-clip: padding-box;
}

.home-latest .home-feed-inline-box {
  border-radius: var(--block-radius);
}

.home-latest .latest-card-image img {
  display: block;
}

.home-feed-inline-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  flex-shrink: 0;
}

.news-feed-list--compact .news-feed-item {
  grid-template-columns: 2.35rem 1fr;
  gap: 0.35rem;
  padding: 0.32rem 0;
  align-items: start;
}

.news-feed-list--compact .news-feed-item time {
  font-size: 0.625rem;
  line-height: 1.15;
  padding-top: 0.05rem;
}

.news-feed-list--compact .news-feed-cat {
  font-size: 0.5625rem;
  margin: 0 0 0.06rem;
  letter-spacing: 0.1em;
}

.news-feed-list--compact .news-feed-title {
  font-size: 0.75rem;
  line-height: 1.2;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.home-feed-inline-box .home-feed-announce {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.home-announce-list--compact {
  gap: 0.3rem;
}

.home-announce-list--compact a {
  font-size: 0.75rem;
  line-height: 1.2;
}

.home-announce-list--compact .widget-meta {
  font-size: 0.625rem;
}

.home-feed-inline-box .home-sections-label {
  margin-bottom: 0.35rem;
  font-size: 0.5625rem;
}

.home-feed-inline-box .home-feed-more {
  flex-shrink: 0;
  align-self: center;
  margin: 0.5rem 0 0;
  padding-bottom: 0.1rem;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-black);
  color: var(--color-black) !important;
}

.home-latest-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 2rem;
  letter-spacing: 0.01em;
}

.home-latest-grid {
  margin-bottom: 0;
}

.latest-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.home-latest-cards .latest-card-media {
  height: 100%;
}

.home-latest-cards .latest-card-media .latest-card-title {
  min-height: calc(2 * 1.25em);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.latest-card-media,
.news-card-media {
  box-sizing: border-box;
  padding: var(--card-media-gap);
  margin-bottom: 0;
  background: var(--card-media-bg);
  border-radius: var(--block-radius);
  display: flex;
  flex-direction: column;
}

.latest-card-media .latest-card-title,
.news-card-media .news-card-title {
  margin: var(--card-media-gap) 0 0.35rem;
  flex-grow: 1;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(0.75rem, 1.9cqi, 0.875rem);
  line-height: 1.25;
  min-height: calc(2 * 1.25em);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.latest-card-media .latest-card-cat,
.news-card-media .news-card-category {
  margin: 0 0 0.2rem;
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.latest-card-media .latest-card-meta,
.news-card-media .news-card-meta {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  color: var(--color-muted);
}

.latest-card-image {
  display: block;
  box-sizing: border-box;
  aspect-ratio: 3 / 2;
  padding: 0;
  margin-bottom: 0;
  background: transparent;
  overflow: hidden;
  border-radius: var(--block-radius);
}

.latest-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.latest-card:hover .latest-card-image img {
  transform: scale(1.03);
}

.latest-card-title a {
  color: var(--color-black) !important;
}

.latest-card-meta a {
  color: var(--color-black) !important;
  font-weight: 500;
}

/* ===== ISSUE PROMO — как «Летний выпуск» ===== */
.issue-promo {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.issue-promo-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .issue-promo-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.issue-promo-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.issue-promo-sub {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin: 0;
}

.issue-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border: 2px solid var(--color-black);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--color-black) !important;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.issue-promo-btn:hover {
  background: var(--color-black);
  color: var(--color-white) !important;
  opacity: 1;
}

.home-archive-preview {
  padding: 2.5rem 0 4rem;
}

.page-home .site-footer {
  margin-top: 0;
}

/* ===== HERO — Juxtapoz-style cover (внутренние) ===== */
.hero-cover {
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--color-black);
}

.hero-cover-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-issue-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-cover-image {
  max-width: 420px;
  margin: 0 auto 2rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.hero-cover-image img {
  width: 100%;
}

.hero-cover-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.hero-cover-desc {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.btn-dag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--color-black) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  border: 2px solid var(--color-black);
  transition: background var(--transition), color var(--transition);
}

.btn-dag:hover {
  background: var(--color-black);
  color: var(--color-white) !important;
  opacity: 1;
}

.btn-dag:active {
  transform: scale(0.98);
}

.btn-dag-outline {
  background: var(--color-black);
  color: var(--color-white) !important;
}

.btn-dag-outline:hover {
  background: transparent;
  color: var(--color-black) !important;
}

/* ===== NEWS GRID (Frieze-style wide) ===== */
.news-section {
  padding: 3rem 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-grid .featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .news-card.featured .news-card-title {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  }
}

.news-card.featured .news-card-media {
  background: transparent;
  padding: 0;
}

.news-card.featured .news-card-image {
  overflow: hidden;
  border-radius: var(--block-radius);
}

.news-card.featured .news-card-title {
  margin-top: 1rem;
  line-height: 1.3;
  min-height: 0;
  flex-grow: 0;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.news-card-media {
  flex: 1;
  height: 100%;
}

.news-card-image {
  display: block;
  box-sizing: border-box;
  aspect-ratio: 16 / 10;
  padding: 0;
  margin-bottom: 0;
  background: transparent;
  overflow: hidden;
  border-radius: var(--block-radius);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.03);
}

.news-card-title a {
  color: var(--color-black) !important;
}

.news-card-meta a {
  color: var(--color-black) !important;
  font-weight: 500;
}

.read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-black);
  color: var(--color-black) !important;
}

/* ===== WIDE BANNER ===== */
.wide-banner {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin: 2rem 0;
}

.wide-banner--no-image {
  background: linear-gradient(135deg, var(--card-media-bg) 0%, color-mix(in srgb, var(--card-media-bg) 55%, var(--color-black)) 100%);
}

.wide-banner--no-image .wide-banner-overlay {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
}

.wide-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.wide-banner-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--color-white);
}

.wide-banner-overlay h2 {
  color: var(--color-white);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 700px;
}

.wide-banner-overlay a {
  color: var(--color-white) !important;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 2.5rem 0 1.5rem;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--color-muted);
  max-width: 640px;
  margin: 0;
}

/* ===== FILTERS ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.filter-btn {
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--btn-pill-bg);
  color: var(--color-bg);
  border-color: var(--btn-pill-bg);
}

/* На десктопе — чуть шире таблицы/графики; на мобилке — внутри полей контейнера */
@media (min-width: 992px) {
  .container-wide .article-body > .chart-block,
  .container-wide .article-body > .data-table-wrap,
  .container-wide .article-body > .video-player-wrap {
    width: calc(100% + 2 * var(--container-gutter));
    margin-left: calc(-1 * var(--container-gutter));
    margin-right: calc(-1 * var(--container-gutter));
  }
}

.data-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 2rem 0;
  border: 1px solid var(--color-border);
  background: var(--card-media-bg);
  border-radius: var(--block-radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 0;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.data-table th {
  background: var(--color-surface-strong);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chart-block {
  margin: 2rem 0;
  padding: var(--card-media-gap);
  border: 1px solid var(--color-border);
  background: var(--card-media-bg);
  border-radius: var(--block-radius);
  display: flex;
  flex-direction: column;
  gap: var(--card-media-gap);
}

.chart-block img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--block-radius);
}

.chart-caption {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin: 0;
  padding: 0 0.15rem;
  text-align: center;
}

/* ===== VIDEO PLAYER ===== */
.video-player-wrap {
  margin: 2rem 0;
  background: #000;
  border-radius: var(--block-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.video-player-wrap video {
  width: 100%;
  display: block;
}

/* ===== ARCHIVE ===== */
.archive-years {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.archive-item {
  text-align: center;
}

.archive-item img {
  margin: 0 auto 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.archive-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.archive-item .issue-num {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.archive-item h3 a {
  color: var(--color-black) !important;
}

.archive-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.archive-actions .read-more {
  margin-top: 0;
  border-bottom: none;
}

/* ===== ISSUE DETAIL ===== */
.issue-detail {
  padding-bottom: 4rem;
}

.issue-detail-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.issue-detail-cover {
  max-width: 220px;
  border-radius: var(--block-radius);
  overflow: hidden;
}

.issue-detail-cover img {
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.issue-detail-info {
  min-width: 0;
}

.issue-detail-info h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0.35rem 0;
}

.issue-detail-subtitle {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin: 0 0 1.5rem;
}

.issue-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.issue-detail-back {
  font-size: 0.8125rem;
  color: var(--color-muted) !important;
}

@media (min-width: 576px) {
  .issue-detail-hero {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas:
      "cover info"
      "thumbs thumbs"
      "contents contents";
    column-gap: 1.25rem;
    row-gap: 1.25rem;
  }

  .issue-detail-cover {
    grid-area: cover;
  }

  .issue-detail-info {
    grid-area: info;
    align-self: start;
  }

  .issue-detail-thumbs {
    grid-area: thumbs;
  }

  .issue-contents {
    grid-area: contents;
  }
}

@media (min-width: 992px) {
  .issue-detail-hero {
    grid-template-columns: 220px minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-areas:
      "cover info contents"
      "thumbs thumbs contents";
    column-gap: 1.25rem;
    row-gap: 1.25rem;
  }

  .issue-detail-hero .issue-contents h2 {
    margin-bottom: 1rem;
    padding-top: 0;
    border-top: none;
    font-size: 1.35rem;
  }
}

@media (max-width: 991.98px) {
  .issue-contents h2 {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
  }
}

.issue-detail-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin: 0;
  padding: 2px 1px 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.issue-detail-thumbs::-webkit-scrollbar {
  display: none;
}

.issue-detail-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 clamp(3.5rem, 9vw, 4.75rem);
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition), transform var(--transition);
}

.issue-detail-thumb:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.issue-detail-thumb:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 3px;
  border-radius: var(--block-radius);
}

.issue-detail-thumb-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--block-radius);
  box-sizing: border-box;
  border: 2px solid transparent;
  background: var(--color-paper);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .issue-detail-thumb-image {
  background: var(--color-surface-muted);
}

.issue-detail-thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.issue-detail-thumb.is-current .issue-detail-thumb-image {
  border-color: var(--color-black);
}

.issue-detail-thumb.is-current .issue-detail-thumb-image img {
  filter: none;
}

.issue-detail-thumb:not(.is-current) .issue-detail-thumb-image img {
  filter: grayscale(0.35) saturate(0.9);
}

.issue-detail-thumb-label {
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--color-muted);
  line-height: 1.25;
  width: 100%;
}

.issue-detail-thumb.is-current .issue-detail-thumb-label {
  color: var(--color-black);
  font-weight: 600;
}

.issue-contents h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-top: 0;
  border-top: none;
}

.issue-contents-section + .issue-contents-section {
  margin-top: 1.75rem;
}

.issue-contents-section h3 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.issue-contents-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.issue-contents-section li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.issue-contents-section li span {
  color: var(--color-muted);
  font-size: 0.8125rem;
  margin-left: 0.5rem;
}

/* ===== AUTHORS ===== */
.authors-search {
  margin-bottom: 2rem;
}

.authors-search-form {
  margin: 0;
}

.authors-search-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.35rem;
}

.authors-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 400;
  color: var(--color-black);
  padding: 0.35rem 0;
  outline: none;
  min-width: 0;
}

.authors-search-input::placeholder {
  color: var(--color-muted);
  opacity: 0.85;
}

.authors-search-clear {
  background: none;
  border: none;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
  color: var(--color-muted);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.authors-search-clear:hover {
  color: var(--color-black);
}

.authors-search-empty {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.author-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition);
}

.author-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin: 0 0 0.25rem;
}

.author-bio {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

.author-card:hover {
  opacity: 0.72;
}

.author-profile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .author-profile {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}

.author-profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.author-profile-body h1 {
  margin-bottom: 0.5rem;
}

.author-profile-role {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.author-profile-bio {
  margin: 0;
  line-height: 1.6;
}

.author-publications {
  padding-bottom: 4rem;
}

.author-publications-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.author-not-found {
  padding: 3rem 0 4rem;
}

.home-authors {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--color-border);
}

.home-authors-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.home-authors-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
}

.home-authors-lead {
  color: var(--color-muted);
  margin: 0 0 2rem;
  max-width: 640px;
}

.home-authors .authors-grid {
  padding-bottom: 0;
  gap: var(--home-block-gap);
}

.home-authors .authors-search-input,
.home-authors .filter-btn {
  border-radius: var(--block-radius);
}

/* ===== ARTICLE ===== */
.article-figure {
  margin: 0 0 2rem;
}

.article-figure img {
  width: 100%;
  display: block;
}

.container-wide .article-body {
  max-width: none;
  width: 100%;
  margin: 2rem 0;
  font-size: 1.0625rem;
}

.article-body {
  max-width: 720px;
  margin: 2rem auto;
  font-size: 1.0625rem;
}

.article-body figure,
.article-body .wp-block-image,
.article-body .wp-block-image figure {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.article-body figure img,
.article-body .wp-block-image img {
  max-width: 100%;
  height: auto;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

/* ===== CONTACT PAGE ===== */
.contact-page {
  padding: 0.5rem 0 4rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 576px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .contact-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact-card {
  padding: 1.25rem 1.5rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.contact-card-label {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-card-value {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.contact-card-value a {
  color: var(--color-black) !important;
  font-weight: 500;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
  }
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .contact-aside {
    min-height: 100%;
  }
}

.contact-requisites {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  flex-shrink: 0;
}

[data-theme="dark"] .contact-requisites {
  background: var(--color-surface);
}

.contact-requisites-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.contact-form-panel {
  padding: 2rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.contact-form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.contact-form-lead {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0 0 1.75rem;
}

.contact-form-submit {
  width: 100%;
  text-align: center;
  padding: 0.9rem 2rem;
}

/* ===== CONTACT FORM (shared) ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 2rem 0 4rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-dag .form-control,
.form-dag .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--color-border);
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  color: var(--color-black);
}

[data-theme="dark"] .form-dag .form-control,
[data-theme="dark"] .form-dag .form-select {
  background: var(--color-surface);
}

.form-dag .form-control:focus,
.form-dag .form-select:focus {
  border-color: var(--color-black);
  box-shadow: none;
}

.form-dag label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--color-muted);
}

.contact-info dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 1.25rem;
}

.contact-info dd {
  margin: 0.25rem 0 0;
}

.map-placeholder {
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--block-radius);
  overflow: hidden;
}

.contact-map {
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .contact-map {
    flex: 1;
    min-height: 0;
  }
}

.contact-map iframe,
.contact-map .maplibregl-map,
.contact-map #contact-map {
  display: block;
  width: 100%;
  border: none;
}

.contact-map iframe {
  height: 300px;
}

.contact-map .maplibregl-map,
.contact-map #contact-map {
  min-height: 300px;
}

@media (min-width: 992px) {
  .contact-map iframe,
  .contact-map .maplibregl-map,
  .contact-map #contact-map {
    flex: 1;
    height: auto;
    min-height: 0;
  }
}

.contact-map-link {
  display: block;
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted) !important;
  background: var(--color-surface-muted);
  transition: color var(--transition), background var(--transition);
}

.contact-map-link:hover {
  color: var(--color-black) !important;
  background: var(--color-surface);
  opacity: 1;
}

/* ===== SUBSCRIPTION ===== */
.sub-page {
  padding-bottom: 4rem;
}

.sub-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .sub-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.sub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--card-media-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.sub-card:hover {
  border-color: var(--color-black);
}

.sub-card--featured {
  background: color-mix(in srgb, var(--card-media-bg) 88%, var(--color-black));
  border-color: var(--color-black);
}

.sub-card-badge {
  display: inline-block;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--block-radius);
}

.sub-card-title {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.sub-card h3 {
  font-size: 1.125rem;
}

.sub-price {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0.5rem 0 0.75rem;
}

.sub-index {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}

.sub-card-desc {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.45;
  flex-grow: 1;
}

.sub-card-btn {
  width: 100%;
  text-align: center;
  padding: 0.85rem 1rem;
  margin-top: auto;
}

.sub-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .sub-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: stretch;
  }

  .sub-info-panel {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

.sub-form-panel,
.sub-info-panel {
  padding: 2rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.sub-panel-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.sub-panel-lead {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0 0 1.75rem;
}

.sub-form-submit {
  width: 100%;
  text-align: center;
  padding: 0.9rem 2rem;
}

.sub-form-message {
  color: var(--color-muted);
}

.sub-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.sub-info-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.sub-info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sub-info-list a {
  color: var(--color-black) !important;
  font-weight: 500;
}

.sub-info-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  isolation: isolate;
  z-index: 2;
  margin-top: calc(4rem - var(--shell-radius));
  padding: calc(3rem + var(--shell-radius)) 0 2rem;
  background: transparent;
  border-top: none;
  overflow: visible;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-glass-bg-scrolled);
  backdrop-filter: var(--header-glass-blur);
  -webkit-backdrop-filter: var(--header-glass-blur);
  border-top-left-radius: var(--shell-radius);
  border-top-right-radius: var(--shell-radius);
  overflow: hidden;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li + li {
  margin-top: 0.35rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-muted) !important;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  opacity: 0.85;
}

/* ===== WIDGETS SIDEBAR ===== */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 0;
}

@media (min-width: 992px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr 300px;
    gap: 3.5rem;
  }
}

.widget {
  border: none;
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  margin-bottom: 0;
}

.widget-title {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
  color: var(--color-muted);
  font-weight: 600;
}

.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-list li + li {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.widget-list a {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--color-black) !important;
}

.widget-meta {
  display: block;
  font-size: 0.6875rem;
  color: var(--color-muted);
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

.widget-text {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.widget-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-black);
  color: var(--color-black) !important;
}

.widget-issue {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit !important;
}

.widget-issue img {
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.widget-issue-num {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0.25rem;
}

.widget-issue-title {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  line-height: 1.35;
  margin: 0;
  color: var(--color-black);
}

/* ===== ANIMATION HELPERS ===== */
.fade-in {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .news-feed-item,
  .home-issue-body {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== ABOUT PAGE ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--page-block-gap);
  margin: 2rem 0;
}

.team-member {
  text-align: center;
  background: var(--card-media-bg);
  border-radius: var(--block-radius);
  padding: 1.5rem 1rem 1.25rem;
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: var(--block-radius);
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 1rem;
  display: block;
}

.team-member h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.team-member-role {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
}

.awards-list {
  list-style: none;
  padding: 0;
}

.awards-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* ===== PROJECTS ===== */
.project-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

@media (min-width: 768px) {
  .project-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

.project-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--color-black);
  margin-bottom: 0.75rem;
  border-radius: var(--block-radius);
  box-sizing: border-box;
}

.project-card-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: clamp(180px, 24vw, 260px);
  background: var(--card-media-bg);
  border-radius: var(--block-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  line-height: 0;
  overflow: hidden;
}

.project-card-photo img,
img[data-project-photo] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--block-radius);
}

.project-status.completed {
  background: var(--color-black);
  color: var(--color-white);
}

/* Header: only Home keeps the dark pill; other items use a light hover. */
#site-header .nav-link[data-mega-trigger="journal"] {
  background:#292826;
  color:#fff !important;
}
#site-header .nav-link:not([data-mega-trigger="journal"]) {
  background:transparent;
  color:var(--color-black) !important;
}
#site-header .nav-link:not([data-mega-trigger="journal"]):hover,
#site-header .nav-link:not([data-mega-trigger="journal"]):focus-visible {
  background:#e6e2da;
  color:#292826 !important;
}

.footer-socials { display:flex; gap:18px; align-items:center; margin-top:12px; }
.footer-socials a { display:inline-flex; padding:0; border:0; background:transparent !important; }
.footer-socials img { display:block; width:26px; height:26px; filter:none !important; }
@media(min-width:768px) {
 .footer-grid > div { display:flex; flex-direction:column; }
 .footer-grid .footer-socials { margin-top:auto; min-height:26px; }
 .footer-grid .footer-nav { flex:1; display:flex; flex-direction:column; justify-content:space-between; }
 .footer-grid .footer-nav li:last-child { min-height:26px; display:flex; align-items:center; }
}

/* Text dropdowns follow the original journal sections. */
#site-header .mega-grid-frieze { grid-template-columns:1fr; }
#site-header .mega-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0.75rem 2rem; }
@media(max-width:991px) { #site-header .mega-links { grid-template-columns:1fr; } }

#site-header .mega-links > li { margin:0; padding:0; align-self:stretch; }
#site-header .mega-links > li > a { display:flex; align-items:center; min-height:40px; margin:0; padding:8px 0; line-height:24px; }
