.header-search {
  box-sizing: border-box;
  width: min(640px, 100% - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  border: 1px solid var(--control-border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font: 17px/1.55 var(--font-sans, "Segoe UI", sans-serif);
  overflow-y: auto;
}
.header-search::backdrop {
  background: rgba(8, 23, 50, 0.6);
}
.header-search__heading {
  display: flex;
  align-items: start;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.header-search__heading h2 {
  color: var(--link);
  font-size: 26px;
  line-height: 1.3;
  margin: 0;
}
.header-search__close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--control-border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}
.header-search__close .icon {
  width: 20px;
  height: 20px;
}
.header-search__close:hover, .header-search__close:active {
  background: var(--surface);
}
.header-search__close:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}
.header-search form {
  display: grid;
  gap: 12px;
}
.header-search label {
  font-weight: 600;
}
.header-search__query {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.header-search input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--control-border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
}
.header-search input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
.header-search input:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}
.header-search > p {
  margin: 20px 0 16px;
  color: var(--text-muted);
}
.header-search > a {
  max-width: 100%;
}

@media (max-width: 480px) {
  .header-search {
    padding: 20px;
  }
  .header-search__query {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Shared public chrome, taken from the approved homepage. */
body.site-shell .skip-link {
  background: var(--accent-surface);
  color: var(--accent-on-surface);
}

body.site-shell .eyebrow {
  color: var(--text-secondary);
}

body.site-shell .service-catalogue__link {
  color: var(--link);
}

body .site-header {
  position: relative;
  background: var(--surface);
  backdrop-filter: none;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

body .site-header__inner {
  display: flex;
  min-height: 124px;
  gap: 18px;
}

body .brand {
  min-width: 0;
  width: 440px;
  flex: 0 0 auto;
  gap: 18px;
  margin-right: 0;
}

body .brand__logo {
  width: 102px;
  height: 102px;
}

body img.brand__logo {
  object-fit: contain;
}

body.site-shell .brand__motto.brand__motto--custom {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
}

body .brand__copy {
  min-width: 0;
  color: var(--brand-navy);
  line-height: 1.15;
}

body.site-shell .brand:is(:hover, :focus-visible) :is(.brand__copy, .brand__motto) {
  color: var(--link-hover);
}

body .brand__prefix {
  display: block;
  font-size: 14px;
  font-weight: 400;
}

body .brand__name {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.22;
}

body .brand__motto {
  display: block;
  margin-top: 14px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.6px;
  color: var(--link);
  white-space: nowrap;
}

body .primary-nav {
  margin-left: auto;
  min-width: 0;
  flex: 0 1 auto;
}

body .primary-nav > ul {
  gap: 10px;
  justify-content: flex-end;
}

body .primary-nav a {
  font-weight: 400;
  letter-spacing: normal;
  padding: 0.85rem 0;
  color: var(--brand-navy);
}

body .site-header__actions {
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

body .site-header__actions :is(.icon-button, .theme-switch) {
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--surface-base);
  color: var(--brand-navy);
}

body .site-header__actions :is(.icon-button, .theme-switch) > .icon {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body .site-header__actions .theme-switch {
  display: inline-grid;
}

body.site-shell :is(.breadcrumb, .global-breadcrumbs) {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  container: breadcrumbtrail/inline-size;
  margin-block: 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--link) var(--surface-soft);
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
  inline-size: max-content;
  max-inline-size: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--1 {
  --breadcrumb-count: 1;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--2 {
  --breadcrumb-count: 2;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--3 {
  --breadcrumb-count: 3;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--4 {
  --breadcrumb-count: 4;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--5 {
  --breadcrumb-count: 5;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--6 {
  --breadcrumb-count: 6;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--7 {
  --breadcrumb-count: 7;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--8 {
  --breadcrumb-count: 8;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--9 {
  --breadcrumb-count: 9;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--10 {
  --breadcrumb-count: 10;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--11 {
  --breadcrumb-count: 11;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--12 {
  --breadcrumb-count: 12;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--13 {
  --breadcrumb-count: 13;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--14 {
  --breadcrumb-count: 14;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--15 {
  --breadcrumb-count: 15;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__list--16 {
  --breadcrumb-count: 16;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__item {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  min-inline-size: 0;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__step {
  min-inline-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  inline-size: max-content;
  min-inline-size: 128px;
  block-size: 36px;
  min-block-size: 36px;
  max-block-size: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--link);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: normal;
  text-decoration: none;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) a.breadcrumb__step:hover {
  background: var(--surface-raised);
  border-color: var(--link);
  text-decoration: none;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) a.breadcrumb__step:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: -3px;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__step[aria-current=page] {
  background: var(--button-primary-surface);
  border-color: var(--button-primary-border);
  color: var(--button-primary-ink);
  font-weight: 600;
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__separator {
  position: absolute;
  inset-inline-end: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--link);
}
body.site-shell :is(.breadcrumb, .global-breadcrumbs) .breadcrumb__separator .icon {
  inline-size: 16px;
  block-size: 16px;
  margin: 0;
  padding: 0;
  color: inherit;
}

body.site-shell .breadcrumb.global-breadcrumbs {
  inline-size: min(100% - 68px, var(--container));
  margin-inline: auto;
  margin-block: 20px 16px;
}

@media (max-width: 767px) {
  body.site-shell .breadcrumb.global-breadcrumbs {
    inline-size: calc(100% - 32px);
  }
}
body.site-shell .icon.icon--file-pdf,
body.site-shell .document-card > .icon.icon--file-pdf {
  color: var(--brand-red);
}

[data-theme=dark] body.site-shell .icon.icon--file-pdf:not(.icon--pdf-refined) {
  background: #fff;
  border-radius: 4px;
  padding: 2px;
}

body.site-shell :is(input, textarea)::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

body.site-shell .filter-chips a.is-active {
  background: var(--button-primary-surface);
  border-color: var(--button-primary-border);
  color: var(--button-primary-ink);
}

body.site-shell .filter-chips a.is-active:hover {
  background: var(--button-primary-hover);
  border-color: var(--button-primary-border);
}

body.site-shell .faq-page .portal-search {
  border-color: var(--control-border);
}
body.site-shell .faq-page .portal-search:focus-within {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}
body.site-shell .faq-page .portal-section-heading span {
  color: var(--text-muted);
}
body.site-shell .faq-page .faq-item summary {
  color: var(--faq-heading, var(--link));
}
body.site-shell .faq-page .support-card__icon, body.site-shell .faq-page .support-points .icon, body.site-shell .faq-page .popular-faq a > span {
  background: var(--surface-soft);
  color: var(--icon-color);
}
body.site-shell .faq-page .support-card__icon .icon, body.site-shell .faq-page .popular-faq a > span .icon {
  color: inherit;
}

body .button--account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
}

body .button--account .icon {
  width: 23px;
  height: 23px;
}

@media (min-width: 1280px) {
  body .primary-nav {
    display: block;
  }
  body .menu-toggle {
    display: none;
  }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  body .brand {
    width: 385px;
    gap: 12px;
  }
  body .brand__logo {
    width: 88px;
    height: 88px;
  }
  body .brand__name {
    font-size: 12px;
  }
  body .brand__prefix {
    font-size: 12px;
  }
  body .brand__motto {
    font-size: 8px;
    letter-spacing: 1px;
  }
  body .site-header__inner {
    gap: 12px;
  }
  body .primary-nav > ul {
    gap: 8px;
  }
}
@media (max-width: 1279px) {
  body .brand {
    width: auto;
    margin-right: auto;
  }
  body .site-header__inner {
    min-height: 106px;
    gap: 12px;
  }
  body .brand__logo {
    width: 88px;
    height: 88px;
  }
  body .primary-nav {
    display: none;
  }
  body .menu-toggle {
    display: grid;
  }
}
@media (max-width: 767px) {
  body .site-header__inner {
    min-height: 84px;
    gap: 10px;
  }
  body .brand {
    gap: 10px;
    flex: 1 1 auto;
    width: auto;
  }
  body .brand__logo {
    width: 62px;
    height: 62px;
  }
  body .brand__prefix {
    display: none;
  }
  body .brand__name {
    display: block;
    font-size: 10px;
    line-height: 1.2;
    max-width: 130px;
  }
  body .brand__name br {
    display: none;
  }
  body .brand__motto {
    display: none;
  }
  body .site-header__actions {
    gap: 4px;
    flex: 0 0 auto;
  }
  body .site-header__actions .icon {
    width: 18px;
    height: 18px;
  }
}
body .site-footer {
  min-height: 152px;
  background: linear-gradient(110deg, #164a7d, #17487a);
  color: white;
}

body .site-footer__bottom {
  min-height: 152px;
  grid-template-columns: 28% minmax(0, 1fr) auto;
  gap: 18px;
  font-size: 12px;
}

body .site-footer__bottom p {
  color: #d3e9ff;
  font-weight: 400;
}

body .site-footer__bottom nav {
  justify-content: space-between;
  gap: 0;
}

body .site-footer__bottom nav a {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 400;
}

body .site-footer__mark {
  gap: 14px;
  padding-left: 20px;
}

body .site-footer__mark img {
  width: 102px;
  opacity: 0.9;
}

body .site-footer__mark strong {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

body .social-link span:first-child {
  width: 42px;
  height: 42px;
  background: #3485d7;
  font-size: 18px;
}

@media (max-width: 1279px) {
  body .site-footer__bottom {
    grid-template-columns: 1fr auto;
    padding-block: 20px;
  }
  body .site-footer__bottom nav {
    grid-column: 1/-1;
    grid-row: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 767px) {
  body .site-footer__bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-block: 24px;
  }
  body .site-footer__bottom nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  body .site-footer__bottom nav a {
    padding: 0;
    border: 0;
    font-size: 12px;
    line-height: 1.4;
  }
  body .site-footer__bottom p {
    font-size: 12px;
    margin: 0;
  }
  body .site-footer__mark {
    padding: 0;
    border: 0;
  }
  body .site-footer__mark img {
    display: block;
    width: 100px;
  }
}
[data-theme=dark] body .brand__copy,
[data-theme=dark] body .brand__name,
[data-theme=dark] body .primary-nav a {
  color: var(--text);
}

[data-theme=dark] body .brand__motto {
  color: var(--link);
}

[data-theme=dark] body .site-footer {
  background: linear-gradient(110deg, #111e36, #172c4c);
}

body .social-link__label {
  white-space: nowrap;
  font-size: 12px;
}

.site-shell .nav-item.is-dismissed > .submenu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.site-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: var(--shell-height, 100dvh);
  min-height: 0;
}
.site-shell > .site-header {
  height: 96px;
  min-height: 0;
  z-index: 30;
  overflow: visible;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
.site-shell > #main-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior-y: contain;
  scroll-padding-block: 20px;
}
.site-shell > .site-footer {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  min-height: 0;
  z-index: 20;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.site-shell #main-content :target {
  scroll-margin-block: 20px;
}
.site-shell.menu-open > #main-content {
  overflow: clip;
}
.site-shell > .site-header .site-header__inner {
  height: 100%;
  min-height: 0;
  gap: 12px;
  width: min(100% - 68px, var(--container));
}
.site-shell .brand {
  width: 400px;
  gap: 14px;
}
.site-shell .brand__copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.site-shell .brand__logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.site-shell .brand__prefix, .site-shell .brand__name {
  font-size: 13px;
  line-height: 1.25;
}
.site-shell .brand__motto {
  margin-top: 7px;
  font-size: 8px;
  letter-spacing: 1px;
}
.site-shell .site-footer__bottom {
  min-height: 76px;
  padding-block: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 12px;
}
.site-shell .site-footer__bottom p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}
.site-shell .site-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  grid-column: auto;
  grid-row: auto;
  justify-content: center;
  gap: 4px 12px;
}
.site-shell .site-footer__bottom nav a {
  padding: 4px 0;
  font-size: 11px;
  line-height: 1.4;
  border: 0;
}
.site-shell .site-footer__mark {
  padding-left: 0;
  gap: 10px;
}
.site-shell .site-footer__mark strong {
  font-size: 10px;
}
.site-shell .site-footer__mark img {
  width: 80px;
  height: auto;
}
.site-shell .social-link span:first-child {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.site-shell .site-footer__summary {
  display: none;
}
.site-shell .site-footer__disclosure:not([open]) > .site-footer__bottom {
  display: grid;
}

@media (min-width: 1280px) and (max-width: 1399px) {
  .site-shell .brand {
    width: 350px;
    gap: 10px;
  }
  .site-shell .brand__name {
    font-size: 12px;
  }
}
@media (max-width: 1279px) {
  .site-shell .brand {
    width: auto;
    margin-right: auto;
  }
  .site-shell > .site-header .site-header__inner {
    width: calc(100% - 40px);
  }
}
@media (max-width: 1023px) {
  .site-shell .site-footer__summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-size: 12px;
    list-style: none;
  }
  .site-shell .site-footer__summary::-webkit-details-marker {
    display: none;
  }
  .site-shell .site-footer__disclosure:not([open]) > .site-footer__bottom {
    display: none;
  }
  .site-shell .site-footer__bottom {
    grid-template-columns: minmax(0, 1fr);
    max-height: min(40dvh, 320px);
    overflow: auto;
    gap: 16px;
    padding-block: 16px;
  }
  .site-shell .site-footer__bottom nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
    gap: 12px;
  }
  .site-shell .site-footer__bottom nav a {
    font-size: 13px;
  }
  .site-shell .site-footer__bottom p {
    font-size: 12px;
  }
}
@media (max-width: 767px) {
  .site-shell > .site-header {
    height: 84px;
  }
  .site-shell > .site-header .site-header__inner {
    height: 100%;
    min-height: 0;
    width: calc(100% - 32px);
  }
  .site-shell .brand {
    min-width: 0;
    gap: 8px;
  }
  .site-shell .brand__logo {
    width: 62px;
    height: 62px;
  }
  .site-shell .brand__name {
    font-size: 12px;
    white-space: normal;
    overflow: visible;
  }
  .site-shell .brand__name br {
    display: initial;
  }
  .site-shell .brand__prefix, .site-shell .brand__motto {
    display: none;
  }
}
.site-shell :is(.page-hero, .inner-hero, .prototype-page__hero) {
  --hero-surface:var(--surface);
  position: relative;
  isolation: isolate;
  overflow: clip;
  width: min(100% - 68px, var(--container));
  margin: 16px auto 28px !important;
  padding: 32px;
  border: 0;
  border-radius: 16px;
  background: var(--hero-surface);
  min-height: 0;
}
.site-shell :is(.page-hero, .inner-hero, .prototype-page__hero) h1 {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.site-shell :is(.page-hero--image, .inner-hero, .prototype-page__hero--illustrated) {
  border: 0;
  min-height: 320px;
  background: var(--hero-surface);
}
.site-shell :is(.page-hero--image, .inner-hero, .prototype-page__hero--illustrated)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--page-hero-image, var(--portal-season-image, url("../images/home/hero-moscow-energy-v2.png"))) center/cover no-repeat;
}
.site-shell :is(.page-hero--image, .inner-hero, .prototype-page__hero--illustrated)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--hero-surface) 0 36%, color-mix(in srgb, var(--hero-surface) 90%, transparent) 48%, transparent 85%), linear-gradient(0deg, var(--hero-surface), transparent 30%), linear-gradient(180deg, color-mix(in srgb, var(--hero-surface) 70%, transparent), transparent 25%);
}

.site-shell .page-hero--image::before {
  display: none;
}

.site-shell .page-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.site-shell .prototype-page__hero--join {
  --page-hero-image:url('../images/home/join-union-v2.png');
}

.site-shell .page-hero__inner {
  width: 100%;
  padding: 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.site-shell .page-hero__content {
  max-width: 100%;
}

.site-shell .page-hero__aside {
  align-self: start;
  padding-top: 20px;
}

.site-shell .prototype-page__hero--illustrated {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-content: center;
}

.site-shell .prototype-page__hero--illustrated > :is(h1, p, .breadcrumb) {
  grid-column: 1;
  max-width: 100%;
}

.site-shell .inner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
}

.site-shell .inner-hero__content {
  width: 100%;
  min-height: 0;
  padding: 0;
}

.site-shell .inner-hero__art {
  position: static;
  transform: none;
  max-width: 100%;
  font-size: 28px;
}

@media (max-width: 767px) {
  .site-shell :is(.page-hero, .inner-hero, .prototype-page__hero) {
    width: calc(100% - 32px);
    padding: 24px 20px;
    border-radius: 12px;
  }
  .site-shell :is(.page-hero--image, .inner-hero, .prototype-page__hero--illustrated) {
    min-height: 460px;
    padding-bottom: 220px;
    display: block;
  }
  .site-shell :is(.page-hero--image, .inner-hero, .prototype-page__hero--illustrated)::after {
    background: linear-gradient(180deg, var(--hero-surface) 0 42%, color-mix(in srgb, var(--hero-surface) 94%, transparent) 55%, transparent 85%), linear-gradient(0deg, var(--hero-surface), transparent 25%);
  }
  .site-shell :is(.page-hero--image, .inner-hero, .prototype-page__hero--illustrated)::before {
    background-position: 65% bottom;
  }
  .site-shell .page-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-shell :is(.page-hero__aside, .inner-hero__art) {
    display: none;
  }
  .site-shell .page-hero__image {
    object-position: 65% bottom;
  }
}
@media (max-width: 768px) {
  html:has(body.site-shell) {
    scroll-padding-top: 116px;
  }
  html:has(body.site-shell.menu-open) {
    overflow: hidden;
  }
  body.site-shell {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
  }
  body.site-shell > .site-header {
    position: sticky;
    top: 0;
    flex-shrink: 0;
  }
  body.site-shell > #main-content {
    flex: 1 0 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    overscroll-behavior: auto;
    scroll-padding: 0;
  }
  body.site-shell.menu-open > #main-content {
    overflow: visible;
  }
  body.site-shell #main-content :target {
    scroll-margin-top: 20px;
  }
  body.site-shell > .site-footer {
    position: static;
    flex-shrink: 0;
  }
  body.site-shell .site-footer__summary {
    display: none;
  }
  body.site-shell .site-footer__bottom {
    max-height: none;
    overflow: visible;
    padding-block: 24px;
  }
  body.site-shell .site-footer__bottom nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 6px;
  }
  body.site-shell .search-page {
    margin-bottom: 24px;
  }
  body.site-shell .search-page > form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    margin-block: 16px;
  }
  body.site-shell .search-page > form label {
    min-width: 0;
    gap: 6px;
    font-size: 14px;
    line-height: 1.4;
  }
  body.site-shell .search-page > form label:first-child {
    grid-column: 1/-1;
  }
  body.site-shell .search-page > form input, body.site-shell .search-page > form select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 16px;
  }
  body.site-shell .search-page > form button {
    grid-column: 1/-1;
    min-height: 44px;
    padding: 8px 12px;
  }
}
@media (min-width: 600px) and (max-width: 768px) {
  body.site-shell .search-page > form {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
  }
  body.site-shell .search-page > form label:first-child, body.site-shell .search-page > form button {
    grid-column: auto;
  }
}
.site-shell .form-field:has(input[type=hidden]) {
  display: none;
}

.site-shell .form-field:has(input[type=checkbox]) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
}
.site-shell .form-field:has(input[type=checkbox]) input[type=checkbox] {
  order: -1;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
}
.site-shell .form-field:has(input[type=checkbox]) .form-field__error {
  flex-basis: 100%;
  margin-left: 30px;
}

.site-shell > .site-footer {
  background: #17274c;
}
.site-shell .editorial-thumbnail {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
}
.site-shell .prototype-card {
  min-width: 0;
  overflow-wrap: anywhere;
}
.site-shell .prototype-card > a:has(.editorial-thumbnail) {
  display: block;
  overflow: clip;
  border-radius: 10px;
}
.site-shell .article-content {
  max-width: 960px;
  padding-bottom: 40px;
}
.site-shell .article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.site-shell .article-meta {
  font-size: 15px;
  color: var(--text-muted);
}
.site-shell .article-intro {
  font-size: 20px;
  line-height: 1.6;
}
.site-shell .brand__logo {
  object-fit: contain;
}
.site-shell .icon {
  stroke-width: 2;
}

[data-theme=dark] .site-shell > .site-footer {
  background: #0c172b;
}

body.site-shell .search-page {
  padding-block: 0 40px;
  font-family: "Segoe UI", Arial, sans-serif;
}
body.site-shell .search-page .search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
body.site-shell .search-page .search-content {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}
body.site-shell .search-page .search-heading h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 12px;
}
body.site-shell .search-page .search-heading > p:last-child {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 680px;
}
body.site-shell .search-page .search-form {
  display: contents;
}
body.site-shell .search-page .search-query-panel {
  grid-column: 1/-1;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}
body.site-shell .search-page .search-query-panel > label {
  display: block;
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 8px;
}
body.site-shell .search-page .search-filter-disclosure {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}
body.site-shell .search-page .search-apply {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
}
body.site-shell .search-page .search-query {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
body.site-shell .search-page .search-input {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-inline: 16px 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
body.site-shell .search-page .search-input:focus-within {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
body.site-shell .search-page .search-input > .icon {
  flex-shrink: 0;
  color: var(--link);
}
body.site-shell .search-page .search-input input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 12px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  outline: none;
}
body.site-shell .search-page .search-input input::-webkit-search-cancel-button {
  display: none;
}
body.site-shell .search-page .search-query .button {
  grid-column: auto;
}
body.site-shell .search-page .search-form .search-clear {
  grid-column: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  --button-current-ink: var(--button-secondary-ink);
  --icon-color: var(--button-current-ink);
  --icon-hover: var(--button-current-ink);
  --icon-active: var(--button-current-ink);
  --icon-disabled: var(--button-disabled-ink);
  color: var(--button-secondary-ink);
  background: var(--button-secondary-surface);
  border-color: var(--button-secondary-border);
  box-shadow: var(--button-shadow);
  text-decoration: none;
  transform: none;
  cursor: pointer;
  transition: box-shadow 140ms ease;
}
body.site-shell .search-page .search-form .search-clear:hover:not(:disabled):not([aria-disabled=true]) {
  background: var(--button-secondary-hover);
  color: var(--button-secondary-ink);
  border-color: var(--button-secondary-border);
  box-shadow: var(--button-shadow-hover);
  text-decoration: none;
  transform: none;
}
body.site-shell .search-page .search-form .search-clear:active:not(:disabled):not([aria-disabled=true]) {
  background: var(--button-secondary-active);
  color: var(--button-secondary-ink);
  border-color: var(--button-secondary-border);
  box-shadow: inset 0 1px 2px rgba(18, 44, 84, 0.1607843137);
  transform: none;
}
body.site-shell .search-page .search-form .search-clear:focus-visible {
  color: var(--button-secondary-ink);
  border-color: var(--button-secondary-border);
  outline: 3px solid var(--button-focus);
  outline-offset: 3px;
}
body.site-shell .search-page .search-form .search-clear:is([aria-busy=true], .is-loading) {
  cursor: progress;
}
body.site-shell .search-page .search-form .search-clear :is(.icon, .mp-icon):not(.icon--file-pdf) {
  color: var(--button-current-ink);
}
body.site-shell .search-page .search-form .search-clear:is(:disabled, [aria-disabled=true]) {
  --button-current-ink: var(--button-disabled-ink);
  color: var(--button-disabled-ink);
  background: var(--button-disabled-surface);
  border-color: var(--button-disabled-border);
  border-style: dashed;
  opacity: 1;
  box-shadow: none;
  cursor: not-allowed;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  body.site-shell .search-page .search-form .search-clear {
    transition: none;
  }
}
body.site-shell .search-page .search-clear[hidden] {
  display: none;
}
body.site-shell .search-page .search-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 16px 0 0;
  margin: 0;
  border: 0;
}
body.site-shell .search-page .search-filters legend {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 8px 0 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--text-muted);
}
body.site-shell .search-page .search-filter-disclosure > summary {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  color: var(--link);
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
body.site-shell .search-page .search-filter-disclosure > summary::-webkit-details-marker {
  display: none;
}
body.site-shell .search-page .search-filter-disclosure > summary > .icon:last-child {
  margin-left: auto;
  transition: transform var(--motion-standard) var(--motion-ease);
}
body.site-shell .search-page .search-filter-disclosure[open] > summary > .icon:last-child {
  transform: rotate(180deg);
}
body.site-shell .search-page .search-filters label {
  display: grid;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
}
body.site-shell .search-page .search-filters label:first-of-type {
  grid-column: auto;
}
body.site-shell .search-page .search-filters label:last-child {
  grid-column: auto;
}
body.site-shell .search-page .search-filters input, body.site-shell .search-page .search-filters select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
body.site-shell .search-page .search-hint {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
body.site-shell .search-page .search-result-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block: 0 16px;
}
body.site-shell .search-page .search-result-heading h2 {
  font-size: 24px;
  margin: 0;
}
body.site-shell .search-page .search-result-heading p {
  margin: 0;
  color: var(--text-muted);
}
body.site-shell .search-page .search-results {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}
body.site-shell .search-page .search-results > .search-result {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
}
body.site-shell .search-page .search-result__visual {
  display: grid;
  place-items: center;
  align-self: start;
  aspect-ratio: 4/3;
  overflow: clip;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--link);
}
body.site-shell .search-page .search-result__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.site-shell .search-page .search-result__visual .icon {
  width: 40px;
  height: 40px;
}
body.site-shell .search-page .search-result__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  justify-items: start;
  min-width: 0;
  overflow-wrap: break-word;
}
body.site-shell .search-page .search-result__content > * {
  min-width: 0;
  max-width: 100%;
}
body.site-shell .search-page .search-result__content > .action-link {
  margin-top: 4px;
}
body.site-shell .search-page .search-result__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}
body.site-shell .search-page .search-result h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}
body.site-shell .search-page .search-result p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}
body.site-shell .search-page mark {
  background: #c7dbf2;
  color: #1d2c59;
  padding-inline: 2px;
  border-radius: 2px;
}
body.site-shell .search-page .search-state {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
}
body.site-shell .search-page .search-state > .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--link);
}
body.site-shell .search-page .search-state h2 {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 12px;
}
body.site-shell .search-page .search-state p {
  color: var(--text-muted);
  max-width: 640px;
}
body.site-shell .search-page .search-state--error {
  border-color: var(--danger);
}
body.site-shell .search-page .search-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
body.site-shell .search-page .search-state__actions .button {
  min-height: 48px;
  text-align: center;
}
body.site-shell .search-page .search-shortcuts, body.site-shell .search-page .search-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
body.site-shell .search-page .search-shortcuts a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
body.site-shell .search-page .search-pagination {
  justify-content: center;
  margin-block: 24px;
}

.site-shell .page-hero--search {
  min-height: 210px;
  padding: 28px 32px;
  font-family: "Segoe UI", Arial, sans-serif;
}
.site-shell .page-hero--search .page-hero__inner {
  display: grid;
  gap: 24px;
  align-items: center;
}
.site-shell .page-hero--search .page-hero__aside {
  justify-self: end;
  padding: 0;
  max-width: 300px;
}
.site-shell .page-hero--search .page-hero__phrase {
  font-size: 22px;
}
.site-shell .page-hero--search h1 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.15;
  margin-bottom: 12px;
}
.site-shell .page-hero--search .page-hero__intro {
  max-width: 540px;
  font-size: 17px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .site-shell .page-hero--search {
    min-height: 0;
    padding: 24px 20px;
    margin-bottom: 20px !important;
  }
  .site-shell .page-hero--search::after {
    background: linear-gradient(90deg, var(--hero-surface) 0 25%, color-mix(in srgb, var(--hero-surface) 94%, transparent) 65%, color-mix(in srgb, var(--hero-surface) 75%, transparent));
  }
  body.site-shell .search-page {
    padding-block: 0 24px;
  }
  body.site-shell .search-page .search-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  body.site-shell .search-page .search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    min-width: 0;
  }
  body.site-shell .search-page .search-form > :is(.search-query-panel, .search-filter-disclosure) {
    grid-column: auto;
    grid-row: auto;
  }
  body.site-shell .search-page .search-content {
    grid-column: auto;
    grid-row: auto;
  }
  body.site-shell .search-page .search-query-panel {
    padding: 16px;
    border-radius: 12px;
  }
  body.site-shell .search-page .search-filter-disclosure {
    padding: 0 16px 16px;
    border-radius: 12px;
  }
  body.site-shell .search-page .search-query {
    gap: 8px;
  }
  body.site-shell .search-page .search-input {
    padding-left: 10px;
    gap: 8px;
  }
  body.site-shell .search-page .search-input input {
    min-height: 48px;
    font-size: 16px;
  }
  body.site-shell .search-page .search-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body.site-shell .search-page .search-filter-disclosure > summary {
    display: flex;
  }
  body.site-shell .search-page .search-filters legend {
    display: none;
  }
  body.site-shell .search-page .search-filters {
    margin-top: 0;
  }
  body.site-shell .search-page .search-results > .search-result {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  body.site-shell .search-page .search-result__visual {
    aspect-ratio: 1;
  }
  body.site-shell .search-page .search-result__visual .icon {
    width: 32px;
    height: 32px;
  }
  body.site-shell .search-page .search-result h2 {
    font-size: 19px;
  }
  body.site-shell .search-page .search-state {
    padding: 20px;
  }
  body.site-shell .search-page .search-state__actions .button {
    width: 100%;
  }
}
@media (max-width: 600px) {
  body.site-shell .search-page .search-results > .search-result {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  body.site-shell .search-page .search-result__visual {
    width: 72px;
  }
}
html {
  scrollbar-gutter: stable;
}

.site-shell > .site-header .brand__logo {
  view-transition-name: site-brand-logo;
}

@view-transition {
  navigation: none;
}
::view-transition-old(root), ::view-transition-new(root),
::view-transition-old(site-brand-logo), ::view-transition-new(site-brand-logo) {
  animation: none;
  mix-blend-mode: normal;
}

:root {
  --motion-fast: 120ms;
  --motion-standard: 180ms;
  --motion-ease: cubic-bezier(.2, 0, .2, 1);
}

body.site-shell {
  --action-disabled-fill: var(--button-disabled-surface);
  --action-disabled-text: var(--button-disabled-ink);
}
body.site-shell :is(button, .button, input[type=submit], input[type=button]):is(:disabled, [aria-disabled=true]) {
  opacity: 1;
  color: var(--action-disabled-text);
  background: var(--action-disabled-fill);
  border-color: var(--action-disabled-text);
  cursor: not-allowed;
  transition: none;
}
body.site-shell :is(.button, .icon-button, .theme-switch, .login-password__toggle) {
  transition: background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease);
}
body.site-shell .button:is(:hover, :active) {
  transform: none;
}
body.site-shell :is(input:not([type=checkbox]):not([type=radio]), textarea, select, .login-password, .search-input) {
  transition: border-color var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease);
}
body.site-shell :is(.primary-nav, .mobile-nav, .portal-footer) a:not(.portal-social-link) {
  transition: color var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease);
}
body.site-shell :is(.quick-link, .service-grid > a, .organization-card, .service-catalogue__card, .search-result) {
  transition: border-color var(--motion-standard) var(--motion-ease), background-color var(--motion-standard) var(--motion-ease);
}
body.site-shell :is([data-submenu-toggle], .service-faq summary) .icon {
  transition: transform var(--motion-standard) var(--motion-ease);
}
body.site-shell [data-submenu-toggle][aria-expanded=true] > .icon {
  transform: rotate(180deg);
}
body.site-shell .submenu {
  transition: opacity var(--motion-standard) var(--motion-ease), transform var(--motion-standard) var(--motion-ease), visibility 0s;
}
body.site-shell .mobile-drawer:not([hidden]) .mobile-drawer__panel {
  animation: portal-menu-enter var(--motion-standard) var(--motion-ease);
}

@keyframes portal-menu-enter {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms;
    --motion-standard: 0ms;
  }
  body.site-shell .mobile-drawer:not([hidden]) .mobile-drawer__panel {
    animation: none;
  }
  body.site-shell, body.site-shell *, body.site-shell *::before, body.site-shell *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
body.site-shell {
  --feedback-info: var(--link);
  --feedback-error: #a42332;
  --feedback-success: #17633f;
  --feedback-warning: #79520e;
  --feedback-surface: var(--surface-soft);
}
body.site-shell .portal-messages {
  padding-block: 16px 0;
}
body.site-shell .notice[data-message] {
  --feedback-tone: var(--feedback-info);
  display: block;
  min-width: 0;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--feedback-tone);
  border-radius: 10px;
  background: var(--feedback-surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  box-shadow: none;
}
body.site-shell .notice[data-message] p {
  margin: 0;
}
body.site-shell .notice[data-message] p + p {
  margin-top: 4px;
}
body.site-shell .notice[data-message] .notice__label {
  display: block;
  color: var(--feedback-tone);
  margin-bottom: 4px;
}
body.site-shell .notice[data-message].notice--error {
  --feedback-tone: var(--feedback-error);
}
body.site-shell .notice[data-message].notice--success {
  --feedback-tone: var(--feedback-success);
}
body.site-shell .notice[data-message].notice--warning {
  --feedback-tone: var(--feedback-warning);
}
body.site-shell :is(.form-field__error, .login-field-errors, .login-errors) {
  color: var(--feedback-error);
  font-size: 14px;
  line-height: 1.5;
}
body.site-shell .form-field__error p {
  margin: 0;
}
body.site-shell .form-field__error > span {
  display: block;
}
body.site-shell [aria-invalid=true] {
  border-color: var(--feedback-error);
}

[data-theme=dark] body.site-shell {
  --feedback-error: #ffb4bf;
  --feedback-success: #91dbb2;
  --feedback-warning: #f0ca80;
}

body.site-shell > .portal-footer {
  --footer-surface: var(--footer-bg, #17274c);
  --footer-link: #e2e8f0;
  --footer-muted: #a6b3c6;
  --footer-rule: rgb(255 255 255 / 10%);
  --footer-home-surface: #f4f8ff;
  --footer-home-ink: #12336a;
  --footer-home-hover: #dce9ff;
  --footer-home-active: #c5d9f8;
  position: relative;
  inset: auto;
  height: auto;
  min-height: 0;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  margin: 0;
  background: var(--footer-surface);
  color: var(--footer-link);
  border: 0;
  border-top: 1px solid var(--footer-rule);
  box-shadow: none;
  overflow: visible;
}
body.site-shell > .portal-footer .portal-footer__inner {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
  position: relative;
}
body.site-shell > .portal-footer .portal-footer__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0 16px;
  min-height: 52px;
  padding-block: 2px;
}
body.site-shell > .portal-footer .portal-footer__copyright {
  margin: 0;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body.site-shell > .portal-footer .portal-footer__federations {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
body.site-shell > .portal-footer .portal-footer__federation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  padding: 4px;
  border-radius: 8px;
  flex: none;
}
body.site-shell > .portal-footer .portal-footer__federation-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 1px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: #17233f;
}
body.site-shell > .portal-footer .portal-footer__federation-logo img {
  display: block;
  max-width: 100%;
  height: 36px;
  object-fit: contain;
}
body.site-shell > .portal-footer .portal-footer__federation:hover {
  background: rgba(255, 255, 255, 0.1);
}
body.site-shell > .portal-footer .portal-footer__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
body.site-shell > .portal-footer a:not(.portal-social-link):not(.portal-footer__home) {
  color: var(--footer-link);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}
body.site-shell > .portal-footer a:not(.portal-social-link):not(.portal-footer__home):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.site-shell > .portal-footer :is(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
body.site-shell > .portal-footer .portal-footer__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px var(--button-padding-inline, 16px);
  flex-shrink: 0;
  white-space: nowrap;
  box-sizing: border-box;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  font: 600 14px/1.5 "Segoe UI", Arial, sans-serif;
  --button-current-ink: var(--button-secondary-ink);
  --icon-color: var(--button-current-ink);
  --icon-hover: var(--button-current-ink);
  --icon-active: var(--button-current-ink);
  --icon-disabled: var(--button-disabled-ink);
  color: var(--button-secondary-ink);
  background: var(--button-secondary-surface);
  border-color: var(--button-secondary-border);
  box-shadow: var(--button-shadow);
  text-decoration: none;
  transform: none;
  cursor: pointer;
  transition: box-shadow 140ms ease;
}
body.site-shell > .portal-footer .portal-footer__toggle:hover:not(:disabled):not([aria-disabled=true]) {
  background: var(--button-secondary-hover);
  color: var(--button-secondary-ink);
  border-color: var(--button-secondary-border);
  box-shadow: var(--button-shadow-hover);
  text-decoration: none;
  transform: none;
}
body.site-shell > .portal-footer .portal-footer__toggle:active:not(:disabled):not([aria-disabled=true]) {
  background: var(--button-secondary-active);
  color: var(--button-secondary-ink);
  border-color: var(--button-secondary-border);
  box-shadow: inset 0 1px 2px rgba(18, 44, 84, 0.1607843137);
  transform: none;
}
body.site-shell > .portal-footer .portal-footer__toggle:focus-visible {
  color: var(--button-secondary-ink);
  border-color: var(--button-secondary-border);
  outline: 3px solid var(--button-focus);
  outline-offset: 3px;
}
body.site-shell > .portal-footer .portal-footer__toggle:is([aria-busy=true], .is-loading) {
  cursor: progress;
}
body.site-shell > .portal-footer .portal-footer__toggle :is(.icon, .mp-icon):not(.icon--file-pdf) {
  color: var(--button-current-ink);
}
body.site-shell > .portal-footer .portal-footer__toggle:is(:disabled, [aria-disabled=true]) {
  --button-current-ink: var(--button-disabled-ink);
  color: var(--button-disabled-ink);
  background: var(--button-disabled-surface);
  border-color: var(--button-disabled-border);
  border-style: dashed;
  opacity: 1;
  box-shadow: none;
  cursor: not-allowed;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  body.site-shell > .portal-footer .portal-footer__toggle {
    transition: none;
  }
}
body.site-shell > .portal-footer .portal-footer__toggle[hidden], body.site-shell > .portal-footer .portal-footer__panel[hidden] {
  display: none;
}
body.site-shell > .portal-footer .portal-footer__toggle .icon {
  width: 16px;
  height: 16px;
}
body.site-shell > .portal-footer .portal-footer__panel {
  padding: 24px;
  border-top: 1px solid var(--footer-rule);
  background: var(--footer-surface);
  text-align: left;
}
body.site-shell > .portal-footer .portal-footer__panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
body.site-shell > .portal-footer .portal-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
}
body.site-shell > .portal-footer .portal-footer__brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
body.site-shell > .portal-footer .portal-footer__panel nav:not(.portal-social-links) {
  display: grid;
  gap: 4px;
  margin: 0;
}
body.site-shell > .portal-footer .portal-footer__panel nav:not(.portal-social-links) a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.5;
}
body.site-shell > .portal-footer .portal-footer__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  font-size: 16px;
  --button-current-ink: var(--button-secondary-ink);
  --icon-color: var(--button-current-ink);
  --icon-hover: var(--button-current-ink);
  --icon-active: var(--button-current-ink);
  --icon-disabled: var(--button-disabled-ink);
  color: var(--button-secondary-ink);
  background: var(--button-secondary-surface);
  border-color: var(--button-secondary-border);
  box-shadow: var(--button-shadow);
  text-decoration: none;
  transform: none;
  cursor: pointer;
  transition: box-shadow 140ms ease;
}
body.site-shell > .portal-footer .portal-footer__home:hover:not(:disabled):not([aria-disabled=true]) {
  background: var(--button-secondary-hover);
  color: var(--button-secondary-ink);
  border-color: var(--button-secondary-border);
  box-shadow: var(--button-shadow-hover);
  text-decoration: none;
  transform: none;
}
body.site-shell > .portal-footer .portal-footer__home:active:not(:disabled):not([aria-disabled=true]) {
  background: var(--button-secondary-active);
  color: var(--button-secondary-ink);
  border-color: var(--button-secondary-border);
  box-shadow: inset 0 1px 2px rgba(18, 44, 84, 0.1607843137);
  transform: none;
}
body.site-shell > .portal-footer .portal-footer__home:focus-visible {
  color: var(--button-secondary-ink);
  border-color: var(--button-secondary-border);
  outline: 3px solid var(--button-focus);
  outline-offset: 3px;
}
body.site-shell > .portal-footer .portal-footer__home:is([aria-busy=true], .is-loading) {
  cursor: progress;
}
body.site-shell > .portal-footer .portal-footer__home :is(.icon, .mp-icon):not(.icon--file-pdf) {
  color: var(--button-current-ink);
}
body.site-shell > .portal-footer .portal-footer__home:is(:disabled, [aria-disabled=true]) {
  --button-current-ink: var(--button-disabled-ink);
  color: var(--button-disabled-ink);
  background: var(--button-disabled-surface);
  border-color: var(--button-disabled-border);
  border-style: dashed;
  opacity: 1;
  box-shadow: none;
  cursor: not-allowed;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  body.site-shell > .portal-footer .portal-footer__home {
    transition: none;
  }
}
body.site-shell > .portal-footer .portal-footer__home .icon {
  width: 20px;
  height: 20px;
  color: inherit;
}
body.site-shell > .portal-footer .portal-footer__panel p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--footer-muted);
}
body.site-shell > .portal-footer .portal-footer__panel .portal-footer__guidance {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--footer-rule);
  color: var(--footer-link);
}
body.site-shell > .portal-footer .portal-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.site-shell > .portal-footer .portal-footer__vk {
  font-weight: 700;
}
body.site-shell > .portal-footer.footer-enhanced .portal-footer__panel:not([hidden]) {
  animation: footer-appear var(--motion-standard, 180ms) var(--motion-ease, ease);
}
body.site-shell > .portal-footer.footer-floating .portal-footer__panel {
  position: absolute;
  bottom: 100%;
  right: 0;
  width: min(440px, 100%);
  box-sizing: border-box;
  border: 1px solid var(--footer-rule);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  z-index: 25;
  overflow-y: auto;
}
@media (max-width: 768px) {
  body.site-shell > .portal-footer .portal-footer__bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
    padding-block: 2px;
  }
  body.site-shell > .portal-footer .portal-footer__federations {
    grid-column: 1;
    grid-row: 1;
  }
  body.site-shell > .portal-footer .portal-footer__controls {
    grid-column: 2;
    grid-row: 1;
  }
  body.site-shell > .portal-footer .portal-footer__copyright {
    grid-column: 1/-1;
    grid-row: 2;
    padding-bottom: 2px;
  }
}

[data-theme=dark] body.site-shell > .portal-footer {
  --footer-surface: #0d172a;
}

.footer-federation-tooltip {
  position: fixed;
  z-index: 1000;
  width: max-content;
  max-width: min(360px, 100vw - 16px);
  padding: 12px 16px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  font: 16px/1.5 "Segoe UI", Arial, sans-serif;
  overflow-wrap: anywhere;
}

.footer-federation-tooltip[hidden] {
  display: none;
}

@keyframes footer-appear {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.site-shell > .portal-footer.footer-enhanced .portal-footer__panel:not([hidden]) {
    animation: none;
  }
}
body.site-shell--home > .site-header {
  border-bottom: 0;
  background: var(--surface-soft);
  height: auto;
  min-height: 96px;
}
body.site-shell--home > .site-header .site-header__inner {
  height: auto;
  min-height: 96px;
  padding-block: 8px;
}
body.site-shell--home > .site-header .brand {
  min-width: 0;
  flex: 0 1 400px;
}
body.site-shell--home > .site-header .brand__copy {
  min-width: 0;
}
body.site-shell--home > .site-header .brand__prefix {
  display: none;
}
body.site-shell--home > .site-header .brand__name {
  max-width: none;
  font-size: 0.875rem;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.site-shell--home > .site-header .brand__motto {
  white-space: normal;
}
body.site-shell--home > .site-header .site-header__actions .icon-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
}

@media (max-width: 768px) {
  html:has(body.site-shell--home) {
    scroll-padding-top: calc(var(--site-header-height, 10rem) + 20px);
  }
  body.site-shell--home > .site-header {
    min-height: 84px;
  }
  body.site-shell--home > .site-header .site-header__inner {
    position: relative;
    height: auto;
    min-height: 84px;
    padding-block: 12px;
    width: calc(100% - 32px);
  }
  body.site-shell--home > .site-header .brand {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
    gap: 12px;
  }
  body.site-shell--home > .site-header .brand__logo {
    grid-column: 1;
    grid-row: 1;
    width: 62px;
    height: 62px;
  }
  body.site-shell--home > .site-header .brand__copy {
    grid-column: 1/-1;
    grid-row: 2;
  }
  body.site-shell--home > .site-header .brand__name {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
  }
  body.site-shell--home > .site-header .brand__motto {
    display: none;
  }
  body.site-shell--home > .site-header .primary-nav {
    display: none;
  }
  body.site-shell--home > .site-header .site-header__actions {
    position: absolute;
    top: 21px;
    right: 0;
    gap: 4px;
  }
}
@media (max-width: 480px) {
  body.site-shell > .site-header .site-header__actions:has(.site-home-link) > a[href="/search/"] {
    display: none;
  }
}
body.site-shell > .site-header .reading-progress {
  --reading-progress-start: var(--link);
  --reading-progress-end: var(--brand-cyan);
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  block-size: 3px;
  overflow: hidden;
  pointer-events: none;
  background: var(--surface);
}
body.site-shell > .site-header .reading-progress[hidden] {
  display: none;
}
body.site-shell > .site-header .reading-progress .reading-progress__fill {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  background: linear-gradient(90deg, var(--reading-progress-start), var(--reading-progress-end));
  transform: scaleX(var(--reading-progress-value, 0));
  transform-origin: left center;
}

@media print {
  body.site-shell > .site-header .reading-progress {
    display: none;
  }
}
body.site-shell > .site-header .primary-nav a, body.site-shell > .site-header .mobile-nav a, body.site-shell > .site-header .mobile-drawer__top strong,
body.site-shell > .site-header .mobile-drawer .button, body.site-shell > .site-header .button--account, body.site-shell > .site-header .button--account span {
  font-size: 16px;
  line-height: 1.4;
}
@media (min-width: 1280px) and (max-width: 1599px) {
  body.site-shell > .site-header {
    height: auto;
  }
  body.site-shell > .site-header .site-header__inner {
    flex-wrap: wrap;
    padding-block: 8px;
  }
  body.site-shell > .site-header .primary-nav {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
  }
  body.site-shell > .site-header .primary-nav > ul {
    justify-content: center;
  }
  body.site-shell > .site-header .site-header__actions {
    order: 2;
  }
}

body.site-shell #main-content :is(p, h1, h2, h3, h4, h5, h6) {
  text-wrap: pretty;
}
