
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ru-main { padding-bottom: 96px; }

/* ---------- page head: crumbs, label, H1, lead, the one border of the page ---------- */
.ru-head { padding: 0 0 8px; }
.ru-head .v3-crumbs { padding-top: 24px; }
.ru-head h1 { font-size: clamp(32px, 3.9vw, 54px); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; max-width: 980px; margin-top: 22px; }
.ru-head h1 em { font-style: normal; color: var(--accent); }
.ru-head h1 .sub { display: block; font-size: .46em; line-height: 1.3; letter-spacing: -.01em; color: var(--muted); margin-top: 12px; }
.ru-head .lead { max-width: 780px; }
.ru-head .label { margin-top: 26px; margin-bottom: 0; }
.ru-head .label + h1 { margin-top: 12px; }
.ru-kaima { height: 20px; max-width: 360px; margin-top: 24px; background: url("/images/v3/ru-m/kaima.svg") repeat-x left center; }
.ru-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.ru-head-grid .art { aspect-ratio: 4 / 3; }
.ru-head .chips { margin-top: 22px; }
.ru-src { color: var(--muted); font-size: 13px; margin-top: 12px; max-width: 900px; }

/* ---------- sections ---------- */
.ru-sec { padding-top: 72px; }
.ru-sec--tight { padding-top: 40px; }
.ru-band { background: var(--paper); margin-top: 72px; padding: 64px 0; }
.ru-band + .ru-sec { padding-top: 72px; }
.ru-band .chip, .ru-band .ru-card, .ru-band .ru-box { background: #fff; }
.ru-h2 { font-size: clamp(26px, 2.7vw, 38px); font-weight: 400; letter-spacing: -.025em; }
.ru-h3 { font: 600 18px/1.35 var(--sans); color: var(--ink); letter-spacing: 0; margin: 32px 0 12px; }
.ru-sec .lead, .ru-band .lead { font-size: 17px; margin-top: 12px; }
.ru-sec .head-row, .ru-band .head-row { margin-bottom: 0; }
.label.l-orn { color: var(--accent-dark); }

/* ---------- facts (numbers of the page), not clickable ---------- */
.ru-facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0 24px; margin-top: 32px; border-top: 1px solid var(--ink); }
.ru-facts > div { padding: 16px 0 4px; }
.ru-facts b { display: block; font: 300 clamp(28px, 2.8vw, 40px)/1.05 var(--serif); color: var(--ink); letter-spacing: -.03em; }
.ru-facts span { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }
.ru-facts small { color: var(--muted); }

/* ---------- cards: universities and colleges ---------- */
.ru-cards { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.ru-card { position: relative; display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; color: var(--text); }
a.ru-card { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .2s; }
a.ru-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 20px 36px -26px rgba(20,20,40,.45); border-color: transparent; }
a.ru-card:hover h3 { color: var(--accent-dark); }
.ru-logo { flex: none; width: 56px; height: 56px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.ru-logo img { width: 100%; height: 100%; object-fit: contain; }
.ru-logo span { font: 400 20px var(--serif); color: var(--accent-dark); }
.ru-card-body { min-width: 0; flex: 1; }
.ru-card h3 { font: 600 16px/1.35 var(--sans); color: var(--ink); letter-spacing: 0; transition: color .15s; }
.ru-card .meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.ru-card .nums { color: var(--text); font-size: 14px; margin-top: 6px; }
.ru-card .nums b { color: var(--ink); }
.ru-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ru-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ru-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--paper); color: var(--text); white-space: nowrap; }
/* a long tag («Лицензия без государственной аккредитации») wraps inside the column instead of widening the page (wave 6b) */
.ru-tags .ru-tag { max-width: 100%; white-space: normal; border-radius: 12px; }
.ru-tag.acc { background: var(--accent-soft); color: var(--accent-dark); }
.ru-tag.ochre { background: #f8edcc; color: #6b4e0b; }
.ru-tag.muted { background: #eef0f3; color: var(--muted); }
.ru-tag.ink { background: var(--ink); color: #fff; }

/* ---------- boxes and panels (not clickable) ---------- */
.ru-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.ru-panel { background: var(--paper); border-radius: var(--r); padding: 28px; }
.ru-panel--accent { background: var(--accent-soft); }
.ru-note { color: var(--muted); font-size: 13px; margin-top: 12px; }
.ru-empty { background: var(--paper); border-radius: var(--r); padding: 28px; }
.ru-empty b { color: var(--ink); }
.ru-empty p + p { margin-top: 8px; }

/* ---------- key/value data list ---------- */
.ru-dl { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 0 32px; margin: 16px 0 0; border-top: 1px solid var(--line); }
.ru-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ru-dl dt { color: var(--muted); font-size: 15px; }
.ru-dl dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; font-size: 15px; }

/* ---------- tables ---------- */
.ru-table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; -webkit-overflow-scrolling: touch; }
.ru-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ru-table th { text-align: left; font: 600 12px/1.3 var(--sans); letter-spacing: .06em; color: var(--muted); background: var(--paper); padding: 12px 16px; white-space: nowrap; }
.ru-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--text); }
.ru-table td.num, .ru-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ru-table tr:hover td { background: #fbfaf7; }
.ru-table a { font-weight: 600; }

/* ---------- link lists: chips cloud and columns ---------- */
.ru-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ru-chips .chip { padding: 7px 14px; font-size: 14px; }
.ru-cols { columns: var(--cols, 3); column-gap: 32px; margin-top: 16px; }
.ru-cols a, .ru-cols li { display: block; break-inside: avoid; padding: 6px 0; font-size: 15px; }
.ru-cols a { color: var(--ink); }
.ru-cols a:hover { color: var(--accent); }
.ru-cols small, .ru-cols i { font-style: normal; color: var(--muted); font-size: 13px; margin-left: 6px; }
.ru-cols ul { list-style: none; margin: 0; padding: 0; }

/* ---------- forms (filters, score form, lead form) ---------- */
.ru-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-top: 28px; }
.ru-form label, .ru-field { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.ru-form label > input, .ru-form label > select, .ru-field input, .ru-field select, .ru-field textarea { display: block; margin-top: 8px; text-transform: none; letter-spacing: 0; }
.ru-input, .ru-form input[type=number], .ru-form input[type=text], .ru-form input[type=search], .ru-form select, .ru-field input, .ru-field select, .ru-field textarea {
  width: 100%; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid #c9ccd4; border-radius: 12px; font: 16px var(--sans); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.ru-field textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.ru-input:focus, .ru-form input:focus, .ru-form select:focus, .ru-field input:focus, .ru-field select:focus, .ru-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ru-form .btn, .ru-btn-submit { height: 48px; border: 0; cursor: pointer; font-family: var(--sans); }
.ru-form .ru-note { flex-basis: 100%; margin-top: 0; }
.btn--ochre { background: var(--lime); color: var(--ink); }
.btn--ochre:hover { background: #e2b94f; color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ---------- anchors row (sections of a card) ---------- */
.ru-anchors { position: sticky; top: 68px; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-top: 32px; }
.ru-anchors .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.ru-anchors .wrap::-webkit-scrollbar { display: none; }
.ru-anchors a { flex: none; padding: 7px 14px; border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.ru-anchors a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.ru-anchors a[aria-current] { background: var(--ink); color: #fff; }

/* ---------- two columns: content + aside ---------- */
.ru-split { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: start; }
/* min-width 0 and a minmax(0, 1fr) column: a nowrap line of the aside (similar universities, ellipsis) must not widen the grid (wave 6b) */
.ru-split > * { min-width: 0; }
.ru-aside { position: sticky; top: 140px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* ---------- prose (SEO texts of the pages, kept 1:1) ---------- */
.ru-prose { max-width: 780px; color: var(--text); font-size: 17px; line-height: 1.65; }
.ru-prose p + p, .ru-prose p + ul, .ru-prose ul + p { margin-top: 14px; }
.ru-prose h2, .ru-prose h3 { margin: 32px 0 12px; }
.ru-prose h2 { font-size: 28px; }
.ru-prose h3 { font-size: 22px; }
.ru-prose ul, .ru-prose ol { padding-left: 22px; margin: 12px 0 0; }
.ru-prose li + li { margin-top: 6px; }
.ru-prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- faq: the motif «ромб-вкладыш» as the question marker ---------- */
.ru-faq.faq summary { padding-left: 34px; }
.ru-faq.faq summary::before { content: ""; position: absolute; left: 0; top: 23px; width: 18px; height: 18px; background: var(--accent); -webkit-mask: url("/images/v3/orn/vkladysh.svg") center / contain no-repeat; mask: url("/images/v3/orn/vkladysh.svg") center / contain no-repeat; opacity: .45; transition: opacity .2s; }
.ru-faq.faq details[open] summary::before, .ru-faq.faq summary:hover::before { opacity: 1; }
.ru-faq.faq details p, .ru-faq.faq details > div { padding-left: 34px; }

/* ---------- map frame: the Leaflet engine of the old pages, v3 colours ---------- */
.ru-map { margin-top: 24px; }
.ru-map .uni-map-wrap > div[data-uni-map], .ru-map [data-ru-map-el] { border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.uni-map-wrap .leaflet-container, .ru-map .leaflet-container { font-family: var(--sans) !important; background: var(--soft); }
.uni-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.uni-filter button { padding: 8px 15px !important; border: 1px solid #c9ccd4 !important; border-radius: 999px !important; background: #fff !important; color: var(--ink) !important; font: 600 14px var(--sans) !important; }
.uni-filter button:hover { border-color: var(--accent) !important; color: var(--accent-dark) !important; }
.uni-filter button.is-active { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }
.uni-filter button span { font-weight: 400; opacity: .7; }
.uni-map-wrap .marker-cluster-small, .uni-map-wrap .marker-cluster-medium, .uni-map-wrap .marker-cluster-large,
.ru-map .marker-cluster-small, .ru-map .marker-cluster-medium, .ru-map .marker-cluster-large { background-color: rgba(10,124,112,.24) !important; }
.uni-map-wrap .marker-cluster div, .ru-map .marker-cluster div { background-color: var(--accent) !important; color: #fff !important; font-family: var(--sans) !important; }
.uni-map-wrap .marker-cluster-large div, .ru-map .marker-cluster-large div { background-color: var(--accent-dark) !important; }
.uni-pin-head span { background: var(--accent) !important; border-color: #fff !important; font-family: var(--sans) !important; }
.uni-pin-branch span { background: #fff !important; color: var(--accent-dark) !important; border-color: var(--accent) !important; font-family: var(--sans) !important; }
.uni-pop-name { font-family: var(--sans); color: var(--ink) !important; }
.uni-pop-kind.h { background: var(--accent) !important; }
.uni-pop-kind.b { background: var(--accent-soft) !important; color: var(--accent-dark) !important; border-color: transparent !important; }
.uni-pop a.uni-pop-link { color: var(--accent) !important; }
.uni-legend { font-family: var(--sans) !important; }
.uni-legend i.h { background: var(--accent) !important; }
.uni-legend i.b { background: #fff !important; color: var(--accent-dark) !important; border-color: var(--accent) !important; }
.uni-legend i.c { background: var(--accent) !important; box-shadow: 0 0 0 3px rgba(10,124,112,.3) !important; }
.leaflet-popup-content-wrapper { border-radius: 12px !important; }
.leaflet-popup-content a { color: var(--accent); }

/* Tailwind utilities still used inside the reused partials (map engines) */
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .gap-2 { gap: .5rem; } .mb-3 { margin-bottom: .75rem; }
.w-full { width: 100%; } .overflow-hidden { overflow: hidden; } .rounded-2xl { border-radius: var(--r); } .border { border: 1px solid var(--line); }
.border-warmgray-200 { border-color: var(--line); } .opacity-75 { opacity: .75; } .hidden { display: none; }

/* ---------- motion: marks in a clickable card corner come to full colour on hover ---------- */
.orn-corner { position: absolute; top: 18px; right: 18px; height: 28px; opacity: .35; transition: opacity .25s, transform .35s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
a:hover > .orn-corner, a:focus-visible > .orn-corner { opacity: 1; transform: scale(1.08); }

@media (max-width: 1000px) {
  .ru-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ru-aside { position: static; }
  .ru-head-grid { grid-template-columns: 1fr; gap: 28px; }
  .ru-cards { --cols: 1 !important; }
  .ru-cols { --cols: 2 !important; }
}
@media (max-width: 760px) {
  .ru-main { padding-bottom: 64px; }
  .ru-head h1 { font-size: clamp(28px, 8vw, 36px); margin-top: 16px; }
  .ru-head .v3-crumbs { padding-top: 16px; font-size: 13px; }
  .ru-kaima { margin-top: 18px; max-width: 240px; }
  .ru-sec { padding-top: 52px; }
  .ru-band { margin-top: 52px; padding: 44px 0; }
  .ru-facts { --n: 2 !important; }
  .ru-card { padding: 14px; gap: 12px; }
  .ru-logo { width: 44px; height: 44px; border-radius: 10px; }
  .ru-dl { --cols: 1 !important; }
  .ru-cols { --cols: 1 !important; }
  .ru-form { padding: 16px; }
  .ru-form > label, .ru-form > .ru-field, .ru-form .btn { flex: 1 1 100%; }
  .ru-panel, .ru-box, .ru-empty { padding: 20px; }
  .ru-table { font-size: 14px; }
  .ru-table th, .ru-table td { padding: 10px 12px; }
  .ru-anchors { top: 60px; }
  .ru-prose { font-size: 16px; }
  .orn-corner { height: 22px; top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  a.ru-card:hover { transform: none; }
  .orn-corner { transition: none; }
}
