*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #ffffff;
  color: #213e89;
}

:root {
  --sidebar-w: 280px;
  --mobile-sidebar-w: min(320px, calc(100vw - 56px));
}

button {
  font: inherit;
}

.page {
  display: flex;
  height: 100vh;
  background-color: #ffffff;
  position: relative;
}

/* Sidebar */

.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #85ac1f 0%, #213e89 100%);
  padding: 24px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 24px;
}

.sidebar-backdrop {
  display: none;
}

.search-block {
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  outline: none;
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

/* Filters */

.filters-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.filters-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filters-group-label {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.filters-group-buttons {
  display: flex;
  gap: 12px;
}

.filter-button {
  flex: 1;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background-color: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease,
    box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.filter-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  background-color: rgba(255, 255, 255, 0.16);
}

.filter-button.active {
  background-color: #ffffff;
  color: #213e89;
  border-color: #ffffff;
}

/* Years block */

.years-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.12);
  padding: 18px 16px;
  gap: 16px;
}

.years-header {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.years-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.years-list .filter-button {
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reset-filters-button {
  margin-top: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background-color: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.reset-filters-button:hover {
  background-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* Main area + cards */

.main {
  flex: 1;
  display: flex;
  padding: 0;
  background-color: #ffffff;
  position: relative;
  overflow: visible;
}

.cards-section {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  background-color: #ffffff;
  position: relative;
}

.cards-section::-webkit-scrollbar {
  width: 8px;
}

.cards-section::-webkit-scrollbar-track {
  background-color: transparent;
}

.cards-section::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: linear-gradient(180deg, #85ac1f 0%, #213e89 100%);
}

.projects-help-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
}

.projects-help-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.projects-help-overlay__blocker {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(133, 172, 31, 0.14), transparent 18%),
    linear-gradient(135deg, rgba(246, 249, 255, 0.98), rgba(255, 255, 255, 0.99));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
  touch-action: none;
}

.projects-help-overlay__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
}

.projects-help-overlay__message {
  margin: 0;
  padding: 18px 26px;
  border-radius: 24px;
  border: 1px solid rgba(33, 62, 137, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(33, 62, 137, 0.08);
  color: #213e89;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.projects-help-overlay__hint {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(33, 62, 137, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(33, 62, 137, 0.08);
  color: rgba(33, 62, 137, 0.86);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.projects-help-overlay__callout {
  display: none !important;
  --callout-line-length: 162px;
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.projects-help-overlay__callout::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: var(--callout-line-length);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #85ac1f 0%, #213e89 100%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.72);
  transform: translateY(-50%);
}

.projects-help-overlay__callout::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc((var(--callout-line-length) + 14px) * -1);
  width: 14px;
  height: 14px;
  background: #213e89;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  transform: translateY(-50%);
}

.projects-help-overlay__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(33, 62, 137, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(33, 62, 137, 0.12);
  color: #213e89;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

.projects-help-overlay__callout--to-right::before {
  left: 100%;
  right: auto;
  background: linear-gradient(90deg, #213e89 0%, #85ac1f 100%);
}

.projects-help-overlay__callout--to-right::after {
  left: calc(100% + var(--callout-line-length));
  background: #85ac1f;
  clip-path: polygon(100% 50%, 0 0, 0 100%);
}

.projects-help-overlay__label--shortcut {
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  border-radius: 22px;
  white-space: normal;
}

.projects-help-overlay__note {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(33, 62, 137, 0.72);
}

.projects-help-overlay__keys {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.projects-help-overlay__keys kbd {
  min-width: 32px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(33, 62, 137, 0.14);
  background: linear-gradient(180deg, #ffffff, rgba(33, 62, 137, 0.06));
  color: #213e89;
  font: inherit;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(33, 62, 137, 0.08);
}

.projects-help-overlay--catalog .projects-help-overlay__callout--search,
.projects-help-overlay--admin .projects-help-overlay__callout--search {
  left: 36px;
  top: 40px;
}

.projects-help-overlay--catalog .projects-help-overlay__callout--filters,
.projects-help-overlay--admin .projects-help-overlay__callout--filters {
  left: 36px;
  top: 146px;
}

.projects-help-overlay--admin .projects-help-overlay__callout--import {
  left: 36px;
  bottom: 112px;
}

.projects-help-overlay--admin .projects-help-overlay__callout--shortcut {
  left: 36px;
  bottom: 36px;
}

/* Grid of cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  align-content: flex-start;
}

.project-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 26px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(33, 62, 137, 0.18);
  box-shadow: 0 4px 10px rgba(33, 62, 137, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.project-card[data-project-id] {
  cursor: pointer;
}

.project-card[data-project-id]:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(33, 62, 137, 0.16);
  border-color: rgba(33, 62, 137, 0.45);
}

.project-card::before {
  content: attr(data-project-type);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: clamp(64px, 14vw, 120px);

  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  background: linear-gradient(135deg, #213e89 0%, #85ac1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  opacity: 0.2;
  filter: blur(2px);

  pointer-events: none;
  z-index: 0;
  transform: translateY(6px);
}

.project-card-header,
.project-meta,
.project-description {
  position: relative;
  z-index: 1;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.project-title {
  font-size: 16px;
  font-weight: 600;
  color: #213e89;
}

.project-meta {
  font-size: 13px;
  color: rgba(33, 62, 137, 0.8);
}

.project-mentor {
  font-size: 13px;
  color: rgba(33, 62, 137, 0.8);
}

.project-description {
  margin-top: auto;
  font-size: 13px;
  color: rgba(33, 62, 137, 0.85);
}

/* Responsive */

@media (max-width: 900px) {
  :root {
    --sidebar-w: 240px;
  }

  .sidebar {
    width: 240px;
    padding: 16px;
  }

  .cards-section {
    padding: 16px 20px;
  }

  .projects-help-overlay__message {
    font-size: 28px;
  }

  .projects-help-overlay--catalog .projects-help-overlay__callout--search,
  .projects-help-overlay--admin .projects-help-overlay__callout--search {
    left: 22px;
  }

  .projects-help-overlay--catalog .projects-help-overlay__callout--filters,
  .projects-help-overlay--admin .projects-help-overlay__callout--filters {
    left: 22px;
    top: 140px;
  }

  .projects-help-overlay--admin .projects-help-overlay__callout--import {
    left: 22px;
    bottom: 108px;
  }

  .projects-help-overlay--admin .projects-help-overlay__callout--shortcut {
    left: 22px;
    bottom: 34px;
  }
}

@media (max-width: 720px) {
  :root {
    --sidebar-w: 0px;
  }

  .page {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .projects-help-overlay__panel {
    padding: 18px;
  }

  .projects-help-overlay__message {
    max-width: 320px;
    padding: 16px 18px;
    font-size: 22px;
  }

  .projects-help-overlay__hint {
    max-width: 320px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .projects-help-overlay__keys {
    gap: 4px;
  }

  .catalog-page .page {
    flex-direction: row;
  }

  .catalog-page .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--mobile-sidebar-w);
    padding: 20px 16px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    box-shadow: 0 20px 48px rgba(33, 62, 137, 0.3);
    overflow-y: auto;
    transform: translateX(calc(-1 * var(--mobile-sidebar-w)));
    transition: transform 0.24s ease;
    z-index: 15;
  }

  .catalog-page .page.is-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .catalog-page .sidebar-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    background: rgba(33, 62, 137, 0.16);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 14;
  }

  .catalog-page .page.is-sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .catalog-page .main {
    width: 100%;
    min-width: 0;
  }
}

/* ---- Project details modal ---- */

.project-modal-backdrop {
  position: fixed;
  inset: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.project-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal {
  position: relative;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  max-width: 960px;
  width: 100%;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-modal__content {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.project-modal__content::-webkit-scrollbar {
  width: 8px;
}

.project-modal__content::-webkit-scrollbar-track {
  background-color: transparent;
}

.project-modal__content::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: linear-gradient(180deg, #85ac1f 0%, #213e89 100%);
}

.project-modal__title {
  font-size: 20px;
  font-weight: 600;
  color: #213e89;
  margin: 0;
  margin-right: 32px;
}

.project-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 20px;
  min-height: 0;
  align-items: stretch;
}

.project-modal__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-modal__image-wrapper {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #213e89 0%, #85ac1f 100%);
  min-height: 180px;
}

.project-modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-modal__description {
  margin: 0;
  font-size: 14px;
  color: rgba(33, 62, 137, 0.9);
}

.catalog-page .project-modal__content {
  max-height: calc(100vh - 48px);
}

.project-modal__pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #213e89;
  text-decoration: none;
  font-size: 14px;
  color: #213e89;
  margin-top: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.1s ease;
}

.project-modal__pdf-link:hover {
  background: linear-gradient(135deg, #213e89 0%, #85ac1f 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
}

.project-modal__team {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 18px;
  background-color: rgba(33, 62, 137, 0.04);
  padding: 12px 12px 10px;
  min-height: 0;
}

.project-modal__team-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #213e89;
  flex: 0 0 auto;
}

.project-modal__team-name {
  margin-left: 4px;
  font-weight: 500;
}

.project-modal__students-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(33, 62, 137, 0.18) transparent;
}

.project-modal__students-list::-webkit-scrollbar {
  width: 7px;
}

.project-modal__students-list::-webkit-scrollbar-track {
  background-color: transparent;
}

.project-modal__students-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background-color: rgba(33, 62, 137, 0.14);
  border: 1px solid rgba(33, 62, 137, 0.22);
  background-clip: padding-box;
}

.project-modal__students-list::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(180deg, #85ac1f 0%, #213e89 100%);
  background-color: transparent;
  border-color: transparent;
}

.catalog-page .project-modal__students-list::-webkit-scrollbar-thumb:hover,
.project-modal__students-list::-webkit-scrollbar-thumb:active {
  background-image: linear-gradient(180deg, #85ac1f 0%, #213e89 100%) !important;
  background-color: transparent !important;
  border-color: transparent;
}

.project-modal__team-group-title {
  font-size: 13px;
  font-weight: 600;
  color: #213e89;
  margin-top: 8px;
}

.project-modal__team-group-title:first-child {
  margin-top: 0;
}

.catalog-page .project-modal__team-name {
  display: block;
  margin-left: 0;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(33, 62, 137, 0.72);
}

.catalog-page .project-modal__team {
  min-height: 0;
}

.catalog-page .project-modal__students-list {
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
}

.catalog-page .project-modal__team-group {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(33, 62, 137, 0.14);
  border-radius: 12px;
  background-color: #ffffff;
  padding: 10px;
}

.catalog-page .project-modal__team-group:only-child {
  min-height: auto;
}

.catalog-page .project-modal__team-group-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #213e89;
}

.catalog-page .project-modal__team-members {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}

.catalog-page .project-modal__student {
  border-radius: 10px;
  background-color: rgba(33, 62, 137, 0.05);
  border: 1px solid rgba(33, 62, 137, 0.1);
  padding: 8px 10px;
}

.catalog-page .project-modal__student-info {
  gap: 2px;
}

.catalog-page .project-modal__student-name {
  line-height: 1.25;
}

.catalog-page .project-modal__student-role {
  font-size: 12px;
  color: rgba(33, 62, 137, 0.78);
}

.catalog-page .project-modal__student-role:empty {
  display: none;
}

.catalog-page .project-modal__team-empty {
  font-size: 13px;
  color: rgba(33, 62, 137, 0.72);
  padding: 2px 0;
}

.project-modal__student {
  display: flex;
  align-items: flex-start;
}

.project-modal__student-info {
  display: flex;
  flex-direction: column;
}

.project-modal__student-name {
  font-size: 14px;
  font-weight: 500;
  color: #213e89;
}

.project-modal__student-role {
  font-size: 13px;
  color: rgba(33, 62, 137, 0.85);
}

.project-modal__student--empty {
  font-size: 13px;
  color: rgba(33, 62, 137, 0.7);
}

/* Close button */

.project-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background-color: rgba(33, 62, 137, 0.06);
  color: #213e89;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.project-modal__close:hover {
  background-color: rgba(33, 62, 137, 0.16);
  transform: translateY(-1px);
}

/* Adaptive modal window */

@media (max-width: 900px) {
  .projects-help-overlay__callout {
    --callout-line-length: 134px;
  }

  .authors-overlay__panel {
    padding: 26px 24px 22px;
  }

  .authors-overlay__card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 4px 14px;
  }

  .authors-overlay__avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .project-modal-backdrop {
    padding: 16px;
  }

  .project-modal__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-modal__students-list {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .authors-overlay__panel {
    justify-content: flex-start;
    padding: 20px 18px 16px;
  }

  .authors-overlay__header {
    width: 100%;
    margin-bottom: 16px;
  }

  .authors-overlay__grid {
    width: 100%;
    gap: 14px;
  }

  .authors-overlay__card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .authors-overlay__avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 12px;
  }

  .authors-overlay__name {
    font-size: 16px;
  }

  .authors-overlay__close {
    top: 16px;
    right: 18px;
  }

  .project-modal-backdrop {
    padding: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .project-modal {
    max-height: 100%;
    border-radius: 20px;
  }

  .project-modal__content {
    padding: 16px 16px 14px;
  }
}

/* ---- Footer ---- */

.landingFooter_footer__A6KfV {
  position: static;
  width: 100%;
  margin-top: auto;
  padding: 12px 12px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.landingFooter_footer__about__1W9xb {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.landingFooter_about__contacts__2hZfl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.landingFooter_contacts__text__1a_uB {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);

  white-space: normal;
  min-width: 0;
}

.landingFooter_contacts__text__1a_uB span {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.landingFooter_text__icon__2xPHx {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.72;
  filter: brightness(0) invert(1) grayscale(1);
}

.landingFooter_about__social_media__3__1t {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.landingFooter_about__social_media__3__1t a {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.12);
  opacity: 0.9;
  transition: background-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease, opacity 0.15s ease;
}

.landingFooter_about__social_media__3__1t a:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px rgba(16, 26, 59, 0.22);
  opacity: 1;
  transform: translateY(-1px);
}

.landingFooter_about__authors_button {
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.landingFooter_about__authors_button:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px rgba(16, 26, 59, 0.22);
  transform: translateY(-1px);
}

.landingFooter_social_media__icon__1dzBU {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  opacity: 0.82;
  filter: brightness(0) invert(1) grayscale(1);
}

.authors-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.authors-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.authors-overlay__blocker {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(133, 172, 31, 0.14), transparent 18%),
    linear-gradient(135deg, rgba(246, 249, 255, 0.98), rgba(255, 255, 255, 0.99));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
  touch-action: none;
}

.authors-overlay__panel {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 34px 40px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
  background: transparent;
}

.authors-overlay__close {
  position: absolute;
  top: 18px;
  right: 22px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(33, 62, 137, 0.66);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.authors-overlay__close:hover {
  color: #213e89;
  transform: translateY(-1px);
}

.authors-overlay__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(760px, 100%);
  margin: 0 auto 18px;
  padding-right: 0;
}

.authors-overlay__title {
  margin: 0;
  color: #213e89;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
}

.authors-overlay__subtitle {
  margin: 0;
  max-width: 520px;
  color: rgba(33, 62, 137, 0.74);
  font-size: 14px;
  line-height: 1.4;
}

.authors-overlay__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(760px, 100%);
  margin: 0 auto;
}

.authors-overlay__card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-areas:
    "avatar name"
    "avatar role"
    "avatar description";
  align-items: start;
  gap: 4px 16px;
  padding: 0;
  min-height: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.authors-overlay__avatar {
  grid-area: avatar;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(33, 62, 137, 0.08);
  color: rgba(33, 62, 137, 0.62);
  font-size: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: none;
}

.authors-overlay__photo-note {
  display: none;
}

.authors-overlay__avatar::before {
  content: "Фото";
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(33, 62, 137, 0.62);
}

.authors-overlay__name {
  grid-area: name;
  margin: 0;
  color: #213e89;
  font-size: 18px;
  line-height: 1.2;
}

.authors-overlay__role {
  grid-area: role;
  margin: 0;
  color: rgba(33, 62, 137, 0.76);
  font-size: 14px;
  font-weight: 600;
}

.authors-overlay__description {
  grid-area: description;
  margin: 0;
  color: rgba(33, 62, 137, 0.74);
  font-size: 14px;
  line-height: 1.4;
}

/* Home page */

.home-html,
.home-page {
  min-height: 100%;
  overflow: auto;
}

.home-page {
  background:
    radial-gradient(circle at top left, rgba(133, 172, 31, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(33, 62, 137, 0.16), transparent 30%),
    linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.home-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 32px 20px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 120px;
  max-height: 120px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #213e89 0%, #85ac1f 100%);
  box-shadow: 0 18px 48px rgba(33, 62, 137, 0.18);
  isolation: isolate;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  z-index: -1;
}

.home-hero::before {
  width: min(34vw, 420px);
  height: min(34vw, 420px);
  top: -28%;
  right: -8%;
}

.home-hero::after {
  width: min(24vw, 300px);
  height: min(24vw, 300px);
  bottom: -22%;
  left: 22%;
}

.home-hero__content {
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.home-hero__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-hero__title {
  margin: 0;
  max-width: none;
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-hero__description {
  margin: 8px 0 0;
  max-width: none;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.home-link-card {
  position: relative;
  min-height: 280px;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(33, 62, 137, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(33, 62, 137, 0.08);
  color: #213e89;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.home-link-card::before {
  content: attr(data-home-card-mark);
  position: absolute;
  right: 18px;
  bottom: -10px;
  font-size: clamp(68px, 9vw, 132px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #213e89 0%, #85ac1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.14;
  pointer-events: none;
}

.home-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(33, 62, 137, 0.14);
  border-color: rgba(33, 62, 137, 0.28);
}

.home-link-card:focus-visible {
  outline: none;
  transform: translateY(-4px);
  box-shadow:
    0 0 0 3px rgba(133, 172, 31, 0.24),
    0 20px 40px rgba(33, 62, 137, 0.14);
  border-color: rgba(33, 62, 137, 0.34);
}

.home-link-card__title,
.home-link-card__description,
.home-link-card__action {
  position: relative;
  z-index: 1;
}

.home-link-card__title {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}

.home-link-card__description {
  margin: 0;
  max-width: 55ch;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(33, 62, 137, 0.82);
}

.home-link-card__action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #213e89 0%, #85ac1f 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(33, 62, 137, 0.16);
}

.home-link-card--auditorium {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.94));
}

.home-footer {
  padding: 0 32px 28px;
}

.home-footer__panel {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-page .landingFooter_footer__A6KfV {
  margin-top: 0;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(33, 62, 137, 0.1);
  box-shadow: 0 12px 30px rgba(33, 62, 137, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-page .landingFooter_footer__about__1W9xb {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-page .landingFooter_about__contacts__2hZfl {
  gap: 8px;
}

.home-page .landingFooter_contacts__text__1a_uB {
  font-size: 12px;
  color: rgba(33, 62, 137, 0.84);
}

.home-page .landingFooter_text__icon__2xPHx {
  width: 13px;
  height: 13px;
  opacity: 1;
  filter: none;
}

.home-page .landingFooter_about__social_media__3__1t {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px;
  border-radius: 24px;
  background: linear-gradient(135deg, #213e89 0%, #85ac1f 100%);
  box-shadow: 0 10px 24px rgba(33, 62, 137, 0.14);
}

.home-page .landingFooter_about__social_media__3__1t a {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}

.home-page .landingFooter_social_media__icon__1dzBU {
  width: 40px;
  height: 40px;
  opacity: 0.96;
  filter: brightness(0) invert(1) grayscale(1);
}

.home-page .landingFooter_about__authors_button {
  min-height: 48px;
  padding: 0 22px;
  font-size: 14px;
  border-color: rgba(33, 62, 137, 0.14);
  background: rgba(33, 62, 137, 0.04);
  color: #213e89;
}

.home-page .landingFooter_about__social_media__3__1t a:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.home-page .landingFooter_about__authors_button:hover {
  background: rgba(33, 62, 137, 0.08);
  box-shadow: 0 8px 20px rgba(33, 62, 137, 0.1);
}

.home-page .authors-overlay {
  position: fixed;
}

.home-page .authors-overlay__panel {
  justify-content: center;
}

@media (max-width: 900px) {
  .home-main {
    padding: 20px 20px 18px;
  }

  .home-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-link-card {
    min-height: 240px;
  }

  .home-footer {
    padding: 0 20px 20px;
  }

  .home-page .landingFooter_footer__about__1W9xb {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-page .landingFooter_about__social_media__3__1t {
    justify-content: flex-start;
  }

  .home-page .landingFooter_about__social_media__3__1t a {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .home-page .landingFooter_social_media__icon__1dzBU {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 720px) {
  .home-main {
    gap: 18px;
    padding: 16px;
  }

  .home-hero {
    border-radius: 24px;
    min-height: 120px;
    max-height: none;
    padding: 16px 18px;
  }

  .home-hero__title {
    max-width: none;
    font-size: 16px;
  }

  .home-hero__description {
    font-size: 11px;
  }

  .home-link-card {
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
  }

  .home-link-card__title {
    max-width: none;
  }

  .home-footer {
    padding: 0 16px 16px;
  }

  .home-footer__panel {
    padding: 0;
    border-radius: 0;
  }

  .home-page .landingFooter_about__social_media__3__1t {
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
  }

  .home-page .landingFooter_about__social_media__3__1t a {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .home-page .landingFooter_social_media__icon__1dzBU {
    width: 24px;
    height: 24px;
  }
}
