/* =============================================================================
   Дизайн-система сайта отдела аспирантуры и докторантуры ОшГУ
   -----------------------------------------------------------------------------
   Направление — «научный вестник»: строгая печатная типографика, датировка
   как у реестра защит, латунь вместо декоративных акцентов. Один источник
   правды для цвета, шрифта и ритма: компоненты собираются только из токенов.
   ========================================================================== */

:root {
  /* Синий взят глубже муниципального: он работает фоном под белым текстом
     в мачте и подвале. Латунь — единственный акцент, и тратится скупо. */
  --navy:        #0E2B4D;
  --navy-2:      #14395F;
  --navy-3:      #1B4A78;
  --brand:       #1A5FA8;
  --brand-ink:   #12457C;
  --brand-soft:  #E9F0F8;
  --brass:       #A67C2B;
  --brass-soft:  #F7EFDF;
  --success:     #2C6B4F;
  --success-soft:#E3F0E9;
  --danger:      #A8362A;
  --danger-soft: #F9EAE8;

  /* Форматы файлов различаются цветом — по списку документов видно,
     что скачиваешь, ещё до клика. */
  --fmt-pdf: #B23A2C;  --fmt-pdf-soft: #FAEAE7;
  --fmt-doc: #2A5DA8;  --fmt-doc-soft: #E9F0FA;
  --fmt-xls: #2C6B4F;  --fmt-xls-soft: #E4F0EA;

  --ground:     #F4F6FA;
  --ground-2:   #ECF0F6;
  --surface:    #FFFFFF;
  --surface-2:  #F1F4F9;
  --ink:        #101922;
  --ink-2:      #4C5A6B;
  --ink-3:      #7C8899;
  --rule:       #DFE5EE;
  --rule-soft:  #EBEFF5;
  --on-navy:    #E8EFF7;
  --on-navy-2:  #A9C0DA;
  --chip-on-bg:  #0E2B4D;
  --chip-on-ink: #FFFFFF;

  --lift:   0 2px 4px -2px rgba(14, 43, 77, .10), 0 12px 28px -14px rgba(14, 43, 77, .28);
  --lift-2: 0 4px 8px -4px rgba(14, 43, 77, .14), 0 24px 48px -20px rgba(14, 43, 77, .34);

  --font-head: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Шкала с заметным контрастом: заголовок статьи должен звучать громче
     подзаголовка, иначе страница читается как сплошная серая масса. */
  --step--1: .8125rem;
  --step-0:  1.0625rem;
  --step-1:  1.1875rem;
  --step-2:  1.4375rem;
  --step-3:  1.875rem;
  --step-4:  clamp(2.1rem, 3.6vw, 3rem);
  --step-5:  clamp(2.6rem, 5.2vw, 4rem);

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 18px;
  --space-5: 26px; --space-6: 38px; --space-7: 56px; --space-8: 88px;

  --radius-sm: 5px;
  --radius:    9px;
  --radius-lg: 14px;
  --wrap: 1260px;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy:        #0B1520;
    --navy-2:      #101C2A;
    --navy-3:      #1A2C41;
    --brand:       #79B0EC;
    --brand-ink:   #A6CDF6;
    --brand-soft:  #132639;
    --brass:       #D6AC61;
    --brass-soft:  #2B2417;
    --success:     #6FC098;
    --success-soft:#16291F;
    --danger:      #E7836F;
    --danger-soft: #33201C;

    --fmt-pdf: #E7836F;  --fmt-pdf-soft: #32201D;
    --fmt-doc: #79B0EC;  --fmt-doc-soft: #16273A;
    --fmt-xls: #6FC098;  --fmt-xls-soft: #16291F;

    --ground:    #0C1219;
    --ground-2:  #0F1720;
    --surface:   #141C26;
    --surface-2: #1A232F;
    --ink:       #E6EBF2;
    --ink-2:     #9DAAB9;
    --ink-3:     #77838F;
    --rule:      #26303C;
    --rule-soft: #1E2833;
    --on-navy:   #DCE7F3;
    --on-navy-2: #8CA3BD;
    --chip-on-bg:  #79B0EC;
    --chip-on-ink: #0B1520;

    --lift:   0 2px 4px -2px rgba(0, 0, 0, .5), 0 12px 28px -14px rgba(0, 0, 0, .7);
    --lift-2: 0 4px 8px -4px rgba(0, 0, 0, .55), 0 24px 48px -20px rgba(0, 0, 0, .8);
  }
}

:root[data-theme="dark"] {
  --navy:        #0B1520;
  --navy-2:      #101C2A;
  --navy-3:      #1A2C41;
  --brand:       #79B0EC;
  --brand-ink:   #A6CDF6;
  --brand-soft:  #132639;
  --brass:       #D6AC61;
  --brass-soft:  #2B2417;
  --success:     #6FC098;
  --success-soft:#16291F;
  --danger:      #E7836F;
  --danger-soft: #33201C;

  --fmt-pdf: #E7836F;  --fmt-pdf-soft: #32201D;
  --fmt-doc: #79B0EC;  --fmt-doc-soft: #16273A;
  --fmt-xls: #6FC098;  --fmt-xls-soft: #16291F;

  --ground:    #0C1219;
  --ground-2:  #0F1720;
  --surface:   #141C26;
  --surface-2: #1A232F;
  --ink:       #E6EBF2;
  --ink-2:     #9DAAB9;
  --ink-3:     #77838F;
  --rule:      #26303C;
  --rule-soft: #1E2833;
  --on-navy:   #DCE7F3;
  --on-navy-2: #8CA3BD;
  --chip-on-bg:  #79B0EC;
  --chip-on-ink: #0B1520;

  --lift:   0 2px 4px -2px rgba(0, 0, 0, .5), 0 12px 28px -14px rgba(0, 0, 0, .7);
  --lift-2: 0 4px 8px -4px rgba(0, 0, 0, .55), 0 24px 48px -20px rgba(0, 0, 0, .8);
}

/* ---------------------------------------------------------------- основа */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 640px) { body { font-size: 1rem; } }

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.018em;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 var(--space-4); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100;
             background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; top: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-5); }
@media (max-width: 640px) { .wrap { padding: 0 var(--space-4); } }
.prose-width { max-width: var(--measure); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-7);
  align-items: start;
  padding: var(--space-7) 0 var(--space-8);
}
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
}
.stack--tight { display: grid; gap: var(--space-3); }
.stack--loose { display: grid; gap: var(--space-8); }

/* ---------------------------------------------------------------- мачта
   Два тёмных ряда вместо трёх: реквизиты и языки в первом, меню во втором.
   Нижний ряд прилипает к верху при прокрутке. */

.masthead { background: var(--navy); color: var(--on-navy); }
.masthead__top { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.masthead__top .wrap {
  display: flex; align-items: center; gap: var(--space-5);
  padding-top: var(--space-4); padding-bottom: var(--space-4);
}

.brand { display: flex; align-items: center; gap: var(--space-4); color: inherit; min-width: 0; }
.brand:hover { color: inherit; }
.brand img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.brand__name {
  font-family: var(--font-head); font-weight: 600; font-size: 1.125rem;
  line-height: 1.2; letter-spacing: -.015em; display: block;
}
.brand__sub {
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--on-navy-2); display: block; margin-top: 3px;
}

.masthead__tools { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }

.langs { display: flex; gap: 2px; }
.langs a {
  padding: 4px 9px; border-radius: var(--radius-sm); font-family: var(--font-mono);
  font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-navy-2);
}
.langs a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.langs a[aria-current="true"] { background: rgba(255, 255, 255, .15); color: #fff; }

.search {
  display: flex; align-items: center; gap: var(--space-2);
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: 3px 5px 3px 16px;
}
.search input {
  border: 0; background: none; color: var(--on-navy); font: inherit; font-size: .875rem;
  width: 200px; padding: 5px 0;
}
.search input::placeholder { color: var(--on-navy-2); }
.search input:focus { outline: none; }
.search button {
  border: 0; background: var(--brass); color: #22190A; border-radius: 999px;
  width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; flex: none;
}
.search button:hover { filter: brightness(1.08); }
@media (max-width: 900px) { .search input { width: 130px; } }

/* На телефоне шапка перестраивается в два ряда: логотип с языками и темой
   сверху, поиск отдельной строкой. Инструменты раскрываются в поток
   через display:contents, иначе строка не помещается и вся страница
   уезжает вбок — по самому широкому элементу растягивается весь документ. */
@media (max-width: 720px) {
  .masthead__top .wrap { flex-wrap: wrap; gap: var(--space-3); }
  .masthead__tools { display: contents; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand img { width: 42px; height: 42px; }
  .brand__name { font-size: 1.0625rem; }
  .langs { order: 1; margin-left: auto; }
  .icon-btn { order: 2; }
  .search { order: 3; flex: 1 1 100%; min-width: 0; }
  .search input { width: 100%; flex: 1 1 auto; min-width: 0; }
}

/* Тот же поиск на светлом фоне — внутри страниц.
   Здесь поле тянется на всю ширину формы, иначе кнопка встаёт посреди строки. */
.search--inline { background: var(--surface); border-color: var(--rule); width: 100%; }
.search--inline input { color: var(--ink); width: 100%; flex: 1 1 auto; min-width: 0; }
.search--inline input::placeholder { color: var(--ink-3); }

.icon-btn {
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
  color: var(--on-navy); width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn:hover { background: rgba(255, 255, 255, .14); }

.nav { background: var(--navy); position: sticky; top: 0; z-index: 40;
       box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
.nav .wrap { display: flex; align-items: center; }
/* Меню держится в одну строку: перенос на вторую строку выглядит как сбой вёрстки.
   Если пунктов станет больше — строка прокручивается вбок. */
.nav__list { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav__list::-webkit-scrollbar { display: none; }
.nav__list a {
  color: var(--on-navy); font-size: .9375rem; font-weight: 500; letter-spacing: -.005em;
  padding: 15px var(--space-3) 12px; display: block; border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav__list a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .28); }
.nav__list a[aria-current="page"] { color: #fff; border-bottom-color: var(--brass); }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav .wrap { flex-direction: column; align-items: stretch; }
  .nav__toggle {
    display: flex; align-items: center; gap: var(--space-2); background: none; border: 0;
    color: var(--on-navy); font: inherit; font-weight: 500; padding: 14px 0; cursor: pointer;
  }
  .nav__list { display: none; flex-direction: column; overflow: visible;
               padding-bottom: var(--space-3); }
  .nav__list.is-open { display: flex; }
  .nav__list a { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
}

/* ---------------------------------------------------------------- заголовки разделов */

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4);
  margin-bottom: var(--space-5); padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule); position: relative;
}
/* Латунная засечка у левого края линейки — единственная декоративная деталь,
   и она же метка начала раздела. */
.section-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 2px;
  background: var(--brass);
}
.section-head h2 { margin: 0; font-size: var(--step-3); }
.section-head__link { font-size: .875rem; font-weight: 500; white-space: nowrap; }

.eyebrow {
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 var(--space-2);
}

.meta {
  display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4);
  font-size: var(--step--1); color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.meta time { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .01em; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 500;
  padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
}
.tag--soon     { background: var(--success-soft); color: var(--success); }
.tag--deadline { background: var(--brass-soft);  color: var(--brass); }

.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--brand); color: #fff; border: 0;
  padding: 12px 24px; border-radius: var(--radius-sm); font: inherit; font-weight: 500;
  font-size: .9375rem; cursor: pointer;
}
.btn:hover { background: var(--brand-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1px var(--rule); }
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand-ink); }

.card { background: var(--surface); border-radius: var(--radius-lg);
        box-shadow: inset 0 0 0 1px var(--rule); }

/* ---------------------------------------------------------------- витрина */

.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        gap: var(--space-5); padding-top: var(--space-6); }
@media (max-width: 940px) { .hero { grid-template-columns: minmax(0, 1fr); } }

.hero__lead {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-2); min-height: 440px; display: flex; align-items: flex-end;
  color: #fff; box-shadow: var(--lift);
}
.hero__lead:hover { color: #fff; }
.hero__lead img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}
.hero__lead:hover img { transform: scale(1.035); }
.hero__lead-body {
  position: relative; width: 100%;
  padding: var(--space-8) var(--space-6) var(--space-6);
  background: linear-gradient(to top,
              rgba(6, 17, 30, .94) 14%, rgba(6, 17, 30, .62) 55%, rgba(6, 17, 30, 0));
}
.hero__lead .eyebrow { color: #E2C68C; }
.hero__lead h2 { color: #fff; font-size: var(--step-3); margin-bottom: var(--space-3);
                 max-width: 22ch; letter-spacing: -.022em; }
.hero__lead .meta { color: #B7C8DA; }

.hero__side { display: grid; align-content: start; }
.hero__item {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--space-4);
  color: inherit; padding: var(--space-4) 0; border-bottom: 1px solid var(--rule);
}
.hero__item:first-child { padding-top: 0; }
.hero__item:last-child  { border-bottom: 0; }
.hero__item img { width: 104px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.hero__item--flat { grid-template-columns: minmax(0, 1fr); }
.hero__item h3 {
  font-family: var(--font-body); font-size: .9375rem; font-weight: 500; line-height: 1.42;
  margin: 0 0 5px; letter-spacing: 0;
}
.hero__item:hover h3 { color: var(--brand); }

/* ---------------------------------------------------------------- быстрые ссылки */

.quick {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--lift); margin-top: var(--space-6);
}
@media (max-width: 860px) { .quick { grid-template-columns: minmax(0, 1fr); } }
.quick a {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-4);
  align-items: start; padding: var(--space-5) var(--space-5) var(--space-5);
  color: inherit; border-right: 1px solid var(--rule-soft); position: relative;
}
.quick a:last-child { border-right: 0; }
@media (max-width: 860px) {
  .quick a { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .quick a:last-child { border-bottom: 0; }
}
.quick a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brass); transform: scaleY(0); transform-origin: top;
  transition: transform .28s ease;
}
.quick a:hover { background: var(--surface-2); color: inherit; }
.quick a:hover::before { transform: scaleY(1); }
.quick__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.quick strong { font-family: var(--font-head); font-size: 1.0625rem; display: block;
                margin-bottom: 3px; }
.quick span.q { font-size: .875rem; color: var(--ink-2); line-height: 1.5; display: block; }

/* ---------------------------------------------------------------- новости */

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
             gap: var(--space-6) var(--space-5); }
.news-item { display: grid; gap: var(--space-3); color: inherit; align-content: start; }
.news-item__media {
  aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); box-shadow: var(--lift);
}
.news-item__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.news-item:hover .news-item__media img { transform: scale(1.05); }
.news-item h3 { font-size: 1.125rem; margin: 0; line-height: 1.32; }
.news-item:hover h3 { color: var(--brand); }
.news-item p { font-size: .9375rem; color: var(--ink-2); margin: 0; }

/* Список без картинок читается лучше строками, чем сеткой пустых плиток. */
.news-rows { display: grid; }
.news-rows .news-item {
  grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-5); align-items: start;
  padding: var(--space-5) 0; border-bottom: 1px solid var(--rule);
}
.news-rows .news-item:first-child { padding-top: 0; }
.news-rows .news-item > :not(.news-item__media) { grid-column: 2; }
.news-rows .news-item__media { grid-row: 1 / span 4; }
@media (max-width: 700px) {
  .news-rows .news-item { grid-template-columns: minmax(0, 1fr); }
  .news-rows .news-item > :not(.news-item__media) { grid-column: 1; }
  .news-rows .news-item__media { grid-row: auto; }
}

/* ---------------------------------------------------------------- объявления */

.ann-list { display: grid; }
.ann {
  display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: var(--space-5);
  padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); color: inherit;
}
.ann:first-child { padding-top: 0; }
.ann:hover h3 { color: var(--brand); }
/* Датировка как штамп в журнале защит: моноширинный месяц, крупный день. */
.ann__date {
  text-align: center; padding: var(--space-2) var(--space-1) var(--space-1);
  border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--rule);
  align-self: start; background: var(--surface);
}
.ann__date b {
  display: block; font-family: var(--font-head); font-size: 1.625rem; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.ann__date span {
  font-family: var(--font-mono); font-size: .625rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.ann--soon .ann__date { background: var(--success-soft); box-shadow: inset 0 0 0 1px transparent; }
.ann--soon .ann__date b, .ann--soon .ann__date span { color: var(--success); }
.ann h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600;
          line-height: 1.4; margin: 0 0 var(--space-2); letter-spacing: -.005em; }

/* ---------------------------------------------------------------- боковая колонка */

.rail { display: grid; gap: var(--space-5); align-content: start; }
.rail__box {
  background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-5);
  box-shadow: var(--lift);
}
.rail__title {
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3); border-bottom: 1px solid var(--rule);
}
.rail-menu { list-style: none; margin: 0; padding: 0; display: grid; }
.rail-menu li { border-bottom: 1px solid var(--rule-soft); }
.rail-menu li:last-child { border-bottom: 0; }
.rail-menu a { display: block; padding: 11px 0 11px 16px; color: var(--ink);
               font-size: .9375rem; line-height: 1.42; position: relative; }
.rail-menu a::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 6px; height: 1px;
  background: var(--ink-3); transition: width .2s ease, background .2s ease;
}
.rail-menu a:hover { color: var(--brand); }
.rail-menu a:hover::before { width: 10px; background: var(--brand); }
.rail-menu a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.rail-menu a[aria-current="page"]::before { background: var(--brass); width: 10px; }

.leader { display: grid; gap: var(--space-4); }
.leader img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.leader__name { font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem;
                line-height: 1.28; }
.leader__role { font-size: .8125rem; color: var(--ink-2); margin-top: 3px; }
.leader__links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.leader__links a {
  text-align: center; font-size: .8125rem; padding: 9px; border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2);
}
.leader__links a:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }

.banners { display: grid; gap: var(--space-3); }
.banners a { display: grid; place-items: center; padding: var(--space-4);
             background: var(--surface); border-radius: var(--radius);
             box-shadow: inset 0 0 0 1px var(--rule); }
.banners a:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.banners img { max-height: 44px; width: auto; }

/* ---------------------------------------------------------------- документы */

.docs { display: grid; background: var(--surface); border-radius: var(--radius-lg);
        overflow: hidden; box-shadow: var(--lift); }
.doc {
  display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: var(--space-4);
  align-items: center; padding: var(--space-4) var(--space-5); color: inherit;
  border-bottom: 1px solid var(--rule-soft);
}
.doc:last-child { border-bottom: 0; }
.doc:hover { background: var(--surface-2); color: inherit; }
.doc__ext {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink-2);
  font-family: var(--font-mono); font-size: .625rem; font-weight: 500; letter-spacing: .06em;
}
.doc__ext[data-ext="PDF"] { background: var(--fmt-pdf-soft); color: var(--fmt-pdf); }
.doc__ext[data-ext="DOC"], .doc__ext[data-ext="DOCX"], .doc__ext[data-ext="RTF"]
                         { background: var(--fmt-doc-soft); color: var(--fmt-doc); }
.doc__ext[data-ext="XLS"], .doc__ext[data-ext="XLSX"], .doc__ext[data-ext="CSV"]
                         { background: var(--fmt-xls-soft); color: var(--fmt-xls); }
.doc__title { font-weight: 500; line-height: 1.42; font-size: 1rem; }
.doc:hover .doc__title { color: var(--brand); }
.doc__meta { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3);
             white-space: nowrap; }
@media (max-width: 640px) {
  .doc { grid-template-columns: 42px minmax(0, 1fr); padding: var(--space-4); }
  .doc__ext { width: 42px; height: 42px; }
  .doc__meta { grid-column: 2; }
}

/* ---------------------------------------------------------------- крошки и текст */

.crumbs {
  display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center;
  font-size: var(--step--1); color: var(--ink-3); margin-bottom: var(--space-5);
}
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { color: var(--rule); }

.page-intro { font-size: var(--step-1); color: var(--ink-2); max-width: var(--measure);
              margin-bottom: var(--space-6); }

.content { max-width: var(--measure); font-size: 1.0625rem; line-height: 1.72; }
.content > :first-child { margin-top: 0; }
.content a { text-decoration: underline; text-decoration-thickness: 1px;
             text-underline-offset: 3px;
             text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.content a:hover { text-decoration-color: currentColor; }
.content h2 { font-size: var(--step-2); margin-top: var(--space-7); }
.content h3 { font-size: var(--step-1); margin-top: var(--space-6); }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 var(--space-4); }
.content li { margin-bottom: var(--space-2); }
.content img { border-radius: var(--radius); margin: var(--space-5) 0; }
.content blockquote {
  margin: var(--space-5) 0; padding: var(--space-2) 0 var(--space-2) var(--space-5);
  border-left: 2px solid var(--brass); color: var(--ink-2);
}
.content table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.content th, .content td { border: 1px solid var(--rule); padding: 10px 14px;
                           text-align: left; vertical-align: top; }
.content th { background: var(--surface-2); font-weight: 600; }
.table-scroll { overflow-x: auto; margin: var(--space-5) 0; max-width: 100%;
                border-radius: var(--radius); }

.article-cover { border-radius: var(--radius-lg); width: 100%;
                 margin-bottom: var(--space-6); box-shadow: var(--lift); }

/* ---------------------------------------------------------------- галерея */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
           gap: var(--space-3); }
.gallery button {
  padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: var(--lift);
}
.gallery img { width: 100%; height: 100%; object-fit: cover;
               transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.gallery button:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; z-index: 60; background: rgba(6, 12, 20, .95);
  display: none; place-items: center; padding: var(--space-5);
  backdrop-filter: blur(3px);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1120px, 94vw); max-height: 86vh; object-fit: contain;
                border-radius: var(--radius); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.35rem;
  display: grid; place-items: center;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
                     color: #C6D4E4; font-size: .875rem; }

/* ---------------------------------------------------------------- формы */

.form { display: grid; gap: var(--space-4); max-width: 660px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 500; }
.field input, .field textarea, .field select {
  font: inherit; font-size: .9375rem; padding: 12px 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-sm);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus {
  border-color: var(--brand); outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.field .help  { font-size: var(--step--1); color: var(--ink-3); }
.field .error { font-size: var(--step--1); color: var(--danger); }
.field--invalid input, .field--invalid textarea { border-color: var(--danger); }

.alert { padding: var(--space-4) var(--space-5); border-radius: var(--radius);
         background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule);
         margin-bottom: var(--space-5); }
.alert--success { background: var(--success-soft); color: var(--success);
                  box-shadow: inset 0 0 0 1px transparent; }
.alert--error   { background: var(--danger-soft);  color: var(--danger);
                  box-shadow: inset 0 0 0 1px transparent; }

/* ---------------------------------------------------------------- навигация по спискам */

.pagination { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6);
              list-style: none; padding: 0; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: var(--radius-sm); color: var(--ink-2); font-size: .9375rem;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule);
  font-variant-numeric: tabular-nums;
}
.pagination a:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }
.pagination .is-current { background: var(--brand); color: #fff;
                          box-shadow: inset 0 0 0 1px var(--brand); }
.pagination .is-disabled { opacity: .38; }

.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.filters a {
  font-size: .875rem; padding: 7px 15px; border-radius: 999px; color: var(--ink-2);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule);
}
.filters a:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }
.filters a[aria-current="true"] {
  background: var(--chip-on-bg); color: var(--chip-on-ink);
  box-shadow: inset 0 0 0 1px var(--chip-on-bg);
}

.empty {
  padding: var(--space-7); text-align: center; color: var(--ink-3);
  border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule);
}

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

.footer { background: var(--navy); color: var(--on-navy-2); margin-top: var(--space-8); }
.footer a { color: var(--on-navy); }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: var(--space-6); padding: var(--space-7) 0 var(--space-6);
}
.footer h4 {
  color: #fff; font-family: var(--font-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--space-4);
  padding-bottom: var(--space-3); border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__contact { display: grid; gap: 5px; font-size: .875rem; line-height: 1.6; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: var(--space-4) 0 var(--space-6);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  align-items: center; font-size: var(--step--1);
}
.socials { display: flex; gap: var(--space-2); }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff;
}
.socials a:hover { background: var(--brass); color: #22190A; }

/* ---------------------------------------------------------------- прочее */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .masthead, .nav, .rail, .footer, .search, .masthead__tools { display: none; }
  body { background: #fff; font-size: 11pt; }
  .layout { grid-template-columns: 1fr; padding: 0; }
}
