/* QyzPU CRIS — облик v2 (004 §A, 16.10.2026): академичный, «научное издательство университета».
   Заменяет qyzpu.css целиком (подключение — themes[].headTags в deploy/angular/config.prod.yml, ?v=N).
   Только CSS поверх темы dspace, без пересборки UI. Шрифты — свои woff2 (fonts/, OFL), без внешних CDN.
   Токены: бирюзовый #1F5E5E (основной), тёмный #163F40 (подвал, заголовки), латунь #B08D57 (только линии,
   активный пункт, фокус), фон #FAFBFB, панели #F0F4F4, линии #D8E0E0, текст #1D2A2B. Без теней и градиентов. */

/* шрифты: Source Serif 4 (заголовки, названия), IBM Plex Sans (интерфейс) — @fontsource, OFL 1.1 (fonts/OFL-*.txt);
   подмножества latin, latin-ext, cyrillic, cyrillic-ext — казахские Ә Ғ Қ Ң Ө Ұ Ү Һ І есть (проверено по cmap) */
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/source-serif-4-cyrillic-ext-400-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/source-serif-4-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/source-serif-4-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/source-serif-4-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/source-serif-4-cyrillic-ext-600-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/source-serif-4-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/source-serif-4-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/source-serif-4-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/source-serif-4-cyrillic-ext-400-italic.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/source-serif-4-cyrillic-400-italic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/source-serif-4-latin-ext-400-italic.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/source-serif-4-latin-400-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ibm-plex-sans-cyrillic-ext-400-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ibm-plex-sans-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-sans-cyrillic-ext-500-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-sans-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/ibm-plex-sans-cyrillic-ext-600-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/ibm-plex-sans-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

:root:root, :root body {
  --qz-teal: #1F5E5E;
  --qz-dark: #163F40;
  --qz-brass: #B08D57;
  --qz-bg: #FAFBFB;
  --qz-panel: #F0F4F4;
  --qz-line: #D8E0E0;
  --qz-text: #1D2A2B;
  --qz-muted: #5B6B6C;
  --qz-serif: "Source Serif 4", "Literata", Georgia, "Times New Roman", serif;
  --qz-sans: "IBM Plex Sans", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;

  --bs-font-sans-serif: var(--qz-sans);
  --bs-body-font-family: var(--qz-sans);
  --bs-body-font-size: 15px;
  --bs-body-color: #1D2A2B;
  --bs-body-color-rgb: 29, 42, 43;
  --bs-body-bg: #FAFBFB;
  --bs-primary: #1F5E5E;
  --bs-primary-rgb: 31, 94, 94;
  --bs-info: #1F5E5E;
  --bs-info-rgb: 31, 94, 94;
  --bs-secondary-color: #5B6B6C;
  --bs-border-color: #D8E0E0;
  --bs-border-radius: 4px;
  --bs-border-radius-sm: 4px;
  --bs-border-radius-lg: 4px;
  --bs-link-color: #1F5E5E;
  --bs-link-color-rgb: 31, 94, 94;
  --bs-link-hover-color: #163F40;
  --bs-link-hover-color-rgb: 22, 63, 64;
  --bs-box-shadow: none;
  --bs-box-shadow-sm: none;
  --bs-focus-ring-color: rgba(176, 141, 87, .55);

  --ds-header-bg: #fff;
  --ds-header-navbar-border-top-color: transparent;
  --ds-header-navbar-border-bottom-color: #D8E0E0;
  --ds-navbar-link-color: #1D2A2B;
  --ds-navbar-link-color-hover: #1F5E5E;
  --ds-header-icon-color: #1F5E5E;
  --ds-header-icon-color-hover: #163F40;
  --ds-expandable-navbar-link-background-hover: #F0F4F4;
  --ds-breadcrumb-link-color: #1F5E5E;
  --ds-breadcrumb-bg: transparent;
  --ds-footer-bg: #163F40;
  --ds-top-footer-bg: #163F40;
  --ds-home-news-link-color: #fff;
  --ds-home-news-link-hover-color: #fff;
  --ds-home-news-background-color: #1F5E5E;
  --ds-banner-text-background: transparent;
  --ds-user-menu-dropdown-link-color: #163F40;

  --ds-cris-layout-navbar-menu-background: transparent;
  --ds-cris-layout-navbar-tab-color-active: #1F5E5E;
  --ds-cris-layout-sidebar-border-color: #D8E0E0;
  --ds-cris-layout-sidebar-hover-focus-background-color: #F0F4F4;
  --ds-cris-layout-sidebar-hover-focus-border-color: #B08D57;
}

/* ───── база: шрифты, фон, заголовки ───── */
html body { background: #FAFBFB; color: #1D2A2B; font-family: var(--qz-sans); font-size: 15px; line-height: 1.55; }
html body :is(.btn, input, select, textarea, .form-control, .dropdown-item, .navbar, .badge, .tooltip, .popover, .lead) { font-family: var(--qz-sans); }
html body :is(h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-3) { font-family: var(--qz-serif); font-weight: 600; color: #163F40; letter-spacing: 0; text-transform: none; }
html body :is(h1, .h1) { font-size: 28px; line-height: 1.25; }
html body :is(h2, .h2) { font-size: 22px; line-height: 1.3; }
html body :is(h3, .h3) { font-size: 19px; }
html body :is(h5, h6, .h5, .h6) { font-family: var(--qz-sans); font-weight: 600; text-transform: none; letter-spacing: 0; }
a { text-underline-offset: 2px; }
a:hover { color: #163F40; }
.text-muted { color: #5B6B6C !important; }
.text-info { color: #1F5E5E !important; }
::selection { background: rgba(176, 141, 87, .28); }

/* фокус с клавиатуры — латунная обводка */
html body :is(a, button, .btn, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid #B08D57 !important; outline-offset: 2px; box-shadow: none !important;
}
.form-control:focus, .form-select:focus { border-color: #B08D57; box-shadow: 0 0 0 2px rgba(176, 141, 87, .35); }

/* без теней и градиентов, скругление 4 px */
html body :is(.card, .btn, .form-control, .dropdown-menu, .modal-content, .alert, .badge, .input-group > *, .page-link, .list-group-item) { border-radius: 4px; }
html body :is(.card, .dropdown-menu, .modal-content, .shadow, .shadow-sm, .btn, .navbar, header, .popover) { box-shadow: none !important; }

/* кнопки */
.btn { font-weight: 500; }
.btn-primary {
  --bs-btn-bg: #1F5E5E; --bs-btn-border-color: #1F5E5E; --bs-btn-color: #fff;
  --bs-btn-hover-bg: #163F40; --bs-btn-hover-border-color: #163F40;
  --bs-btn-active-bg: #163F40; --bs-btn-active-border-color: #163F40;
  --bs-btn-disabled-bg: #1F5E5E; --bs-btn-disabled-border-color: #1F5E5E;
  --bs-btn-focus-shadow-rgb: 176, 141, 87;
}
.btn-outline-primary, .btn-outline-secondary {
  --bs-btn-color: #1F5E5E; --bs-btn-border-color: #B9C8C8; --bs-btn-bg: #fff;
  --bs-btn-hover-color: #1F5E5E; --bs-btn-hover-bg: #F0F4F4; --bs-btn-hover-border-color: #1F5E5E;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #1F5E5E; --bs-btn-active-border-color: #1F5E5E;
}
.btn-info, .btn-secondary {
  --bs-btn-bg: #F0F4F4; --bs-btn-border-color: #D8E0E0; --bs-btn-color: #163F40;
  --bs-btn-hover-bg: #E3EBEB; --bs-btn-hover-border-color: #B9C8C8; --bs-btn-hover-color: #163F40;
  --bs-btn-active-bg: #1F5E5E; --bs-btn-active-color: #fff;
}
.page-item.active .page-link, .pagination .active > .page-link { background-color: #1F5E5E; border-color: #1F5E5E; color: #fff; }
.page-link { color: #1F5E5E; }
.bg-primary { background-color: #1F5E5E !important; }

/* метки (тип записи, метрики) — спокойные, без заливки цветом */
html body .badge, html body .badge.bg-info, html body .badge.bg-primary, html body .badge.bg-secondary {
  background: #F0F4F4 !important; color: #1F5E5E !important; border: 1px solid #D8E0E0;
  font-weight: 500; font-size: 12px; letter-spacing: 0; text-transform: none; padding: .2em .5em;
}

/* ───── шапка: белая, одна строка ───── */
header#main-site-header { background: #fff !important; border-bottom: 1px solid #D8E0E0; border-top: 0; }
#header-navbar-wrapper, ds-header-navbar-wrapper { border-bottom: 0 !important; background: #fff; }
#main-site-header-container { min-height: 68px; flex-wrap: nowrap !important; }
/* логотип: печать вуза + «QyzPU CRIS» шрифтом с засечками (вместо PNG с надписью) */
#header-left > a[href="/home"] { display: flex !important; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
#header-left > a[href="/home"] img#header-logo { content: url(qyzpu-logo-teal.svg); height: 42px !important; width: 42px !important; max-height: none; }
#header-left > a[href="/home"]::after { content: "QyzPU CRIS"; font-family: var(--qz-serif); font-weight: 600; font-size: 21px; color: #163F40; white-space: nowrap; letter-spacing: .1px; }
/* меню: короткие слова, одна строка, активный пункт — латунная линия снизу */
#main-site-navigation { display: flex !important; flex-wrap: nowrap; gap: 2px; align-items: stretch !important; }
#main-site-navigation .ds-menu-item-wrapper { height: 100%; display: flex; align-items: center; text-align: left !important; }
#main-site-navigation :is(a.ds-menu-item, .ds-menu-toggler-wrapper) {
  display: flex; align-items: center; height: 100%; min-height: 44px; padding: 0 12px !important;
  font-size: 15px; font-weight: 500; color: #1D2A2B !important; white-space: nowrap; text-decoration: none;
  border-bottom: 2px solid transparent; border-radius: 0; background: transparent !important;
}
#main-site-navigation :is(a.ds-menu-item, .ds-menu-toggler-wrapper):hover { color: #1F5E5E !important; border-bottom-color: #D8E0E0; }
#main-site-navigation :is(a.ds-menu-item.active, a.ds-menu-item[aria-current="page"], .ds-menu-toggler-wrapper.active) { color: #163F40 !important; border-bottom-color: #B08D57; }
#main-site-navigation .ds-menu-toggler-wrapper .ds-menu-item { padding: 0 !important; border: 0 !important; color: inherit !important; }
/* порядок: Публикации · Исследователи · Подразделения · Журналы · Коллекции · Аналитика · Ещё */
#main-site-navigation > ds-navbar-section:has(#navbar-section-public_0_0) { order: 5; }
#main-site-navigation > ds-navbar-section:has(#navbar-section-public_1_0) { order: 1; }
#main-site-navigation > ds-navbar-section:has(#navbar-section-public_1_2) { order: 2; }
#main-site-navigation > ds-navbar-section:has(#navbar-section-public_1_3) { order: 3; }
#main-site-navigation > ds-navbar-section:has(#navbar-section-public_1_4) { order: 4; }
#main-site-navigation > ds-navbar-section:has(#navbar-section-public_1_5) { order: 6; }
#main-site-navigation > ds-expandable-navbar-section { order: 7; }
/* «Проекты и финансирование» — пока проектов 0, из меню убрано (страница остаётся по адресу) */
:is(#main-site-navigation, #collapsible-mobile-navbar, ds-navbar) ds-navbar-section:has(a[href="/explore/fundings_and_projects"]) { display: none !important; }
/* выпадающие меню */
.dropdown-menu { border: 1px solid #D8E0E0; padding: 4px 0; }
.dropdown-item { padding: 8px 16px; font-size: 15px; }
.dropdown-item:hover, .dropdown-item:focus { background: #F0F4F4; color: #163F40; }
.dropdown-item.active, .dropdown-item:active { background: #1F5E5E; color: #fff; }
#expandable-navbar-section-statistics-dropdown, [id$="-dropdown"].dropdown-menu { border-top: 2px solid #B08D57; }
/* правая часть: поиск, язык, вход */
#header-right { gap: 6px !important; }
#header-right :is(.btn-link, .loginLink, a.dropdownLogin, .dropdown-toggle) { color: #1F5E5E !important; font-weight: 500; text-decoration: none; }
#header-right .loginLink, #header-right ds-auth-nav-menu a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px !important;
  border: 1px solid #B9C8C8; border-radius: 4px; }
#header-right .loginLink:hover { background: #F0F4F4; border-color: #1F5E5E; }
#header-right :is(button, a) { min-height: 40px; min-width: 40px; }
#header-right .dropdownLogin { color: #1F5E5E !important; opacity: 1 !important; border: 1px solid #B9C8C8 !important; border-radius: 4px; padding: 0 14px !important; }
#header-right .dropdownLogin:hover { background: #F0F4F4; border-color: #1F5E5E !important; }
/* кнопки «поделиться» (AddToAny): одним цветом, компактно; на главной не нужны */
#dspace-a2a .a2a_svg { background-color: #1F5E5E !important; border-radius: 4px !important; }
#dspace-a2a.a2a_floating_style { transform: scale(.75); transform-origin: 100% 100%; }
#dspace-a2a.a2a_floating_style { background: #fff !important; border: 1px solid #D8E0E0; border-radius: 4px !important; padding: 4px !important; box-shadow: none !important; }
body:has(ds-home-page) #dspace-a2a { display: none !important; }

/* ───── главная: герой — ровное поле #1F5E5E, по левому краю, поиск — главный элемент ───── */
ds-home-news .background-image-container { background: #1F5E5E !important; box-shadow: 0 2px 0 #1F5E5E !important; position: relative; z-index: 1; }
ds-home-page .container:has(> .row > .col-md-12 > ds-counters-section) { margin-top: -1px; }
ds-home-news .background-image-container picture,
ds-home-news .background-image-container > img,
ds-home-news .background-image-container .credits { display: none !important; }
ds-home-news .background-image-container .container { background: transparent !important; }
ds-home-news .background-image-container .container::before,
ds-home-news .background-image-container .container::after { content: none !important; display: none !important; }
ds-home-news .home-news-content { padding: 56px 0 8px !important; margin: 0 !important; color: #fff; }
.qz-hero { max-width: 860px; }
.qz-hero .qz-kicker { font-size: 14px; letter-spacing: .2px; color: rgba(255, 255, 255, .78); margin: 0 0 14px; font-weight: 500; }
.qz-hero .qz-kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; background: #B08D57; vertical-align: middle; margin: -2px 12px 0 0; }
ds-home-news .qz-hero h1.qz-title { font-family: var(--qz-serif); font-size: 40px; line-height: 1.18; font-weight: 600; color: #fff; margin: 0 0 14px; }
ds-home-news .qz-hero .qz-sub { font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .86); margin: 0; font-weight: 400; }
ds-home-news a { color: #fff; }
ds-home-news, ds-home-news * { text-shadow: none !important; }
/* прежний текст CMS (до замены на v2) — в том же стиле */
ds-home-news .home-news-content :is(h1.display-3) { font-family: var(--qz-serif); font-size: 40px; color: #fff; text-shadow: none; }
ds-home-news .home-news-content :is(p, .lead, small) { color: rgba(255, 255, 255, .86); text-shadow: none; font-weight: 400; }

/* блоки главной под героем: поиск и счётчики продолжают поле героя (фон во всю ширину без прокрутки) */
ds-home-page ds-search-section, ds-home-page ds-counters-section { display: block; }
ds-home-page, ds-base-home-page { display: block; overflow-x: clip; }  /* поле героя во всю ширину — тенью 100vmax, обрезка по краям страницы */
ds-home-page .container:has(> .row > .col-md-12 > ds-search-section),
ds-home-page .container:has(> .row > .col-md-12 > ds-counters-section) {
  background: #1F5E5E; box-shadow: 0 0 0 100vmax #1F5E5E; clip-path: inset(0 -100vmax);
}
ds-home-page .container:has(> .row > .col-md-12 > ds-search-section) .row,
ds-home-page .container:has(> .row > .col-md-12 > ds-counters-section) .row { margin-left: 0; margin-right: 0; }
ds-home-page .container:has(> .row > .col-md-12 > ds-search-section) .row > .col-md-12 { padding: 0; }
ds-search-section .col-md-12.d-flex { justify-content: flex-start !important; padding: 0 !important; }
ds-search-section .col-md-8 { flex: 0 0 auto; width: 100%; max-width: 860px; padding: 0; }
ds-search-section .input-group { margin: 26px 0 0 !important; flex-wrap: nowrap; }
ds-search-section .input-group .form-control { height: 56px; font-size: 17px; padding: 0 18px; border: 0; border-radius: 4px 0 0 4px !important; background: #fff; color: #1D2A2B; }
ds-search-section .input-group .form-control::placeholder { color: #6C7B7C; }
ds-search-section .input-group .search-button { height: 56px; padding: 0 26px; font-size: 16px; border-radius: 0 4px 4px 0 !important;
  --bs-btn-bg: #163F40; --bs-btn-border-color: #163F40; --bs-btn-hover-bg: #0F2E2F; --bs-btn-hover-border-color: #0F2E2F; }
/* счётчики — одной строкой текста в герое (живые числа), без плиток и значков */
ds-home-page ds-counters-section .col-md-12, ds-home-page .col-md-12.py-4:has(ds-counters-section) { padding: 14px 0 44px !important; }
ds-home-page ds-counters-section .card { background: transparent; border: 0; padding: 0 !important; }
ds-home-page ds-counters-section .card > .d-flex { justify-content: flex-start !important; gap: 4px 28px !important; }
ds-home-page ds-counters-section a { text-decoration: none; }
ds-home-page ds-counters-section a[href="/explore/fundings_and_projects"] { display: none !important; }
ds-home-page ds-counters-section a { display: block; width: auto !important; min-width: 0 !important; max-width: none !important; flex: 0 0 auto !important; }
ds-home-page ds-counters-section .counters-section { width: auto !important; max-width: none !important; min-width: 0 !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: baseline !important; justify-content: flex-start !important; gap: 7px !important; }
ds-home-page ds-counters-section .counters-section .fw-bold { order: 1; width: auto !important; }
ds-home-page ds-counters-section .counters-section .counters-label { order: 2; width: auto !important; }
ds-home-page ds-counters-section .counters-section i { display: none !important; }
ds-home-page ds-counters-section .counters-section .fw-bold, ds-home-page ds-counters-section .counters-section b { font-family: var(--qz-serif); font-size: 20px; font-weight: 600; color: #fff; }
ds-home-page ds-counters-section .counters-label { color: rgba(255, 255, 255, .8); font-size: 15px; text-align: left !important; white-space: nowrap; }
ds-home-page ds-counters-section a:hover .counters-label { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* тонкая латунная полоса по низу героя */
ds-home-page .container:has(> .row > .col-md-12 > ds-counters-section)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #B08D57; opacity: .9;
}
ds-home-page .container:has(> .row > .col-md-12 > ds-counters-section) { position: relative; }
ds-home-page .container:has(> .row > .col-md-12 > ds-counters-section)::after { left: -100vmax; right: -100vmax; }

/* «Последние поступления», «Самые цитируемые» — списки с тонкими разделителями, без карточек */
ds-home-page ds-top-section { display: block; margin-top: 40px; }
ds-top-section .card, ds-browse-section .card { border: 0; background: transparent; }
ds-top-section .card-header, ds-browse-section .card-header {
  background: transparent; border: 0; border-bottom: 1px solid #1F5E5E; padding: 0 0 10px;
  font-family: var(--qz-serif); font-size: 22px; font-weight: 600; color: #163F40;
}
ds-top-section .card-body > * > * > * > .m-2, ds-top-section .m-2 { margin: 0 !important; }
ds-top-section ul.list-unstyled > li { margin: 0 !important; padding: 18px 0; border-bottom: 1px solid #D8E0E0 !important; }
ds-top-section ul.list-unstyled > li:last-child { border-bottom: 0 !important; }

/* элементы списков (главная, поиск, вкладки): название — serif, остальное — Plex 14 px серым */
html body a.item-list-title, html body .item-list-title {
  font-family: var(--qz-serif); font-size: 18px; line-height: 1.38; font-weight: 600; color: #163F40 !important; text-decoration: none;
}
html body a.item-list-title:hover { color: #1F5E5E !important; text-decoration: underline; text-decoration-color: #B08D57; }
html body :is(.item-list-publisher, .item-list-date, .item-list-authors, .item-list-abstract, ds-truncatable-part .content) { font-size: 14px; }
html body .item-list-abstract { color: #5B6B6C; }
html body .expandButton { font-size: 13px; color: #1F5E5E; }
/* пончики Altmetric/Dimensions без данных («?») в списках — шум */
:is(ds-top-section, ds-search-results, ds-browse-most-elements) :is(.altmetric-embed, .__dimensions_badge_embed__, ds-metric-altmetric, ds-metric-dimensions, ds-metric-plumx) { display: none !important; }

/* ───── поиск ───── */
ds-search .search-body, ds-search-sidebar { font-size: 14px; }
ds-search-results ds-listable-object-component-loader, ds-search-result-list-element { display: block; }
ds-search-results .list-unstyled > li { border-bottom: 1px solid #D8E0E0 !important; padding: 16px 0 !important; margin: 0 !important; }
ds-search-filter .filter-name, ds-search-facet-filter-wrapper h4, .filter-name { font-family: var(--qz-sans); font-size: 14px; font-weight: 600; color: #163F40; }
ds-search-filters .card, ds-search-filter .card, ds-search-sidebar .card { border: 0; border-bottom: 1px solid #D8E0E0; background: transparent; }
ds-search-filter .facet-filter, ds-search-filter > div, ds-search-filters .filter-toggle, ds-search-filter .filter-toggle { background: transparent !important; border: 0; border-radius: 0; }
ds-search-filter { display: block; border-bottom: 1px solid #D8E0E0; }
ds-search-filter :is(h4, .filter-name, button.filter-name) { font-family: var(--qz-sans) !important; font-size: 15px !important; font-weight: 600; color: #163F40; text-align: left; }
ds-search-sidebar h3, ds-search-sidebar .h3, ds-search-sidebar h2 { font-size: 19px; }
ds-search-results .btn-secondary, ds-search .btn-secondary, ds-view-mode-switch .btn { --bs-btn-bg: #fff; --bs-btn-color: #1F5E5E; --bs-btn-border-color: #D8E0E0;
  --bs-btn-hover-bg: #F0F4F4; --bs-btn-hover-color: #163F40; --bs-btn-active-bg: #1F5E5E; --bs-btn-active-color: #fff; --bs-btn-active-border-color: #1F5E5E; }
ds-view-mode-switch .btn.active, ds-view-mode-switch .btn[aria-pressed="true"] { background: #1F5E5E; color: #fff; border-color: #1F5E5E; }
ds-search-form .form-control, ds-search-form .btn { min-height: 44px; }
.search-page h2, ds-search-results h2 { font-size: 22px; }

/* ───── страницы записи / профиля / подразделения ───── */
.cris-layout h1, ds-comcol-page-header h1 { font-family: var(--qz-serif); font-size: 30px; line-height: 1.25; font-weight: 600; color: #163F40; }
#cris-layout-leading { margin-top: 28px !important; }
/* метаданные таблицей: подписи слева серым */
.cris-layout .metadata-cell .d-flex.row > span.col-3.fw-bold,
.cris-layout .metadata-cell .row > .col-3.fw-bold {
  font-weight: 500 !important; color: #5B6B6C; font-size: 14px; padding-top: 2px;
}
.cris-layout ds-cris-layout-metadata-box .metadata-cell { padding-top: 7px; padding-bottom: 7px; }
.cris-layout ds-cris-layout-metadata-box .metadata-cell:has(.col-3.fw-bold) { border-top: 1px solid #EEF2F2; }
.cris-layout ds-cris-layout-metadata-box .metadata-cell:not(:has(ds-metadata-render *)) { padding: 0 !important; margin: 0 !important; }
/* заголовок записи — слева, serif */
.cris-layout ds-comcol-page-header h1, .cris-layout ds-heading-row h1 { text-align: left !important; margin: 0 0 6px; }
.cris-layout .card, ds-cris-layout-box-container .card { border: 0; border-top: 1px solid #D8E0E0; border-radius: 0; background: transparent; }
.cris-layout .card-header, ds-cris-layout-box-container .card-header {
  background: transparent !important; border: 0; padding: 14px 0 8px; font-family: var(--qz-serif); font-size: 19px; font-weight: 600; color: #163F40;
}
.cris-layout .card-header :is(a, button, span) { color: #163F40; text-decoration: none; }
/* вкладки — линии, а не «пилюли» */
ds-cris-layout-navbar .navbar, ds-cris-layout-horizontal ds-cris-layout-navbar .navbar,
.cris-layout .navbar.navbar-expand-lg, ds-cris-layout-navbar nav { background: transparent !important; border-bottom: 1px solid #D8E0E0; padding: 0 !important; }
ds-cris-layout-navbar :is(.nav-link, a.nav-link, li a) {
  color: #1D2A2B !important; background: transparent !important; border: 0 !important; border-bottom: 2px solid transparent !important;
  border-radius: 0 !important; padding: 12px 14px !important; font-weight: 500; min-height: 44px;
}
ds-cris-layout-navbar :is(.nav-link.active, a.active, li.active a, .nav-item.active > a) { color: #163F40 !important; border-bottom-color: #B08D57 !important; }
ds-cris-layout-navbar :is(.nav-link, li a):hover { color: #1F5E5E !important; border-bottom-color: #D8E0E0 !important; }
ds-cris-layout-sidebar .sidebar, ds-cris-layout-sidebar nav { background: transparent !important; }
ul.nav-tabs { border-bottom: 1px solid #D8E0E0; }
ul.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: #1D2A2B; font-weight: 500; }
ul.nav-tabs .nav-link.active { border-bottom-color: #B08D57; color: #163F40; background: transparent; }
ul.nav-pills .nav-link { border-radius: 0; background: transparent !important; color: #1D2A2B; border-bottom: 2px solid transparent; }
ul.nav-pills .nav-link.active { color: #163F40 !important; border-bottom-color: #B08D57; }
/* кнопки «Экспорт», «Статистика» на странице записи — второстепенные */
#cris-layout-leading .btn-primary { --bs-btn-bg: #fff; --bs-btn-color: #1F5E5E; --bs-btn-border-color: #B9C8C8;
  --bs-btn-hover-bg: #F0F4F4; --bs-btn-hover-color: #163F40; --bs-btn-hover-border-color: #1F5E5E; }
/* метрики-ссылки «Статистика просмотров/скачиваний»: длинная подпись наезжала на значок (003) */
.metric-container.embedded-view .col, .metric-container.embedded-download .col { padding-left: 2.75rem; }
ds-metric-loader .card, .metric-container { border-color: #D8E0E0; }

/* хлебные крошки */
nav[aria-label="breadcrumb"] .breadcrumb, .breadcrumb { background: transparent !important; padding: 12px 0 0 !important; font-size: 13px; }

/* ───── подвал #163F40 ───── */
footer, footer .top-footer, footer .top-footer * { text-align: left !important; }
footer { background: #163F40 !important; color: rgba(255, 255, 255, .82); font-size: 14px; margin-top: 48px; }
footer .top-footer { background: #163F40 !important; color: rgba(255, 255, 255, .82); padding: 40px 0 16px !important; }
footer .top-footer > .container { display: none !important; }
footer .top-footer:not(:has(ds-text-section)) { display: none !important; }
footer .top-footer ds-text-section { display: block; max-width: 1320px; margin: 0 auto; padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5 + 12px); }
footer .top-footer h5 { color: #fff; font-family: var(--qz-serif); font-size: 17px; font-weight: 600; text-transform: none !important; letter-spacing: 0; margin-bottom: 10px; }
footer .top-footer h5::after { content: ""; display: block; width: 24px; height: 2px; background: #B08D57; margin-top: 8px; }
footer .top-footer :is(p, span) { color: rgba(255, 255, 255, .78); line-height: 1.6; }
footer a, footer .top-footer a { color: #fff !important; text-decoration: underline; text-decoration-color: rgba(176, 141, 87, .7); text-underline-offset: 3px; }
footer .bottom-footer { background: #163F40 !important; border-top: 1px solid rgba(255, 255, 255, .14); padding: 10px 0 !important; }
footer .bottom-footer .content-container > p.m-0 { display: none !important; }          /* строка «Создано на основе … 4Science» с логотипом */
footer .bottom-footer img[src*="4science"], footer p:has(a[href*="DSPACECRIS"]), footer p:has(a[href*="4science"]) { display: none !important; }
footer .bottom-footer .footer-info { flex-wrap: wrap; gap: 0 4px; }
footer .bottom-footer .footer-info :is(a, button) { color: rgba(255, 255, 255, .78) !important; font-size: 13px; text-decoration: none; padding: 6px 8px; }
footer .bottom-footer .footer-info :is(a, button):hover { color: #fff !important; text-decoration: underline; }

/* ───── баннер cookie: компактная светлая полоса снизу ───── */
html body .orejime-AppContainer .orejime-Notice, html body .orejime-Notice {
  position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
  width: auto !important; max-width: none !important; margin: 0 !important; z-index: 1050;
  background: #fff !important; color: #1D2A2B !important; border: 0 !important; border-top: 1px solid #D8E0E0 !important;
  border-radius: 0 !important; box-shadow: none !important; padding: 10px 24px !important; font-family: var(--qz-sans) !important;
}
html body .orejime-Notice-body { display: flex; align-items: center; justify-content: center; gap: 8px 24px; flex-wrap: wrap; max-width: 1320px; margin: 0 auto; }
html body .orejime-Notice-text, html body .orejime-Notice-description { margin: 0 !important; font-size: 13px !important; line-height: 1.45; color: #3E4C4D !important; }
html body .orejime-Notice-purposes { font-weight: 500 !important; color: #3E4C4D !important; }
html body .orejime-Notice-actions { display: flex; gap: 8px; margin: 0 !important; padding: 0; flex: 0 0 auto; }
html body .orejime-Notice-actionItem { margin: 0 !important; padding: 0 !important; }
html body .orejime-Notice .orejime-Button {
  font-family: var(--qz-sans) !important; font-size: 13px !important; font-weight: 500; border-radius: 4px !important;
  min-height: 36px; padding: 0 14px !important; margin: 0 !important; box-shadow: none !important;
  background: #fff !important; color: #1F5E5E !important; border: 1px solid #B9C8C8 !important;
}
html body .orejime-Notice .orejime-Button--save { background: #1F5E5E !important; color: #fff !important; border-color: #1F5E5E !important; }
html body .orejime-Notice .orejime-Button:hover { border-color: #1F5E5E !important; }

/* ───── аналитика, графики ───── */
ds-cris-layout .card-body, ds-chart, .chart-container { font-family: var(--qz-sans); }
ds-search-chart-filter .card, ds-search-charts .card { border: 0; border-top: 1px solid #D8E0E0; }

/* ───── телефон и планшет ───── */
@media (max-width: 991.98px) {
  #main-site-header-container { min-height: 60px; padding-left: 16px; padding-right: 12px; gap: 8px !important; }
  #header-left > a[href="/home"] img#header-logo { height: 36px !important; width: 36px !important; }
  #header-left > a[href="/home"]::after { font-size: 19px; }
  #header-right { gap: 2px !important; }
  #mobile-navbar-toggler { margin-left: 4px !important; }
  #mobile-navbar-toggler button { min-width: 44px; min-height: 44px; color: #1F5E5E; }
  /* мобильное меню — список строк с линиями */
  #collapsible-mobile-navbar, ds-header-navbar-wrapper .navbar-collapse { background: #fff; border-bottom: 1px solid #D8E0E0; }
  #collapsible-mobile-navbar :is(a.ds-menu-item, .ds-menu-toggler-wrapper, .nav-link) {
    display: flex; align-items: center; min-height: 48px; padding: 0 20px !important; font-size: 16px; color: #1D2A2B !important;
    border-bottom: 1px solid #EEF2F2; text-align: left;
  }
  #collapsible-mobile-navbar .ds-menu-item-wrapper { text-align: left !important; }
}
@media (max-width: 767.98px) {
  html body { font-size: 15px; }
  #header-right .loginLink, #header-right ds-auth-nav-menu a { border: 0; padding: 0 6px !important; }
  ds-home-news .home-news-content { padding: 36px 0 4px !important; }
  ds-home-news .qz-hero h1.qz-title { font-size: 27px; line-height: 1.2; }
  ds-home-news .qz-hero .qz-sub { font-size: 16px; }
  ds-search-section .input-group .form-control { height: 52px; font-size: 16px; padding: 0 14px; min-width: 0; }
  ds-search-section .input-group .search-button { height: 52px; padding: 0 16px; }
  ds-home-page ds-counters-section .card > .d-flex { gap: 2px 18px !important; }
  ds-home-page ds-counters-section .counters-section .fw-bold, ds-home-page ds-counters-section .counters-section b { font-size: 18px; }
  ds-home-page ds-counters-section .counters-label { font-size: 14px; }
  html body :is(h1, .h1), .cris-layout h1, ds-comcol-page-header h1 { font-size: 24px; }
  html body a.item-list-title { font-size: 17px; }
  /* метаданные: подпись над значением */
  .cris-layout .metadata-cell .d-flex.row > span.col-3 { flex: 0 0 100%; max-width: 100%; padding-bottom: 2px; }
  .cris-layout .metadata-cell.col-3 { flex: 0 0 100%; max-width: 100%; }
  .cris-layout [ds-row].row { flex-direction: column; }
  .cris-layout .metadata-cell { margin-left: 0 !important; margin-right: 0 !important; }
  /* вкладки прокручиваются внутри полосы, страница — нет */
  ds-cris-layout-navbar :is(ul, .navbar-nav) { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  footer .top-footer { padding: 28px 0 8px !important; }
  footer .top-footer ds-text-section { padding: 0 16px; }
  footer .bottom-footer .footer-info { flex-direction: column; align-items: flex-start; padding: 4px 16px; }
  footer .bottom-footer .footer-info li { border: 0 !important; }
  footer .bottom-footer .footer-info li::before, footer .bottom-footer .footer-info li::after { display: none !important; }
  footer .bottom-footer .footer-info :is(a, button) { padding: 10px 0 !important; min-height: 44px; justify-content: flex-start; }
  footer .bottom-footer .content-container { width: 100%; }
  .qz-hero .qz-kicker::before { display: none; }
  html body .orejime-Notice { padding: 10px 16px !important; }
  html body .orejime-Notice-body { justify-content: flex-start; }
  .btn, .page-link, .dropdown-item { min-height: 44px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; }
  /* защита от горизонтальной прокрутки страницы */
  html, body { overflow-x: clip; }
  img, svg, canvas, iframe, table { max-width: 100%; }
  .table-responsive, ds-chart, .chart-container { overflow-x: auto; }
}

/* ───── доводка 1 (по снимкам) ───── */
/* заголовки фасетов и служебные «h4»-подписи — шрифт интерфейса */
html body :is(.filter-name, .filter-name .h4, .facet-filter .h4, ds-search-settings h3, .sidebar-content h3, .thumbnail-placeholder) { font-family: var(--qz-sans) !important; }
ds-search-filter .filter-name .h4 { font-size: 15px; font-weight: 600; color: #163F40; }
ds-search-filter .facet-filter { background: transparent !important; padding: 12px 4px !important; margin: 0 !important; }
.sidebar-content h3, ds-search-settings h3 { font-size: 15px; font-weight: 600; color: #163F40; margin-top: 18px; }
ds-search-sidebar :is(.sidebar-content, ds-search-settings) > * , ds-search-settings .setting-option, ds-search-settings .card { background: transparent !important; }
ds-search-settings :is(.setting-option, .card) { padding: 8px 4px !important; border: 0; border-bottom: 1px solid #D8E0E0; border-radius: 0; }
ds-search-settings .setting-option h4, ds-search-settings .card h4 { font-family: var(--qz-sans); font-size: 14px; font-weight: 600; }
.thumbnail-placeholder { font-size: 12px; color: #5B6B6C !important; background: #F0F4F4 !important; border-color: #D8E0E0 !important; }
ds-search-results .thumbnail, ds-search-results ds-thumbnail img { border-color: #D8E0E0 !important; }
/* меню: вес как в макете (тема ставит жирный) */
#main-site-navigation .ds-menu-item, #main-site-navigation a.ds-menu-item { font-weight: 400 !important; }
#main-site-navigation :is(a.ds-menu-item.active, .ds-menu-toggler-wrapper.active .ds-menu-item) { font-weight: 500 !important; }
/* заголовок записи — слева */
.cris-layout ds-heading-row, .cris-layout ds-comcol-page-header { display: block; width: 100%; align-self: stretch; text-align: left; }
/* ключевые слова, области науки — светлые «ярлыки» вместо залитых пилюль */
.cris-layout .nav-pills .nav-link, .cris-layout .nav-pills .nav-link.active {
  background: #F0F4F4 !important; color: #163F40 !important; border: 1px solid #D8E0E0 !important; border-radius: 4px !important;
  padding: 4px 10px !important; font-size: 14px; font-weight: 400;
}
.cris-layout .nav-pills .nav-link:hover { border-color: #1F5E5E !important; color: #1F5E5E !important; }
.cris-layout .nav-pills .nav-link p { color: inherit !important; margin: 0; }
/* вкладки страницы записи (горизонтальная боковая панель CRIS) — линии */
ds-cris-layout-sidebar nav.navbar { border-bottom: 1px solid #D8E0E0; background: transparent !important; }
ds-cris-layout-sidebar-item a.nav-item, ds-cris-layout-sidebar-item a.shortcut-icon {
  background: transparent !important; color: #1D2A2B !important; border: 0 !important; border-bottom: 2px solid transparent !important;
  border-radius: 0 !important; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center;
}
ds-cris-layout-sidebar-item .sidebar-section.active a.nav-item, ds-cris-layout-sidebar-item a.nav-item.active { color: #163F40 !important; border-bottom-color: #B08D57 !important; }
ds-cris-layout-sidebar-item a.nav-item:hover { color: #1F5E5E !important; border-bottom-color: #D8E0E0 !important; }
/* метрики: нейтральные панели вместо цветных плашек */
html body .metric-container.alert, html body .metric-container[class*="alert-"] {
  background: #fff !important; border: 1px solid #D8E0E0 !important; color: #1D2A2B !important; border-radius: 4px;
}
html body .metric-container :is(.fw-bold, a, i, .fa, .fas) { color: #163F40 !important; }
html body .metric-container .fw-bold { font-weight: 600; }
/* кнопки «поделиться» (AddToAny) плавали поверх текста — убраны; вернуть: удалить это правило */
#dspace-a2a, .a2a_floating_style { display: none !important; }
/* миниатюра рядом с названием записи — по ширине картинки, название сразу за ней */
.cris-layout .metadata-cell.col-3:has(ds-thumbnail) { flex: 0 0 auto !important; width: auto !important; max-width: 180px; }
.cris-layout .metadata-cell:has(ds-thumbnail) .thumbnail { max-width: 140px; }
/* счётчики на других страницах («Аналитика»): строкой на светлом фоне, без плиток и значков */
ds-counters-section .card { background: transparent; border: 0; border-top: 1px solid #D8E0E0; border-bottom: 1px solid #D8E0E0; border-radius: 0; padding: 14px 0 !important; }
ds-counters-section .card > .d-flex { justify-content: flex-start !important; gap: 8px 32px !important; }
ds-counters-section a { display: block; width: auto !important; flex: 0 0 auto !important; text-decoration: none; }
ds-counters-section .counters-section { width: auto !important; max-width: none !important; min-width: 0 !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: baseline !important; gap: 7px !important; color: #1D2A2B; }
ds-counters-section .counters-section i { display: none !important; }
ds-counters-section .counters-section .fw-bold { order: 1; font-family: var(--qz-serif); font-size: 22px; font-weight: 600; color: #163F40; }
ds-counters-section .counters-section .fw-bold b { font-weight: 600; }
ds-counters-section .counters-label { order: 2; color: #5B6B6C; font-size: 15px; text-align: left !important; white-space: nowrap; }
ds-counters-section a:hover .counters-label { color: #1F5E5E; text-decoration: underline; }
ds-counters-section a[href="/explore/fundings_and_projects"] { display: none !important; }
/* разрезы («Аналитика», фасеты-разделы): строки с линиями вместо рамок */
ds-facet-section .list-group-item, ds-cris-layout .list-group-item, .facet-section .list-group-item {
  border-left: 0 !important; border-right: 0 !important; border-radius: 0 !important; background: transparent !important; padding-left: 2px; padding-right: 2px;
}
ds-facet-section .list-group, .facet-section .list-group { border-radius: 0; }
ds-facet-section h2, ds-facet-section .facet-name, ds-facet-section h5 { font-family: var(--qz-sans); font-size: 15px; font-weight: 600; color: #163F40; }
ds-facet-section div.border.p-3 { border: 0 !important; border-bottom: 1px solid #D8E0E0 !important; padding: 10px 2px !important; }
ds-facet-section div.border.p-3 a { text-decoration: none; }
ds-facet-section div.border.p-3:hover { background: #F0F4F4; }
ds-facet-section .col-lg-4 > div.border.p-3:first-of-type { border-top: 1px solid #1F5E5E !important; }
@media (max-width: 991.98px) {
  #collapsible-mobile-navbar :is(ds-navbar-section, ds-expandable-navbar-section, .ds-menu-item-wrapper) { display: block; width: 100%; }
  #collapsible-mobile-navbar :is(a.ds-menu-item, .ds-menu-toggler-wrapper) { width: 100%; }
  #navbar-toggler:focus, #navbar-toggler:focus-visible { outline: 2px solid #B08D57 !important; box-shadow: none !important; border-color: transparent !important; }
}
@media (max-width: 767.98px) {
  .cris-layout :is(ds-metadata-container .d-flex.row, ds-cris-layout-metadata-box .row) { margin-left: 0 !important; margin-right: 0 !important; }
}
/* планшет и узкий ПК (768–1199 px): DSpace показывает настольное меню (бургер — только < 768).
   Шапка в две строки: логотип и инструменты сверху, меню — второй строкой во всю ширину; не шире экрана */
@media (min-width: 768px) and (max-width: 1199.98px) {
  #header-navbar-wrapper, header#main-site-header, #main-site-header-container { height: auto !important; }
  #main-site-header-container { flex-wrap: wrap !important; row-gap: 0 !important; padding-top: 8px; }
  #header-left { display: contents !important; }
  #header-left > a[href="/home"] { order: 1; }
  #header-right { order: 2; margin-left: auto !important; height: auto !important; }
  #header-left > #desktop-navbar { order: 3; flex: 1 1 100% !important; width: 100%; min-width: 0; border-top: 1px solid #EEF2F2; margin-top: 8px; }
  #desktop-navbar :is(ds-navbar, ds-themed-navbar) { display: block; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  #main-site-navigation { width: 100%; max-width: 100%; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  #main-site-navigation :is(a.ds-menu-item, .ds-menu-toggler-wrapper) { padding: 0 9px !important; min-height: 46px; }
}
@media (min-width: 768px) and (max-width: 899.98px) {
  #main-site-navigation :is(a.ds-menu-item, .ds-menu-toggler-wrapper) { padding: 0 7px !important; font-size: 14px; }
}
ds-search-section .search-button i, ds-search-form .search-button i { margin-right: 6px; }

/* 004.2: кнопка входа / меню пользователя — без анимации прозрачности Angular (на медленной загрузке «Кіру» была бледной
   посреди fade-in); тот же цвет и рамка во всех языках и состояниях, включая имя пользователя после входа */
#header-right ds-auth-nav-menu, #header-right ds-auth-nav-menu *, #header-right ds-user-menu, #header-right ds-user-menu * { opacity: 1 !important; animation: none !important; }
#header-right ds-auth-nav-menu :is(a, button).dropdown-toggle, #header-right ds-auth-nav-menu :is(a.dropdownLogout, a.dropdownLogin, .loginLink) {
  color: #1F5E5E !important; transition: background-color .15s, border-color .15s; }
#header-right ds-auth-nav-menu :is(a, button):focus-visible { outline: 2px solid #B08D57 !important; outline-offset: 2px; }

/* D-044: атрибуция DB-IP Lite (CC BY 4.0) на всех страницах; ссылка — в подвале главной */
footer .bottom-footer .content-container::after { content: "IP Geolocation by DB-IP"; display: block; font-size: 12px; opacity: .75; margin-top: 4px; }
