/* =====================================================================
   «Панлогос» / Panlogos — научный журнал
   Стили в духе российского академического издания: строгая типографика,
   линии вместо карточек, воздух, сдержанная палитра. Русская версия сайта.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=PT+Sans:wght@400;700&family=Noto+Serif+SC:wght@400;500;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --ink: #101418;
  --ink-2: #1c232b;
  --rule: #c9ccd0;
  --rule-strong: #8d9298;
  --rule-soft: #e2e4e7;
  --paper: #ffffff;
  --paper-2: #f7f6f3;
  --accent: #5e1f1f;      /* тёмно-бордовый — совпадает с лого (PANΛOGOS) */
  --accent-ink: #471616;
  --text: #1a1f24;
  --muted: #5c646d;
  --muted-2: #868d95;
  --link: #1f4e79;
  --font-serif: 'PT Serif', 'Noto Serif SC', 'Songti SC', 'SimSun', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'PT Sans', 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text);
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1.05rem; }
/* Основной текст — по ширине (академическая вёрстка).
   Заголовки, подписи, мета, кнопки, навигация — НЕ трогаем. */
.lead, .footnote, .callout p, .rubric p, .rubric .rubdesc,
.cite-text, .hero-lead, .hero-hint, .about-card p, .rc-desc,
.section > .wrap > p, .article-body p, .article-body li {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; color: var(--ink); line-height: 1.22; }
::selection { background: #eadfdf; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

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

/* ===== Верхняя строка ===== */
.topline {
  background: var(--ink);
  color: #cfd4d9;
  font-family: var(--font-sans);
  font-size: .82rem;
  letter-spacing: .012em;
}
.topline .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topline .tl-right { color: #9aa2aa; }
.topline a { color: #cfd4d9; }
.topline a:hover { color: #fff; text-decoration: none; }

/* ===== Шапка издания ===== */
.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead .wrap { padding-top: .85rem; padding-bottom: .85rem; }
.masthead-top { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.mast-brand { display: block; color: inherit; }
.mast-brand:hover { text-decoration: none; }
.mast-logo { display: block; width: clamp(230px, 28vw, 310px); height: auto; }
.mast-title { display: none; }
.masthead .wrap { padding-top: .85rem; padding-bottom: .85rem; }
.mast-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 3.15rem);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  line-height: 1;
}
.mast-latin {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: .45rem;
}
.mast-issn {
  font-family: var(--font-sans);
  font-size: .78rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
  white-space: nowrap;
}
.mast-issn b { color: var(--ink); font-weight: 700; }
.mast-tagline {
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ===== Меню ===== */

/* ===== Кнопка-гамбургер (скрыта на десктопе, показана в mobile media) ===== */
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: .7rem 1rem; flex: 0 0 auto; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink-2); margin: 4px 0; transition: transform .25s, opacity .25s; }
.mainnav.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mainnav.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.mainnav.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mainnav { background: var(--paper); border-bottom: 3px double var(--rule-strong); position: sticky; top: 0; z-index: 40; }
.mainnav .wrap { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
.mainnav a {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .028em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: .95rem 1.05rem .85rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
.mainnav a:hover { color: var(--accent); text-decoration: none; }
.mainnav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.mainnav .nav-cta {
  margin-left: auto;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: .52rem 1.05rem;
  margin-bottom: 0;
  border-bottom-width: 1.5px;
  align-self: center;
}
.mainnav .nav-cta:hover { background: var(--accent); color: #fff; }

/* ===== Разделы ===== */
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--rule-soft); }
.section-head { margin-bottom: 1.7rem; }
.section-head h2 {
  font-size: 1.42rem;
  margin: 0 0 .3rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
}
.section-head .sub { font-family: var(--font-sans); font-size: .87rem; color: var(--muted); margin-top: .55rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.cols-2 { column-count: 2; column-gap: 2.4rem; }
@media (max-width: 720px) { .cols-2 { column-count: 1; } }

/* Аннотация-врезка */
.abstract {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
  margin: 1.4rem 0;
  font-size: .96rem;
  color: var(--ink-2);
}
.abstract .lbl {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  display: block; margin-bottom: .4rem;
}

/* ===== Рубрики — нумерованный список ===== */
.rubrics { border-top: 1px solid var(--rule); }
.rubric {
  display: grid; grid-template-columns: 64px 1fr; gap: 1.3rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--rule-soft);
}
.rubric .num, .rubric .rubc {
  font-family: var(--font-sans); font-size: .82rem; font-weight: 700;
  color: var(--accent); line-height: 1.2; padding-top: .35rem;
  letter-spacing: .02em; white-space: nowrap;
  transform: translateX(.55rem);
}
/* крупные коды 5.10 / 5.8 — чуть шире, чтобы не прилипали к тексту */
.rubric .rubc { font-size: .86rem; }
.rubric .rubdesc { font-family: var(--font-sans); font-size: .93rem; color: var(--ink-2); margin: 0 0 .55rem; max-width: 100%; }
.rubric .specmap {
  font-family: var(--font-sans); font-size: .78rem; color: var(--muted);
  margin: 0 0 .5rem; padding: .3rem 0; border-top: 1px solid var(--rule-soft);
}
.rubric .specmap span { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: var(--muted-2); }
.rubric h3 { font-size: 1.14rem; margin: 0 0 .35rem; }
.rubric p { margin: 0; font-size: .96rem; color: var(--muted); max-width: 100%; }

/* ===== Выпуск ===== */
.issue { display: grid; grid-template-columns: 230px 1fr; gap: 2.4rem; align-items: start; }
.issue-cover {
  border: none; background: transparent; padding: 0; margin: 0;
  aspect-ratio: 3 / 4; overflow: hidden; position: relative;
  box-shadow: 0 14px 34px -22px rgba(16,20,24,.35);
}
.issue-cover .ic-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 640px) { .issue { grid-template-columns: 1fr; } .issue-cover { max-width: 170px; } }

/* ===== Мини-содержание номера в блоке «Текущий выпуск» ===== */
.access-note {
  margin: 1.8rem 0 0; padding: 1.15rem 1.35rem;
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  background: var(--paper);
}
.access-note .an-title {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--accent);
  margin-bottom: .5rem;
}
.access-note p {
  margin: 0; font-family: var(--font-serif); font-size: .95rem;
  line-height: 1.62; color: var(--ink-2); max-width: 72ch;
}
.access-note p b { font-weight: 700; color: var(--ink); }
.access-note .an-ways {
  list-style: none; margin: .9rem 0 0; padding: .8rem 0 0;
  border-top: 1px solid var(--rule-soft);
}
.access-note .an-way {
  display: grid; grid-template-columns: 1.4rem 1fr;
  column-gap: .6rem; row-gap: .1rem; align-items: baseline;
  padding: .45rem 0;
}
.access-note .an-way + .an-way { border-top: 1px dotted var(--rule-soft); }
.access-note .an-ico {
  grid-column: 1; grid-row: 1;
  color: var(--accent); font-size: 1rem; line-height: 1.3;
}
.access-note .an-lbl {
  grid-column: 2; grid-row: 1;
  font-family: var(--font-sans); font-weight: 700; font-size: .86rem;
  color: var(--ink); line-height: 1.4;
}
.access-note .an-txt {
  grid-column: 2; grid-row: 2;
  font-family: var(--font-sans); font-weight: 400; font-size: .84rem;
  color: var(--muted); line-height: 1.5;
}
@media (max-width: 640px) {
  .access-note { padding: 1rem 1.05rem; }
  .access-note p { font-size: .92rem; line-height: 1.55; }
  .access-note .an-lbl { font-size: .84rem; }
  .access-note .an-txt { font-size: .82rem; }
}

.issue-mini-toc { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); max-width: 62ch; }
.issue-mini-toc .imt-head {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--accent);
  margin-bottom: .55rem;
}
.issue-mini-toc .imt-list { list-style: none; margin: 0; padding: 0; }
.issue-mini-toc .imt-list li { border-bottom: 1px solid var(--rule-soft); }
.issue-mini-toc .imt-list li:last-child { border-bottom: none; }
.issue-mini-toc .imt-list a {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: .45rem;
  align-items: start; padding: .7rem 0; text-decoration: none;
}
.issue-mini-toc .imt-code {
  font-family: var(--font-sans); font-size: .74rem; font-weight: 700;
  color: var(--accent); line-height: 1.45; padding-top: .18rem;
  font-variant-numeric: tabular-nums;
}
.issue-mini-toc .imt-title {
  font-family: var(--font-serif); font-size: .93rem; line-height: 1.45; color: var(--ink-2);
  transition: color .2s;
  text-wrap: pretty;
  max-width: 52ch;
}
.issue-mini-toc .imt-list a:hover .imt-title { color: var(--accent); }
.issue-mini-toc .imt-more {
  display: inline-block; margin-top: .8rem;
  font-family: var(--font-sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .03em;
}
/* состояние «содержание ещё не опубликовано» */
.issue-mini-toc .imt-empty,
.issue-empty {
  margin: .2rem 0 0;
  font-family: var(--font-serif);
  font-size: .9rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
}
.issue-empty { margin-top: 2rem; }
@media (max-width: 640px) {
  .issue-mini-toc { max-width: none; }
  .issue-mini-toc .imt-list a { grid-template-columns: 3rem 1fr; gap: .5rem; padding-left: .35rem; }
}

/* ===== Порядок / правила — обычные списки ===== */
ol.steps { margin: 0; padding-left: 1.4rem; }
ol.steps li { margin-bottom: .65rem; }
dl.reqs { margin: 0; }
dl.reqs dt { font-family: var(--font-sans); font-weight: 700; color: var(--ink); font-size: .95rem; margin-top: 1.1rem; }
dl.reqs dd { margin: .25rem 0 0; color: var(--muted); font-size: .96rem; }

/* ===== Ссылки-кнопки (сдержанные) ===== */
.linklist { font-family: var(--font-sans); font-size: .9rem; }
.linklist a { display: inline-block; margin-right: 1.5rem; }
.btn-line {
  display: inline-block;
  font-family: var(--font-sans); font-size: .85rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent);
  padding: .55rem 1.1rem;
}
.btn-line:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ===== Таблицы (редколлегия, требования) ===== */
table.edtable { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .95rem; }
table.edtable th {
  text-align: left; font-family: var(--font-sans); font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  padding: .55rem .8rem; border-bottom: 2px solid var(--ink);
}
table.edtable td { padding: .78rem .8rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
table.edtable td:first-child { font-weight: 700; color: var(--ink); width: 34%; }
table.edtable tbody tr:hover { background: var(--paper-2); }

/* ===== Блок «Подать рукопись» на странице «Авторам» ===== */
.callout {
  margin-top: 1.8rem; padding: 1.3rem 1.5rem;
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  background: var(--paper);
}
/* несколько плашек подряд — одинаковый ритм отступов */
.callout + .callout { margin-top: .9rem; }
.callout h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.callout p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }

/* --- Плотная плашка шаблона: меньше воздуха между заголовком и кнопками --- */
.callout-tpl h3 { margin-bottom: .15rem; }
.callout-tpl p { margin-bottom: .45rem; }
.callout-tpl .tpl-buttons { margin-top: 0; }
.callout-tpl .tpl-buttons { display: flex; flex-wrap: wrap; gap: .55rem; }

/* --- Кнопка подачи: слева, вровень с текстом плашки --- */
.callout-submit .submit-actions { display: flex; justify-content: flex-start; width: 100%; }

/* ===== Раздел «Этика и правила» ===== */
.policy dt { font-family: var(--font-sans); font-weight: 700; color: var(--ink); font-size: .95rem; margin-top: 1.1rem; }
.policy dd { margin: .25rem 0 0; color: var(--muted); font-size: .96rem; }

/* ===== Плашка-примечание ===== */
.footnote {
  margin-top: 1.4rem; padding-top: .9rem; border-top: 1px solid var(--rule-soft);
  font-family: var(--font-sans); font-size: .82rem; color: var(--muted-2);
}

/* ===== Подвал ===== */
.footer {
  background: var(--ink);
  color: #aeb6be;
  font-family: var(--font-sans);
  font-size: .84rem;
  margin-top: 3rem;
  border-top: 3px solid var(--accent);
}
.footer .wrap { padding: 3rem 1.5rem 1.6rem; }

.footer-cols {
  display: grid;
  grid-template-columns: 1.45fr .95fr 1fr 1.35fr .95fr;
  gap: 0;
  align-items: start;
}

/* каждая колонка — с левой линией, кроме первой */
.footer-cols > div { padding: 0 1.6rem; border-left: 1px solid rgba(255,255,255,.09); }
.footer-cols > div:first-child { padding-left: 0; border-left: none; }
.footer-cols > div:last-child { padding-right: 0; }

.footer h4 {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent-soft, #c98f8f);
  margin: 0 0 1rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.footer a {
  display: block;
  color: #aeb6be;
  margin-bottom: .5rem;
  line-height: 1.45;
  transition: color .18s;
}
.footer a:hover { color: #fff; text-decoration: none; }

/* колонка с названием журнала */
.footer .f-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  line-height: 1.2;
}
/* логотип в подвале вместо текстового названия */
.footer .f-logo {
  display: block;
  width: 220px;
  height: auto;
  margin: 0 auto .2rem;
  opacity: .95;
}
/* ссылка-логотип: без подчёркивания, с мягкой реакцией на наведение */
.footer .f-logo-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity .2s;
}
.footer a.f-logo-link,
.footer a.f-logo-link:hover {
  text-decoration: none;
  border-bottom: none;
}
.footer .f-logo-link:hover { opacity: .78; }
.footer .f-logo-link:focus-visible {
  outline: 2px solid rgba(158,58,58,.75);
  outline-offset: 4px;
}
/* вся брендовая колонка — по центру */
.footer .f-brand-block { text-align: center; }
/* линия-разделитель под логотипом */
.footer .f-brand-divider {
  width: 100%;
  max-width: 220px;
  height: 1px;
  margin: 1.35rem auto 1.15rem;
  background: linear-gradient(to right, rgba(158,58,58,.12), rgba(158,58,58,.85), rgba(158,58,58,.12));
}
.footer .f-brand-sub {
  margin: 0 auto;
  max-width: 26ch;
  font-family: var(--font-serif);
  font-size: .8rem;
  line-height: 1.6;
  color: #9aa2aa;
}
.footer .f-brand-zh {
  margin: .35rem 0 0;
  font-family: var(--font-serif);
  font-size: .82rem;
  letter-spacing: .12em;
  color: #8d959d;
}
.footer .f-brand-zh:empty { display: none; }
.footer .f-brand-sub:empty { display: none; }
@media (max-width: 720px) {
  .footer .f-logo { width: 180px; }
  .footer .f-brand-divider { max-width: 180px; }
}
.footer .f-title + p {
  margin-top: .9rem;
  color: #98a0a8;
  font-size: .82rem;
  line-height: 1.6;
  max-width: 30ch;
}

/* контакты */
.footer .f-contact-mail {
  display: inline-block;
  color: #fff;
  font-size: .86rem;
  letter-spacing: .01em;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  margin-bottom: 1rem;
}
.footer .f-contact-mail:hover { border-color: #fff; }
.footer .f-contact-note {
  color: #8c949c;
  font-size: .78rem;
  line-height: 1.55;
  margin: 0;
}

/* нижняя полоса */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  margin-top: 1.4rem;
  padding-top: 1rem;
  font-size: .76rem;
  color: #79818a;
  line-height: 1.6;
}
.f-founder {
  font-family: var(--font-sans);
  font-size: .76rem;
  color: #79818a;
  margin: 0 0 .5rem;
  max-width: 70ch;
  line-height: 1.6;
}

/* адаптив */
@media (max-width: 1080px) {
  .footer-cols { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
  .footer-cols > div:nth-child(5) { grid-column: 1 / -1; padding: 1.4rem 0 0; border-left: none;
                                    border-top: 1px solid rgba(255,255,255,.09); margin-top: 1.4rem; }
}
@media (max-width: 720px) {
  .footer .wrap { padding: 2.2rem 1.2rem 1.4rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 0; }
  .footer-cols > div { padding: 1.3rem 0 0; border-left: none;
                       border-top: 1px solid rgba(255,255,255,.09); }
  .footer-cols > div:first-child { padding-top: 0; border-top: none; }
  .footer-cols > div:nth-child(5) { margin-top: 0; padding-top: 1.3rem; }
}

/* ===== Списки научных специальностей в рубриках ===== */
.rubric ul.spec { list-style: none; margin: .5rem 0 0; padding: 0; }
.rubric ul.spec li {
  font-family: var(--font-sans); font-size: .88rem; color: var(--muted);
  padding: .28rem 0 .28rem 0; border-bottom: 1px solid var(--rule-soft);
  max-width: 100%;
}
.rubric ul.spec li:last-child { border-bottom: none; }
.rubric ul.spec li b { color: var(--ink-2); font-weight: 700; margin-right: .25rem; }
.rubric .num { font-size: 1.25rem; }



/* ===== Китайский набор: более плотный и читаемый ===== */
html[lang="zh"] body { font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif; }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] h4 {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-weight: 700;
}
html[lang="zh"] .mast-title { font-family: 'PT Serif', serif; }
html[lang="zh"] p, html[lang="zh"] li, html[lang="zh"] dd, html[lang="zh"] dt { letter-spacing: .01em; }

/* ===== Учредитель в подвале ===== */
.f-founder { font-family: var(--font-sans); font-size: .78rem; color: var(--muted); margin-top: .55rem; max-width: 60ch; line-height: 1.5; }


/* ===== Карточки рубрик на главной ===== */
.rubrics-home { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
@media (max-width:900px){ .rubrics-home { grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .rubrics-home { grid-template-columns:1fr; } }
.rubric-card { display:flex; flex-direction:column; gap:.5rem; height:100%; padding:1.3rem 1.4rem; border:1px solid var(--rule, #e5e0d8); border-top:3px solid var(--accent, #7c2d2d); background:var(--paper, #fff); text-decoration:none; color:inherit; transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.rubric-card:hover { box-shadow:0 4px 18px rgba(0,0,0,.08); transform:translateY(-2px); border-color:var(--accent, #7c2d2d); }
.rc-code { font-family:var(--font-sans, sans-serif); font-size:.75rem; font-weight:700; letter-spacing:.06em; color:var(--accent, #7c2d2d); }
.rc-title { font-family:var(--font-serif, Georgia, serif); font-size:1.05rem; font-weight:700; margin:0; color:var(--ink, #1a1a1a); }
.rc-desc { font-size:.82rem; line-height:1.55; color:var(--muted, #6b6b6b); margin:0; }
.rc-more { font-size:.8rem; color:var(--accent, #7c2d2d); margin-top:auto; padding-top:.7rem; }


/* ===== Выпуски: факты и как формируется ===== */
.issue-facts { list-style:none; padding:0; margin:1rem 0; border-top:1px solid var(--rule,#e5e0d8); }
.issue-facts li { display:flex; justify-content:space-between; gap:1rem; padding:.5rem 0; border-bottom:1px solid var(--rule,#e5e0d8); font-size:.88rem; }
.if-lbl { color:var(--muted,#6b6b6b); }
.howflow { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; counter-reset:hf; }
@media (max-width:900px){ .howflow { grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .howflow { grid-template-columns:1fr; } }
.hf-step { display:flex; flex-direction:column; gap:.4rem; padding:1.15rem 1.2rem; border:1px solid var(--rule-soft,#e2e4e7); border-top:3px solid var(--accent,#7c2d2d); background:var(--paper,#ffffff); font-size:.82rem; line-height:1.45; height:100%; }
.hf-n { font-family:var(--font-sans,sans-serif); font-size:1.3rem; font-weight:700; color:var(--accent,#7c2d2d); opacity:.55; }


/* ===== Подсказка в hero ===== */
.hero-hint { margin-top:1.2rem; font-size:.9rem; color:var(--muted,#6b6b6b); line-height:1.6; max-width:54ch; }
.hero-hint a { color:var(--accent,#7c2d2d); text-decoration:underline; }


/* ===== Содержание выпуска (TOC) ===== */
.toc { display:flex; flex-direction:column; gap:0; border-top:1px solid var(--rule,#e5e0d8); margin-top:1.5rem; }
.toc-item { display:grid; grid-template-columns:auto 1fr auto; gap:1rem; align-items:start; padding:1.1rem 0; border-bottom:1px solid var(--rule,#e5e0d8); }
.toc-code { font-family:var(--font-sans,sans-serif); font-size:.78rem; font-weight:700; color:var(--accent,#7c2d2d); padding-top:.2rem; min-width:3.2rem; }
.toc-title { font-family:var(--font-serif,Georgia,serif); font-size:1.05rem; font-weight:700; margin:0 0 .3rem; }
.toc-title a { color:var(--ink,#1a1a1a); text-decoration:none; }
.toc-title a:hover { color:var(--accent,#7c2d2d); }
.toc-authors { font-size:.85rem; color:var(--muted,#6b6b6b); margin-bottom:.25rem; }
.toc-meta { font-size:.78rem; color:var(--muted,#6b6b6b); }
.toc-rubric { color:var(--accent,#7c2d2d); }
.toc-pdf { font-size:.78rem; color:var(--accent,#7c2d2d); text-decoration:none; white-space:nowrap; padding-top:.3rem; }
@media (max-width:600px){ .toc-item { grid-template-columns:1fr; } .toc-code{min-width:0;} }

/* ===== Страница статьи ===== */
.article-wrap { max-width:820px; }
.crumb { font-size:.82rem; color:var(--muted,#6b6b6b); margin-bottom:1.2rem; }
.crumb a { color:var(--accent,#7c2d2d); text-decoration:none; }
.article-head { border-bottom:2px solid var(--ink,#1a1a1a); padding-bottom:1.4rem; margin-bottom:1.6rem; }
.a-code { font-size:.8rem; font-weight:700; letter-spacing:.05em; color:var(--accent,#7c2d2d); margin-bottom:.6rem; }
.a-title { font-family:var(--font-serif,Georgia,serif); font-size:1.75rem; line-height:1.25; font-weight:700; margin:0 0 .9rem; color:var(--ink,#1a1a1a); }
.a-authors { font-size:1.05rem; color:var(--ink-2,#333); margin-bottom:.2rem; }
.a-affil { font-size:.88rem; color:var(--muted,#6b6b6b); font-style:italic; margin-bottom:.7rem; }
.a-meta { font-size:.8rem; color:var(--muted,#6b6b6b); margin-bottom:1.1rem; }
.a-actions { display:flex; gap:.7rem; flex-wrap:wrap; }
.a-abstract { font-size:.95rem; line-height:1.7; color:var(--ink-2,#333); }
.a-kw { margin-top:1.1rem; font-size:.9rem; }
.a-kw .lbl { color:var(--muted,#6b6b6b); }
.cite-box { display:flex; gap:1rem; align-items:flex-start; flex-wrap:wrap; padding:1rem 1.1rem; border:1px solid var(--rule,#e5e0d8); background:var(--paper-2,#faf8f5); }
.cite-text { font-size:.88rem; line-height:1.55; margin:0; flex:1; min-width:min(360px,100%); }
.a-refs { font-size:.88rem; line-height:1.6; color:var(--ink-2,#333); padding-left:1.4rem; }


/* ===== О журнале: карточки ===== */
.about-cards { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:1.4rem; align-items:stretch; }
@media (max-width:700px){ .about-cards { grid-template-columns:1fr; } }
.about-card { display:flex; flex-direction:column; padding:1.3rem 1.4rem; border:1px solid var(--rule,#e5e0d8); border-top:3px solid var(--accent,#7c2d2d); background:var(--paper,#fff); }
.about-card p { margin:.65rem 0 0; font-size:.93rem; line-height:1.7; color:var(--ink-2,#333); text-align:justify; hyphens:auto; -webkit-hyphens:auto; }
.ac-mark { font-family:var(--font-sans,sans-serif); font-size:.74rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--accent,#7c2d2d); margin-bottom:.15rem; }


/* =====================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (≤720px)
   ===================================================================== */
@media (max-width: 720px) {

  /* --- Верхняя служебная строка --- */
  .topline { font-size: .7rem; }
  .topline .wrap { min-height: auto; padding: .45rem 0; gap: .4rem .7rem; }
  .topline .tl-right { font-size: .68rem; }
  .topline .tl-right a[href^="mailto"] { word-break: break-all; }

  /* --- Шапка с названием --- */
  .masthead { padding: 1.1rem 0 .9rem; }
  .mast-title { font-size: 2rem !important; line-height: 1.05; }
  .masthead-top { gap: .4rem; }

  /* --- Навигация: бургер + выпадающее меню --- */
  .mainnav { position: sticky; top: 0; }
  .nav-burger { display: block; }
  .mainnav .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 0;
    position: relative;
  }
  .mainnav .wrap { padding: 0 1rem; }
  .mainnav a {
    font-size: .82rem;
    letter-spacing: .03em;
    padding: .85rem 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--rule-soft);
    border-left: none;
    color: var(--ink-2);
  }
  .mainnav a.active { color: var(--accent); border-bottom-color: var(--rule-soft); }
  .mainnav .nav-cta {
    margin: .6rem 0;
    width: 100%;
    text-align: center;
    justify-content: center;
    border: 1px solid var(--accent);
    padding: .6rem 1rem;
  }
  /* ссылки скрыты, пока меню закрыто */
  .mainnav:not(.nav-open) a { display: none; }
  .mainnav.nav-open a { display: block; }

  /* --- Hero --- */
  .hero { padding: 1.6rem 0 1.2rem; }
  .hero-title { font-size: 1.6rem !important; }
  .hero-latin { font-size: .85rem; }
  .hero-lead { font-size: .95rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: .6rem; }
  .hero-actions .btn-solid, .hero-actions .btn-ghost { width: 100%; text-align: center; justify-content: center; }
  .hero-art { margin-top: 1.2rem; }
  .cover { max-width: 240px; margin: 0 auto; }

  /* --- Секции: меньше отступов --- */
  .section { padding: 1.6rem 0; }
  .section-head { margin-bottom: 1rem; }
  h2 { font-size: 1.35rem !important; }
  .sub { font-size: .85rem; }
  .wrap { padding-left: 1rem; padding-right: 1rem; }

  /* --- Сетки в одну колонку --- */
  .rubrics-home, .about-cards, .howflow, .cols-2 { grid-template-columns: 1fr !important; }

  /* --- Карточки рубрик --- */
  .rubric-card { padding: .95rem 1rem; }
  .rc-title { font-size: 1rem; }

  /* --- Карточки «О журнале» --- */
  .about-card { padding: 1.1rem 1.1rem; }

  /* --- TOC (содержание выпуска) --- */
  .toc-item { grid-template-columns: 1fr !important; gap: .35rem; padding: .95rem 0; }
  .toc-code { min-width: 0; padding-top: 0; }
  .toc-pdf { padding-top: 0; }

  /* --- Страница статьи --- */
  .article-wrap { max-width: 100%; }
  .a-title { font-size: 1.35rem !important; line-height: 1.3; }
  .a-actions { flex-direction: column; }
  .a-actions .btn-line, .a-actions .btn-ghost { width: 100%; text-align: center; justify-content: center; }
  .cite-box { flex-direction: column; align-items: stretch; }
  .cite-box .btn-ghost { width: 100%; }

  /* --- Flow-шаги (порядок рассмотрения) --- */
  .steps-flow { grid-template-columns: 1fr !important; border-top: 1px solid var(--rule); }
  .step-card { border-left: none !important; border-bottom: 1px solid var(--rule-soft); padding: 1.1rem 0 !important; }
  .step-card:last-child { border-bottom: none; }

  /* --- Таблицы (если есть) --- */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* --- Футер --- */
  .footer-cols { grid-template-columns: 1fr !important; gap: 1.4rem; }
}


/* --- Редакция: карточки состава (2026-10-16) --- */
.edgroup-h { margin: 1.6rem 0 .3rem; font-size: 1.15rem; color: var(--ink); }
.edcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0 .5rem; }
.edcard { border: 1px solid var(--rule); border-radius: 10px; padding: 1rem 1.1rem; background: var(--paper); }
.edcard-empty { grid-column: 1 / -1; color: var(--ink-2); font-size: .95rem; border-style: dashed; text-align: center; }
.edcard .edname { font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.edcard .edrole { font-size: .85rem; color: #8a6d3b; margin-top: .15rem; }
.edcard .edaff { font-size: .88rem; color: var(--ink-2); margin-top: .35rem; }
.edcard .edbio { font-size: .86rem; color: var(--ink-2); margin-top: .4rem; line-height: 1.5; }
.edcard .edphoto { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; float: left; margin: 0 .8rem .4rem 0; }

/* --- Образцы оформления литературы (2026-10-16) --- */
.bib-item { border: 1px solid var(--rule); border-radius: 10px; padding: 1rem 1.15rem; margin: 1rem 0; background: var(--paper); }
.bib-item h3 { margin: 0 0 .6rem; font-size: 1rem; color: var(--ink); }
.bib-ru, .bib-en { font-size: .9rem; line-height: 1.55; color: var(--ink-2); padding: .4rem 0; border-top: 1px dashed var(--rule); }
.bib-lbl { display: inline-block; min-width: 4.5rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8a6d3b; margin-right: .4rem; }

/* ===== Уведомление о юридически значимой версии ===== */
.legal-notice {
  max-width: var(--wrap, 1140px);
  margin: 1.2rem auto 0;
  padding: .75rem 1.1rem;
  border-left: 3px solid var(--accent, #5e1f1f);
  background: #faf8f5;
  font-family: var(--font-sans);
  font-size: .84rem;
  line-height: 1.5;
  color: #6b6b6b;
}
@media (max-width: 900px) {
  .legal-notice { margin: 1rem; }
}

/* ===== Реквизиты в юридических документах ===== */
.legal-requisites {
  max-width: var(--wrap, 1140px);
  margin: 2.6rem auto 0;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--rule-soft, #e2e4e7);
  border-left: 3px solid var(--accent, #5e1f1f);
  background: #faf9f7;
  font-family: var(--font-sans);
  font-size: .8rem;
  line-height: 1.7;
  color: #5b6068;
}
.legal-requisites h4 {
  font-size: .68rem;
  font-weight: 700;
  uppercase;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent, #5e1f1f);
  margin: 0 0 .8rem;
}
.legal-requisites p { margin: 0 0 .3rem; }
.legal-requisites p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .legal-requisites { margin: 2rem 1rem 0; }
}
/* кнопки удаления таблиц/формул — только в редакторе, не на сайте */
.article .tbl-del, .article .fml-del,
article .tbl-del, article .fml-del { display: none !important; }

/* ===== МОБИЛЬНАЯ ТИПОГРАФИКА И ДОСТУПНОСТЬ =====
   Яндекс проверяет читаемость на телефоне: мелкий текст < 12px
   считается ошибкой, кнопки < 32px — неудобными для касания. */
@media (max-width: 760px) {
  /* базовый кегль: весь текст не мельче 13px */
  body { font-size: 16px; }

  /* служебные подписи: было .68–.75rem (11–12px) — поднимаем до 13px */
  .topline,
  .topline .tl-right,
  .abstract .lbl,
  .access-note .an-title,
  .issue-mini-toc .imt-head,
  .issue-mini-toc .imt-code,
  .rubric .specmap span,
  .rc-code,
  .ac-mark,
  .bib-lbl,
  .footer h4,
  .legal-requisites h4,
  .issue-cover .ic-sub {
    font-size: 13px !important;
    letter-spacing: .04em !important;
  }

  /* основной текст — крупнее, читаемее */
  .article-body p, .body p, .abstract p, .about-card p, .bib-ru, .bib-en {
    font-size: 16px;
    line-height: 1.7;
  }

  /* выключка по ширине на узком экране даёт «дыры» между словами */
  p, .about-card p, .abstract p, .body p { text-align: left !important; }

  /* зоны нажатия не меньше 40px */
  .lang-switch a, .lang-switch button,
  .topline a, .footer a {
    display: inline-block;
    min-height: 40px;
    line-height: 40px;
    padding: 0 .35rem;
  }

  /* таблицы не должны ломать вёрстку */
  .article table, .body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* отключаем горизонтальную прокрутку от декоративных элементов */
  html, body { overflow-x: hidden; }
}

/* совсем узкие экраны (iPhone SE и подобные) */
@media (max-width: 400px) {
  .topline, .topline .tl-right { font-size: 12.5px !important; }
  .wrap { padding-left: 14px; padding-right: 14px; }
}

/* таблица в статье на телефоне: прокрутка внутри контейнера, без выхода за экран */
@media (max-width: 760px) {
  .body table, .article table, .ea-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    table-layout: auto;
  }
  .body table tr, .article table tr, .ea-table tr { white-space: nowrap; }
  .body, .article { max-width: 100%; overflow-x: hidden; }
}
/* table-scroll-fix */

@media (max-width: 760px) {
  .hero-eyebrow { font-size: 13px !important; letter-spacing: .04em !important; }
  /* таблица статьи: обёртка прокручивается, строки не рвут вёрстку */
  .tbl-placeholder {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tbl-placeholder table { min-width: 0; }
  .tbl-placeholder tbody, .tbl-placeholder thead { display: table-row-group; }
  .tbl-placeholder tr { display: table-row; }
  .tbl-placeholder th, .tbl-placeholder td { white-space: normal; }
}

/* ссылки-кнопки внутри текста на телефоне: зона нажатия 40px */
@media (max-width: 760px) {
  .hero-hint a, .about-card a, .body a, .refs a,
  .issue-more a, .card a.btn-line, a.link-more, .bib a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
  .footer a, .topline a { min-height: 40px; display: inline-flex; align-items: center; }
}

/* LINKLIST TOUCH: ссылки-стрелки и ссылки в тексте — 40px для пальца */
@media (max-width: 760px) {
  .linklist a,
  .hero-hint a,
  .about-card a,
  .body a,
  .refs a,
  .bib a,
  .card a,
  .footer a,
  .topline a {
    display: inline-flex !important;
    align-items: center;
    min-height: 40px;
    padding: 0 2px;
  }
  .linklist { display: flex; flex-direction: column; gap: .1rem; }
  .linklist a { min-height: 44px; }
}

/* INLINE TEXT LINKS TOUCH: ссылки внутри абзацев не должны быть «ниткой» */
@media (max-width: 760px) {
  p a, li a, .hero p a, .about p a, .note a, .footnote a {
    display: inline;
    padding: .55rem 0;
    line-height: 2;
    text-underline-offset: 3px;
  }
}

/* LAST TOUCH FIX: inline-ссылки и e-mail на телефоне */
@media (max-width: 760px) {
  .hero-hint a, .about-card a, .access-note a,
  a[href^="mailto"] {
    display: inline-block;
    min-height: 40px;
    padding: .55rem 0;
    line-height: 1.5;
  }
}

/* INLINE TOUCH FINAL: увеличиваем вертикальный бокс ссылки внутри абзаца */
@media (max-width: 760px) {
  .hero-hint, .hero-hint a, .about-card p, .about-card p a {
    line-height: 2.1;
  }
  .hero-hint a, .about-card p a {
    padding: .5rem 0;
    background: rgba(94,31,31,.04);
    border-radius: 3px;
  }
}
