/*
Theme Name: IGES
Theme URI: https://iges.am/
Author: IGES
Description: Тема сайта Института геофизики и инженерной сейсмологии им. А. Назарова. Три языка через Polylang, главная с картой сети и записью землетрясения.
Version: 1.2.0
Requires at least: 5.0
Requires PHP: 7.0
Text Domain: iges
*/

:root {
	--abyss: #0b1736;      /* ночной синий фонов */
	--navy: #111c49;       /* синий печати лаборатории */
	--ink: #18213f;        /* основной текст */
	--muted: #535d78;      /* второстепенный текст */
	--gold: #c5a448;       /* золото печати */
	--gold-ink: #7d6420;   /* золото для мелкого текста на светлом */
	--parchment: #ebe5cc;  /* светлое поле печати */
	--mist: #eef1f6;       /* холодный светлый фон */
	--paper: #ffffff;
	--signal: #6fd0ff;     /* линия сейсмограммы */
	--rule: #d6dbe6;

	--serif: "Noto Serif", "Noto Serif Armenian", Georgia, "Times New Roman", serif;
	--sans: "Noto Sans", "Noto Sans Armenian", "Segoe UI", Arial, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--space: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--sans);
	text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--abyss); padding: .6em 1em; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-block; padding: .72em 1.35em; border-radius: 2px;
	font: 600 .95rem/1.2 var(--sans); text-decoration: none; letter-spacing: .01em;
	border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--gold { background: var(--gold); color: var(--abyss); }
.btn--gold:hover { background: #d8b95e; color: var(--abyss); }
.btn--line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--abyss); color: var(--gold); }

/* ---------- Шапка ---------- */
.site-header { background: var(--abyss); color: #fff; position: relative; z-index: 20; }
.site-header--over { position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(rgba(6,14,34,.92) 55%, rgba(6,14,34,0)); padding-bottom: 18px; }
.site-header__in { display: flex; align-items: center; flex-wrap: wrap; column-gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; padding: 14px 0; }
.brand:hover { color: #fff; }
.brand__mark { color: var(--gold); flex: none; display: flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__short { font: 600 1.25rem/1 var(--serif); letter-spacing: .06em; }
.brand__name { font-size: .78rem; color: rgba(255,255,255,.75); margin-top: 4px; max-width: 64ch; }

.nav { display: flex; align-items: center; gap: 18px; width: 100%; border-top: 1px solid rgba(255,255,255,.12); }
.nav__list, .nav__list ul, .langs { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; flex-wrap: wrap; margin-left: -10px; margin-right: auto; }
.nav__list > li { position: relative; }
.nav__list > li > a {
	display: block; padding: 12px 10px; color: rgba(255,255,255,.88); text-decoration: none;
	font-size: .9rem; font-weight: 600; text-transform: lowercase; white-space: nowrap;
}
.lang-hy .nav__list > li > a { font-size: .86rem; padding-left: 8px; padding-right: 8px; }
.nav__list > li > a::first-letter { text-transform: uppercase; }
.nav__list > li > a:hover,
.nav__list > .current-menu-item > a, .nav__list > .current_page_item > a,
.nav__list > .current-menu-ancestor > a, .nav__list > .current_page_ancestor > a { color: var(--gold); }
.nav__list ul {
	position: absolute; left: 0; top: 100%; min-width: 240px; padding: 8px 0;
	background: var(--abyss); border-top: 2px solid var(--gold); box-shadow: 0 14px 30px rgba(3,8,22,.35);
	visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.nav__list li:hover > ul, .nav__list li.is-focus > ul { visibility: visible; opacity: 1; transform: none; }
.nav__list ul a { display: block; padding: 8px 18px; color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; }
.nav__list ul a:hover { color: var(--gold); background: rgba(255,255,255,.04); }

.langs { display: flex; gap: 2px; }
.langs a { display: block; padding: 6px 7px; color: rgba(255,255,255,.7); text-decoration: none; font-size: .8rem; font-weight: 600; }
.langs a:hover { color: #fff; }
.langs a[aria-current] { color: var(--gold); }

.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 9px 12px; border-radius: 2px; font: 600 .85rem var(--sans); cursor: pointer; align-items: center; gap: 10px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--abyss); padding: 8px var(--gutter) 20px; border-top: 1px solid rgba(255,255,255,.12);
		max-height: calc(100vh - 76px); overflow-y: auto; width: auto;
	}
	.nav-open .nav { display: flex; }
	.nav__list { flex-direction: column; margin: 0; }
	.nav__list > li > a { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
	.nav__list ul { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; background: none; }
	.langs { padding: 14px 0 0; }
	.langs a { padding: 8px 12px 8px 0; font-size: .9rem; }
}

/* ---------- Первый экран ---------- */
.hero {
	position: relative; color: #fff;
	min-height: min(92vh, 900px);
	display: flex; align-items: center;
	background: var(--abyss) url("assets/img/iges-hero.jpg") 62% 50% / cover no-repeat;
	padding: 190px 0 120px;
}
.hero__in { position: relative; }
.hero__academy { color: var(--gold); font-size: .95rem; margin: 0 0 18px; }
.hero__title {
	color: #fff; font-size: clamp(2.1rem, 4.1vw, 3.6rem); line-height: 1.12; font-weight: 500;
	max-width: 15.5em; margin: 0 0 22px; text-wrap: balance;
}
.lang-hy .hero { padding-top: 230px; }
.lang-hy .hero__title { font-size: clamp(1.9rem, 3.5vw, 3.1rem); }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.82); max-width: 36em; margin: 0 0 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero__caption {
	position: absolute; left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); bottom: 26px; margin: 0;
	max-width: 46ch; text-align: left; padding-left: 12px; border-left: 2px solid var(--signal); font-size: .78rem; line-height: 1.45; color: rgba(255,255,255,.62);
}
@media (min-width: 1100px) { .hero__in { padding-right: 46%; } .hero__title { max-width: none; } }
@media (max-width: 760px) {
	.hero, .lang-hy .hero {
		align-items: flex-end; min-height: 100svh; padding: 120px 0 96px;
		background-image: linear-gradient(rgba(6,14,34,0) 25%, rgba(6,14,34,.88) 62%), url("assets/img/iges-hero-mobile.jpg");
		background-position: center top; background-size: cover;
	}
	.hero__caption { left: var(--gutter); right: var(--gutter); bottom: 26px; }
}

/* ---------- Заголовки разделов ---------- */
.section-title { font-size: clamp(1.7rem, 2.8vw, 2.35rem); font-weight: 500; margin: 0 0 28px; }

/* ---------- Научные направления ---------- */
.directions { padding: var(--space) 0; }
.directions__in { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: 40px; align-items: start; }
.dirlist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.dirlist__item {
	break-inside: avoid; display: grid; grid-template-columns: 2.1em 1fr; gap: 6px;
	padding: 16px 0 18px; border-top: 1px solid var(--rule); font-size: 1.05rem; line-height: 1.45;
}
.dirlist__mark { font: 600 1.15rem/1.3 var(--serif); color: var(--gold-ink); }
.dirlist__mark::after { content: "."; }
@media (max-width: 900px) { .directions__in { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 640px) { .dirlist { columns: 1; } }

/* ---------- Структура ---------- */
.structure { background: var(--mist); padding: var(--space) 0; }
.structure__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.structure__h { font-size: 1.2rem; font-weight: 600; margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px; }
.structure__count { font: 500 1rem var(--serif); color: var(--gold-ink); }
.labs { list-style: none; margin: 0; padding: 0; counter-reset: lab; }
.labs li { padding: 13px 0 13px 18px; border-top: 1px solid var(--rule); position: relative; line-height: 1.45; }
.labs li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.units { list-style: none; margin: 0 0 36px; padding: 0; }
.units li { padding: 11px 0; border-top: 1px solid var(--rule); line-height: 1.45; }
.units li span { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.units--plain li { padding: 8px 0; font-size: .97rem; }
@media (max-width: 900px) { .structure__grid { grid-template-columns: 1fr; } }

/* ---------- Сеть ---------- */
.network { background: var(--paper); padding: var(--space) 0; }
.network__in { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.network__photo { margin: 0; }
.network__photo img { display: block; width: 100%; border-radius: 2px; }
.network__photo figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.network__body p { max-width: 34em; }
.network__full { font: italic 400 1.05rem/1.45 var(--serif); color: var(--navy); margin-top: -14px; }
.network__data { font-size: .9rem; color: var(--muted); }
.network__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.network__fdsn { font-weight: 600; font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 32px; }
.stats div { border-top: 2px solid var(--navy); padding-top: 12px; }
.stats dt { font: 500 2.4rem/1 var(--serif); color: var(--navy); }
.stats dd { margin: 8px 0 0; font-size: .82rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 900px) { .network__in { grid-template-columns: 1fr; } }

/* ---------- Совместная лаборатория ---------- */
.lab { background: var(--parchment); padding: var(--space) 0; }
.lab__in { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.lab__seal { width: clamp(180px, 22vw, 300px); height: auto; border-radius: 50%; box-shadow: 0 0 0 6px rgba(17,28,73,.08); }
.lab__title { font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 500; max-width: 24em; }
.lab__body p { max-width: 40em; }
.lab__pair { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 28px; }
.lab__pair span {
	background: var(--navy); color: var(--parchment); border: 1.5px solid var(--gold);
	padding: 6px 14px; border-radius: 3px; font: 600 1rem/1.2 var(--serif); letter-spacing: .08em;
}
.lab__pair small { font: italic 400 .85rem var(--serif); letter-spacing: 0; color: var(--gold); margin-left: 6px; }
@media (max-width: 760px) { .lab__in { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- Новости ---------- */
.news { padding: var(--space) 0; }
.news__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.news__all { font-weight: 600; font-size: .95rem; }
.news__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.news__list--archive { grid-template-columns: repeat(2, 1fr); }
.newsitem { border-top: 1px solid var(--rule); padding-top: 18px; }
.newsitem__img { display: block; margin-bottom: 16px; }
.newsitem__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; }
.newsitem__date { font-size: .85rem; color: var(--muted); }
.newsitem__title { font-size: 1.2rem; font-weight: 500; margin: 6px 0 8px; }
.newsitem__title a { color: var(--navy); text-decoration: none; }
.newsitem__title a:hover { text-decoration: underline; }
.newsitem__excerpt { margin: 0; color: var(--muted); font-size: .97rem; }
.news__empty { color: var(--muted); }
@media (max-width: 900px) { .news__list, .news__list--archive { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Внутренние страницы ---------- */
.pagehead {
	color: #fff; padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 5vw, 60px);
	background: var(--abyss) url("assets/img/iges-header.jpg") center / cover no-repeat;
}
.pagehead__title { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 500; margin: 0; max-width: 24em; text-transform: none; }
.pagehead__parent, .pagehead__date { display: inline-block; color: var(--gold); font-size: .92rem; margin-bottom: 12px; text-decoration: none; }
.pagehead__parent:hover { color: #fff; }

.page-layout { padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--space); }
.page-layout--aside { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; }
@media (max-width: 900px) { .page-layout--aside { grid-template-columns: 1fr; } }
.entry { min-width: 0; }
.entry__content { max-width: 72ch; }
.entry__content > * + * { margin-top: 1.1em; }
.entry__content h2 { font-size: 1.7rem; margin-top: 1.8em; }
.entry__content h3 { font-size: 1.3rem; margin-top: 1.6em; }
.entry__content p, .entry__content li { margin-bottom: 0; }
.entry__content img { border-radius: 2px; }
.entry__content figure { margin-left: 0; margin-right: 0; }
.entry__content figcaption, .wp-caption-text { font-size: .85rem; color: var(--muted); }
.entry__content table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.entry__content th, .entry__content td { border-bottom: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.entry__content blockquote { border-left: 3px solid var(--gold); margin-left: 0; padding-left: 20px; font-family: var(--serif); }
.entry__cover { margin: 0 0 32px; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.aside { border-top: 2px solid var(--navy); padding-top: 14px; font-size: .95rem; }
.aside__title { font: 600 1.05rem var(--serif); margin: 0 0 8px; }
.aside__title a { text-decoration: none; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.aside li a:hover, .aside .current_page_item > a { color: var(--gold-ink); }
.postnav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--rule); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--abyss); color: rgba(255,255,255,.78); font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.site-footer__name { font: 500 1.15rem/1.35 var(--serif); color: #fff; margin: 0 0 8px; max-width: 26em; }
.site-footer__academy { margin: 0; color: var(--gold); font-size: .9rem; }
.site-footer__h { color: #fff; font-size: 1rem; margin: 0 0 10px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.site-footer__list a { display: inline-block; padding: 3px 0; text-transform: lowercase; }
.site-footer__list a::first-letter { text-transform: uppercase; }
.site-footer__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.site-footer__base .langs { border: 0; padding: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } }


/* ---------- Правки после запуска ---------- */
.nav__list .lang-item, .site-footer__list .lang-item { display: none; }
.admin-bar .site-header--over { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header--over { top: 46px; } }
.brand { flex: 1 1 0; min-width: 0; }
@media (max-width: 960px) { .site-header__in { flex-wrap: nowrap; } .brand__name { max-width: 34ch; } }


/* =========================================================
   v2: знак, направления, структура, станция
   ========================================================= */

/* Знак в шапке */
.brand__mark svg { display: block; }
.brand__text { flex-direction: row; align-items: center; gap: 14px; }
.brand__short { font: 600 1.7rem/1 var(--serif); letter-spacing: .14em; }
.brand__name { margin: 0; padding-left: 14px; border-left: 1px solid rgba(197,164,72,.55); font-size: .76rem; line-height: 1.3; max-width: 40ch; }
@media (max-width: 560px) { .brand__name { display: none; } }

/* Заметка о переводе */
.langnote { display: inline-block; margin: 0 0 22px; padding: 6px 12px; border: 1px solid rgba(197,164,72,.6); border-radius: 999px; font-size: .82rem; color: var(--parchment); background: rgba(11,23,54,.6); }

/* ---------- Направления ---------- */
.research { background: var(--navy); color: #fff; padding: var(--space) 0; }
.research .section-title { color: #fff; margin-bottom: 10px; }
.research__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.research__lead { margin: 0; color: rgba(255,255,255,.7); max-width: 40em; }
.seg { display: inline-flex; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 3px; }
.seg__btn { background: none; border: 0; color: rgba(255,255,255,.8); font: 600 .88rem var(--sans); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.seg__btn:hover { color: #fff; }
.seg__btn[aria-pressed="true"] { background: var(--gold); color: var(--abyss); }

.rgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1080px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rgrid { grid-template-columns: 1fr; } }
.rtile { position: relative; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,0) 60%); transition: border-color .2s, opacity .25s; }
.rtile:hover, .rtile.is-open { border-color: var(--gold); }
.rtile.is-dim { opacity: .28; }
.rtile.is-hidden { display: none; }
.rtile.is-open { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); background: rgba(255,255,255,.04); }
@media (max-width: 760px) { .rtile.is-open { grid-template-columns: 1fr; } }
.rtile__btn { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; padding: 22px 22px 26px; cursor: pointer; color: #fff; position: relative; }
.rtile__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.rtile__icon { color: var(--gold); margin-bottom: 10px; }
.rtile__icon .soft { opacity: .45; }
.rtile__icon .accent { stroke: var(--signal); }
.rtile__field { font-size: .76rem; color: rgba(255,255,255,.55); }
.rtile__title { font: 500 1.18rem/1.25 var(--serif); }
.rtile__line { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.45; }
.rtile__plus { position: absolute; right: 18px; top: 20px; width: 14px; height: 14px; }
.rtile__plus::before, .rtile__plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: rgba(255,255,255,.6); transition: transform .2s; }
.rtile__plus::after { transform: rotate(90deg); }
.rtile.is-open .rtile__plus::after { transform: rotate(0); }
.rtile__more { padding: 22px 26px 26px; border-left: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.rtile__more p { margin: 0 0 12px; max-width: 46em; }
.rtile__full { font: italic 400 1.05rem var(--serif); color: var(--parchment); }
.rtile__lab { font-size: .9rem; color: rgba(255,255,255,.7); }
.rtile__lab span { color: var(--gold); margin-right: 6px; }
@media (max-width: 760px) { .rtile__more { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); } }
@media (prefers-reduced-motion: no-preference) {
	.rtile__icon path, .rtile__icon circle, .rtile__icon rect { stroke-dasharray: 120; stroke-dashoffset: 0; }
	.rtile:hover .rtile__icon path, .rtile:hover .rtile__icon circle, .rtile:hover .rtile__icon rect { animation: iges-draw 1.1s ease-out; }
}
@keyframes iges-draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }

/* ---------- Структура ---------- */
.org { padding: var(--space) 0; background: var(--paper); }
.org__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .org__in { grid-template-columns: 1fr; } }
.org .section-title { margin-bottom: 8px; }
.org__lead { color: var(--muted); margin: 0 0 18px; }
.orgchart { position: relative; aspect-ratio: 400 / 320; max-width: 520px; }
.orgchart__lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--rule); stroke-width: 1.5; }
.orgchart__lines .orbit { stroke-dasharray: 3 6; }
.orgchart__lines .orbit--in { stroke: rgba(197,164,72,.5); stroke-dasharray: none; }
.orgchart__core { position: absolute; left: 40%; top: 50%; transform: translate(-50%, -50%); width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px; box-shadow: 0 0 0 6px rgba(17,28,73,.08); }
.orgchart__name { font: 600 clamp(1.1rem, 2.2vw, 1.5rem)/1 var(--serif); letter-spacing: .12em; color: var(--gold); }
.orgchart__sub { font-size: clamp(.58rem, 1vw, .7rem); line-height: 1.3; margin-top: 6px; color: rgba(255,255,255,.8); }
.orgnode { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; padding: 0; font: inherit; color: var(--ink); width: 34%; }
.orgnode--a { left: 82.5%; top: 16.25%; } .orgnode--b { left: 82.5%; top: 50%; } .orgnode--c { left: 82.5%; top: 83.75%; }
.orgnode__n { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--navy); font: 500 1.5rem/1 var(--serif); color: var(--navy); transition: background-color .2s, color .2s, transform .2s; }
.orgnode__t { font-size: .82rem; font-weight: 600; line-height: 1.25; text-align: center; }
.orgnode:hover .orgnode__n { transform: scale(1.06); }
.orgnode[aria-selected="true"] .orgnode__n { background: var(--gold); border-color: var(--gold); color: var(--abyss); }
.orgnode[aria-selected="true"] .orgnode__t { color: var(--navy); }
.orgpanel__h { font-size: 1.15rem; margin-bottom: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; font-size: .9rem; line-height: 1.35; background: var(--mist); }
.chips--detail li { border-radius: 10px; }
.chips small { display: block; color: var(--muted); font-size: .78rem; }
@media (prefers-reduced-motion: no-preference) { .orgpanel:not([hidden]) { animation: iges-fade .25s ease-out; } }
@keyframes iges-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Станция с точками ---------- */
.network { background: var(--mist); }
.station { margin: 0; }
.station__img { position: relative; }
.station__img img { display: block; width: 100%; border-radius: 4px; }
.station figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.hot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid #fff; background: var(--gold); cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .hot::after { animation: iges-ping 2.4s ease-out infinite; } }
@keyframes iges-ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.4); opacity: 0; } }
.hot__tip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); width: max-content; max-width: 220px; background: var(--abyss); color: #fff; font: 400 .82rem/1.4 var(--sans); padding: 8px 12px; border-radius: 4px; text-align: left; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .15s; }
.hot--left .hot__tip { left: auto; right: -10px; transform: none; }
.hot:hover .hot__tip, .hot:focus-visible .hot__tip, .hot.is-open .hot__tip { opacity: 1; visibility: visible; }
.hot.is-open { background: var(--signal); }


/* ---------- Как нас найти (v3) ---------- */
.visit { background: var(--mist); padding: var(--space) 0; }
.visit__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: stretch; }
@media (max-width: 900px) { .visit__in { grid-template-columns: 1fr; } }
.visit__list { margin: 0 0 28px; display: grid; gap: 14px; }
.visit__list div { border-top: 1px solid var(--rule); padding-top: 12px; }
.visit__list dt { font-size: .8rem; color: var(--muted); }
.visit__list dd { margin: 2px 0 0; font-size: 1.05rem; }
.visit__coords { font-family: var(--serif); }
.visit__map { min-height: 420px; border-radius: 4px; overflow: hidden; background: #dfe4ec; position: relative; z-index: 0; }
.visit__fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.iges-pin { position: relative; }
.iges-pin__dot { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--navy), 0 4px 10px rgba(0,0,0,.35); }
.iges-pin__dot::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .iges-pin__dot::after { animation: iges-ping 2.4s ease-out infinite; } }
.iges-pin__label { position: absolute; left: 28px; top: -2px; background: var(--navy); color: #fff; font: 600 .8rem/1 var(--serif); letter-spacing: .1em; padding: 6px 9px; border-radius: 3px; white-space: nowrap; }
.orgpanel__note { max-width: 34em; }


/* ---------- Страница Excellence in Research (v3) ---------- */
.xr__lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.xr__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.entry__content:has(.xr) { max-width: none; }
.xr__card { border: 1px solid var(--rule); border-radius: 4px; padding: 22px 22px 24px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.xr__card:hover { border-color: var(--gold); box-shadow: 0 8px 24px rgba(17,28,73,.08); }
.xr__icon { color: var(--navy); display: block; margin-bottom: 8px; }
.xr__accent { stroke: var(--gold); }
.entry__content .xr__title { font-size: 1.25rem; margin: 0; }
.xr__count { font-size: .8rem; color: var(--muted); margin: 4px 0 14px !important; }
.xr__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.entry__content .xr__chips li { margin: 0; border: 1px solid var(--rule); background: var(--mist); border-radius: 999px; padding: 5px 12px; font-size: .88rem; line-height: 1.35; }
@media (prefers-reduced-motion: no-preference) {
	.xr__card:hover .xr__icon path, .xr__card:hover .xr__icon circle, .xr__card:hover .xr__icon rect { stroke-dasharray: 120; animation: iges-draw 1.1s ease-out; }
}

/* Две метки на карте (v4) */
.iges-pin--alt .iges-pin__dot { background: var(--signal); }
.iges-pin--alt .iges-pin__dot::after { border-color: var(--signal); }
.visit__sub { display: block; font-size: .9rem; color: var(--muted); margin-top: 2px; }

/* ---------- Обсерватория Гюлагарак (v6) ---------- */
.obs { background: var(--abyss); color: rgba(255,255,255,.85); padding: var(--space) 0; }
.obs .section-title { color: #fff; }
.obs__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .obs__in { grid-template-columns: 1fr; } }
.obs__body p { max-width: 36em; }
.obs__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 26px 0 0; }
.obs__facts div { border-top: 1px solid rgba(255,255,255,.16); padding-top: 10px; }
.obs__facts dt { font-size: .78rem; color: rgba(255,255,255,.55); }
.obs__facts dd { margin: 2px 0 0; color: #fff; }
.obs__facts a { color: var(--gold); }
.obs__media { margin: 0; }
.obs__media img { display: block; width: 100%; border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; }
.obs__media--art { border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 20px; }
.obs__media--art svg { display: block; width: 100%; height: auto; }
.visit__photo { margin: 0 0 22px; }
.visit__photo img { display: block; width: 100%; border-radius: 4px; aspect-ratio: 16 / 9; object-fit: cover; }


/* ---------- Страница History (v7) ---------- */
.entry__content:has(.hist) { max-width: none; }
.hist__lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); max-width: 40em; }
.hist h2 { font-size: 1.6rem; margin: 2.2em 0 .8em; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; max-width: 52em; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.timeline li { position: relative; padding: 0 0 22px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.timeline li:last-child::before { background: var(--gold); }
.timeline__year { display: block; font: 600 1.15rem/1.3 var(--serif); color: var(--navy); }
.timeline__text { display: block; color: var(--ink); }
.founder { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; background: var(--mist); border-radius: 4px; padding: 28px; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } }
.founder__photo { margin: 0; }
.founder__photo img { display: block; width: 100%; border-radius: 3px; box-shadow: 0 0 0 6px #fff, 0 10px 24px rgba(17,28,73,.15); }
.founder__photo figcaption { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.founder__name { font: 500 1.5rem/1.25 var(--serif); color: var(--navy); margin: 0 0 4px; }
.founder__years { color: var(--gold-ink); margin: 0 0 18px; }
.founder__body p { max-width: 44em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 24px 0 8px; }
.facts div { border-top: 2px solid var(--navy); padding-top: 10px; }
.facts dt { font: 500 1.5rem/1.1 var(--serif); color: var(--navy); }
.facts dd { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.works { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.works li { padding: 12px 0; border-top: 1px solid var(--rule); margin: 0; }
.works li span { display: block; font-size: .85rem; color: var(--muted); }
.cities { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.entry__content .cities li { margin: 0; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; font-size: .88rem; background: var(--paper); }
.relic { margin: 0; max-width: 640px; }
.relic img { display: block; width: 100%; border-radius: 3px; filter: sepia(.15); }
.relic figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }

/* ---------- International: цепочки (v8) ---------- */
.ichain { display: grid; gap: 14px; }
.icard { border: 1px solid var(--rule); border-radius: 6px; padding: 18px 20px 20px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.icard:hover { border-color: var(--gold); box-shadow: 0 8px 22px rgba(17,28,73,.08); }
.icard__flags { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: .8rem; color: var(--muted); }
.icard__flags svg { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.icard__flags span { margin-left: 6px; }
.icard__parent { font: 500 1.08rem/1.35 var(--serif); color: var(--navy); margin: 0; }
.icard__child { position: relative; display: flex; align-items: center; gap: 12px; margin: 16px 0 0 22px; padding: 12px 14px; border-radius: 6px; background: var(--mist); color: var(--ink); text-decoration: none; }
.icard__child::before { content: ""; position: absolute; left: -16px; top: -17px; width: 14px; height: calc(50% + 17px); border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); border-bottom-left-radius: 8px; }
.icard__child:hover { background: var(--navy); color: #fff; }
.icard__child:hover small { color: rgba(255,255,255,.75); }
.icard__ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--navy); }
.icard__child strong { display: block; font-size: .95rem; }
.icard__child small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }

/* ---------- Страница контактов (v9) ---------- */
.entry__content:has(.contact) { max-width: none; }
.contact .visit__map { min-height: 460px; }
.contact .visit__list dd { font-size: 1.1rem; }

.founder__photo { max-width: 260px; }

/* Excellence in Research: ровная сетка (v10) */
.xr__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .xr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .xr__grid { grid-template-columns: 1fr; } }
.xr__sub { font: 500 .95rem var(--serif); color: var(--navy); margin: 18px 0 8px !important; padding-top: 14px; border-top: 1px solid var(--rule); }


/* ---------- Публикации (v11) ---------- */
.entry__content:has(.pubs) { max-width: none; }
.pubs__lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.pubs h2 { font-size: 1.6rem; margin: 1.8em 0 .8em; }
.pubs__featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .pubs__featured { grid-template-columns: 1fr; } }
.pubcard { position: relative; background: var(--navy); color: rgba(255,255,255,.85); border-radius: 6px; padding: 24px 24px 22px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pubcard::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(197,164,72,.35); box-shadow: 0 0 0 22px rgba(197,164,72,.05), 0 0 0 44px rgba(197,164,72,.04); pointer-events: none; }
.pubcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(17,28,73,.25); }
.pubcard__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8rem; margin: 0 0 12px !important; color: rgba(255,255,255,.65); }
.pubcard__journal { background: var(--gold); color: var(--abyss); font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pubcard__oa, .pub__oa { border: 1px solid currentColor; padding: 2px 8px; border-radius: 999px; color: #7fe0c2; }
.entry__content .pubcard__title { font: 500 1.15rem/1.35 var(--serif); margin: 0 0 10px; }
.pubcard__title a { color: #fff; text-decoration: none; }
.pubcard__title a:hover { color: var(--gold); }
.pubcard__key { font-size: .95rem; margin: 0 0 12px !important; }
.pubcard__authors { font-size: .8rem; color: rgba(255,255,255,.6); margin: 0 !important; }
.pubcard__authors strong { color: #fff; }
.pubs__tools { display: grid; grid-template-columns: auto 1fr; gap: 18px 32px; align-items: end; margin-bottom: 18px; }
@media (max-width: 900px) { .pubs__tools { grid-template-columns: 1fr; } }
.pubs__years { display: flex; gap: 6px; align-items: flex-end; height: 120px; }
.ybar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; width: 42px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.ybar__col { position: relative; display: block; width: 26px; height: var(--h); min-height: 14px; background: var(--rule); border-radius: 4px 4px 0 0; transition: background-color .2s; }
.ybar__n { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: .72rem; color: var(--muted); }
.ybar__y { font-size: .75rem; color: var(--muted); }
.ybar:hover .ybar__col { background: var(--gold); }
.ybar[aria-pressed="true"] .ybar__col { background: var(--navy); }
.ybar[aria-pressed="true"] .ybar__y { color: var(--navy); font-weight: 600; }
.pubs__filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; }
@media (max-width: 900px) { .pubs__filters { justify-content: flex-start; } }
.seg--light { border-color: var(--rule); }
.seg--light .seg__btn { color: var(--ink); }
.seg--light .seg__btn:hover { color: var(--navy); }
.seg--light .seg__btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.pubs__search { font: inherit; font-size: .95rem; padding: 9px 14px; border: 1px solid var(--rule); border-radius: 999px; min-width: 260px; }
.pubs__search:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.pubs__count { grid-column: 1 / -1; margin: 0 !important; font-size: .85rem; color: var(--muted); }
.publist { list-style: none; margin: 0; padding: 0; }
.entry__content .publist li { margin: 0; }
.pub { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.pub[hidden] { display: none; }
.pub__year { font: 600 1.1rem/1.4 var(--serif); color: var(--gold-ink); }
.pub__body p { margin: 0 0 4px !important; }
.pub__title a { font: 500 1.08rem/1.4 var(--serif); color: var(--navy); text-decoration: none; }
.pub__title a:hover { text-decoration: underline; }
.pub__authors { font-size: .88rem; color: var(--muted); }
.pub__authors strong { color: var(--ink); }
.pub__venue { font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pub__type { font-size: .72rem; background: var(--mist); border-radius: 999px; padding: 2px 8px; color: var(--muted); }
.pub__oa { font-size: .72rem; color: #1b8a68; }
.pub__actions { display: flex; gap: 14px; align-items: center; font-size: .82rem; margin-top: 6px !important; }
.pub__cite { background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: .78rem; cursor: pointer; color: var(--ink); }
.pub__cite:hover { border-color: var(--navy); }
.pub__cite.is-done { background: var(--navy); color: #fff; border-color: var(--navy); }
.pubs__empty { color: var(--muted); }


/* ---------- Услуги (v12) ---------- */
.entry__content:has(.svc) { max-width: none; }
.svc__lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.svc h2 { font-size: 1.5rem; margin: 1.6em 0 .7em; }
.svc__objects { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 14px; background: var(--mist); border-radius: 8px; }
.svc__obj { background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px; font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.svc__obj:hover { border-color: var(--navy); }
.svc__obj[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.svc__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.svc__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .svc__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .svc__grid--4, .svc__grid--3 { grid-template-columns: 1fr; } }
.entry__content .svc__card { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 6px; padding: 22px; background: var(--paper); transition: opacity .25s, border-color .25s, box-shadow .25s, transform .25s; }
.svc__card.is-match { border-color: var(--gold); box-shadow: 0 10px 24px rgba(17,28,73,.1); transform: translateY(-2px); }
.svc__card.is-dim { opacity: .32; }
.svc__icon { color: var(--navy); margin-bottom: 10px; }
.svc__card.is-match .svc__icon { color: var(--gold-ink); }
.entry__content .svc__title { font: 500 1.12rem/1.3 var(--serif); margin: 0 0 8px; }
.svc__text { font-size: .93rem; color: var(--ink); margin: 0 0 10px !important; flex: 1; }
.svc__ref { font-size: .82rem; margin: 0 0 10px !important; }
.svc__for { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 !important; }
.svc__for span { font-size: .72rem; color: var(--muted); background: var(--mist); border-radius: 999px; padding: 2px 8px; }
.svc__cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--navy); color: rgba(255,255,255,.85); border-radius: 8px; padding: 28px 32px; }
.svc__cta h2 { color: #fff; margin: 0 0 6px !important; }
.svc__cta p { margin: 0 !important; }

/* ===== v13: разделы — панели-карточки и вкладки раздела ===== */
.nav__list > li.nav__item--mega { position: static; }
.nav__top { display: block; padding: 14px 12px; color: rgba(255,255,255,.88); text-decoration: none; font-size: .92rem; font-weight: 600; white-space: nowrap; position: relative; }
.nav__top::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav__item:hover > .nav__top, .nav__item.is-focus > .nav__top, .nav__item.is-current > .nav__top { color: #fff; }
.nav__item:hover > .nav__top::after, .nav__item.is-focus > .nav__top::after, .nav__item.is-current > .nav__top::after { transform: scaleX(1); }
.nav__list > li > a.nav__top { text-transform: none; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fbfaf5; color: var(--ink); border-top: 3px solid var(--gold); box-shadow: 0 24px 48px rgba(3,8,22,.28); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav__item--mega:hover > .mega, .nav__item--mega.is-focus > .mega { visibility: visible; opacity: 1; transform: none; }
.mega__in { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: 40px; padding-top: 30px; padding-bottom: 34px; }
.mega__kicker { font: 600 1.5rem/1.2 var(--serif); color: var(--navy); margin: 0 0 10px; }
.mega__lead { margin: 0; color: #4a5068; font-size: .95rem; line-height: 1.55; max-width: 30ch; }
.mega__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mega__card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 6px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid #e6e2d3; transition: border-color .15s, box-shadow .15s, transform .15s; height: 100%; box-sizing: border-box; }
.mega__card:hover, .mega__card:focus-visible { border-color: var(--gold); box-shadow: 0 8px 20px rgba(17,28,73,.10); transform: translateY(-2px); color: var(--ink); }
.mega__card.is-current { border-color: var(--navy); }
.mega__ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.mega__tx { display: flex; flex-direction: column; gap: 3px; }
.mega__t { font-weight: 600; font-size: .95rem; color: var(--navy); }
.mega__d { font-size: .84rem; color: #5d6278; line-height: 1.4; }
.mega__ext { color: var(--gold-ink); font-size: .8em; }
.nav__cta { margin-left: 8px; padding: 8px 16px; border: 1px solid var(--gold); color: var(--gold); text-decoration: none; font-size: .86rem; font-weight: 600; border-radius: 999px; white-space: nowrap; }
.nav__cta:hover { background: var(--gold); color: var(--abyss); }
@media (max-width: 960px) {
	.nav__top { padding: 14px 0; font-size: 1.02rem; border-bottom: 1px solid rgba(255,255,255,.08); }
	.nav__top::after { display: none; }
	.nav__item--mega > .nav__top { pointer-events: none; color: var(--gold); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; border: 0; padding: 18px 0 8px; }
	.mega { position: static; visibility: visible; opacity: 1; transform: none; background: none; border: 0; box-shadow: none; }
	.mega__in { display: block; padding: 0; }
	.mega__intro { display: none; }
	.mega__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.mega__card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); padding: 10px 12px; }
	.mega__card:hover { transform: none; }
	.mega__ic { width: 32px; height: 32px; }
	.mega__t { color: #fff; font-size: .9rem; }
	.mega__d { display: none; }
	.nav__cta { align-self: flex-start; margin: 18px 0 0; }
}
@media (max-width: 480px) { .mega__grid { grid-template-columns: 1fr; } }

.secbar { background: #fff; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; }
.secbar__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.secbar__list::-webkit-scrollbar { display: none; }
.secbar__tab { display: flex; align-items: center; gap: 8px; padding: 16px 14px 14px; color: #4a5068; text-decoration: none; font-size: .92rem; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.secbar__tab svg { color: var(--gold-ink); }
.secbar__tab:hover { color: var(--navy); border-bottom-color: #e6dcb8; }
.secbar__tab.is-current { color: var(--navy); border-bottom-color: var(--gold); }

/* ===== v14: бегущая строка и мониторинг ===== */
.ticker { background: var(--abyss); color: #fff; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: stretch; overflow: hidden; font-size: .9rem; }
.ticker__label { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 18px; background: var(--gold); color: var(--abyss); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: #c0261f; animation: tdot 1.4s infinite; }
@keyframes tdot { 50% { opacity: .25; } }
.ticker__view { flex: 1; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent); }
.ticker__track { display: flex; width: max-content; animation: tick var(--tdur, 60s) linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker__item { display: flex; align-items: center; gap: 10px; padding: 12px 28px; white-space: nowrap; color: rgba(255,255,255,.9); text-decoration: none; }
.ticker__item:hover { color: var(--gold); }
.ticker__tag { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; background: rgba(255,255,255,.12); color: #ebe5cc; }
.ticker__tag--eq { background: #8c1d18; color: #fff; }
.ticker__sep { color: var(--gold); opacity: .6; }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } .ticker__view { overflow-x: auto; } }

.mon { --c-new: #c0261f; --c-week: #e08a1e; --c-old: #2f5fa8; }
.mon__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin: 0 0 28px; }
.mon__stat { background: #fff; padding: 18px 20px; }
.mon__num { display: block; font: 600 1.9rem/1.1 var(--serif); color: var(--navy); }
.mon__cap { font-size: .82rem; color: #5d6278; }
@media (max-width: 720px) { .mon__stats { grid-template-columns: 1fr 1fr; } }
.mon__bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.mon__bar .seg { margin: 0; }
.mon__mag { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #4a5068; }
.mon__mag select { font: inherit; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.mon__layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: #fff; }
@media (max-width: 900px) { .mon__layout { grid-template-columns: 1fr; } }
.mon__map { height: 520px; background: #e9edf3; }
@media (max-width: 900px) { .mon__map { height: 380px; } }
.mon__list { max-height: 520px; overflow-y: auto; border-left: 1px solid var(--rule); }
@media (max-width: 900px) { .mon__list { border-left: 0; border-top: 1px solid var(--rule); max-height: 360px; } }
.mon__ev { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; width: 100%; padding: 11px 16px; border: 0; border-bottom: 1px solid #eef0f4; background: none; text-align: left; font: inherit; cursor: pointer; color: var(--ink); }
.mon__ev:hover, .mon__ev.is-active { background: #f6f3e8; }
.mon__m { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; font-weight: 600; font-size: .95rem; }
.mon__where { font-weight: 600; font-size: .9rem; color: var(--navy); display: block; }
.mon__when { font-size: .8rem; color: #5d6278; }
.mon__empty, .mon__status { padding: 18px; color: #5d6278; font-size: .9rem; }
.mon__legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .8rem; color: #5d6278; margin: 10px 0 0; }
.mon__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.mon__legend .tri { width: 0; height: 0; border-radius: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--navy); background: none; }
.eqm { border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); opacity: .9; }
.eqm--new { animation: eqpulse 1.6s infinite; }
@keyframes eqpulse { 0% { box-shadow: 0 0 0 0 rgba(192,38,31,.6); } 100% { box-shadow: 0 0 0 16px rgba(192,38,31,0); } }
.stm { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid var(--navy); filter: drop-shadow(0 0 1px #fff); }

.mon__dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 0; }
@media (max-width: 720px) { .mon__dl { grid-template-columns: 1fr; } }
.mon__dlbtn { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; text-align: left; }
.mon__dlbtn:hover { border-color: var(--gold); color: var(--ink); }
.mon__dlbtn b { display: block; color: var(--navy); font-size: .95rem; }
.mon__dlbtn small { color: #5d6278; font-size: .8rem; }
.mon__dlbtn svg { flex: none; color: var(--gold-ink); }

.wave { border: 1px solid var(--rule); border-radius: 8px; background: #0b1736; color: #fff; padding: 18px 18px 12px; }
.wave__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.wave__title { font: 600 1.05rem var(--serif); margin: 0; }
.wave__sub { font-size: .82rem; color: rgba(255,255,255,.65); margin: 2px 0 0; }
.wave .seg__btn { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.25); background: none; }
.wave .seg__btn[aria-pressed="true"] { background: var(--gold); color: var(--abyss); border-color: var(--gold); }
.wave__svg { width: 100%; height: auto; display: block; cursor: crosshair; }
.wave__note { font-size: .8rem; color: rgba(255,255,255,.6); margin: 8px 0 0; }

.mon__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .mon__cards { grid-template-columns: 1fr; } }
.mon__card { border: 1px solid var(--rule); border-radius: 8px; padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.mon__card h3 { margin: 0; font-size: 1.05rem; color: var(--navy); }
.mon__card p { margin: 0; font-size: .9rem; color: #4a5068; }
.mon__card a.more { margin-top: auto; font-weight: 600; font-size: .9rem; }
.mon h2 { margin: 44px 0 6px; }
.mon h2:first-child { margin-top: 0; }
.mon__intro { color: #4a5068; margin: 0 0 16px; max-width: 70ch; }

/* ===== v15: сетка карточек меню ===== */
.nav__list .mega__grid { position: static; visibility: inherit; opacity: 1; transform: none; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; transition: none; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
@media (max-width: 960px) { .nav__list .mega__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .nav__list .mega__grid { grid-template-columns: 1fr; } }

.entry__content:has(.mon), .entry__content:has(.svc) { max-width: none; }

/* ===== v16: новости с миниатюрами ===== */
.newsitem__img img { height: auto; }
.news__list--archive { grid-template-columns: 1fr; gap: 0; }
.news__list--archive .newsitem { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 28px; padding: 24px 0; }
.news__list--archive .newsitem__img { grid-row: 1 / 4; margin: 0; overflow: hidden; border-radius: 6px; }
.news__list--archive .newsitem__img img { aspect-ratio: 4 / 3; transition: transform .4s; }
.news__list--archive .newsitem:hover .newsitem__img img { transform: scale(1.05); }
@media (max-width: 600px) { .news__list--archive .newsitem { grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; } .news__list--archive .newsitem__excerpt { display: none; } .news__list--archive .newsitem__title { font-size: 1.02rem; } }
.news__list .newsitem__img { overflow: hidden; border-radius: 6px; }

/* ===== v17: страница директора ===== */
.entry__content:has(.dir) { max-width: none; }
.dir__hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; margin-bottom: 36px; }
@media (max-width: 900px) { .dir__hero { grid-template-columns: 1fr; gap: 24px; } }
.dir__photo { margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px rgba(17,28,73,.18); aspect-ratio: 3 / 2; background: #e9edf3; }
.dir__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dir__role { color: var(--gold-ink); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.dir__name { font: 600 clamp(1.8rem, 3vw, 2.5rem)/1.15 var(--serif); color: var(--navy); margin: 0 0 10px; }
.dir__deg { color: #4a5068; margin: 0 0 18px; line-height: 1.5; }
.dir__quote { border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; margin: 0 0 22px; color: var(--ink); font-size: 1.02rem; }
.dir__links { display: flex; flex-wrap: wrap; gap: 10px; }
.dir__links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--rule); text-decoration: none; color: var(--navy); font-weight: 600; font-size: .88rem; background: #fff; }
.dir__links a:hover { border-color: var(--gold); }
.dir__links a.is-main { background: var(--navy); color: #fff; border-color: var(--navy); }
.dir__links a.is-main:hover { background: var(--abyss); color: var(--gold); }
.dir__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin: 0 0 44px; }
.dir__stat { background: #fff; padding: 20px; }
.dir__stat b { display: block; font: 600 2rem/1.1 var(--serif); color: var(--navy); }
.dir__stat span { font-size: .84rem; color: #5d6278; }
@media (max-width: 720px) { .dir__stats { grid-template-columns: 1fr 1fr; } }
.dir h2 { margin: 0 0 16px; }
.dir__sec { margin: 0 0 48px; }
.dir__roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .dir__roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dir__roles { grid-template-columns: 1fr; } }
.dir__roles li { border: 1px solid var(--rule); border-radius: 8px; padding: 18px; background: #fff; display: flex; gap: 14px; align-items: flex-start; }
.dir__roles .ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.dir__roles b { display: block; color: var(--navy); font-size: .97rem; margin-bottom: 4px; }
.dir__roles small { color: #5d6278; font-size: .84rem; }
.dir__path { list-style: none; margin: 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(8, 1fr); position: relative; }
.dir__path::before { content: ""; position: absolute; left: 0; right: 0; top: 33px; height: 2px; background: linear-gradient(90deg, var(--rule), var(--gold)); }
.dir__path li { position: relative; padding: 26px 10px 0 0; }
.dir__path li::before { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-sizing: border-box; }
.dir__path li.is-key::before { background: var(--gold); border-color: var(--gold); }
.dir__path b { display: block; font: 600 1.1rem var(--serif); color: var(--navy); }
.dir__path span { font-size: .84rem; color: #4a5068; line-height: 1.4; display: block; margin-top: 4px; }
@media (max-width: 900px) {
	.dir__path { grid-template-columns: 1fr; padding: 0 0 0 26px; }
	.dir__path::before { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--rule), var(--gold)); }
	.dir__path li { padding: 0 0 18px; }
	.dir__path li::before { left: -26px; top: 4px; }
}
.dir__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.dir__chip { font: inherit; font-size: .86rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; color: #4a5068; cursor: pointer; }
.dir__chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.dir__proj { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .dir__proj { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dir__proj { grid-template-columns: 1fr; } }
.dir__proj li { border: 1px solid var(--rule); border-radius: 8px; padding: 16px 18px; background: #fff; display: flex; flex-direction: column; gap: 6px; transition: opacity .2s, border-color .2s; }
.dir__proj li[hidden] { display: none; }
.dir__proj li:hover { border-color: var(--gold); }
.dir__proj .yr { font-size: .78rem; font-weight: 600; color: var(--gold-ink); letter-spacing: .04em; }
.dir__proj b { color: var(--navy); font-size: .95rem; line-height: 1.35; }
.dir__proj .cl { font-size: .82rem; color: #5d6278; margin-top: auto; }
.dir__mem { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
@media (max-width: 900px) { .dir__mem { grid-template-columns: 1fr; } }
.dir__mem li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.dir__mem li b { display: block; color: var(--navy); }
.dir__mem li span { color: #5d6278; font-size: .84rem; }

/* ===== v18: посадочные страницы разделов ===== */
.entry__content:has(.lp) { max-width: none; }
.lp h2 { margin: 0 0 8px; }
.lp__sec { margin: 0 0 56px; }
.lp__intro { color: #4a5068; margin: 0 0 20px; max-width: 68ch; }
.lp__lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); max-width: 60ch; margin: 0 0 28px; }
.lp__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; margin: 0 0 56px; }
.lp__stat { background: #fff; padding: 22px; }
.lp__stat b { display: block; font: 600 2.2rem/1.05 var(--serif); color: var(--navy); }
.lp__stat span { font-size: .86rem; color: #5d6278; }
@media (max-width: 720px) { .lp__stats { grid-template-columns: 1fr 1fr; } }
.lp__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.lp__grid--4 { grid-template-columns: repeat(4, 1fr); }
.lp__grid--3 { grid-template-columns: repeat(3, 1fr); }
.lp__grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .lp__grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .lp__grid--3, .lp__grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .lp__grid--4 { grid-template-columns: 1fr; } }
.lp__card { border: 1px solid var(--rule); border-radius: 10px; padding: 22px; background: #fff; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.lp__card { text-decoration: none; color: var(--ink); }
a.lp__card:hover { border-color: var(--gold); box-shadow: 0 12px 28px rgba(17,28,73,.10); transform: translateY(-3px); color: var(--ink); }
.lp__card h3 { margin: 0; font-size: 1.08rem; color: var(--navy); }
.lp__card p { margin: 0; font-size: .92rem; color: #4a5068; line-height: 1.5; }
.lp__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.lp__more { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--gold-ink); }
.lp__pill { align-self: flex-start; font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f3eedc; color: var(--gold-ink); }
.lp__card details { margin-top: auto; border-top: 1px solid #eef0f4; padding-top: 10px; }
.lp__card summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.lp__card summary::-webkit-details-marker { display: none; }
.lp__card summary::after { content: "+"; font-size: 1.2rem; color: var(--gold-ink); transition: transform .2s; }
.lp__card details[open] summary::after { transform: rotate(45deg); }
.lp__card details ul { margin: 10px 0 0; padding: 0; list-style: none; font-size: .88rem; color: #4a5068; }
.lp__card details li { padding: 5px 0 5px 14px; position: relative; }
.lp__card details li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.lp__person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--abyss); color: #fff; text-decoration: none; }
.lp__person:hover { color: #fff; }
.lp__person img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 260px; }
.lp__person > div { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.lp__person .k { color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lp__person .n { font: 600 1.8rem/1.2 var(--serif); }
.lp__person p { margin: 0; color: rgba(255,255,255,.78); }
.lp__person .lp__more { color: var(--gold); }
@media (max-width: 760px) { .lp__person { grid-template-columns: 1fr; } }
.lp__chain { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .lp__chain { grid-template-columns: 1fr; } }
.lp__link { border: 1px solid var(--rule); border-radius: 10px; padding: 24px; background: linear-gradient(160deg, #fff, #f6f3e8); }
.lp__link .flags { display: flex; gap: 6px; align-items: center; font-size: .8rem; color: #5d6278; margin-bottom: 14px; }
.lp__steps { list-style: none; margin: 0; padding: 0; }
.lp__steps li { position: relative; padding: 0 0 20px 34px; }
.lp__steps li:last-child { padding-bottom: 0; }
.lp__steps li::before { content: ""; position: absolute; left: 7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #f3eedc; }
.lp__steps li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 22px; bottom: 2px; width: 2px; background: #e6dcb8; }
.lp__steps b { display: block; color: var(--navy); }
.lp__steps span { font-size: .88rem; color: #4a5068; }
.lp__steps .yr { font-size: .76rem; font-weight: 600; color: var(--gold-ink); }
.lp__cta { margin-top: 8px; border-radius: 12px; padding: 32px; background: var(--navy); color: #fff; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.lp__cta p { margin: 0; font: 600 1.3rem/1.3 var(--serif); }
.lp__cta a { background: var(--gold); color: var(--abyss); padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.lp__cta a:hover { background: #d8b95e; color: var(--abyss); }

/* ===== v19: схема структуры ===== */
.org2 { --line: #cdbf8e; position: relative; padding: 8px 0 0; }
.org2__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; max-width: 980px; margin: 0 auto; }
.org2__side { border: 1px solid var(--rule); border-radius: 10px; background: #fff; padding: 14px 18px; display: flex; gap: 12px; align-items: center; font-size: .9rem; color: #4a5068; position: relative; }
.org2__side b { display: block; color: var(--navy); font-size: .95rem; }
.org2__side--l { margin-right: 28px; } .org2__side--r { margin-left: 28px; }
.org2__side--l::after, .org2__side--r::before { content: ""; position: absolute; top: 50%; width: 28px; height: 2px; background: var(--line); }
.org2__side--l::after { right: -29px; } .org2__side--r::before { left: -29px; }
.org2__head { background: var(--navy); color: #fff; border-radius: 14px; padding: 18px 30px; text-align: center; box-shadow: 0 14px 30px rgba(17,28,73,.22); position: relative; text-decoration: none; display: block; }
.org2__head:hover { color: #fff; box-shadow: 0 18px 36px rgba(17,28,73,.3); }
.org2__head small { display: block; color: var(--gold); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.org2__head b { font: 600 1.25rem var(--serif); }
.org2__head::after { content: ""; position: absolute; left: 50%; bottom: -34px; width: 2px; height: 34px; background: var(--line); }
.org2__ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #f3eedc; color: var(--gold-ink); }
.org2__branches { list-style: none; margin: 34px 0 0; padding: 30px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.org2__branches::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 2px; background: var(--line); }
.org2__br { position: relative; }
.org2__br::before { content: ""; position: absolute; top: -30px; left: 50%; width: 2px; height: 30px; background: var(--line); }
.org2__dep { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--navy); border-radius: 10px; padding: 16px; text-align: center; transition: transform .2s, box-shadow .2s; }
.org2__br:hover .org2__dep { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(17,28,73,.12); }
.org2__dep .lp__ic { margin: 0 auto 10px; }
.org2__dep b { display: block; color: var(--navy); font-size: .98rem; line-height: 1.3; }
.org2__dep span { display: block; font-size: .78rem; color: var(--gold-ink); font-weight: 600; margin-top: 6px; }
.org2__br--obs .org2__dep { border-top-color: var(--gold); }
.org2__labs { list-style: none; margin: 0; padding: 14px 0 0 18px; position: relative; }
.org2__labs::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 18px; width: 2px; background: var(--line); }
.org2__labs li { position: relative; background: #fbfaf5; border: 1px solid #ece6cf; border-radius: 8px; padding: 9px 12px; font-size: .84rem; color: var(--ink); margin: 0 0 8px; line-height: 1.35; }
.org2__labs li::before { content: ""; position: absolute; left: -13px; top: 50%; width: 12px; height: 2px; background: var(--line); }
@media (max-width: 1100px) { .org2__branches { grid-template-columns: repeat(3, minmax(0, 1fr)); } .org2__branches::before, .org2__br::before { display: none; } .org2__branches { margin-top: 24px; padding-top: 0; } .org2__head::after { display: none; } }
@media (max-width: 760px) {
	.org2__top { grid-template-columns: 1fr; gap: 10px; }
	.org2__side--l, .org2__side--r { margin: 0; } .org2__side--l::after, .org2__side--r::before { display: none; }
	.org2__head { order: -1; }
	.org2__branches { grid-template-columns: 1fr; }
}

/* ===== v20: новая структура (3 ветви) ===== */
.org3 { --line: #cdbf8e; }
.org3__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 900px; margin: 0 auto; }
.org3__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr) minmax(0, 1.1fr); gap: 20px; margin-top: 34px; padding-top: 30px; position: relative; }
.org3__cols::before { content: ""; position: absolute; top: 0; left: 12%; right: 13%; height: 2px; background: var(--line); }
.org3__col { position: relative; }
.org3__col::before { content: ""; position: absolute; top: -30px; left: 50%; width: 2px; height: 30px; background: var(--line); }
.org3__h { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: .92rem; text-align: center; margin: 0 0 14px; }
.org3__h span { background: var(--gold); color: var(--abyss); border-radius: 999px; font-size: .74rem; padding: 1px 8px; }
.org3__col--side .org3__h { background: #fff; color: var(--navy); border: 1px solid var(--rule); border-top: 3px solid var(--gold); }
.org3__labs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.org3__lab { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: .86rem; line-height: 1.35; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; height: 100%; box-sizing: border-box; }
.org3__lab:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(17,28,73,.10); border-color: var(--gold); }
.org3__lab .lp__ic { width: 38px; height: 38px; border-radius: 10px; }
.org3__list { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.org3__list::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 22px; width: 2px; background: var(--line); }
.org3__list > li { position: relative; background: #fbfaf5; border: 1px solid #ece6cf; border-radius: 8px; padding: 11px 12px; font-size: .86rem; line-height: 1.35; margin: 0 0 10px; display: flex; gap: 10px; align-items: flex-start; }
.org3__list > li::before { content: ""; position: absolute; left: -13px; top: 22px; width: 12px; height: 2px; background: var(--line); }
.org3__list b { display: block; color: var(--navy); font-size: .88rem; }
.org3__list small { color: #5d6278; font-size: .78rem; }
.org3__mini { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f3eedc; color: var(--gold-ink); }
.org3__sub { margin: 8px 0 0; padding: 8px 10px; border-left: 2px solid var(--gold); background: #fff; border-radius: 0 6px 6px 0; font-size: .8rem; }
.org3__flags { display: inline-flex; gap: 4px; margin-left: 4px; vertical-align: -2px; }
@media (max-width: 1100px) {
	.org3__cols { grid-template-columns: 1fr 1fr; } .org3__col--labs { grid-column: 1 / -1; order: -1; }
	.org3__cols::before, .org3__col::before { display: none; } .org3__cols { margin-top: 20px; padding-top: 0; }
}
@media (max-width: 760px) { .org3__top { grid-template-columns: 1fr; gap: 10px; } .org3__cols { grid-template-columns: 1fr; } .org3__labs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .org3__labs { grid-template-columns: 1fr; } }

.svc__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .svc__grid--2 { grid-template-columns: 1fr; } }

/* ===== v21: схемы в новостях, заглушка «в разработке» ===== */
.news-svg { display: block; overflow: hidden; border-radius: 6px; }
.news-svg svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; transition: transform .4s; }
.news__list--archive .news-svg svg { aspect-ratio: 4 / 3; }
.newsitem:hover .news-svg svg { transform: scale(1.04); }
.entry__cover .news-svg svg { aspect-ratio: 21 / 9; }
.wip { max-width: 640px; margin: 20px auto 40px; text-align: center; padding: 48px 28px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; }
.wip__ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.wip h2 { margin: 0 0 10px; }
.wip p { color: #4a5068; margin: 0 0 22px; }
.wip a { display: inline-block; background: var(--gold); color: var(--abyss); padding: 11px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; }

/* ===== v22: каталог ИГИС на карте ===== */
.mon__src { margin: 0 0 18px; }
.mon.is-iges .mon__period { display: none; }
.mon .mon__legend[data-for="iges"], .mon.is-iges .mon__legend[data-for="intl"] { display: none; }
.mon.is-iges .mon__legend[data-for="iges"] { display: flex; }
.mon__note { font-size: .82rem; color: #5d6278; margin: 6px 0 0; }
.mon .mon__note[data-for="iges"] { display: none; } .mon.is-iges .mon__note[data-for="iges"] { display: block; }

.eqm--iges { background: rgba(197,164,72,.35); border: 2.5px solid #9a7a1e; box-shadow: 0 0 0 1px #fff; opacity: 1; }
.eqm--iges.is-pre { background: rgba(197,164,72,.15); border-style: dashed; }
.eqm__src { color: #7d6420; font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.mon__legend .ring { background: rgba(197,164,72,.35); border: 2px solid #9a7a1e; box-sizing: border-box; }

/* ===== v23: обратная связь ===== */
.fb { background: #f6f3e8; padding: 72px 0; border-top: 1px solid #e6dcb8; }
.fb__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .fb__in { grid-template-columns: 1fr; gap: 24px; } }
.fb__intro p { color: #4a5068; max-width: 40ch; }
.fb__mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy) !important; background: #fff; border: 1px solid #e6dcb8; border-radius: 999px; padding: 8px 16px; user-select: all; }
.fb__mail svg { color: var(--gold-ink); }
.fb__form { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 18px 40px rgba(17,28,73,.08); }
.fb__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .fb__row { grid-template-columns: 1fr; } }
.fb__f { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--navy); }
.fb__f input, .fb__f select, .fb__f textarea { font: inherit; font-weight: 400; font-size: .95rem; color: var(--ink); padding: 11px 13px; border: 1px solid var(--rule); border-radius: 8px; background: #fbfbfd; width: 100%; box-sizing: border-box; }
.fb__f textarea { resize: vertical; min-height: 120px; }
.fb__f input:focus, .fb__f select:focus, .fb__f textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); background: #fff; }
.fb__form .btn { align-self: flex-start; border: 0; cursor: pointer; }
.fb__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb__msg { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: .92rem; }
.fb__msg--ok { background: #e7f5ec; color: #1d5b33; border: 1px solid #b8e0c5; }
.fb__msg--err { background: #fbeaea; color: #8c1d18; border: 1px solid #efc4c2; }

/* ===== v24: каталог — карточки с кодом ===== */
.secbar { z-index: 1000; }
.mon__map { position: relative; isolation: isolate; z-index: 0; }
.mon__dl { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 980px) { .mon__dl { grid-template-columns: 1fr; } }
.mon__dlcard { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: #fff; min-width: 0; }
.mon__dlhead { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.mon__ext { flex: none; font: 600 .74rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--gold); background: var(--navy); border-radius: 6px; padding: 7px 8px; }
.mon__dltx { flex: 1; min-width: 0; }
.mon__dltx b { display: block; color: var(--navy); font-size: .97rem; }
.mon__dltx small { color: #5d6278; font-size: .8rem; }
.mon__dlbtn2 { flex: none; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .84rem; font-weight: 600; color: var(--abyss); background: var(--gold); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.mon__dlbtn2:hover { background: #d8b95e; }
.mon__code { flex: 1; margin: 0; background: #0b1736; color: #cfe0ff; padding: 14px 16px; font: .74rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: auto; max-height: 230px; white-space: pre; border-top: 3px solid var(--gold); }

/* ===== v25: код доступа для скачивания ===== */
.mon__gate { margin: 16px 0 0; border: 1px solid #e6dcb8; background: #f6f3e8; border-radius: 10px; padding: 18px 20px; }
.mon__gate form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mon__gate label { font-weight: 600; color: var(--navy); }
.mon__gate input { font: inherit; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 8px; min-width: 220px; }
.mon__gate input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.mon__gate button { font: inherit; font-weight: 600; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.mon__gate button:hover { background: var(--abyss); color: var(--gold); }
.mon__gateic { color: var(--gold-ink); display: flex; }
.mon__gatemsg { margin: 10px 0 0; font-size: .88rem; color: #8c1d18; min-height: 1em; }
.mon__dlbtn2::before { content: ""; width: 14px; height: 14px; margin-right: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }

.mon__dlbtn2 svg { display: none; }

/* ===== v26: членство — ровные карточки ===== */
.dir__mem { gap: 14px !important; }
.dir__mem li { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; border-bottom: 1px solid var(--rule); transition: border-color .2s, transform .2s, box-shadow .2s; }
.dir__mem li:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(17,28,73,.08); }
.dir__mem li::before { content: ""; width: 36px; height: 36px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5a448' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5'/%3E%3Cpath d='M9.5 13.5L8 21l4-2 4 2-1.5-7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.dir__mem li b { font-size: .95rem; line-height: 1.35; }
.dir__mem li span { margin-top: auto; padding-top: 10px; border-top: 1px solid #eef0f4; color: var(--gold-ink) !important; font-weight: 600; font-size: .82rem !important; }
@media (max-width: 1100px) { .dir__mem { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 700px) { .dir__mem { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 460px) { .dir__mem { grid-template-columns: 1fr !important; } }
