/*
Theme Name: CIT Desktop
Theme URI: https://cit2.vstu.by/
Author: CIT
Description: Desktop-style theme with draggable quick links.
Version: 0.1.0
Text Domain: cit-desktop-test
*/

@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/Roboto-Regular.woff2") format("woff2"),
       url("assets/fonts/Roboto-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --desk-ink: #172033;
  --desk-panel: #46516e;
  --desk-panel-dark: #434c63;
  --desk-bg: #f5f6f8;
  --desk-card: rgba(255, 255, 255, 0.86);
  --desk-line: rgba(72, 83, 111, 0.18);
  --dock-height: 64px;
}

* { box-sizing: border-box; }
html { margin: 0; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--desk-ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #c9cdd4;
}

.desktop-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 55px 1fr;
  background: var(--desk-bg);
  overflow: hidden;
}

.desktop-topbar {
  height: 55px;
  color: #c1c4ca;
  font-size: 16px;
  line-height: 19px;
  background: var(--desk-panel-dark);
}

.desktop-topbar__inner {
  width: 100%;
  max-width: 1330px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.desktop-topbar__tools {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

.desktop-topbar__link {
  color: currentColor;
  font: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.desktop-topbar__link:hover,
.desktop-topbar__link:focus-visible,
.desktop-tool:hover,
.desktop-tool:focus-visible {
  color: #fff;
}

.desktop-topbar__link:focus-visible,
.desktop-tool:focus-visible {
  border-radius: 3px;
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}
.desktop-tool {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: currentColor;
  background: transparent;
  cursor: pointer;
}

.desktop-tool svg { stroke: currentColor; fill: none; }
.desktop-tool svg { width: 20px; height: 20px; stroke-width: 1.8; }

.desktop-stage {
  min-height: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--desk-bg);
}

.desktop-workspace {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1330px;
  height: 100%;
  margin: 0 auto;
}

.desktop-slides {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #343b4e;
  pointer-events: none;
}

.desktop-slides::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: rgba(24, 30, 43, .18);
  content: "";
}

.desktop-slide {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: saturate(.68) contrast(.92) brightness(.82) blur(3px);
  transform: scale(1.02);
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
}

.desktop-slide.is-active { opacity: .82; }

.desktop-logo,
.desktop-board,
.desktop-dock { z-index: 1; }

.desktop-logo {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 0;
  width: min(280px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  user-select: none;
}
.desktop-logo::before {
  position: absolute;
  z-index: 0;
  inset: -8px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(20,27,40,.34);
  content: '';
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.desktop-logo > * {
  position: relative;
  z-index: 1;
}
.desktop-logo:hover::before,
.desktop-logo:focus-visible::before { opacity: 1; }
.desktop-logo:focus-visible { outline: none; }

.desktop-logo--image {
  width: min(330px, calc(100vw - 48px));
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.desktop-logo__image {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  object-position: left center;
}

.desktop-logo__mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 2px solid #5b657f;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23,32,51,.08);
}

.desktop-logo__mark::before {
  content: "\0412\0413\0422\0423";
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #8c94a8;
  color: #33415f;
  font-size: 12px;
  font-weight: 700;
}

.desktop-logo__text {
  color: rgba(255,255,255,.92);
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}
.desktop-logo__text strong { display: block; margin-top: 3px; font-size: 17px; line-height: 1.05; }

.desktop-board {
  position: absolute;
  inset: 28px 0 calc(var(--dock-height) + 40px) 0;
  min-height: 360px;
}

.desktop-icon {
  --x: 35%;
  --y: 8%;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 172px;
  min-height: 122px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 11px;
  padding: 8px 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #111827;
  text-align: center;
  text-decoration: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.desktop-icon:hover,
.desktop-icon:focus-visible,
.desktop-icon.is-dragging {
  border-color: rgba(255,255,255,.24);
  background: rgba(20,27,40,.34);
  outline: none;
}
.desktop-icon.is-dragging { z-index: 20; cursor: grabbing; box-shadow: 0 18px 34px rgba(23,32,51,.14); }
.desktop-icon.is-launching { pointer-events: none; }
.desktop-icon.is-selected {
  border-color: rgba(47,111,183,.48);
  background: rgba(93,160,226,.16);
}
.desktop-icon,
.desktop-icon img { -webkit-user-drag: none; }

.desktop-icon__image {
  position: relative;
  width: 103px;
  height: 100px;
  display: block;
  border: 1px solid rgba(23,32,51,.16);
  background: #fff;
  box-shadow: 0 8px 18px rgba(23,32,51,.1);
}
.desktop-icon__photo { width: 100%; height: 100%; display: block; object-fit: cover; }
.desktop-icon__motion {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}
.desktop-icon__folder {
  position: absolute;
  z-index: 2;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  display: block;
  object-fit: contain;
  pointer-events: none;
}
.desktop-icon__image--layered { background: #111; }
.desktop-icon__shortcut { position: absolute; z-index: 3; left: -4px; bottom: -3px; width: 15px; height: 15px; display: block; }
.desktop-icon--projects .desktop-icon__image {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.desktop-icon--projects .desktop-icon__photo { object-fit: contain; }

.desktop-selection {
  position: absolute;
  z-index: 30;
  border: 1px solid rgba(47,111,183,.72);
  background: rgba(93,160,226,.14);
  pointer-events: none;
}

.desktop-icon__label {
  width: 100%;
  color: #f5f6f8;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-break: normal;
  text-shadow: 0 1px 3px rgba(0,0,0,.85);
}

.desktop-dock {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 55px;
  width: max-content;
  max-width: calc(100% - 36px);
  min-height: var(--dock-height);
  display: flex;
  align-items: stretch;
  justify-content: center;
  transform: translateX(-50%);
  overflow: visible;
  border-radius: 20px;
  background: var(--desk-panel);
  box-shadow: 0 18px 38px rgba(23,32,51,.16);
}
.desktop-dock__nav { width: max-content; display: flex; align-items: stretch; justify-content: center; overflow: hidden; border-radius: inherit; }
.desktop-dock__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 30px;
  color: rgba(255,255,255,.92);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.desktop-dock__link + .desktop-dock__link::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.14);
  transform: translateY(-50%);
  content: "";
  pointer-events: none;
}
.desktop-dock__link:hover,
.desktop-dock__link:focus-visible { background: rgba(255,255,255,.08); outline: none; }
.desktop-dock__toggle {
  display: none;
}
.desktop-slide-counter {
  position: absolute;
  left: 50%;
  top: -30px;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
}
.desktop-slide-indicator {
  width: 28px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.desktop-slide-indicator::before {
  width: 7px;
  height: 7px;
  border: 1.5px solid rgba(255,255,255,.68);
  border-radius: 50%;
  background: rgba(24,30,43,.26);
  content: "";
  transition: width .2s ease, height .2s ease, border-color .2s ease, background-color .2s ease;
}
.desktop-slide-indicator:hover::before {
  border-color: #fff;
  background: rgba(255,255,255,.16);
}
.desktop-slide-indicator.is-active::before {
  width: 24px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: #f5f6f8;
}
.desktop-slide-indicator:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }


.desktop-window {
  width: min(760px, calc(100vw - 32px));
  margin: 72px auto 110px;
  padding: 28px;
  border: 1px solid var(--desk-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 42px rgba(23,32,51,.12);
}
.desktop-window h1,
.desktop-window h2,
.desktop-window h3 { margin-top: 0; }
body.admin-bar .desktop-shell { min-height: calc(100vh - 32px); }

.content-page {
  width: 100%;
  min-height: calc(100vh - 55px);
  padding: 34px 0 96px;
  color: #292929;
  background: #f5f6f8;
  overflow: visible;
}
.content-page__inner {
  width: 100%;
  max-width: 1330px;
  margin: 0 auto;
}
.content-page__navigation {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.content-page__back {
  min-height: 40px;
  width: 74px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--desk-line);
  border-radius: 6px;
  color: var(--desk-panel);
  background: #fff;
  box-shadow: 0 8px 20px rgba(23,32,51,.08);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}
.content-page__back:hover { background: #eef1f6; }
.content-page__back:focus-visible { outline: 2px solid var(--desk-panel); outline-offset: 3px; }
.content-page__breadcrumbs {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #717783;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}
.content-page__breadcrumbs a { color: var(--desk-panel); text-decoration: none; }
.content-page__breadcrumbs a:hover { text-decoration: underline; }
.content-page__breadcrumbs [aria-current="page"] { color: #717783; overflow-wrap: anywhere; }
.content-page__separator { color: #a6aab2; }
.content-page__navigation-main {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 18px;
}
.content-page__menu { position: relative; z-index: 20; flex: 0 0 auto; }
.content-page__menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--desk-line);
  border-radius: 6px;
  color: var(--desk-panel);
  background: #fff;
  box-shadow: 0 8px 20px rgba(23,32,51,.08);
  cursor: pointer;
}
.content-page__menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.menu-toggle__line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 200ms ease, opacity 160ms ease;
}
.content-page__menu.is-open .menu-toggle__line--top,
.desktop-dock.is-open .menu-toggle__line--top { transform: translateY(5px) rotate(45deg); }
.content-page__menu.is-open .menu-toggle__line--middle,
.desktop-dock.is-open .menu-toggle__line--middle { opacity: 0; transform: scaleX(0); }
.content-page__menu.is-open .menu-toggle__line--bottom,
.desktop-dock.is-open .menu-toggle__line--bottom { transform: translateY(-5px) rotate(-45deg); }
.content-page__menu-toggle:hover,
.content-page__menu-toggle:focus-visible,
.content-page__menu.is-open .content-page__menu-toggle {
  color: #fff;
  background: var(--desk-panel);
  outline: none;
}
.content-page__menu-toggle:focus-visible { box-shadow: 0 0 0 3px rgba(70,81,110,.2); }
.content-page__menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(310px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--desk-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23,32,51,.16);
}
.content-page__menu-panel[hidden] { display: none; }
.content-page__menu-panel a {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 11px 16px;
  border-top: 1px solid var(--desk-line);
  color: #292929;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
}
.content-page__menu-panel a:first-child { border-top: 0; }
.content-page__menu-panel a:hover,
.content-page__menu-panel a:focus-visible {
  color: var(--desk-panel);
  background: #eef1f6;
  outline: none;
}
.content-page__article {
  width: calc(100% - 92px);
  max-width: 1120px;
  margin: 0 auto 0 92px;
}
.content-page__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--desk-line);
}
.content-page__title {
  margin: 0;
  color: #292929;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: break-word;
}
.content-page__body {
  width: 100%;
  min-width: 0;
  color: #333e48;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  overflow: visible;
}
.content-page__body p,
.content-page__body li {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
.content-page__body p { margin: 0 0 16px; }
.content-page__body p:last-child { margin-bottom: 0; }
.content-page__body > .elementor { width: 100%; max-width: 100%; }
.content-page__body img,
.content-page__body video,
.content-page__body iframe { max-width: 100%; }
.content-page__body img,
.content-page__body video { height: auto; }

.site-footer {
  width: 100%;
  border-top: 1px solid var(--desk-line);
  color: #8b909b;
  background: #fff;
}
.site-footer__inner {
  width: 100%;
  max-width: 1330px;
  margin: 0 auto;
  padding: 20px;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
}
.site-footer__inner a {
  color: var(--desk-panel);
  text-decoration: none;
}
.site-footer__inner a:hover,
.site-footer__inner a:focus-visible { text-decoration: underline; }
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  background: var(--desk-panel);
  box-shadow: 0 12px 28px rgba(11,16,27,.25);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}
.back-to-top[hidden] { display: none; }
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back-to-top:hover,
.back-to-top:focus-visible { background: #596783; outline: none; }
.back-to-top:focus-visible { box-shadow: 0 0 0 3px rgba(70,81,110,.22), 0 12px 28px rgba(11,16,27,.25); }

@media (max-width: 720px) {
  .content-page { padding: 24px 0 64px; overflow-x: clip; }
  .content-page__inner { padding: 0 16px; }
  .content-page__navigation { align-items: flex-start; gap: 14px; margin-bottom: 26px; }
  .content-page__breadcrumbs,
  .content-page__menu-panel a { font-size: 16px; }
  .content-page__navigation-main { align-items: flex-start; flex-direction: column; gap: 12px; }
  .content-page__article { width: 100%; margin-left: 0; }
  .content-page__header { margin-bottom: 24px; padding-bottom: 18px; }
  .content-page__title { font-size: 28px; }
  .content-page__body .elementor,
  .content-page__body .elementor-section,
  .content-page__body .elementor-container,
  .content-page__body .e-con,
  .content-page__body .elementor-element,
  .content-page__body .elementor-widget-container {
    min-width: 0;
    max-width: 100%;
  }
  .resource-list__item { grid-template-columns: 103px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .resource-list__item--no-image { grid-template-columns: minmax(0, 1fr); }
  .resource-list__image { width: 103px; height: 100px; }
  .resource-list__title { margin-bottom: 8px; font-size: 19px; }
  .resource-list__excerpt { margin-bottom: 10px; font-size: 16px; }
  .resource-list__link { font-size: 16px; }  .content-page__body p,
  .content-page__body h2,
  .content-page__body h3,
  .content-page__body h4 { overflow-wrap: anywhere; }
  .site-footer__inner { padding: 18px 64px 18px 16px; text-align: left; }
  .back-to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

.content-page__description {
  max-width: 760px;
  margin-top: 14px;
  color: #5f6672;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
.content-page__description > :last-child { margin-bottom: 0; }
.resource-list { width: 100%; }
.resource-list__item {
  display: grid;
  grid-template-columns: 103px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--desk-line);
}
.resource-list__item--no-image { grid-template-columns: minmax(0, 1fr); }
.resource-list__image {
  width: 103px;
  height: 100px;
  display: block;
  overflow: hidden;
  border: 1px solid var(--desk-line);
  background: #fff;
}
.resource-list__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.resource-list__image--contain img { object-fit: contain; }
.resource-list__content { min-width: 0; }
.resource-list__title {
  margin: 0 0 10px;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}
.resource-list__title a { color: #292929; text-decoration: none; }
.resource-list__title a:hover { color: var(--desk-panel); }
.resource-list__excerpt {
  max-width: 820px;
  margin: 0 0 14px;
  color: #5f6672;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.resource-list__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--desk-panel);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
}
.resource-list__link:hover { text-decoration: underline; }
.resource-list__empty { margin: 0; color: #5f6672; font-size: 16px; }
.content-page--archive .navigation.pagination { margin-top: 32px; }
.content-page--archive .nav-links { display: flex; align-items: center; gap: 8px; }
.content-page--archive .page-numbers {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--desk-line);
  border-radius: 6px;
  color: var(--desk-panel);
  background: #fff;
  text-decoration: none;
}
.content-page--archive .page-numbers.current { color: #fff; background: var(--desk-panel); }
.site-search-form {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0 0 26px;
}
.site-search-form__input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--desk-line);
  border-radius: 6px;
  color: #292929;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23,32,51,.06);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1;
}
.site-search-form__input:focus {
  border-color: var(--desk-panel);
  box-shadow: 0 0 0 3px rgba(70,81,110,.14);
  outline: none;
}
.site-search-form__input::placeholder { color: #8a909c; opacity: 1; }
.site-search-form__submit {
  min-width: 132px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--desk-panel);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  cursor: pointer;
}
.site-search-form__submit:hover,
.site-search-form__submit:focus-visible { background: #35405e; outline: none; }
.site-search-form__submit:focus-visible { box-shadow: 0 0 0 3px rgba(70,81,110,.22); }
.site-search-form__submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.site-search-form__summary {
  margin: 0 0 8px;
  color: #5f6672;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.site-search-results { transition: opacity .18s ease; }
.site-search-results[aria-busy="true"] { opacity: .5; pointer-events: none; }
.content-page--search .resource-list__empty { margin-top: 24px; }

@media (max-width: 520px) {
  .site-search-form { grid-template-columns: minmax(0, 1fr); }
  .site-search-form__submit { width: 100%; }
}
@media (max-width: 1329px) {
  .desktop-topbar__inner { padding: 0 20px; }
  .content-page__inner { padding: 0 20px; }
  .desktop-workspace { width: calc(100% - 40px); }
}

@media (prefers-reduced-motion: reduce) {

  .desktop-slide { transition: none; }
  .desktop-dock__nav { transition: none; }
  .menu-toggle__line { transition: none; }
  .back-to-top { transition: none; }
}

@media (max-width: 980px) {
  .desktop-dock {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    max-width: none;
    min-height: 52px;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    transform: none;
  }
  .desktop-dock__toggle {
    position: relative;
    z-index: 3;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    color: rgba(255,255,255,.94);
    background: var(--desk-panel);
    box-shadow: 0 12px 28px rgba(11,16,27,.3);
    cursor: pointer;
    pointer-events: auto;
  }
  .desktop-dock__toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
  }
  .desktop-dock__toggle:hover,
  .desktop-dock__toggle:focus-visible,
  .desktop-dock.is-open .desktop-dock__toggle {
    color: #fff;
    background: #596783;
    outline: none;
  }
  .desktop-dock__toggle:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.28), 0 12px 28px rgba(11,16,27,.3); }
  .desktop-dock__nav {
    position: absolute;
    right: auto;
    left: 0;
    bottom: calc(100% + 12px);
    z-index: 2;
    width: min(320px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: var(--desk-panel);
    box-shadow: 0 18px 38px rgba(11,16,27,.32);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }
  .desktop-dock.is-open .desktop-dock__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .desktop-dock__link {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 10px 18px;
    font-size: 16px;
    line-height: 1.25;
    white-space: normal;
  }
  .desktop-dock__link + .desktop-dock__link::before {
    top: 0;
    right: 18px;
    left: 18px;
    width: auto;
    height: 1px;
    transform: none;
  }
  .desktop-slide-counter {
    top: 50%;
    right: auto;
    left: 50%;
    z-index: 3;
    display: flex;
    pointer-events: auto;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 820px) {
  :root { --dock-height: 58px; }
  .content-page__inner { padding: 0 16px; }
  .desktop-topbar { font-size: 16px; line-height: 20px; }
  .desktop-topbar__inner { padding: 0 12px; }
  .desktop-topbar__link--email,
  .desktop-topbar__link--phone { display: none; }
  .desktop-workspace { width: calc(100% - 24px); padding: 18px 0 calc(var(--dock-height) + 34px); }
  .desktop-logo { position: relative; top: auto; left: auto; width: 100%; grid-template-columns: 58px 1fr; margin-bottom: 18px; }
  .desktop-logo__mark { width: 58px; height: 58px; }
  .desktop-logo__mark::before { width: 40px; height: 40px; font-size: 10px; }
  .desktop-logo__text { font-size: 11px; }
  .desktop-logo__text strong { font-size: 14px; }
  .desktop-board { position: relative; inset: auto; min-height: 130px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desktop-icon { position: relative; left: auto; top: auto; width: 100%; min-width: 0; min-height: 122px; padding-inline: 4px; cursor: pointer; touch-action: auto; }
  .desktop-icon__image { width: min(103px, 100%); height: auto; aspect-ratio: 103 / 100; }
  .desktop-icon__label { font-size: 16px; }
}

@media (max-width: 520px) {
  .desktop-topbar__tools > span,
  .desktop-topbar__link--university { display: none; }
}
