/* ==========================================================================
   oim_vrazhkin — modern official template for ОИМ НАН Беларуси
   Design system + chrome + content styling. No AI-slop: navy authority +
   single brand-red accent, real Cyrillic type (Golos Text), conventional
   navigation, radius/shadow hierarchy, WCAG-AA contrast.
   ========================================================================== */

:root {
  /* palette */
  --c-primary: #0e2f5e;      /* navy — authority */
  --c-primary-700: #0a2344;
  --c-primary-600: #12386f;
  --c-primary-300: #46679b;
  --c-accent: #c8102e;       /* institute red — single accent */
  --c-accent-600: #a20c25;
  --c-teal: #0f7c8c;         /* secondary — tech/testing */
  --c-teal-600: #0b606d;
  --c-steel: #274b73;        /* tertiary tile */
  --c-ink: #17212f;          /* body text */
  --c-muted: #5a6b80;        /* secondary text */
  --c-line: #e3e9f1;         /* hairlines */
  --c-line-2: #d3dce8;
  --c-bg: #ffffff;
  --c-bg-soft: #f3f7fc;      /* soft section bg */
  --c-bg-soft-2: #eaf1f9;
  --c-footer: #0b1f3a;       /* deep footer */
  --c-footer-ink: #c7d5e8;

  /* type */
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', 'Golos Text', Georgia, serif;  /* editorial serif for headings */
  --fs-base: 14.5px;   /* smaller base per request (17 → 15.5 → 14.5) */
  --lh: 1.56;

  /* space (8px base) */
  --sp-1: .5rem; --sp-2: 1rem; --sp-3: 1.5rem; --sp-4: 2rem;
  --sp-5: 3rem; --sp-6: 4rem; --sp-7: 6rem;

  /* radius hierarchy (not uniformly bubbly) */
  --r-xs: 4px; --r-sm: 8px; --r: 12px; --r-lg: 18px;

  /* shadow — soft, diffuse (premium) */
  --sh-1: 0 1px 3px rgba(16,32,64,.04), 0 6px 18px rgba(16,32,64,.05);
  --sh-2: 0 10px 34px rgba(11,31,58,.09);
  --sh-3: 0 24px 64px rgba(11,31,58,.16);

  --shell: 1240px;
  --header-h: 84px;
  --font-scale: 1;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Keep important page sections deterministic. Scroll-reveal effects made long
   Joomla pages appear empty until the observer caught up with the viewport. */
.oimv-reveal,
.oimv-reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* News index is a catalogue, not an article reader. Full article bodies stay
   editable in Joomla and are shown only after opening the article. */
.news-grid .com-content-category-blog__item {
  min-height: 0;   /* size to content (image + title + date) — no tall empty box */
  align-self: start;
}

.news-grid .item-content {
  flex: 1 1 auto;
  min-height: 0;
}

.news-grid .article-info {
  margin: 0 0 8px;
  color: var(--oim-muted);
  font-size: .76rem;
  font-weight: 650;
}

.news-grid .article-info dd {
  margin: 0;
}

.pagination .icon-angle-left::before { content: '\2039'; }
.pagination .icon-angle-right::before { content: '\203a'; }
.pagination .icon-angle-double-left::before { content: '\00ab'; }
.pagination .icon-angle-double-right::before { content: '\00bb'; }

@media (max-width: 700px) {
  .news-grid .com-content-category-blog__item { min-height: 0; }
  .pagination { flex-wrap: wrap; }
  .pagination li:first-child,
  .pagination li:last-child { display: none; }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: calc(var(--fs-base) * var(--font-scale)); }  /* A-/A+ scales ALL rem text */
body.oimv {
  margin: 0;
  font-family: var(--font);
  font-size: calc(var(--fs-base) * var(--font-scale));
  line-height: var(--lh);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.oimv img { max-width: 100%; height: auto; }
.oimv a { color: var(--c-primary-600); text-decoration: none; }
.oimv a:hover { color: var(--c-accent); }
.oimv :focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 3px; }
.oimv-shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.full-width { width: 100%; }
.oimv-skip { position: fixed; left: 12px; top: 12px; z-index: 500; background: var(--c-accent); color: #fff !important;
  padding: 10px 16px; border-radius: var(--r-sm); transform: translateY(-160%); transition: transform .2s; }
.oimv-skip:focus { transform: translateY(0); color: #fff !important; }

/* Joomla markup utilities (standalone template — no Bootstrap base loaded) */
.oimv .visually-hidden, .oimv .sr-only, .oimv .element-invisible { position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; }
.oimv-nav .mod-menu__toggle-sub { display: none; }   /* desktop hover / mobile JS handle submenus */
.oimv ul.mod-list, .oimv .mod-menu { list-style: none; }

/* headings — editorial display serif */
.oimv h1, .oimv h2, .oimv h3 { font-family: var(--font-display); color: var(--c-primary); line-height: 1.1;
  font-weight: 800; letter-spacing: -.005em; text-wrap: balance; margin: 0 0 .5em; }
.oimv h1 { font-size: clamp(1.85rem, 3.2vw, 2.8rem); }
.oimv h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); }
.oimv h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; }
.oimv h4 { font-family: var(--font); color: var(--c-primary); font-weight: 700; letter-spacing: -.01em; margin: 0 0 .5em; }
.oimv p { margin: 0 0 1em; }

/* reading-progress bar */
.oimv-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 120;
  background: var(--c-accent); transition: width .1s linear; }

/* ---------- header ---------- */
/* NOTE: no backdrop-filter here — it makes position:fixed children (the mobile
   nav drawer) contained by the 68px header box, which breaks the mobile menu. */
.oimv-header { position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--c-line); transition: box-shadow .25s, background .25s; }
.oimv-header.is-scrolled { box-shadow: var(--sh-2); }
.oimv-header__bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.oimv-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; color: var(--c-primary); }
.oimv-brand:hover { color: var(--c-primary); }
.oimv-brand__mark { width: 78px; height: 41px; flex: 0 0 auto; object-fit: contain; }
.oimv-footer__logo { width: 58px; height: 31px; object-fit: contain; background: #fff; border-radius: 8px; padding: 6px 10px; box-sizing: content-box; }
.oimv-brand__text { display: flex; flex-direction: column; line-height: 1.12; }
/* header chrome is fixed px (NOT rem) so A-/A+ content scaling never overflows the top bar */
.oimv-brand__name { font-weight: 800; font-size: 16px; color: var(--c-primary); max-width: 15em; }

/* primary nav (mod_menu) */
.oimv-nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.oimv-nav .mod-menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.oimv-nav .mod-menu > li { position: relative; }
.oimv-nav .mod-menu > li > a,
.oimv-nav .mod-menu > li > span { display: flex; align-items: center; gap: 4px; padding: 8px 9px;
  font-weight: 600; font-size: 13px; color: var(--c-ink); border-radius: var(--r-sm);
  text-transform: uppercase; letter-spacing: 0; white-space: nowrap; cursor: pointer; }
.oimv-header__bar { gap: 14px; }
.oimv-nav { gap: 10px; }
.oimv-tools { gap: 8px; }
.oimv-nav .mod-menu > li > a:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.oimv-nav .mod-menu > li.current > a,
.oimv-nav .mod-menu > li.active > a { color: var(--c-accent); }
.oimv-nav .mod-menu > li.current > a::after,
.oimv-nav .mod-menu > li.active > a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 3px; background: var(--c-accent); border-radius: 3px; }
/* dropdowns (Joomla submenu = ul.mod-menu__sub) */
.oimv-nav .mod-menu__sub { list-style: none; margin: 0; padding: 8px; }
.oimv-nav .mod-menu__sub[hidden] { display: block; }   /* Joomla marks collapsed submenus hidden; we reveal on hover */
.oimv-nav .mod-menu > li > .mod-menu__sub { display: block; position: absolute; top: 100%; left: 0; min-width: 264px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--sh-3);
  padding: 6px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: .18s var(--ease); z-index: 30; }
/* invisible bridge over the header border so moving the cursor down keeps :hover */
.oimv-nav .mod-menu > li > .mod-menu__sub::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
/* zebra rows */
.oimv-nav .mod-menu__sub li:nth-child(even) > a { background: var(--c-bg-soft); }
.oimv-nav .mod-menu > li:hover > .mod-menu__sub,
.oimv-nav .mod-menu > li:focus-within > .mod-menu__sub,
.oimv-nav .mod-menu > li.oimv-hover-open > .mod-menu__sub { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.oimv-nav .mod-menu__sub li + li { border-top: 1px solid var(--c-line); }
.oimv-nav .mod-menu__sub a,
.oimv-nav .mod-menu__sub span { display: block; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: .92rem; font-weight: 500; color: var(--c-ink); text-transform: none; letter-spacing: 0; position: relative; }
.oimv-nav .mod-menu__sub a::before { content: ''; position: absolute; left: 2px; top: 50%; transform: translateY(-50%);
  width: 0; height: 60%; background: var(--c-accent); border-radius: 2px; transition: width .15s var(--ease); }
.oimv-nav .mod-menu__sub a:hover { background: var(--c-bg-soft); color: var(--c-primary); padding-left: 18px; }
.oimv-nav .mod-menu__sub a:hover::before { width: 3px; }
/* caret on top-level items that HAVE a submenu */
.oimv-nav .mod-menu > li.deeper > a::before, .oimv-nav .mod-menu > li.parent > a::before {
  content: ''; order: 2; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; transition: transform .18s var(--ease); }
.oimv-nav .mod-menu > li.deeper:hover > a::before, .oimv-nav .mod-menu > li.parent:hover > a::before { transform: rotate(225deg) translateY(1px); opacity: 1; }

/* Multi-level fly-out for regular (non-mega) dropdowns: levels 3 and 4 open to
   the side on hover, like the legacy АКАДЕМ-СЕРТ menu. Scoped to desktop and to
   non-mega branches so the Институт mega panel and the mobile drawer are
   untouched. */
@media (min-width: 1201px) {
  .oimv-nav .mod-menu > li:not(.oimv-menu-mega) .mod-menu__sub li { position: relative; }
  .oimv-nav .mod-menu > li:not(.oimv-menu-mega) .mod-menu__sub li { position: relative; }
  .oimv-nav .mod-menu > li:not(.oimv-menu-mega) .mod-menu__sub .mod-menu__sub {
    display: block; position: absolute; top: -7px; left: 100%; min-width: 244px; max-width: 300px;
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--r);
    box-shadow: var(--sh-3); padding: 6px; margin: 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .13s var(--ease), visibility .13s;   /* fade only — no slide, prevents the jump */
    z-index: 40;
  }
  /* invisible bridge so moving the cursor across the seam keeps :hover (no flicker) */
  .oimv-nav .mod-menu > li:not(.oimv-menu-mega) .mod-menu__sub li > .mod-menu__sub::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: -14px; width: 14px;
  }
  .oimv-nav .mod-menu > li:not(.oimv-menu-mega) .mod-menu__sub li:hover > .mod-menu__sub,
  .oimv-nav .mod-menu > li:not(.oimv-menu-mega) .mod-menu__sub li:focus-within > .mod-menu__sub {
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  /* the 4th level would run off the right edge — open it leftward instead */
  .oimv-nav .mod-menu > li:not(.oimv-menu-mega) .mod-menu__sub .mod-menu__sub .mod-menu__sub {
    left: auto; right: 100%; }
  .oimv-nav .mod-menu > li:not(.oimv-menu-mega) .mod-menu__sub .mod-menu__sub .mod-menu__sub::before { left: auto; right: -14px; }
  /* right-pointing caret on submenu items that themselves have children */
  .oimv-nav .mod-menu > li:not(.oimv-menu-mega) .mod-menu__sub li.deeper > a,
  .oimv-nav .mod-menu > li:not(.oimv-menu-mega) .mod-menu__sub li.parent > a { padding-right: 28px; }
  .oimv-nav .mod-menu > li:not(.oimv-menu-mega) .mod-menu__sub li.deeper > a::after,
  .oimv-nav .mod-menu > li:not(.oimv-menu-mega) .mod-menu__sub li.parent > a::after {
    content: ''; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(-45deg); opacity: .5; transition: opacity .15s var(--ease);
  }
  .oimv-nav .mod-menu > li:not(.oimv-menu-mega) .mod-menu__sub li.deeper:hover > a::after,
  .oimv-nav .mod-menu > li:not(.oimv-menu-mega) .mod-menu__sub li.parent:hover > a::after { opacity: 1; }
}

/* tools */
.oimv-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; position: relative; }
.oimv-a11y { display: flex; gap: 4px; }
.oimv-a11y__btn { min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--c-line-2);
  background: #fff; color: var(--c-primary); border-radius: var(--r-sm); font-weight: 700; cursor: pointer;
  font-size: .85rem; transition: .15s; }
.oimv-a11y__btn:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.oimv-a11y__contrast[aria-pressed="true"] { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
/* search toggle: magnifier icon that reveals the field as a dropdown */
.oimv-search-toggle { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--c-line-2);
  background: #fff; color: var(--c-primary); border-radius: var(--r-sm); cursor: pointer; flex: 0 0 auto; }
.oimv-search-toggle:hover, .oimv-tools.search-open .oimv-search-toggle { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.oimv-search { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  background: #fff; padding: 12px; border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--sh-3); }
.oimv-tools.search-open .oimv-search { display: flex; align-items: center; }
.oimv-search search, .oimv-search .mod-finder, .oimv-search form, .oimv-search .mod-finder__search, .oimv-search .awesomplete { display: flex; align-items: center; margin: 0; }
/* hide the finder's visible label + a11y span */
.oimv-search label, .oimv-search .finder > label, .oimv-search .visually-hidden { position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.oimv-search input, .oimv-search .js-finder-search-query { height: 40px; width: 240px; padding: 0 12px;
  border: 1px solid var(--c-line-2); border-radius: var(--r-sm); font: inherit; font-size: .95rem; background: #fff; }
.oimv-search input:focus { outline: none; border-color: var(--c-primary-300); }
.oimv-search button, .oimv-search input[type=submit], .oimv-search .btn { height: 40px; margin-left: 6px; padding: 0 16px;
  border: 0; border-radius: var(--r-sm); background: var(--c-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.oimv-search button:hover, .oimv-search input[type=submit]:hover, .oimv-search .btn:hover { background: var(--c-accent-600); }
/* autosuggest dropdown */
.oimv-search .awesomplete > ul { position: absolute; top: calc(100% + 4px); right: 0; min-width: 220px; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--r-sm); box-shadow: var(--sh-3); list-style: none; margin: 0; padding: 6px; z-index: 40; }
.oimv-search .awesomplete > ul li { padding: 8px 10px; border-radius: var(--r-xs); cursor: pointer; font-size: .9rem; }
.oimv-search .awesomplete > ul li:hover, .oimv-search .awesomplete > ul li[aria-selected="true"] { background: var(--c-bg-soft); }
.oimv-search .awesomplete > ul:empty, .oimv-search .awesomplete[hidden], .oimv-search .awesomplete > ul[hidden] { display: none; }

/* language switch (mod_languages) — compact pills, hide the "select language" label */
.oimv-nav .mod-languages { flex: 0 0 auto; }
.oimv-header .mod-languages { font-size: 0; }               /* kill stray label text nodes */
.oimv-header .mod-languages ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--c-line-2); border-radius: var(--r-sm); overflow: hidden; }
.oimv-header .mod-languages li { margin: 0; }
.oimv-header .mod-languages a { display: block; padding: 7px 10px; font-weight: 700; font-size: .78rem;
  text-transform: uppercase; color: var(--c-muted); }
.oimv-header .mod-languages .lang-active a, .oimv-header .mod-languages a:hover { color: #fff; background: var(--c-accent); }

/* burger (mobile) */
.oimv-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--c-line-2); background: #fff;
  border-radius: var(--r-sm); cursor: pointer; padding: 0; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.oimv-burger span { display: block; width: 22px; height: 2px; background: var(--c-primary); border-radius: 2px; transition: .25s; }
.oimv-nav-backdrop { display: none; }

/* ---------- hero (banner) ---------- */
/* LIGHT hero — no low-res photo, no dark overlay. Clean gradient + emblem watermark. */
.oimv-hero { position: relative; display: flex; align-items: center; min-height: clamp(400px, 44vw, 560px);
  overflow: hidden; border-bottom: 1px solid var(--c-line); background:
    radial-gradient(circle at 1px 1px, rgba(14,47,94,.045) 1px, transparent 0) 0 0 / 26px 26px,
    linear-gradient(118deg, #ffffff 0%, var(--c-bg-soft) 55%, var(--c-bg-soft-2) 100%); }
/* faint institute emblem watermark on the right */
.oimv-hero::after { content: ''; position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: min(44vw, 540px); aspect-ratio: 1; opacity: .06; pointer-events: none;
  background: url('/media/templates/site/oim_vrazhkin/images/logo-oim.png') center/contain no-repeat; }
.oimv-hero .mod-banners, .oimv-hero .bannergroup { display: none; }  /* drop the baked-text low-res slider */
.oimv-hero__overlay { position: relative; z-index: 2; width: 100%; }
.oimv-hero__overlay .oimv-shell { width: 100%; }
.oimv-hero__panel { max-width: 680px; color: var(--c-ink); }
.oimv-hero__kicker { display: flex; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; font-weight: 700; color: var(--c-muted); margin: 0 0 16px; }
.oimv-hero__kicker::before { content: ''; width: 40px; height: 3px; background: var(--c-accent); border-radius: 2px; flex: 0 0 auto; }
.oimv-hero__panel .oimv-hero__title { color: var(--c-primary); font-size: clamp(1.8rem, 3.2vw, 2.9rem); line-height: 1.05; margin: 0 0 18px; }
.oimv-hero__lead { color: var(--c-muted); font-size: clamp(1rem, 1.5vw, 1.18rem); margin: 0 0 28px; max-width: 46ch; }
.oimv-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
/* 2nd CTA = navy-outline ghost on the light hero */
.oimv-btn--on-dark { background: #fff; color: var(--c-primary) !important; border: 1.5px solid var(--c-line-2); }
.oimv-btn--on-dark:hover { background: var(--c-primary); color: #fff !important; border-color: var(--c-primary); }

/* ---------- main / layout ---------- */
.oimv-main { padding: var(--sp-4) 0 var(--sp-5); }
.oimv-breadcrumbs { padding-bottom: var(--sp-2); font-size: .88rem; color: var(--c-muted); }
.oimv-breadcrumbs a { color: var(--c-muted); }
.oimv-breadcrumbs a:hover { color: var(--c-accent); }
/* breadcrumbs: no Bootstrap base -> reset the ol/ul into an inline trail */
.oimv-breadcrumbs ol, .oimv-breadcrumbs ul, .oimv-breadcrumbs .breadcrumb { list-style: none; display: flex;
  flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.oimv-breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.oimv-breadcrumbs li + li::before { content: '▸'; color: var(--c-line-2); }
.oimv-breadcrumbs .active, .oimv-breadcrumbs [aria-current="page"] { color: var(--c-ink); font-weight: 600; }
.oimv-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.oimv-layout.has-sidebar { grid-template-columns: minmax(0,1fr) 320px; }
.oimv-content { min-width: 0; }
.oimv-sidebar > * { margin-bottom: var(--sp-3); }
/* inner pages: tinted canvas + white content card for depth (kills white-on-white) */
.oimv:not(.is-home) .oimv-main { background: var(--c-bg-soft); }
.oimv:not(.is-home) .oimv-content { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.6rem); box-shadow: var(--sh-1); }
.oimv:not(.is-home) .oimv-breadcrumbs { padding-top: var(--sp-2); }

/* Article/content typography: migrated articles use the full content card.
   Do not impose a prose measure here: it created arbitrary narrow columns on
   wide institutional pages. */
.oimv-content .com-content-article__body, .oimv-content .item-page { font-size: 1rem; }
.oimv-content .item-page, .oimv-content .com-content-article__body,
.oimv-content .com-content-category-blog__item { text-align: left; }
.oimv-content p[style*="justify"], .oimv-content div[align="justify"], .oimv-content [style*="text-align: justify"] { text-align: left !important; }
.oimv-content .item-page p, .oimv-content .com-content-article__body p,
.oimv-content .item-page > ul, .oimv-content .item-page > ol,
.oimv-content .com-content-article__body > ul,
.oimv-content .com-content-article__body > ol { max-width: none; }
.oimv-content .com-content-category-blog__item p { max-width: 74ch; }
.oimv-content .item-page p, .oimv-content .com-content-article__body p { line-height: 1.7; }
.oimv-content .item-page img, .oimv-content article img { border-radius: var(--r-sm); }
.oimv-content .article-info, .oimv-content .com-content-article__info { color: var(--c-muted); font-size: .85rem;
  border-left: 3px solid var(--c-line-2); padding-left: 12px; margin: 0 0 var(--sp-3); }
.oimv-content ul li, .oimv-content ol li { margin-bottom: .4em; }
.oimv-content blockquote { border-left: 4px solid var(--c-accent); background: var(--c-bg-soft);
  margin: var(--sp-3) 0; padding: var(--sp-2) var(--sp-3); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
/* modern tables (override legacy border= / inline widths) */
.oimv-table-wrap { overflow-x: auto; margin: var(--sp-3) 0; border: 1px solid var(--c-line); border-radius: var(--r);
  box-shadow: var(--sh-1); -webkit-overflow-scrolling: touch; }
.oimv-content table { border-collapse: collapse; width: 100%; margin: 0; font-size: .95rem; background: #fff; border: 0 !important; }
.oimv-content table[border] { border: 0 !important; }
.oimv-content th, .oimv-content td { border: 0 !important; border-bottom: 1px solid var(--c-line) !important;
  padding: 12px 16px !important; text-align: left; vertical-align: top; }
.oimv-content thead th, .oimv-content tr:first-child th { background: var(--c-primary); color: #fff !important;
  font-weight: 700; border-bottom: 0 !important; }
.oimv-content tbody tr:nth-child(even), .oimv-content table tr:nth-child(even) { background: var(--c-bg-soft); }
.oimv-content tbody tr:hover, .oimv-content table tr:hover { background: var(--c-bg-soft-2); }
.oimv-content td[style], .oimv-content th[style] { width: auto !important; }

/* АКАДЕМ-СЕРТ / systems management: migrated contact, schedule and banking
   tables carry an inline width of 300px. On this category landing they are
   full-width information panels, while the narrow icon column stays compact. */
.itemid-246 .oimv-table-wrap > table {
  width: 100% !important;
  max-width: none !important;
  table-layout: auto;
}
.itemid-246 .oimv-table-wrap td[width="40"] { width: 52px !important; }
.itemid-246 .oimv-table-wrap td[width="260"],
.itemid-246 .oimv-table-wrap td[width="167"],
.itemid-246 .oimv-table-wrap td[width="123"] { width: auto !important; }
.itemid-246 .oimv-table-wrap td { overflow-wrap: anywhere; }
/* visited-link distinction ONLY for inline prose links in article bodies (not cards/titles/nav — purple there looks cheap) */
.oimv-content .item-page p a:visited, .oimv-content .com-content-article__body p a:visited { color: #6b4a8a; }
/* forms in content (search results, filters, etc.) */
.oimv-content input[type=text], .oimv-content input[type=search], .oimv-content input[type=email],
.oimv-content select, .oimv-content textarea { height: 40px; padding: 0 12px; border: 1px solid var(--c-line-2);
  border-radius: var(--r-sm); font: inherit; font-size: .95rem; background: #fff; max-width: 100%; vertical-align: middle; }
.oimv-content textarea { height: auto; padding: 10px 12px; }
.oimv-content input:focus, .oimv-content select:focus, .oimv-content textarea:focus { outline: none; border-color: var(--c-primary-300); }
.oimv-content button, .oimv-content input[type=submit], .oimv-content .btn {
  height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-sm); background: var(--c-accent); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer; vertical-align: middle; }
.oimv-content button:hover, .oimv-content input[type=submit]:hover, .oimv-content .btn:hover { background: var(--c-accent-600); color: #fff; }
.oimv-content .btn-secondary, .oimv-content button.btn-secondary { background: var(--c-bg-soft-2); color: var(--c-primary); }
.oimv-content mark, .oimv-content .highlight { background: #fff2a8; padding: 0 2px; border-radius: 2px; }
/* hide broken directory-src images (legacy data, e.g. Shemenkov photo) + legacy zoom overlay */
.oimv-content img[src$="/"] { display: none; }
.oimv-content .overlay, .oimv-content a.overlay { display: none; }

/* buttons */
.oimv-btn, .oimv .readmore a, .oimv .btn-readon, .oimv .readon { display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-accent); color: #fff !important; font-weight: 700; padding: 11px 22px; border-radius: var(--r-sm);
  text-decoration: none !important; transition: .18s var(--ease); border: 0; cursor: pointer; }
.oimv-btn:hover, .oimv .readmore a:hover { background: var(--c-accent-600); color: #fff !important; transform: translateY(-1px); box-shadow: var(--sh-2); }
.oimv-btn--ghost { background: transparent; color: var(--c-primary) !important; border: 1.5px solid var(--c-line-2); }
.oimv-btn--ghost:hover { background: var(--c-primary); color: #fff !important; border-color: var(--c-primary); }

/* ---------- home dashboard 3-col (reused .oim-col) restyled modern ---------- */
.oimv.is-home .oimv-content { max-width: none; }
/* home promo banner (first content module): spacing + rounded frame */
.oimv.is-home .oimv-content > .mod-custom:first-child { margin: 0 0 var(--sp-4); }
.oimv.is-home .oimv-content > .mod-custom:first-child img { display: block; max-width: 100%; height: auto;
  margin: 0 auto; border-radius: var(--r); box-shadow: var(--sh-1); }
.oim-col { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
/* editorial section header — no more heavy navy bar */
.oim-col h3, .oim-modtitle { margin: 0; padding: 22px 24px 0; font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 800; letter-spacing: -.01em; color: var(--c-primary); background: none; }
.oim-col h3::after, .oim-modtitle::after { content: ''; display: block; width: 46px; height: 3px;
  background: var(--c-accent); border-radius: 3px; margin-top: 14px; }
.oim-col__body { padding: 20px 24px 24px; }
.oim-vlist { list-style: none; margin: 0; padding: 0; }
.oim-vlist li { border-bottom: 1px solid var(--c-line); }
.oim-vlist li:last-child { border-bottom: 0; }
.oim-vlist a { display: block; padding: 11px 4px; font-weight: 600; color: var(--c-ink); }
.oim-vlist a:hover { color: var(--c-accent); padding-left: 8px; transition: padding .15s; }
/* content photo gallery (restored widgetkit slideset, e.g. Полигон) — clickable grid + lightbox */
/* photo gallery as a horizontal slider (a row at a time, arrows + snap-scroll)
   instead of dumping every photo on the page */
.oimv-gallery-wrap { position: relative; margin: var(--sp-3) 0; }
.oimv-gallery { display: flex; gap: 12px; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: thin; }
.oimv-gallery::-webkit-scrollbar { height: 8px; }
.oimv-gallery::-webkit-scrollbar-thumb { background: var(--c-line-2); border-radius: 4px; }
.oimv-gallery__item { flex: 0 0 clamp(240px, 30%, 320px); scroll-snap-align: start;
  display: block; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--sh-1); cursor: zoom-in; }
.oimv-gallery__item img { display: block; width: 100%; height: 200px; object-fit: cover; transition: transform .35s var(--ease); }
.oimv-gallery__item:hover img { transform: scale(1.06); }
/* prev/next arrows (added by initGallerySlider) */
/* scoped under .oimv-gallery-wrap so it beats the generic .oimv-content button rule */
.oimv-gallery-wrap .oimv-gallery__nav { position: absolute; top: calc(50% - 3px); transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; min-width: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(14,47,94,.92); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-2);
  transition: background .15s var(--ease), opacity .15s var(--ease); }
.oimv-gallery-wrap .oimv-gallery__nav:hover { background: var(--c-primary); }
.oimv-gallery-wrap .oimv-gallery__nav[disabled] { opacity: .3; cursor: default; }
.oimv-gallery-wrap .oimv-gallery__nav--prev { left: -6px; }
.oimv-gallery-wrap .oimv-gallery__nav--next { right: -6px; }
.oimv-gallery-wrap .oimv-gallery__nav svg { width: 20px !important; height: 20px !important; display: block; flex: 0 0 auto; }
@media (max-width: 640px) {
  .oimv-gallery__item img { height: 150px; }
  .oimv-gallery-wrap .oimv-gallery__nav { width: 40px; height: 40px; }
  .oimv-gallery-wrap .oimv-gallery__nav svg { width: 18px !important; height: 18px !important; }
}

/* content accordion (restored widgetkit accordions, e.g. XII МНТК) */
.oimv-accordion { margin: var(--sp-3) 0; }
.oimv-accordion .oim-acc { border: 1px solid var(--c-line); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; background: #fff; }
.oimv-accordion .oim-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; font-family: var(--font); font-weight: 700; font-size: 1.05rem; color: var(--c-primary);
  background: var(--c-bg-soft); transition: background .15s; }
.oimv-accordion .oim-acc > summary::-webkit-details-marker, .oimv-accordion .oim-acc > summary::marker { display: none; content: ''; }
.oimv-accordion .oim-acc > summary:hover { background: var(--c-bg-soft-2); }
.oimv-accordion .oim-acc > summary::after { content: ''; margin-left: auto; width: 9px; height: 9px; flex: 0 0 auto;
  border-right: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent); transform: rotate(45deg); transition: transform .2s var(--ease); }
.oimv-accordion .oim-acc[open] > summary { background: var(--c-primary); color: #fff; }
.oimv-accordion .oim-acc[open] > summary::after { border-color: #fff; transform: rotate(-135deg); }
.oimv-accordion .oim-acc__body { text-align: left; padding: 20px; }
.oimv-accordion .oim-acc__body table { width: auto; max-width: 100%; }
.oimv-accordion .oim-acc__body .oim-dbtn { display: inline-block; margin: 6px 8px 6px 0; padding: 8px 16px; }
/* publications accordion */
.oim-acc { border: 1px solid var(--c-line); border-radius: var(--r-sm); margin-bottom: 10px; overflow: hidden; }
.oim-acc > summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 700; color: var(--c-primary);
  background: var(--c-bg-soft); font-size: .98rem; }
.oim-acc > summary::-webkit-details-marker, .oim-acc > summary::marker { display: none; content: ''; }
.oim-acc[open] > summary { border-bottom: 1px solid var(--c-line); }
.oim-acc__body { padding: 16px; text-align: center; }
.oim-acc__body img { display: block; margin: 0 auto 12px; border-radius: var(--r-sm); }
.oim-dbtn { display: inline-flex; align-items: center; background: var(--c-accent); color: #fff !important; font-weight: 700;
  padding: 9px 20px; border-radius: var(--r-sm); text-decoration: none !important; white-space: nowrap; vertical-align: middle; }
.oim-dbtn:hover { background: var(--c-accent-600); }
/* file-type chip sits inline next to the label, never wraps under it */
.oim-dbtn[data-filetype]::after { margin-left: 9px !important; flex: 0 0 auto; }

/* embedded content sliders (Об институте / Продукция) */
.oimv-content .oimv-carousel { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); background: var(--c-primary-700); }
.oimv-content .oimv-carousel .oim-slide, .oimv-content .oimv-carousel .mod-banners__item, .oimv-content .oimv-carousel .banneritem { position: relative; }
.oimv-content .oimv-carousel img { display: block; width: 100%; height: clamp(280px, 34vw, 420px); object-fit: cover; }
.oimv-content .oimv-carousel .oim-slide-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 40px 22px 18px; color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.3;
  background: linear-gradient(0deg, rgba(11,31,58,.86), rgba(11,31,58,0)); }
.oimv-content .oimv-carousel .oim-dots { position: absolute; right: 16px; bottom: 14px; z-index: 3; display: flex; gap: 8px; }
.oimv-content .oimv-carousel .oim-dots button { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; cursor: pointer; padding: 0; }
.oimv-content .oimv-carousel .oim-dots button.active { background: #fff; }

/* category blog (news list): show only the intro-image thumbnail, not the
   same image duplicated inline inside the intro text */
/* hide the duplicated inline image ONLY for items that also have a field thumbnail
   (news). Items without a thumbnail (e.g. akadem-sert structure table) keep their images. */
.oimv-content .com-content-category-blog__item:has(.item-image) img { display: none; }
.oimv-content .com-content-category-blog__item .item-image img { display: block; }
.oimv-content .com-content-category-blog__item .item-image { margin: 0 0 12px; }
.oimv-content .com-content-category-blog__item .item-image img { width: 100%; max-width: 360px; height: auto; border-radius: var(--r-sm); }

/* NEWS LIST page (pageclass `news-grid`): scannable card grid instead of stacked full articles */
.news-grid .oimv-content .com-content-category-blog__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.news-grid .oimv-content .com-content-category-blog__item { background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column;
  margin: 0; padding: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.news-grid .oimv-content .com-content-category-blog__item:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.news-grid .com-content-category-blog__item .item-image { order: -1; margin: 0; background: var(--c-bg-soft-2); }
.news-grid .com-content-category-blog__item .item-image img { width: 100%; max-width: none; height: 180px; object-fit: cover; border-radius: 0; }
/* intro text is hidden (override), so cards need no clip/fade — size to content */
.news-grid .com-content-category-blog__item { position: relative; }

/* legacy fixed-narrow tables (300px КОНТАКТЫ/РЕЖИМ blocks inside articles, e.g.
   akadem-sert pages) must not stay cramped — let them use the full content width */
.oimv-content .item-page table[style*="300px"],
.oimv-content .com-content-article table[style*="300px"],
.oimv-content .com-content-category-blog table[style*="300px"] { width: 100% !important; max-width: 100% !important; }
.news-grid .item-content { padding: 14px 16px 16px; }
.news-grid .item-content .page-header { margin: 0 0 8px; }
.news-grid .item-content h2, .news-grid .item-content h2 a { font-family: var(--font); font-size: 1.02rem;
  font-weight: 700; color: var(--c-primary); line-height: 1.32; margin: 0; }
.news-grid .item-content:hover h2 a, .news-grid .com-content-category-blog__item:hover h2 a { color: var(--c-accent); }
.news-grid .item-content p { font-size: .92rem; color: var(--c-muted); max-width: none; margin: 0 0 .5em; line-height: 1.5; }
.news-grid .oimv-content .com-content-category-blog__links { margin-top: var(--sp-3); }
.news-grid .oimv-content .com-content-category-blog__links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.news-grid .oimv-content .com-content-category-blog__links a { display: block; padding: 10px 12px; background: var(--c-bg-soft); border-radius: var(--r-sm); color: var(--c-primary); font-weight: 600; font-size: .9rem; }
.news-grid .oimv-content .com-content-category-blog__links a:hover { background: var(--c-bg-soft-2); color: var(--c-accent); }

/* news grid (mod_articles_news → .mod-articlesnews__item, structure: title + figure) */
.mod-articlesnews, .mod-articles-news { display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
.mod-articlesnews__item, .mod-articlesnews > li, .mod-articles-news .newsflash-item {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.mod-articlesnews__item:hover, .mod-articlesnews > li:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
/* image on top, uniform thumbnail */
.mod-articlesnews .newsflash-image { order: -1; margin: 0; overflow: hidden; background: var(--c-bg-soft-2); }
.mod-articlesnews .newsflash-image img, .mod-articlesnews img { display: block; width: 100%; height: 172px;
  object-fit: cover; transition: transform .35s var(--ease); }
.mod-articlesnews__item:hover .newsflash-image img { transform: scale(1.05); }
/* title (navy, sans, readable) — no purple on visit */
.mod-articlesnews .newsflash-title, .mod-articlesnews h4 { order: 0; margin: 0; padding: 14px 16px;
  font-family: var(--font); font-size: .98rem; line-height: 1.34; font-weight: 700; }
.mod-articlesnews .newsflash-title a, .mod-articlesnews a { color: var(--c-primary); font-weight: 700; }
.mod-articlesnews .newsflash-title a:visited, .mod-articlesnews a:visited { color: var(--c-primary); }
.mod-articlesnews__item:hover .newsflash-title a, .mod-articlesnews > li:hover a { color: var(--c-accent); }

/* ---------- prefooter (bottom-a: inforesources / contacts / copyright) ---------- */
.oimv-prefooter { background: var(--c-bg-soft); border-top: 1px solid var(--c-line); padding: var(--sp-4) 0; }
.oimv-prefooter__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: var(--sp-4); align-items: start; }
.oimv-prefooter h3, .oimv-prefooter .oim-ptitle { color: var(--c-primary); font-size: 1.05rem; margin: 0 0 var(--sp-2); }
/* inforesources logos: bigger, tidy grid */
.oimv-prefooter img { border-radius: var(--r-xs); }
.oimv-prefooter a img { transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.oimv-prefooter a:hover img { transform: translateY(-2px); box-shadow: var(--sh-1); }

/* ---------- footer ---------- */
.oimv-footer { background: var(--c-footer); color: var(--c-footer-ink); padding: var(--sp-4) 0; }
.oimv-footer a { color: #dbe6f4; }
.oimv-footer a:hover { color: #fff; }
.oimv-footer__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.oimv-footer__brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: #fff; max-width: 40ch; }
.oimv-footer__meta { font-size: .9rem; }

/* ---------- lightbox ---------- */
.oimv-image-grid .oimv-image-tile {
  position: relative;
  padding: 0 !important;
  cursor: zoom-in;
  transition: background .18s, box-shadow .18s;
}
.oimv-image-grid .oimv-image-tile:hover {
  z-index: 1;
  background: var(--c-bg-soft) !important;
  box-shadow: inset 0 0 0 2px var(--c-line-2);
}
.oimv-image-grid .oimv-image-link {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  padding: 12px;
  cursor: zoom-in;
}
.oimv-image-grid .oimv-image-link img { margin: 0 !important; cursor: zoom-in !important; }
.oimv-lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(6,16,32,.93); display: none; align-items: center; justify-content: center; }
.oimv-lightbox.open { display: flex; }
.oimv-lightbox img { max-width: 90vw; max-height: 86vh; border-radius: var(--r-sm); box-shadow: var(--sh-3); }
.oimv-lb-close, .oimv-lb-prev, .oimv-lb-next { position: absolute; background: rgba(255,255,255,.14); color: #fff;
  border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.oimv-lb-close { top: 20px; right: 20px; }
.oimv-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.oimv-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.oimv-lightbox:not(.oimv-lb-multi) .oimv-lb-prev, .oimv-lightbox:not(.oimv-lb-multi) .oimv-lb-next { display: none; }
.oimv-lb-close:hover, .oimv-lb-prev:hover, .oimv-lb-next:hover { background: var(--c-accent); }
/* image links in content look clickable */
.oimv-content a[data-spotlight], .oimv-content a[href$=".jpg"], .oimv-content a[href$=".jpeg"], .oimv-content a[href$=".png"] { cursor: zoom-in; }
.oimv-content .item-page img, .oimv-content .blog img, .oimv-content article img { cursor: zoom-in; }

/* footer: hide the legacy floating-icons dump (search is in header, contacts in prefooter) */
.oimv-footer .oim-floaticons { display: none; }

/* ---------- to-top ---------- */
.oimv-totop { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-accent); color: #fff !important; display: grid; place-items: center; box-shadow: var(--sh-2);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s var(--ease); z-index: 90; }
.oimv-totop svg { stroke: #fff; }
.oimv-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.oimv-totop:hover { background: var(--c-accent-600); color: #fff !important; }

/* ---------- section rhythm / colour bands (fix white-on-white) ---------- */
.oimv-band { padding: clamp(2rem, 3.5vw, 3.2rem) 0; }
.oimv-band--dark { background: var(--c-primary); color: #fff;
  background-image: radial-gradient(1200px 400px at 80% -20%, rgba(255,255,255,.06), transparent 60%); }
.oimv-band--soft { background: var(--c-bg-soft); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
/* tint behind the home dashboard so white cards get depth */
.oimv.is-home .oimv-main { background: var(--c-bg-soft); }
.oimv-section-title { color: var(--c-primary); font-size: clamp(10.4rem, 20.4vw, 2rem); margin: 0 0 var(--sp-4); }
.oimv-section-title::after { content: ''; display: block; width: 56px; height: 4px; border-radius: 3px;
  background: var(--c-accent); margin-top: 12px; }

/* stats band (animated counters on navy) */
.oimv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.oimv-stat { text-align: center; padding: 0 8px; position: relative; }
.oimv-stat + .oimv-stat::before { content: ''; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,.16); }
.oimv-stat__num, .oimv-stat__suffix { display: inline; font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 900; line-height: 1; color: #fff; letter-spacing: -.02em; }
.oimv-stat__suffix { color: #ff6b7d; }
.oimv-stat__label { display: block; margin-top: 10px; color: #b9cbe4; font-size: .95rem; font-weight: 500; }

/* research-direction colour tiles (Fraunhofer-style mosaic) */
.oimv-dirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.oimv-dir { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r);
  color: #fff !important; text-decoration: none !important; min-height: 190px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.oimv-dir:hover { transform: translateY(-5px); box-shadow: var(--sh-3); color: #fff !important; }
.oimv-dir__icon { width: 46px; height: 46px; color: rgba(255,255,255,.92); }
.oimv-dir__icon svg { width: 100%; height: 100%; }
.oimv-dir__title { font-size: 1.2rem; font-weight: 800; line-height: 1.2; margin-top: auto; }
.oimv-dir__desc { font-size: .92rem; color: rgba(255,255,255,.82); line-height: 1.4; }
.oimv-dir--a, .oimv-dir--d { background: var(--c-primary); }
.oimv-dir--b, .oimv-dir--e { background: var(--c-teal); }
.oimv-dir--c { background: var(--c-steel); }
.oimv-dir--f { background: var(--c-accent); }

/* ---------- reveal on scroll (progressive enhancement: base = visible) ---------- */
.oimv-reveal.is-visible { animation: oimv-rise .6s var(--ease) both; }
@keyframes oimv-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- accessibility contrast mode (версия для слабовидящих) ---------- */
/* ---------- sitemap page (articles 500/501: nested .oim-sitemap lists) ---------- */
.oimv-content .oim-sitemap { list-style: none; margin: 0 0 4px; padding: 0; }
.oimv-content .oim-sitemap-wrap > .oim-sitemap > li { margin-bottom: 10px; }
.oimv-content .oim-sitemap-wrap > .oim-sitemap > li > a { display: inline-block; font-family: var(--font);
  font-size: 1.08rem; font-weight: 700; color: var(--c-primary); padding: 8px 0 4px; }
.oimv-content .oim-sitemap .oim-sitemap { margin: 2px 0 8px 14px; padding-left: 14px; border-left: 2px solid var(--c-line); }
.oimv-content .oim-sitemap .oim-sitemap a { display: inline-block; padding: 4px 0; color: var(--c-primary-600); font-weight: 500; }
.oimv-content .oim-sitemap a:hover { color: var(--c-accent); }

/* full-page high-contrast: black surfaces, yellow headings/links, white body text.
   Overrides late-in-file design-pass rules too, hence the broad surface list. */
body.oimv-contrast { background: #000 !important; color: #fff !important; }
body.oimv-contrast .oimv-header, body.oimv-contrast .oimv-main, body.oimv-contrast .oimv-hero,
body.oimv-contrast .oimv-band, body.oimv-contrast .oimv-band--dark, body.oimv-contrast .oimv-band--soft,
body.oimv-contrast .oimv-prefooter, body.oimv-contrast .oimv-footer, body.oimv-contrast .oimv-content,
body.oimv-contrast .oim-col, body.oimv-contrast .oim-col h3, body.oimv-contrast .oim-col__body,
body.oimv-contrast .mod-articlesnews > li, body.oimv-contrast .mod-articlesnews__item,
body.oimv-contrast .com-content-category-blog__item, body.oimv-contrast .oimv-dir,
body.oimv-contrast .oim-acc, body.oimv-contrast .oim-acc > summary, body.oimv-contrast .oim-acc__body,
body.oimv-contrast .oimv-nav, body.oimv-contrast .oimv-search, body.oimv-contrast .oimv-hero__panel,
body.oimv-contrast .oimv-stats, body.oimv-contrast .oimv-table-wrap, body.oimv-contrast table,
body.oimv-contrast th, body.oimv-contrast td, body.oimv-contrast .oim-vlist li, body.oimv-contrast .oim-vlist a,
body.oimv-contrast .oim-dash, body.oimv-contrast .oim-home-cols > * { background: #000 !important; background-image: none !important; }
body.oimv-contrast .oimv-header { border-bottom: 2px solid #ffd400; }
/* navy SVG logo is invisible on the black contrast surface — force it white */
body.oimv-contrast .oimv-brand__mark { filter: brightness(0) invert(1); }
body.oimv-contrast .oimv-footer__logo { filter: brightness(0) invert(1); background: transparent; }
body.oimv-contrast h1, body.oimv-contrast h2, body.oimv-contrast h3, body.oimv-contrast h4,
body.oimv-contrast .oimv-brand__name,
body.oimv-contrast .oimv-section-title, body.oimv-contrast .oim-modtitle,
body.oimv-contrast .oimv-hero__title, body.oimv-contrast .oimv-hero__kicker,
body.oimv-contrast .oimv-stat__num, body.oimv-contrast .oimv-stat__suffix { color: #ffd400 !important; }
body.oimv-contrast, body.oimv-contrast p, body.oimv-contrast li, body.oimv-contrast td,
body.oimv-contrast .oimv-hero__lead, body.oimv-contrast .oimv-stat__label,
body.oimv-contrast .oimv-dir__desc, body.oimv-contrast .oimv-footer__meta { color: #fff !important; }
body.oimv-contrast a, body.oimv-contrast .oimv-nav .mod-menu > li > a,
body.oimv-contrast .oim-vlist a, body.oimv-contrast .oimv-dir__title { color: #ffd400 !important; text-decoration: underline; }
body.oimv-contrast .oimv-btn, body.oimv-contrast .oim-dbtn, body.oimv-contrast .readmore a,
body.oimv-contrast button, body.oimv-contrast input[type=submit] { background: #ffd400 !important; color: #000 !important; text-decoration: none; }
body.oimv-contrast .oim-col, body.oimv-contrast .mod-articlesnews > li, body.oimv-contrast .mod-articlesnews__item,
body.oimv-contrast .com-content-category-blog__item, body.oimv-contrast .oimv-dir, body.oimv-contrast .oim-acc,
body.oimv-contrast .oimv-a11y__btn, body.oimv-contrast th, body.oimv-contrast td,
body.oimv-contrast .oimv-content, body.oimv-contrast .oim-vlist li { border-color: #ffd400 !important; }
body.oimv-contrast .oim-col h3 { border-bottom: 1px solid #ffd400; }
body.oimv-contrast img { filter: grayscale(1) contrast(1.2); }
body.oimv-contrast .oimv-hero .oim-slide::after { background: rgba(0,0,0,.75) !important; }
body.oimv-contrast .news-grid .com-content-category-blog__item::after { display: none; }  /* no white fade on black */

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .oimv-layout.has-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 1200px) {
  :root { --header-h: 68px; }
  .oimv-burger { display: flex; }
  .oimv-a11y { display: none; }
  /* the closed off-canvas drawer (translateX 105%) sits past the right edge;
     clip (not hidden — keeps the sticky header working) so it never creates
     horizontal page scroll on inner pages that lack a full-width band */
  html { overflow-x: clip; }
  .oimv-nav { display: block; align-items: stretch; position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(340px, 86vw);
    background: #fff; margin: 0; padding: 12px; overflow-y: auto; box-shadow: var(--sh-3);
    transform: translateX(105%); transition: transform .28s var(--ease); z-index: 110; }
  .oimv-nav .mod-languages { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-line); }
  .oimv-nav .mod-menu > li.deeper > a::before, .oimv-nav .mod-menu > li.parent > a::before { margin-left: auto; }
  .oimv-header.nav-open { z-index: 999; }   /* lift header context above the hero */
  .oimv-nav { z-index: 1001; }
  .oimv-header.nav-open .oimv-nav { transform: translateX(0); }
  .oimv-nav .mod-menu { flex-direction: column; gap: 2px; }
  .oimv-nav .mod-menu > li > a, .oimv-nav .mod-menu > li > span { text-transform: none; font-size: 1.02rem; padding: 12px; }
  .oimv-nav .mod-menu > li > ul { position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--c-line); border-radius: 0; margin-left: 12px; padding: 0; }
  .oimv-nav .mod-menu > li.current > a::after { display: none; }
  .oimv-header.nav-open .oimv-nav-backdrop { display: block; position: fixed; inset: var(--header-h) 0 0 0;
    background: rgba(11,31,58,.4); z-index: 1000; border: 0; }
  .oimv-header.nav-open .oimv-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .oimv-header.nav-open .oimv-burger span:nth-child(2) { opacity: 0; }
  .oimv-header.nav-open .oimv-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .oimv-shell { padding: 0 16px; }
  .oimv-brand__text { display: none; }   /* monogram-only, so the burger fits */
  .oimv-search { right: -40px; }          /* keep the dropdown on-screen */
  .oimv-footer__bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  .oimv-stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-2); }
  .oimv-stat + .oimv-stat::before { display: none; }
  .oimv-dirs { grid-template-columns: repeat(2, 1fr); }
  .oimv-hero__panel { max-width: none; margin-bottom: 20px; }
}
@media (max-width: 640px) {
  /* stack the hero panel below the image (no clipping on short screens) */
  .oimv-hero__overlay { position: static; }
  .oimv-hero__overlay .oimv-shell { padding: 0; }
  .oimv-hero__panel { margin-bottom: 0; border-radius: 0; box-shadow: none; }
}
@media (max-width: 520px) {
  .oimv-dirs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .oimv-reveal { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}

/* news grid responsive */
@media (max-width: 1024px) { .news-grid .oimv-content .com-content-category-blog__items, .mod-articlesnews { grid-template-columns: repeat(2, 1fr) !important; } .news-grid .oimv-content .com-content-category-blog__links ul { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .news-grid .oimv-content .com-content-category-blog__items, .mod-articlesnews { grid-template-columns: 1fr !important; } .news-grid .oimv-content .com-content-category-blog__links ul { grid-template-columns: 1fr; } }

/* ==========================================================================
   Design pass 2026-07-22: applied-research identity
   Real infrastructure photography, restrained sans typography, service cards,
   compact editorial grids. Content remains native Joomla modules/banners.
   ========================================================================== */

:root {
  --font-display: var(--font);
  --c-primary: #102f54;
  --c-primary-700: #08213d;
  --c-primary-600: #17446f;
  --c-accent: #b52a36;
  --c-accent-600: #941e29;
  --c-teal: #087783;
  --c-steel: #40637f;
  --c-bg-soft: #f4f7fa;
  --c-bg-soft-2: #eaf0f5;
  --c-line: #dde5ec;
  --c-line-2: #cad5df;
  --r: 8px;
  --r-lg: 12px;
  --sh-1: 0 8px 26px rgba(8,33,61,.07);
  --sh-2: 0 16px 42px rgba(8,33,61,.12);
}

.oimv h1, .oimv h2, .oimv h3 {
  font-family: var(--font);
  letter-spacing: -.035em;
  font-weight: 800;
}
.oimv-header { border-bottom-color: rgba(16,47,84,.12); }
.oimv-brand__name { letter-spacing: -.015em; }

/* Two-slide admin-editable hero. The source banners already contain the
   institute identity; no synthetic illustration or duplicate text overlay. */
.oimv-hero {
  display: block;
  min-height: 0;
  overflow: hidden;
  border: 0;
  background: var(--c-primary-700);
}
.oimv-hero::after { display: none; }
.oimv-hero .mod-banners,
.oimv-hero .bannergroup {
  display: block;
  position: relative;
  width: 100%;
  min-height: clamp(290px, 29vw, 430px);
  overflow: hidden;
  background: var(--c-primary-700);
}
.oimv-hero .oimv-carousel .mod-banners__item,
.oimv-hero .oimv-carousel .banneritem {
  height: 100%;
}
.oimv-hero .oimv-carousel .oim-slide {
  display: block;
  height: 100%;
}
.oimv-hero .oimv-carousel img {
  display: block;
  width: 100%;
  height: clamp(290px, 29vw, 430px);
  object-fit: cover;
  object-position: center;
}
.oimv-hero__overlay { display: none; }
.oimv-hero .oim-dots {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 22px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}
.oimv-hero .oim-dots button {
  width: 36px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .2s, width .2s;
}
.oimv-hero .oim-dots button.active { width: 54px; background: #fff; }
.oimv-car-arrow {
  position: absolute;
  z-index: 9;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(8,33,61,.62);
  color: #fff;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .2s, background .2s, transform .2s;
}
.oimv-car-arrow > span {
  display: block;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  margin: 0;
  border: 0;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  border-radius: 1px;
  background: transparent;
}
.oimv-car-prev > span { transform: rotate(135deg); }
.oimv-car-next > span { transform: rotate(-45deg); }
.oimv-carousel:hover > .oimv-car-arrow,
.oimv-car-arrow:focus-visible { opacity: 1; }
.oimv-car-arrow:hover { background: var(--c-accent); transform: translateY(-50%) scale(1.06); }
.oimv-car-prev { left: 24px; }
.oimv-car-next { right: 24px; }

/* Key figures float over the photography instead of forming a heavy strip. */
.oimv-band--dark {
  position: relative;
  z-index: 10;
  margin-top: -28px;
  padding: 0 0 54px;
  color: var(--c-ink);
  background: linear-gradient(to bottom, transparent 28px, var(--c-bg-soft) 28px);
}
.oimv-stats {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-2);
}
.oimv-stat { min-height: 136px; padding: 28px 18px 24px; }
.oimv-stat + .oimv-stat::before { top: 24px; bottom: 24px; height: auto; background: var(--c-line); }
.oimv-stat__num, .oimv-stat__suffix {
  color: var(--c-primary);
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -.045em;
}
.oimv-stat__suffix { color: var(--c-accent); }
.oimv-stat__label { margin-top: 7px; color: var(--c-muted); font-weight: 600; }

/* Applied-research service cards: sober surfaces, strong information hierarchy. */
.oimv-band--soft {
  padding: 62px 0 72px;
  background: var(--c-bg-soft);
  border-top: 0;
}
.oimv-section-title { font-size: clamp(1.2rem, 1.7vw, 1.5rem); margin-bottom: 26px; }  /* h3-scale per request */
/* footer column titles removed on request — keep the content beneath them */
.oimv-prefooter__title { display: none; }

/* category-blog listings (e.g. «Об институте»): drop Joomla's "Информация о
   материале / Категория:" metadata block — it reads as clutter, not content */
.oimv-content .com-content-category-blog__item .article-info,
.oimv-content .com-content-category-blog__item dl.article-info,
.oimv-content .item-page > .article-info,
.oimv-content .com-content-article .article-info { display: none; }

/* contacts page — full-width, modern icon rows + work-hours + map */
.oim-contacts { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; margin: 8px 0 26px; }
.oim-contacts__card { background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: var(--r); padding: 26px 28px; }
.oim-contacts__title { margin: 0 0 18px; color: var(--c-primary); font-size: 1.25rem; }
.oim-contacts__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.oim-contacts__list li { display: flex; align-items: flex-start; gap: 14px; line-height: 1.5; }
.oim-contacts__ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center; color: var(--c-accent); }
.oim-contacts__ic svg { width: 21px; height: 21px; }
.oim-contacts__list a { color: var(--c-primary); font-weight: 600; }
.oim-contacts__list a:hover { color: var(--c-accent); }
.oim-hours { width: 100%; border-collapse: collapse; }
.oim-hours td { padding: 11px 4px; border-bottom: 1px solid var(--c-line); font-size: .96rem; }
.oim-hours td:last-child { text-align: right; font-weight: 700; color: var(--c-primary); white-space: nowrap; }
.oim-hours tr:last-child td { border-bottom: 0; }
.oim-contacts__map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--sh-1); }
.oim-contacts__map iframe { display: block; width: 100%; }
@media (max-width: 720px) { .oim-contacts { grid-template-columns: 1fr; } }

/* home promo — now a slider (conference / competition), editable in admin */
.oim-promo { margin: 0 0 var(--sp-4); }
.oim-promo-slider { position: relative; border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); background: #fff; }
.oim-promo-slider .oim-slide { width: 100%; }
.oim-promo-slider .oim-slide a { display: block; }
.oim-promo-slider .oim-slide img { display: block; width: 100%; height: auto; }
.oimv-section-title::after { width: 48px; height: 3px; margin-top: 13px; }
.oimv-dirs { gap: 18px; }
.oimv-dir,
.oimv-dir--a, .oimv-dir--b, .oimv-dir--c,
.oimv-dir--d, .oimv-dir--e, .oimv-dir--f {
  min-height: 168px;
  padding: 24px;
  color: var(--c-ink) !important;
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-primary);
  border-radius: var(--r);
  background: #fff;
  box-shadow: none;
}
.oimv-dir--b, .oimv-dir--e { border-top-color: var(--c-teal); }
.oimv-dir--c, .oimv-dir--f { border-top-color: var(--c-accent); }
.oimv-dir:hover {
  color: var(--c-ink) !important;
  border-color: var(--c-line-2);
  border-top-color: var(--c-accent);
  box-shadow: var(--sh-2);
  transform: translateY(-4px);
}
.oimv-dir__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 50%;
  color: var(--c-primary);
  background: var(--c-bg-soft-2);
}
.oimv-dir__title { margin-top: 12px; color: var(--c-primary); font-size: 1.12rem; letter-spacing: -.015em; }
.oimv-dir__desc { color: var(--c-muted); font-size: .9rem; }

/* Home dashboard: the old module markup stays editable, but is no longer an
   unstyled vertical stream. */
.oimv.is-home .oimv-main { padding: 56px 0 72px; background: #fff; }
.oimv.is-home .oimv-content > .mod-custom:first-child { margin-bottom: 54px; }
.oimv.is-home .oimv-content > .mod-custom:first-child img { border-radius: var(--r); box-shadow: var(--sh-1); }
.oimv.is-home .oim-modtitle { padding: 0; margin: 0 0 20px; font-size: clamp(1.2rem, 1.7vw, 1.5rem); }  /* h3-scale per request */
.oimv.is-home .oim-modtitle::after { margin-top: 12px; }
.oimv.is-home .mod-articlesnews { margin-bottom: 54px; }
.oim-home-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, .78fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}
.oim-col { border-radius: var(--r); box-shadow: none; transition: box-shadow .2s, transform .2s; }
.oim-col:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.oim-col h3 { padding: 20px 22px 0; font-size: 1.3rem; }
.oim-col h3::after { margin-top: 11px; }
.oim-col__body { padding: 18px 22px 22px; font-size: .94rem; }
.oim-col__body p { line-height: 1.62; }
.oim-home-cols .oimv-carousel img { height: 205px; object-fit: cover; }
.oim-home-cols .oim-col--a > .oim-col__body > img { max-height: 235px; object-fit: contain; }
.oim-home-cols .oim-col--b > .oim-col__body > a > img,
.oim-home-cols .oim-col--b > .oim-col__body > img { width: 100%; max-height: 220px; object-fit: cover; }
.oim-home-cols .oim-dots { bottom: 10px; }
.oim-home-cols .oimv-car-arrow { width: 38px; height: 38px; }
.oim-home-cols .oimv-car-arrow > span { width: 10px; height: 10px; border-width: 0 3px 3px 0; }
.oim-home-cols .oimv-car-prev { left: 12px; }
.oim-home-cols .oimv-car-next { right: 12px; }

/* News cards: remove the artificial fade/crop and the raw "more articles"
   dump. Pagination becomes a real compact control. */
.news-grid .oimv-content .com-content-category-blog__items { gap: 20px; grid-auto-rows: 1fr; }  /* all cards equal height */
.news-grid .oimv-content .com-content-category-blog__item {
  max-height: none;
  min-height: 0;
  align-self: stretch;   /* fill the equal row height */
  border-radius: var(--r);
  box-shadow: none;
}
/* long titles clamp with an ellipsis instead of pushing the card taller */
.news-grid .item-content h2, .news-grid .item-content h2 a {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.news-grid .com-content-category-blog__item::after { display: none; }
.news-grid .com-content-category-blog__item .item-image img { height: 205px; }
.news-grid .item-content { padding: 17px 18px 40px; }   /* ~2x bottom breathing room */
.news-grid .item-content h2, .news-grid .item-content h2 a { font-size: 1.03rem; line-height: 1.34; }
.news-grid .item-content p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  font-size: .9rem;
}
.news-grid .items-more { display: none !important; }
.news-grid .com-content-category-blog__navigation { margin-top: 34px; }
.news-grid .pagination__wrapper { display: flex; justify-content: center; }
.news-grid ul.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}
.news-grid .pagination .page-item { margin: 0; list-style: none; }
.news-grid .pagination .page-link {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--c-line-2);
  border-radius: 6px;
  background: #fff;
  color: var(--c-primary);
  font-weight: 700;
}
.news-grid .pagination .page-item.active .page-link,
.news-grid .pagination .page-link:hover { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.news-grid .pagination .page-item.disabled .page-link { opacity: .35; pointer-events: none; }

.oimv-prefooter { padding: 46px 0; background: #edf2f6; }
.oimv-footer { padding: 28px 0; }

@media (max-width: 980px) {
  .oim-home-cols { grid-template-columns: 1fr 1fr; }
  .oim-col--main { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .oimv-band--dark { margin-top: -18px; }
  .oimv-stat { min-height: 118px; }
  .oimv-dir { min-height: 154px; }
}
@media (max-width: 640px) {
  .oimv-hero .mod-banners, .oimv-hero .bannergroup,
  .oimv-hero .oimv-carousel img { min-height: 230px; height: 230px; }
  .oimv-hero .oimv-carousel img { object-fit: cover; }
  .oimv-car-arrow { display: none; }
  .oimv-band--dark { margin-top: 0; padding: 0 0 38px; background: var(--c-bg-soft); }
  .oimv-stats { border-radius: 0 0 var(--r) var(--r); }
  .oimv-stat { padding: 22px 10px; }
  .oim-home-cols { grid-template-columns: 1fr; }
  .oim-col--main { grid-column: auto; }
  .oimv.is-home .oimv-main { padding: 42px 0 56px; }
}

/* Final hero control contract: hover/focus arrows, no large-slider dots. */
.oimv-hero .oim-dots { display: none; }

/* Legacy conference accordion, sourced from the editable news article and
   promoted below the compact card grid by oim-vrazhkin.js. */
.news-feature-accordion {
  margin: 38px 0 6px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r);
  background: linear-gradient(145deg, #f7f9fc 0%, #fff 60%);
  box-shadow: var(--sh-1);
}
.news-feature-accordion[hidden] { display: none !important; }
.news-feature-accordion__header { margin-bottom: 22px; }
.news-feature-accordion__header p {
  margin: 0 0 7px;
  color: var(--c-accent);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.news-feature-accordion__header h2 { margin: 0; max-width: 880px; font-size: clamp(1.25rem, 2vw, 1.75rem); }
.news-feature-accordion__header h2 a { color: var(--c-primary); }
.news-feature-accordion .oimv-accordion { margin-bottom: 0; }

@media (max-width: 640px) {
  .news-feature-accordion { margin-top: 26px; padding: 18px 14px; }
}

/* XII MNTK article: an event page, not a stack of migrated paragraphs. */
.oim-event-page { max-width: none !important; }
.oim-event-summary {
  display: grid;
  grid-template-columns: minmax(240px, 34%) 1fr;
  overflow: hidden;
  margin: 0 0 28px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r);
  background: var(--c-primary-700);
  box-shadow: var(--sh-2);
}
.oim-event-summary__visual { min-height: 330px; background: #dce5f0; }
.oim-event-summary__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

/* Keep the small conference artwork uncropped. The migrated 260x180 source
   is intentionally presented on a neutral field instead of being stretched
   into the taller event-summary column. */
body.itemid-333 .oim-event-summary__visual {
  display: grid;
  min-height: 0;
  place-items: center;
}
body.itemid-333 .oim-event-summary__visual img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
}
.oim-event-summary__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
  color: #fff;
}
.oim-event-kicker {
  margin: 0 0 15px;
  color: #f0aaa3;
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.oim-event-lead {
  max-width: none !important;
  margin: 0 0 30px;
  color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 600;
  line-height: 1.55;
}
.oim-event-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.18);
}
.oim-event-facts > div { padding: 14px 15px; background: rgba(255,255,255,.07); }
.oim-event-facts strong,
.oim-event-facts span { display: block; }
.oim-event-facts strong { color: #fff; font-size: .9rem; }
.oim-event-facts span { margin-top: 2px; color: #c9d6e6; font-size: .76rem; }

.oim-event-brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.oim-event-brief section {
  min-width: 0;
  padding: 24px 26px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: #f8fafc;
}
.oim-event-brief h2 { margin: 0 0 13px; font-size: 1.08rem; }
.oim-event-brief p,
.oim-event-brief ol { max-width: none !important; margin-bottom: 0; font-size: .92rem; }
.oim-event-brief p + p { margin-top: 11px; }
.oim-event-brief ol { padding-left: 1.25rem; }
.oim-event-brief li + li { margin-top: 6px; }
.oim-event-note { color: var(--c-muted); }
.oim-event-brief__action { background: #fff !important; }
.oim-event-brief__action .oimv-btn { margin-top: 18px; }

.oim-event-docs-heading { margin: 0 0 20px; }
.oim-event-docs-heading p {
  margin: 0 0 5px;
  color: var(--c-accent);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.oim-event-docs-heading h2 { margin: 0; font-size: clamp(1.35rem, 2.3vw, 2rem); }
.oim-event-page > .oimv-accordion { margin: 0; }

@media (max-width: 820px) {
  .oim-event-summary { grid-template-columns: 1fr; }
  .oim-event-summary__visual,
  .oim-event-summary__visual img { min-height: 220px; max-height: 300px; }
  .oim-event-facts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .oim-event-summary__content { padding: 24px 20px; }
  .oim-event-brief { grid-template-columns: 1fr; }
  .oim-event-brief section { padding: 20px; }
}

/* ==========================================================================
   UX refinement 2026-07-22
   A restrained applied-research interface: better information architecture,
   legible long-form pages and precise interaction feedback. Source content
   remains native Joomla menu/module/article output.
   ========================================================================== */

/* A more tactile header without glass effects or layout shifts. */
.oimv-header__bar { position: relative; }
.oimv-header.is-scrolled { border-bottom-color: transparent; box-shadow: 0 10px 32px rgba(8,33,61,.11); }
.oimv-brand__mark { transition: transform .28s var(--ease); }
.oimv-brand:hover .oimv-brand__mark { transform: rotate(-3deg) scale(1.035); }
.oimv-nav .mod-menu > li > a { position: relative; transition: color .18s, background .18s; }
.oimv-nav .mod-menu > li > a::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s var(--ease);
}
.oimv-nav .mod-menu > li > a:hover::after,
.oimv-nav .mod-menu > li > a:focus-visible::after,
.oimv-nav .mod-menu > li.current > a::after,
.oimv-nav .mod-menu > li.active > a::after { transform: scaleX(1); transform-origin: left; }
.oimv-nav .mod-menu > li.current > a::after,
.oimv-nav .mod-menu > li.active > a::after { left: 12px; right: 12px; bottom: 4px; height: 2px; }
.oimv-sub-toggle { display: none; }

/* The oversized Institute tree is presented as a desktop mega panel. It is
   generated from the live menu, so Joomla remains the single source of truth. */
@media (min-width: 1201px) {
  .oimv-nav .mod-menu > li.oimv-menu-mega { position: static; }
  .oimv-nav .mod-menu > li.oimv-menu-mega > .mod-menu__sub {
    top: calc(100% - 1px);
    right: 24px;
    left: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px 22px;
    width: auto;
    max-height: min(72vh, 720px);
    padding: 24px;
    overflow: auto;
    overscroll-behavior: contain;
    border-top: 3px solid var(--c-accent);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    scrollbar-color: var(--c-line-2) transparent;
  }
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li {
    align-self: start;
    min-width: 0;
    border: 0;
    border-top: 1px solid var(--c-line) !important;
  }
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li > a {
    padding: 10px 2px 8px;
    color: var(--c-primary);
    background: transparent !important;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
  }
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li > a::before { display: none; }
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li > a:hover { color: var(--c-accent); padding-left: 2px; }
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li.oimv-mega-branch { position: relative; }
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li.oimv-mega-branch > a { padding-right: 42px; }
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li.oimv-mega-branch > .oimv-sub-toggle {
    position: absolute;
    z-index: 2;
    top: 4px;
    right: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--c-primary);
    cursor: pointer;
    transition: color .18s, background .18s;
  }
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li.oimv-mega-branch > .oimv-sub-toggle:hover,
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li.oimv-mega-branch > .oimv-sub-toggle:focus-visible {
    background: var(--c-bg-soft-2);
    color: var(--c-accent);
  }
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li.oimv-mega-branch > .oimv-sub-toggle > span {
    display: block !important;
    flex: 0 0 9px !important;
    box-sizing: border-box !important;
    width: 9px !important;
    min-width: 9px !important;
    max-width: 9px !important;
    height: 9px !important;
    min-height: 9px !important;
    max-height: 9px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;
    border-radius: 0 !important;
    background: transparent !important;
    clip-path: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    transform: rotate(45deg) translate(-1px,-1px);
    transition: transform .2s var(--ease);
  }
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li.oimv-mega-branch > .oimv-sub-toggle > span::before,
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li.oimv-mega-branch > .oimv-sub-toggle > span::after {
    display: none !important;
    content: none !important;
  }
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li.oimv-mega-branch.is-expanded > .oimv-sub-toggle > span {
    transform: rotate(225deg) translate(-1px,-1px);
  }
  .oimv-nav .oimv-menu-mega .mod-menu__sub .mod-menu__sub {
    display: block;
    margin: 0;
    padding: 0 0 4px;
  }
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li.oimv-mega-branch > .mod-menu__sub {
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height .3s var(--ease), opacity .18s var(--ease), padding .3s var(--ease);
  }
  .oimv-nav .oimv-menu-mega > .mod-menu__sub > li.oimv-mega-branch.is-expanded > .mod-menu__sub {
    max-height: 640px;
    padding-bottom: 4px;
    opacity: 1;
    visibility: visible;
  }
  .oimv-nav .oimv-menu-mega .mod-menu__sub .mod-menu__sub li { border: 0; }
  .oimv-nav .oimv-menu-mega .mod-menu__sub .mod-menu__sub a {
    padding: 5px 2px 5px 13px;
    color: var(--c-muted);
    background: transparent;
    font-size: .78rem;
    line-height: 1.35;
  }
  .oimv-nav .oimv-menu-mega .mod-menu__sub .mod-menu__sub a::before {
    left: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--c-line-2);
  }
  .oimv-nav .oimv-menu-mega .mod-menu__sub .mod-menu__sub a:hover {
    padding-left: 16px;
    color: var(--c-primary);
    background: var(--c-bg-soft);
  }
  .oimv-nav .oimv-menu-mega .mod-menu__sub .mod-menu__sub a:hover::before { width: 5px; background: var(--c-accent); }

  /* Level-4 items (лаборатории) must read as nested UNDER their level-3
     subdivision (НТЦ), not as its siblings. Indent the 4th-level list with a
     connecting rail, and make the owning subdivision a small group heading. */
  .oimv-nav .oimv-menu-mega .mod-menu__sub .mod-menu__sub > li:has(> .mod-menu__sub) > a {
    font-weight: 700;
    color: var(--c-primary);
  }
  .oimv-nav .oimv-menu-mega .mod-menu__sub .mod-menu__sub .mod-menu__sub {
    margin: 2px 0 6px 13px;
    padding-left: 12px;
    border-left: 2px solid var(--c-line);
  }
  .oimv-nav .oimv-menu-mega .mod-menu__sub .mod-menu__sub .mod-menu__sub a {
    padding-left: 12px;
    font-size: .74rem;
  }
  .oimv-nav .oimv-menu-mega .mod-menu__sub .mod-menu__sub .mod-menu__sub a::before { left: 0; }
}

/* Hero interactions: controls are quiet until requested and remain visible
   for keyboard users. */
.oimv-hero .oimv-carousel::before,
.oimv-hero .oimv-carousel::after {
  content: '';
  position: absolute;
  z-index: 7;
  top: 0;
  bottom: 0;
  width: 11%;
  max-width: 150px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.oimv-hero .oimv-carousel::before { left: 0; background: linear-gradient(90deg, rgba(8,33,61,.34), transparent); }
.oimv-hero .oimv-carousel::after { right: 0; background: linear-gradient(-90deg, rgba(8,33,61,.34), transparent); }
.oimv-hero .oimv-carousel:hover::before,
.oimv-hero .oimv-carousel:hover::after,
.oimv-hero .oimv-carousel:focus-within::before,
.oimv-hero .oimv-carousel:focus-within::after { opacity: 1; }
.oimv-progress { height: 3px; background: linear-gradient(90deg, var(--c-accent), #df4a3d 58%, var(--c-teal)); }

/* Home sections get clearer wayfinding and a stronger sense of affordance. */
.oimv-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.oimv-section-head .oim-modtitle,
.oimv-section-head h2 { margin-bottom: 0 !important; }
.oimv-section-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 0;
  color: var(--c-primary) !important;
  border-bottom: 1px solid var(--c-line-2);
  font-size: .88rem;
  font-weight: 750;
}
.oimv-section-all span:last-child { transition: transform .18s var(--ease); }
.oimv-section-all:hover { color: var(--c-accent) !important; border-color: var(--c-accent); }
.oimv-section-all:hover span:last-child { transform: translate(3px,-3px); }
.oimv-dir { position: relative; overflow: hidden; }
.oimv-dir::after {
  content: '\2197';
  position: absolute;
  right: 20px;
  bottom: 17px;
  color: var(--c-line-2);
  font-size: 1.25rem;
  transform: translate(-3px,3px);
  transition: color .2s, transform .2s;
}
.oimv-dir:hover::after { color: var(--c-accent); transform: translate(2px,-2px); }
.oimv-dir__desc { padding-right: 24px; }
.mod-articlesnews__item,
.news-grid .com-content-category-blog__item { position: relative; overflow: hidden; }
.mod-articlesnews__item::before,
.news-grid .com-content-category-blog__item::before {
  content: '';
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-teal), var(--c-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.mod-articlesnews__item:hover::before,
.news-grid .com-content-category-blog__item:hover::before { transform: scaleX(1); }

/* Long-form article shell. Migrated text remains editable, while the client
   receives a lead, fact panels, an optional TOC and print control. */
.oimv-article .page-header {
  position: relative;
  margin: 0 0 30px;
  padding: 0 116px 25px 0;
  border-bottom: 1px solid var(--c-line);
}
.oimv-page-eyebrow {
  margin: 0 0 10px !important;
  color: var(--c-accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.oimv-article .page-header h1 { max-width: none; margin-bottom: 0; font-size: clamp(1.4rem, 2.3vw, 1.9rem); overflow-wrap: break-word; word-break: break-word; hyphens: auto; }  /* smaller title + wrap long words */
.oimv-print {
  position: absolute;
  right: 0;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--c-line-2);
  border-radius: 6px;
  background: #fff;
  color: var(--c-primary);
  font: 700 .78rem/1 var(--font);
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.oimv-print svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.oimv-print:hover { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.oimv-article-lead {
  max-width: none !important;
  margin-bottom: 28px !important;
  color: #294158;
  font-size: clamp(1.08rem, 1.5vw, 1.23rem);
  font-weight: 500;
  line-height: 1.67 !important;
}

/* Wide migrated АКАДЕМ-СЕРТ application pages: remove old 600/800px text
   and table constraints while keeping all content editable in Joomla. */
body.itemid-239 .oimv-article .com-content-article__body > p,
body.itemid-247 .oimv-article .com-content-article__body > p,
body.itemid-239 .oimv-article .oimv-article-lead,
body.itemid-247 .oimv-article .oimv-article-lead {
  max-width: none !important;
}
body.itemid-239 .oimv-article .com-content-article__body table,
body.itemid-247 .oimv-article .com-content-article__body table {
  width: 100% !important;
  max-width: none !important;
}

/* Leadership catalogue portraits are navigation to the profile. Lightbox is
   deliberately reserved for images inside the individual profile page. */
body.itemid-153.view-category .oimv-content a.oimv-profile-link,
body.itemid-153.view-category .oimv-content a.oimv-profile-link img {
  cursor: pointer !important;
}
body.itemid-153.view-article .oimv-article .com-content-article__body p {
  max-width: none !important;
}
body.oimv-leadership-profile .oimv-article .com-content-article__body p,
body.oimv-leadership-profile .oimv-article .oimv-article-lead {
  max-width: none !important;
}
body.oimv-akadem-contact .oimv-article .com-content-article__body p,
body.oimv-akadem-contact .oimv-article .oimv-article-lead {
  max-width: none !important;
}
body.oimv-akadem-contact .oimv-article .com-content-article__body table {
  width: 100% !important;
  max-width: none !important;
}

/* The legacy contact table starts icon cells with a non-breaking space before
   a floated image. Neutralise both so the icon and its value share one row. */
body.itemid-246 .com-content-category-blog__item table td:first-child:has(img) {
  width: 52px !important;
  font-size: 0;
  vertical-align: middle;
}
body.itemid-246 .com-content-category-blog__item table td:first-child:has(img) img {
  float: none !important;
  display: block;
  margin: 0 auto !important;
}
body.itemid-246 .com-content-category-blog__item table td:nth-child(2) {
  vertical-align: middle;
}
body.itemid-246 .com-content-category-blog__item table td:nth-child(2) p {
  max-width: none !important;
  margin-top: 0;
  margin-bottom: 0;
}
.oimv-article .oimv-empty { display: none !important; }
.oimv-fact-list {
  position: relative;
  max-width: none !important;
  margin: 25px 0 !important;
  padding: 22px 24px 22px 28px;
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-teal);
  border-radius: 0 var(--r) var(--r) 0;
  background: linear-gradient(120deg, #f5f9fc, #fff);
  line-height: 2;
}
.oimv-fact-list strong { display: block; margin-bottom: 6px; color: var(--c-primary); line-height: 1.45; }
.oimv-article-callout {
  max-width: none !important;
  margin: 28px 0 !important;
  padding: 22px 25px;
  border-radius: var(--r);
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--sh-1);
}
.oimv-article-callout strong { color: #fff; }
.oimv-toc {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  margin: -8px 0 34px;
  padding: 20px 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  background: var(--c-bg-soft);
}
.oimv-toc__title { color: var(--c-primary); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.oimv-toc ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 20px; margin: 0; padding: 0; list-style: none; }
.oimv-toc li { margin: 0 !important; min-width: 0; }
.oimv-toc li.is-sub { padding-left: 12px; }
.oimv-toc a { display: inline; color: var(--c-muted); font-size: .83rem; line-height: 1.35; }
.oimv-toc a:hover { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.oimv-content h2[id], .oimv-content h3[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.oimv-document-link[data-filetype]::after,
.oimv-content button[data-filetype]::after,
.oimv-content .btn[data-filetype]::after {
  content: attr(data-filetype) ' \2197';
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  vertical-align: middle;
}

/* Footer: one decisive dark institutional surface instead of a pale module
   dump. Module text and partner links are still controlled in Joomla. */
.oimv-prefooter {
  position: relative;
  overflow: hidden;
  padding: 58px 0 54px;
  border-top: 4px solid var(--c-accent);
  background: #1b3f6b;   /* flat, slightly lighter navy — no glow, no decorative circles */
  color: #e2eaf4;
}
.oimv-prefooter::after { content: none; }   /* removed the 2 faint background circles */
.oimv-prefooter__grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(260px,.92fr) minmax(300px,1.3fr) minmax(240px,.8fr);
  gap: clamp(34px,5vw,76px);
}
.oimv-prefooter__grid > * { min-width: 0; }
.oimv-prefooter__title {
  margin: 0 0 20px !important;
  color: #fff !important;
  font: 800 .78rem/1.2 var(--font) !important;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.oimv-prefooter p { max-width: 52ch; color: #c3d2e2; font-size: .88rem; line-height: 1.7; }
.oimv-prefooter a { color: #fff; }
.oimv-prefooter a:hover { color: #f2a5a8; }
.oimv-prefooter__resources table { width: 100% !important; max-width: 320px; table-layout: fixed; border-collapse: separate; border-spacing: 6px; }
.oimv-prefooter__resources td { padding: 0 !important; border: 0 !important; width: 50% !important; vertical-align: top; }
.oimv-prefooter__resources img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 122 / 55;   /* uniform tile shape regardless of source ratio */
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(.76) contrast(.95);
  opacity: .88;
  transition: filter .2s, opacity .2s, transform .2s;
}
.oimv-prefooter__resources a:hover img { filter: none; opacity: 1; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.oimv-prefooter__resources > p { display: none; }
.oimv-prefooter__contacts { font-size: .94rem; line-height: 1.8; }
.oimv-prefooter__contacts .clear { min-height: 9px; }
.oimv-footer { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); background: #06172b; }
.oimv-footer__brand { font-size: .83rem; font-weight: 650; color: #dce6f1; }
.oimv-footer__logo { width: 52px; height: 28px; }

/* Touch navigation uses independent expand buttons, preserving the ability to
   open both a parent page and its children. */
@media (max-width: 1200px) {
  html.oimv-nav-lock { overflow: hidden; }
  .oimv-nav li.parent, .oimv-nav li.deeper { position: relative; }
  .oimv-nav .mod-menu__toggle-sub { display: none !important; }
  .oimv-nav .mod-menu > li.deeper > a::before,
  .oimv-nav .mod-menu > li.parent > a::before { display: none; }
  .oimv-sub-toggle {
    position: absolute;
    z-index: 3;
    top: 5px;
    right: 3px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--c-primary);
    cursor: pointer;
  }
  .oimv-sub-toggle:hover { background: var(--c-bg-soft-2); }
  .oimv-nav .oimv-sub-toggle > span {
    display: block;
    width: 16px;
    height: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: currentColor;
    clip-path: polygon(0 0, 50% 68%, 100% 0, 100% 32%, 50% 100%, 0 32%);
    transition: clip-path .18s;
  }
  .oimv-nav .oimv-sub-toggle[aria-expanded="true"] > span {
    clip-path: polygon(0 100%, 50% 32%, 100% 100%, 100% 68%, 50% 0, 0 68%);
  }
  .oimv-nav li.parent > a, .oimv-nav li.deeper > a { padding-right: 46px !important; }
  .oimv-nav .mod-menu__sub { display: none !important; }
  .oimv-nav .mod-menu > li > .mod-menu__sub {
    position: static !important;
    min-width: 0;
    margin-left: 12px;
    padding: 0;
    border: 0;
    border-left: 2px solid var(--c-line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .oimv-nav li.is-expanded > .mod-menu__sub { display: block !important; }
  .oimv-nav .mod-menu__sub .mod-menu__sub { margin-left: 13px; border-left: 1px solid var(--c-line); }
  .oimv-nav .mod-menu__sub li + li { border-top: 0; }
}

@media (max-width: 900px) {
  .oimv-prefooter__grid { grid-template-columns: 1fr 1fr; }
  .oimv-prefooter__resources { grid-row: span 2; }
  .oimv-toc { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .oimv-section-head { align-items: center; }
  .oimv-section-all span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .oimv-section-all { width: 42px; height: 42px; justify-content: center; padding: 0; border: 1px solid var(--c-line-2); border-radius: 50%; }
  .oimv-article .page-header { padding-right: 0; padding-bottom: 70px; }
  .oimv-article .page-header h1 { font-size: clamp(1.35rem, 5.4vw, 1.9rem); }
  .oimv-print { right: auto; bottom: 18px; left: 0; }
  .oimv-toc ol { grid-template-columns: 1fr; }
  .oimv-fact-list, .oimv-article-callout { padding: 18px; }
  .oimv-prefooter { padding: 44px 0; }
  .oimv-prefooter__grid { grid-template-columns: 1fr; gap: 34px; }
  .oimv-prefooter__resources { grid-row: auto; }
  .oimv-prefooter__resources table { max-width: 340px; }
}

@page { size: A4 portrait; margin: 10mm; }

@media print {
  html,
  body.oimv {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #111 !important;
    font: 10.5pt/1.5 Arial, Helvetica, sans-serif !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .oimv-header, .oimv-breadcrumbs, .oimv-prefooter, .oimv-footer, .oimv-totop,
  .oimv-progress, .oimv-print, .oimv-toc, .oimv-lightbox,
  .oimv-nav, .oimv-search, .oimv-floaticons, .oimv-floating-tools,
  .article-info, .com-content-article__navigation, .pagenavigation, .pager,
  .pagination, .breadcrumb, .mod-breadcrumbs,
  .oimv-content > .moduletable, .oimv-content > .mod-custom { display: none !important; }

  .oimv-main, .oimv:not(.is-home) .oimv-main,
  .oimv-shell, .oimv-layout, .oimv-content,
  .oimv-article, .com-content-article, .item-page,
  .com-content-article__body {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  /* Real inner padding is required in addition to @page: some browser print
     previews render the printable canvas without visualising page margins. */
  .oimv-main,
  .oimv:not(.is-home) .oimv-main {
    box-sizing: border-box !important;
    padding: 10mm !important;
  }

  .oimv-article .page-header {
    margin: 0 0 6mm !important;
    padding: 0 0 4mm !important;
    border-bottom: .35mm solid #9aa5b1 !important;
  }
  .oimv-page-eyebrow {
    margin: 0 0 2mm !important;
    color: #555 !important;
    font: 700 8.5pt/1.2 Arial, Helvetica, sans-serif !important;
    letter-spacing: .08em;
  }
  .oimv-article .page-header h1,
  .oimv-content h1 {
    max-width: none !important;
    margin: 0 !important;
    color: #111 !important;
    font: 700 22pt/1.18 Arial, Helvetica, sans-serif !important;
    letter-spacing: -.01em;
  }
  .oimv-content h2 {
    margin: 7mm 0 3mm !important;
    color: #111 !important;
    font: 700 16pt/1.25 Arial, Helvetica, sans-serif !important;
    break-after: avoid-page;
  }
  .oimv-content h3 {
    margin: 5mm 0 2.5mm !important;
    color: #111 !important;
    font: 700 13pt/1.3 Arial, Helvetica, sans-serif !important;
    break-after: avoid-page;
  }
  .oimv-content h4 { color: #111 !important; break-after: avoid-page; }
  .oimv-content p, .oimv-content li { orphans: 3; widows: 3; }
  .oimv-content p { max-width: none !important; margin: 0 0 3.5mm !important; }
  .oimv-article-lead {
    max-width: none !important;
    margin-bottom: 5mm !important;
    color: #222 !important;
    font: 600 11.5pt/1.55 Arial, Helvetica, sans-serif !important;
  }
  .article-info, .com-content-article__info {
    margin: 0 0 5mm !important;
    color: #555 !important;
    font-size: 9pt !important;
  }

  .oimv-fact-list,
  .oimv-article-callout {
    max-width: none !important;
    margin: 5mm 0 !important;
    padding: 4mm 5mm !important;
    border: .3mm solid #aab3bc !important;
    border-left: 1.2mm solid #4f6478 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    line-height: 1.5 !important;
    break-inside: avoid-page;
  }
  .oimv-fact-list strong,
  .oimv-article-callout strong { color: #111 !important; }

  .oimv-content figure,
  .oimv-content img,
  .oimv-content table,
  .oimv-content details,
  .oimv-content blockquote { break-inside: avoid-page; }
  .oimv-content figure { margin: 5mm 0 !important; }
  .oimv-content img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    max-height: 120mm !important;
    margin: 0 auto 4mm !important;
    object-fit: contain !important;
    box-shadow: none !important;
  }
  .oimv-content iframe,
  .oimv-content video { display: none !important; }

  .oimv-table-wrap { overflow: visible !important; margin: 4mm 0 !important; }
  .oimv-content table {
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    font-size: 9pt !important;
  }
  .oimv-content th, .oimv-content td {
    padding: 2mm !important;
    border: .2mm solid #aab3bc !important;
    color: #111 !important;
    background: #fff !important;
  }
  .oimv-content tr { break-inside: avoid-page; }

  .oimv-content details {
    margin: 4mm 0 !important;
    border: .25mm solid #b8c0c8 !important;
    background: #fff !important;
  }
  .oimv-content details > summary {
    padding: 3mm 4mm !important;
    color: #111 !important;
    background: #eef1f4 !important;
    font-weight: 700 !important;
  }
  .oimv-content details > :not(summary) { display: block !important; }

  .oimv-content a { color: #111 !important; text-decoration: underline; text-underline-offset: 1px; }
  .oimv-content a[href]::after { content: none !important; }
  .oimv-document-link[data-filetype]::after,
.oimv-content button[data-filetype]::after,
.oimv-content .btn[data-filetype]::after {
    content: ' [' attr(data-filetype) ']' !important;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: .8em !important;
  }
}

/* News catalogues are navigation surfaces. Image zoom is reserved for the
   full article opened from a card. */
.oimv-clickable-card { position: relative; cursor: pointer; }
.oimv-card-link {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
}
.oimv-clickable-card a:not(.oimv-card-link),
.oimv-clickable-card button { position: relative; z-index: 3; }
.oimv-card-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--c-accent) 68%, white);
  outline-offset: 4px;
}
.oimv-content .com-content-category-blog__item.oimv-clickable-card img,
.oimv-content .com-content-category-blog__child.oimv-clickable-card,
.mod-articlesnews .oimv-clickable-card img,
.mod-articles-news .oimv-clickable-card img { cursor: pointer !important; }

/* F-005: comfortable touch targets on touch layouts */
@media (max-width: 1200px) {
  .oimv-search-toggle, .oimv-nav .mod-menu__toggle-sub, .oimv-nav .oimv-sub-toggle, .oimv-header .oimv-sub-toggle { min-width: 44px !important; min-height: 44px !important; }
  .oimv-header .mod-languages a { padding: 11px 12px; }
}

/* column sliders linked to their "Подробнее" target */
.oimv-slider-linked { cursor: pointer; }

/* ---------- graceful image loading (fade-in, no top-to-bottom paint) ----------
   JS (initImageReveal) tags content/photo <img> with .oimv-img-reveal; the image
   stays invisible over a soft shimmer placeholder until fully decoded, then fades
   in as a whole. Applied only via JS, so no-JS keeps images visible. */
.oimv-img-reveal { opacity: 0; transition: opacity .55s var(--ease); }
.oimv-img-reveal.is-loaded { opacity: 1; }
/* per-image placeholder: soft shimmer + small centered spinner while loading */
.oimv-imgwrap { position: relative; overflow: hidden; background: var(--c-bg-soft, #eef2f6); }
.oimv-imgwrap--inline { display: inline-block; max-width: 100%; line-height: 0; vertical-align: middle; }
.oimv-imgwrap::before {   /* shimmer sweep */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  background-size: 220% 100%; animation: oimv-shimmer 1.25s ease-in-out infinite;
}
.oimv-imgwrap::after {   /* small spinner */
  content: ''; position: absolute; top: 50%; left: 50%; z-index: 2; pointer-events: none;
  width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  border: 2px solid rgba(14,47,94,.18); border-top-color: var(--c-accent, #c8102e);
  animation: oimv-spin .7s linear infinite;
}
.oimv-imgwrap.is-done::before, .oimv-imgwrap.is-done::after { display: none; }
.oimv-imgwrap img { position: relative; z-index: 1; }
@keyframes oimv-shimmer { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
@keyframes oimv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .oimv-img-reveal { transition: none; }
  .oimv-imgwrap::before, .oimv-imgwrap::after { animation: none; }
}


/* legacy layout tables (photo + text) stack vertically on mobile instead of
   overflowing/clipping. Data tables keep their scroll wrapper. */
@media (max-width: 680px) {
  .oimv-content table.oimv-stack-table,
  .oimv-content table.oimv-stack-table tbody,
  .oimv-content table.oimv-stack-table tr,
  .oimv-content table.oimv-stack-table td { display: block; width: 100% !important; max-width: 100% !important; }
  .oimv-content table.oimv-stack-table td { padding: 0 0 12px !important; text-align: left !important; }
  .oimv-content table.oimv-stack-table img { max-width: 100%; height: auto; margin: 0 0 6px; }
}

/* legacy link-buttons (<a class="red_button"><button>) — keep wrapper from collapsing */
.oimv-content a.red_button { display: inline-block; vertical-align: middle; line-height: 0; }
.oimv-content a.red_button > button, .oimv-content .btn.btn-inverse { line-height: 1.2; }

/* ===== UNIVERSAL news thumbnails — fixed-ratio cover tile, cannot grow/overflow =====
   Covers ВСЕ виды новостей (главная mod_articlesnews, /novosti грид, category blog),
   любой вьюпорт. Пропорция 16:10, обрезка cover, ширина строго 100% контейнера. */
.oimv-content .com-content-category-blog__item .item-image,
.mod-articlesnews__item .newsflash-image,
.mod-articlesnews .item-image { display: block; overflow: hidden; }
/* the graceful-loading wrap must never shrink to a small image's native width
   inside a card — force it block/full-width so object-fit:cover fills the tile */
.oimv-content .com-content-category-blog__item .item-image .oimv-imgwrap,
.mod-articlesnews__item .newsflash-image .oimv-imgwrap,
.mod-articlesnews .newsflash-image .oimv-imgwrap,
.mod-articlesnews .item-image .oimv-imgwrap { display: block !important; width: 100% !important; max-width: 100% !important; }
.oimv-content .com-content-category-blog__item .item-image img,
.news-grid .com-content-category-blog__item .item-image img,
.mod-articlesnews__item img,
.mod-articlesnews .item-image img,
.mod-articlesnews .newsflash-image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

/* ── Article DETAIL intro/full image — cap the on-page height so a large photo
   does not swallow the screen; full resolution opens in the lightbox on click.
   Scoped to the single-article view only (listing cards keep their 16/10 tile). */
.oimv-content .com-content-article .item-image {
  display: inline-block; width: auto; max-width: 100%; margin: 0 0 20px; background: transparent;
}
.oimv-content .com-content-article .item-image img {
  width: auto !important; max-width: 100% !important;
  height: auto !important; max-height: 460px;
  aspect-ratio: auto !important; object-fit: contain;
  cursor: zoom-in; border-radius: var(--r-sm);
}
