/* Сайт РНКИФНТ — основные стили.
   Цвета и шрифты задаются переменными в :root, остальное ссылается на них. */

@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-italic.woff') format('woff');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Golos Text';
  src: url('../fonts/golos.woff') format('woff');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbfcfd;
  --surface: #ffffff;
  --ink: #16212b;
  --muted: #56636f;
  --sky: #91bfd9;        /* фирменный голубой из логотипа */
  --sky-soft: #e8f1f7;
  --sky-line: #cfe0ea;
  --deep: #22597a;       /* ссылки и акценты, контраст AA */
  --deep-hover: #163f58;
  --rule: #dfe6eb;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

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

a { color: var(--deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--deep-hover); }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.005em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 1.95rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ---------- Шапка ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header::after { content: ''; display: block; height: 3px; background: var(--sky); }

.header-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: 0 1 auto; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 0.98rem; line-height: 1.2; }
.brand-name small { display: block; font-size: 0.82rem; color: var(--muted); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--sky-soft); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--deep); box-shadow: inset 0 -2px 0 var(--sky); border-radius: 0; }
.main-nav .ext::after { content: '↗'; font-size: 0.8em; margin-left: 3px; color: var(--muted); }

.lang-switch { display: flex; border: 1px solid var(--sky-line); border-radius: var(--radius); margin-left: 8px; overflow: hidden; }
.lang-switch a, .lang-switch span { font-size: 0.82rem; padding: 4px 9px; text-decoration: none; color: var(--muted); }
.lang-switch span { background: var(--sky-soft); color: var(--ink); font-weight: 600; }
.lang-switch a:hover { background: var(--sky-soft); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px 10px; font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; }
.nav-toggle svg { vertical-align: -3px; margin-right: 4px; }

@media (max-width: 920px) {
  .brand-name { font-size: 0.9rem; }
  .brand-name small { display: none; }
  .js .nav-toggle { display: inline-block; }
  .js .main-nav { display: none; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px -16px rgba(22, 33, 43, 0.35); }
  .no-js .main-nav { position: static; box-shadow: none; border: 0; padding: 0 0 12px; flex-direction: row; flex-wrap: wrap; }
  .no-js .header-in { flex-wrap: wrap; }
  .js .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sky); padding-left: 14px; }
  .lang-switch { margin: 12px 0 0; align-self: flex-start; }
  .lang-switch a, .lang-switch span { padding: 8px 14px; }
}

/* ---------- Подвал ---------- */

.site-footer { margin-top: 80px; background: #eef3f6; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--muted); }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: var(--ink); }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 40px; flex: none; opacity: 0.8; }
.footer-bottom { border-top: 1px solid var(--rule); padding-top: 16px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Кнопки, метки ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--deep);
  background: var(--deep);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--deep-hover); border-color: var(--deep-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--deep); border-color: var(--sky-line); }
.btn-ghost:hover { background: var(--sky-soft); color: var(--deep-hover); border-color: var(--sky); }
.btn svg { flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }

.chip {
  display: inline-block; font-size: 0.88rem; padding: 4px 11px; border-radius: 999px;
  background: var(--sky-soft); color: var(--ink); text-decoration: none; border: 1px solid transparent;
}
a.chip:hover { border-color: var(--sky); color: var(--ink); }
.chip.is-active { background: var(--deep); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 0.95rem; white-space: nowrap; }

.prose { font-family: var(--serif); font-size: 1.08rem; line-height: 1.7; max-width: 44em; }
.prose h3, .prose h4 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose img { border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose td, .prose th { border: 1px solid var(--rule); padding: 6px 10px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

.page-head { padding: 44px 0 8px; }
.page-head h1 { max-width: 22em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }

.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }

/* ---------- Главная ---------- */

.hero { background: var(--surface); border-bottom: 1px solid var(--rule); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.9rem); line-height: 1.06; letter-spacing: -0.015em; margin-bottom: 0.45em; }
.hero .lede { font-size: 1.2rem; }
.hero-mark { position: relative; justify-self: center; width: min(360px, 80%); aspect-ratio: 1; }
.hero-mark::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; background: var(--sky-soft); border: 1px solid var(--sky-line); }
.hero-mark img { position: relative; width: 100%; height: 100%; padding: 14%; }
@media (max-width: 760px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; gap: 20px; }
  .hero-mark { order: -1; width: 140px; justify-self: start; }
}

.activities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.activities li { padding: 22px 22px 22px 0; border-right: 1px solid var(--rule); }
.activities li + li { padding-left: 22px; }
.activities li:last-child { border-right: 0; }
.activities img { width: 40px; height: 40px; margin-bottom: 10px; display: block; }
.activities a, .activities strong { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; color: var(--ink); display: block; margin-bottom: 4px; }
.activities a:hover { color: var(--deep); }
.activities p { font-size: 0.93rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .activities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activities li { border-bottom: 1px solid var(--rule); }
  .activities li:nth-child(2n) { border-right: 0; }
  .activities li:nth-child(2n+1) { padding-left: 0; }
}
@media (max-width: 520px) {
  .activities { grid-template-columns: 1fr; }
  .activities li, .activities li + li { padding: 18px 0; border-right: 0; }
}

.home-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; gap: 40px; } }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.news-item:first-child { padding-top: 4px; }
.news-date { font-family: var(--sans); line-height: 1.15; color: var(--muted); font-size: 0.85rem; }
.news-date b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); }
.news-title { font-family: var(--serif); font-size: 1.12rem; line-height: 1.35; color: var(--ink); text-decoration: none; }
.news-title:hover { color: var(--deep); text-decoration: underline; }
.news-type { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.news-excerpt { font-size: 0.93rem; color: var(--muted); margin: 6px 0 0; }
.news-thumb { width: 112px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--sky-soft); }
@media (max-width: 560px) {
  .news-item { grid-template-columns: 58px minmax(0, 1fr); }
  .news-thumb { display: none; }
}

.empty-note { color: var(--muted); padding: 18px 0; }

.issue-promo { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: start; }
.issue-promo .cover { width: 150px; }
.issue-promo h3 { margin-bottom: 4px; }
.issue-promo .issue-desc { font-size: 0.95rem; color: var(--muted); margin-top: 10px; }
.issue-promo .issue-desc ul { padding-left: 1.1em; margin: 0.4em 0; }
@media (max-width: 460px) { .issue-promo { grid-template-columns: 100px minmax(0, 1fr); gap: 16px; } .issue-promo .cover { width: 100px; } }

.cover { display: block; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 3px; background: var(--sky-soft); box-shadow: 0 1px 2px rgba(22, 33, 43, 0.12), 0 8px 22px -12px rgba(22, 33, 43, 0.45); }
.cover-placeholder { display: grid; place-items: center; font-family: var(--serif); color: var(--deep); text-align: center; padding: 12px; border: 1px solid var(--sky-line); }

.about-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.chair { text-align: left; }
.chair img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--sky-line); margin-bottom: 14px; }
.chair-name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; margin-bottom: 6px; }
.chair-role { font-size: 0.92rem; color: var(--muted); }
.chair-label { font-size: 0.9rem; color: var(--deep); margin-bottom: 10px; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .chair { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; }
  .chair img { width: 110px; height: 110px; margin: 0; }
}

/* Таймлайн истории */
.timeline { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 37px; height: 2px; background: var(--sky); }
.timeline li { position: relative; padding: 0 28px 0 0; }
.timeline-year { position: relative; display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--paper); border: 2px solid var(--sky); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); margin-bottom: 18px; }
.timeline-year::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid var(--sky-line); }
.timeline h3 { margin-bottom: 8px; }
.timeline p { font-family: var(--serif); font-size: 0.98rem; line-height: 1.65; color: #2b3944; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; padding-left: 0; }
  .timeline::before { left: 37px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; padding: 0 0 28px; }
  .timeline-year { margin: 0; }
}

/* ---------- Журнал ---------- */

.journal-bar { background: var(--surface); border-bottom: 1px solid var(--rule); }
.journal-bar-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 0; }
.journal-name { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); text-decoration: none; padding-bottom: 12px; line-height: 1.25; max-width: 30em; }
.journal-name:hover { color: var(--deep); }
.journal-tabs { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.journal-tabs::-webkit-scrollbar { display: none; }
.journal-tabs a { padding: 8px 12px 12px; font-size: 0.95rem; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.journal-tabs a:hover { color: var(--ink); }
.journal-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sky); }
@media (max-width: 760px) {
  .journal-bar-in { gap: 4px; }
  .journal-name { padding-bottom: 4px; font-size: 0.98rem; }
  .journal-tabs { margin: 0 calc(-1 * var(--gutter)); padding: 0 calc(var(--gutter) - 12px); width: calc(100% + 2 * var(--gutter)); }
}

.issue-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 40px; align-items: start; }
.issue-side { position: sticky; top: 100px; }
.issue-side .cover { width: 100%; }
.issue-side .issue-label { font-family: var(--serif); font-size: 1.35rem; margin: 18px 0 2px; }
.issue-side .btn { width: 100%; justify-content: center; margin-top: 16px; }
.issue-pager { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 0.92rem; }
.issue-pager a { text-decoration: none; }
.issue-pager a:hover { text-decoration: underline; }
.issue-side .recent { margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 14px; }
.issue-side .recent h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; }
.issue-side .recent ul { list-style: none; margin: 0 0 10px; padding: 0; font-size: 0.93rem; }
.issue-side .recent li { padding: 4px 0; }
.issue-side .recent li[aria-current] { font-weight: 600; }
.issue-side .recent a { text-decoration: none; color: var(--ink); }
.issue-side .recent a:hover { color: var(--deep); text-decoration: underline; }

@media (max-width: 860px) {
  .issue-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .issue-side { position: static; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 20px; align-items: start; }
  .issue-side .cover { grid-row: span 4; }
  .issue-side .issue-label { margin-top: 0; }
  .issue-side .btn { width: auto; }
  .issue-side .recent { display: none; }
}

.issue-title { margin-bottom: 6px; }
.issue-meta { color: var(--muted); margin-bottom: 18px; }
.issue-description { color: #33414c; font-size: 0.98rem; max-width: 44em; }
.issue-description ul { padding-left: 1.2em; }
.latest-flag { display: inline-block; font-family: var(--sans); font-size: 0.8rem; background: var(--sky-soft); color: var(--deep); border-radius: 999px; padding: 3px 10px; vertical-align: middle; margin-left: 8px; font-weight: 500; }

/* Оглавление, свёрстанное как в печатном журнале: отточия и номера страниц */
.toc { margin-top: 28px; counter-reset: none; }
.toc-section { margin: 0 0 28px; }
.toc-section h2 {
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600; color: var(--deep);
  margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--sky);
  letter-spacing: 0.01em;
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-entry { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.toc-entry:last-child { border-bottom: 0; }
.toc-authors { display: block; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 0.98rem; margin-bottom: 2px; }
.toc-line { display: flex; align-items: baseline; align-items: last baseline; gap: 6px; }
.toc-title { font-family: var(--serif); font-size: 1.12rem; line-height: 1.4; color: var(--ink); text-decoration: none; flex: 0 1 auto; }
.toc-title:hover { color: var(--deep); text-decoration: underline; text-decoration-color: var(--sky); }
.toc-leader { flex: 1 1 24px; border-bottom: 2px dotted var(--sky-line); transform: translateY(-5px); min-width: 24px; }
.toc-pages { font-family: var(--serif); font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; font-size: 0.98rem; }
.toc-extra .toc-title::after { content: ' (PDF)'; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
@media (max-width: 520px) { .toc-leader { display: none; } .toc-line { flex-wrap: wrap; justify-content: space-between; } }

.about-journal { margin-top: 44px; padding: 20px 22px; background: var(--sky-soft); border-radius: var(--radius); font-size: 0.93rem; color: #33414c; }
.about-journal p:last-child { margin: 0; }
.about-journal .new-site { margin-top: 8px; }

/* Статья */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-top: 36px; align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; } }
.article-title { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.18; max-width: 24em; }
.article-authors { list-style: none; margin: 0 0 24px; padding: 0; }
.article-authors li { margin-bottom: 8px; }
.article-authors .name { font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.article-authors .inst { display: block; font-size: 0.93rem; color: var(--muted); }
.article-section-title { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--deep); margin: 32px 0 10px; }
.abstract { font-family: var(--serif); font-size: 1.12rem; line-height: 1.75; max-width: 42em; }
.article-side { border-left: 1px solid var(--rule); padding-left: 28px; position: sticky; top: 100px; }
@media (max-width: 960px) { .article-side { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; } }
.meta-list { margin: 0; font-size: 0.94rem; }
.meta-list dt { color: var(--muted); font-size: 0.85rem; margin-top: 12px; }
.meta-list dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.article-side .btn { width: 100%; justify-content: center; margin-top: 10px; }
.pdf-inline { display: none; }
@media (max-width: 960px) { .pdf-inline { display: inline-flex; } .article-side .btn { display: none; } }
.cite-box { position: relative; background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--sky); border-radius: var(--radius); padding: 16px 18px; font-family: var(--serif); font-size: 0.98rem; line-height: 1.6; max-width: 46em; }
.cite-box p { margin: 0; }
.cite-actions { margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copied { font-size: 0.88rem; color: var(--deep); }
.article-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); }
.article-pager a { text-decoration: none; display: block; }
.article-pager .dir { display: block; font-size: 0.85rem; color: var(--muted); }
.article-pager .t { font-family: var(--serif); color: var(--ink); line-height: 1.35; }
.article-pager a:hover .t { color: var(--deep); text-decoration: underline; }
.article-pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .article-pager { grid-template-columns: 1fr; } .article-pager .next { grid-column: 1; text-align: left; } }

/* Архив */
.volume { margin: 36px 0 0; }
.volume h2 { border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.issue-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 24px; }
.issue-card a { text-decoration: none; color: var(--ink); display: block; }
.issue-card .cover { width: 100%; transition: transform 0.15s ease; }
.issue-card a:hover .cover { transform: translateY(-2px); }
.issue-card .num { font-family: var(--serif); font-size: 1.1rem; margin-top: 10px; display: block; }
.issue-card .sub { font-size: 0.86rem; color: var(--muted); }
.issue-card a:hover .num { color: var(--deep); text-decoration: underline; }

/* Редколлегия */
.board { list-style: none; margin: 8px 0 0; padding: 0; columns: 2 320px; column-gap: 48px; }
.board li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.board .degree { display: block; font-size: 0.88rem; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.board .name { font-family: var(--serif); font-size: 1.1rem; }
.board button.name { background: none; border: 0; padding: 0; color: var(--deep); cursor: pointer; text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 0.2em; font: inherit; font-family: var(--serif); font-size: 1.1rem; text-align: left; }
.board .role { display: block; font-size: 0.92rem; color: var(--deep); }
.board-heading { margin: 44px 0 4px; }
.board-lead li { display: grid; grid-template-columns: minmax(0, 1fr); }

dialog.profile { border: 0; border-radius: 10px; padding: 0; max-width: min(720px, calc(100vw - 24px)); width: 100%; max-height: calc(100vh - 48px); box-shadow: 0 24px 60px -20px rgba(22, 33, 43, 0.5); color: var(--ink); }
dialog.profile::backdrop { background: rgba(22, 33, 43, 0.45); }
.profile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px 12px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--surface); }
.profile-head h2 { margin: 0; font-size: 1.4rem; }
.profile-close { background: none; border: 1px solid var(--rule); border-radius: var(--radius); width: 36px; height: 36px; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink); flex: none; }
.profile-body { padding: 18px 24px 24px; font-size: 0.96rem; }
.profile-body img { float: right; width: 140px; border-radius: var(--radius); margin: 0 0 12px 16px; }
.profile-body h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; margin: 18px 0 6px; color: var(--deep); }
.profile-body ul { padding-left: 1.2em; margin: 0; }
.profile-ids { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; }
.profile-ids dt { color: var(--muted); }
.profile-ids dd { margin: 0; overflow-wrap: anywhere; }

/* Авторам */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 36px; align-items: start; }
.doc-nav { position: sticky; top: 100px; font-size: 0.94rem; }
.doc-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.doc-nav a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.doc-nav a:hover { color: var(--ink); border-left-color: var(--sky); }
.doc-section { padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); scroll-margin-top: 110px; }
.doc-section:last-child { border-bottom: 0; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; } .doc-nav { position: static; } .doc-nav ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; } .doc-nav a { border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; margin: 0; } }

/* Поиск */
.search-form { display: flex; gap: 10px; max-width: 720px; margin: 8px 0 8px; }
.search-form input[type=search] {
  flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: 12px 14px;
  border: 1px solid #b9cbd6; border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.search-form input[type=search]:focus { outline: 3px solid var(--sky-soft); border-color: var(--deep); }
.search-hint { font-size: 0.9rem; color: var(--muted); }
.results { margin-top: 20px; }
.results-count { color: var(--muted); font-size: 0.95rem; margin-bottom: 4px; }
.result { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.result .toc-title { font-size: 1.15rem; }
.result .where { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.htmx-request .results { opacity: 0.55; transition: opacity 0.15s; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; align-items: center; }
.pager a, .pager span { min-width: 38px; text-align: center; padding: 6px 10px; border-radius: var(--radius); border: 1px solid var(--rule); text-decoration: none; font-size: 0.95rem; }
.pager span[aria-current] { background: var(--deep); color: #fff; border-color: var(--deep); }
.pager a:hover { background: var(--sky-soft); }

/* Новости */
.news-filter { margin: 4px 0 20px; }
.news-article { max-width: 46em; }
.news-article .news-meta { color: var(--muted); margin-bottom: 20px; }
.news-article .news-image { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }

/* Конференции */
.conf-jump { margin: 8px 0 0; }
.conference { padding: 48px 0 8px; border-top: 1px solid var(--rule); margin-top: 40px; scroll-margin-top: 90px; }
.conference:first-of-type { border-top: 0; margin-top: 8px; }
.conference h2 { max-width: 26em; }
.conf-dates { font-family: var(--serif); font-size: 1.2rem; color: var(--deep); margin-bottom: 14px; }
.conf-photos { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 36px; }
.conf-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.conf-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; background: var(--sky-soft); cursor: zoom-in; }
.conf-photo .caption { font-family: var(--serif); font-size: 1rem; line-height: 1.7; color: #2b3944; }
.conf-photo:nth-child(even) img { order: 2; }
@media (max-width: 760px) { .conf-photo { grid-template-columns: 1fr; gap: 12px; } .conf-photo:nth-child(even) img { order: 0; } }

dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(10, 16, 22, 0.85); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 92vh; border-radius: 4px; }
dialog.lightbox button { position: fixed; top: 12px; right: 12px; background: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 1.4rem; cursor: pointer; }

/* Ошибки */
.error-page { padding: 80px 0 40px; max-width: 40em; }
.error-code { font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--sky); margin-bottom: 10px; }

@media print {
  .site-header, .site-footer, .journal-bar, .article-side .btn, .cite-actions, .article-pager, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .article-layout { grid-template-columns: 1fr; }
}
