.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__top .logo {
  padding: 25px;
}

.header__lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin-right: 25px;
  padding: 4px;
  background: #f4f4f4;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
}

.lang-switcher__item {
  display: inline-block;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #444;
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

a.lang-switcher__item:hover {
  color: #e22d30;
  background: #fff;
}

.lang-switcher__item--active {
  color: #fff;
  background: #2a2a2a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

@media screen and (max-width: 767px) {
  .header__top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .header__top .logo {
    padding: 20px 20px 10px;
  }

  .header__lang {
    display: inline-flex;
    justify-content: center;
    width: fit-content;
    max-width: calc(100% - 40px);
    margin: 0 auto 10px;
  }

  .menu__btn {
    width: calc(100% - 40px);
    margin: 0 auto;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    background: linear-gradient(180deg, #2f2f2f 0%, #262626 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    transition: background-color .18s ease, box-shadow .18s ease, transform .12s ease;
  }

  .menu__btn-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    letter-spacing: .06em;
  }

  .menu__btn-title::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: .9;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .18s ease, opacity .18s ease;
  }

  .js .menu__btn--active .menu__btn-title::after {
    transform: rotate(-135deg) translateY(-1px);
  }

  .menu {
    position: relative;
    padding-bottom: 4px;
  }

  .js .menu__list {
    top: 100%;
    left: 50%;
    width: calc(100% - 40px);
    margin: 6px 0 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
    transform-origin: top center;
    transform: translateX(-50%) scaleY(0);
  }

  .js .menu__list--active {
    border: 1px solid rgba(255, 255, 255, .14);
    transform: translateX(-50%) scaleY(1);
  }

  .menu__item {
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  .menu__link {
    text-align: center;
  }

  .menu__btn:hover,
  .menu__btn:focus-visible {
    background: #1f1f1f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .24);
  }

  .menu__btn:active {
    transform: translateY(1px);
  }
}

.site-search {
  margin-top: 20px;
}

.site-search__form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.site-search__input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
}

.site-search__button {
  min-width: 100px;
  border: 0;
  cursor: pointer;
}

.site-search__status {
  margin-bottom: 12px;
  color: #666;
}

.site-search__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-search__item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.site-search__title {
  font-weight: 700;
}

.site-search__meta {
  margin-top: 4px;
  color: #888;
  font-size: 12px;
}

.site-search__summary {
  margin: 8px 0 0;
}

.post__content p > img,
.main__content p > img,
.list__excerpt p > img {
  display: block;
  margin: 18px auto 22px;
}

.post__content > img,
.main__content > img {
  display: block;
  margin: 22px auto 26px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 18px;
  margin-bottom: 26px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfcfc 0%, #f7f7f7 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.home-hero::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #e22d30 0%, #ff7a00 100%);
}

.home-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7c7c7c;
}

.home-hero__body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: #2a2a2a;
}

.home-hero__body p:last-child {
  margin-bottom: 0;
}

.home-feed {
  position: relative;
  padding-top: 4px;
}

.home-feed__header {
  margin-bottom: 18px;
}

.home-feed__title {
  margin: 0;
  padding: 0 0 8px;
  font-size: 18px;
  border-bottom: 1px solid #ebebeb;
}

@media screen and (max-width: 767px) {
  .home-hero {
    padding: 18px 16px 14px;
    border-radius: 10px;
  }

  .home-hero__body p {
    font-size: 15px;
    line-height: 1.75;
  }
}

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

.widget-contact__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget-contact__item {
  margin: 0;
}

.widget-contact__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #fff;
  color: #2a2a2a;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.widget-contact__link:hover,
.widget-contact__link:focus {
  color: #e22d30;
  border-color: #e22d30;
  box-shadow: 0 6px 14px rgba(226, 45, 48, .16);
  transform: translateY(-1px);
  text-decoration: none;
}

.widget-contact__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.widget-contact__icon--orcid {
  fill: #a6ce39;
}

.widget-contact__icon--orcid text,
.widget-contact__icon--xhs text {
  fill: #fff;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .2px;
}

.widget-contact__icon--xhs {
  fill: #ff2442;
}

.notes-hero {
  position: relative;
  margin-bottom: 24px;
  padding: 24px 26px 20px;
  border: 1px solid #e8ebef;
  border-radius: 14px;
  background: linear-gradient(140deg, #fff 0%, #f6f8fb 72%);
  box-shadow: 0 10px 26px rgba(17, 24, 39, .06);
}

.notes-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, #1f6feb 0%, #16a34a 50%, #f97316 100%);
}

.notes-hero__eyebrow {
  margin: 0 0 10px;
  color: #5f6773;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.notes-hero__title {
  margin-bottom: 10px;
}

.notes-hero__desc {
  margin-bottom: 14px;
}

.notes-hero__desc p {
  margin: 0;
  color: #2e3440;
  line-height: 1.8;
  font-size: 16px;
}

.notes-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notes-hero__pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef3ff;
  border: 1px solid #d6e1ff;
  color: #2c4f9e;
  font-size: 12px;
  font-weight: 700;
}

.notes-feed {
  border-top: 1px solid #eceff3;
  padding-top: 8px;
}

@media screen and (max-width: 767px) {
  .notes-hero {
    padding: 18px 16px 15px;
    border-radius: 12px;
    margin-bottom: 18px;
  }

  .notes-hero::before {
    border-radius: 12px 12px 0 0;
  }

  .notes-hero__desc p {
    font-size: 15px;
    line-height: 1.75;
  }
}

.visitor-map-card {
  margin: 18px 0 22px;
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
  overflow: hidden;
}

.visitor-map-card__header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #eceff4;
}

.visitor-map-card__title {
  margin: 0;
  font-size: 17px;
}

.visitor-map-card__desc {
  margin: 6px 0 0;
  color: #616b78;
  font-size: 13px;
  line-height: 1.65;
}

.visitor-map-card__body {
  padding: 10px 12px 12px;
}

.visitor-map-card__iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
}

.visitor-map-card__img {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 8px;
}

.visitor-map-card__empty {
  margin: 12px;
  padding: 12px 14px;
  border: 1px dashed #d6deea;
  border-radius: 8px;
  background: #f7f9fc;
}

.visitor-map-card__empty p {
  margin: 0 0 8px;
  color: #3d4652;
  font-size: 14px;
}

.visitor-map-card__empty p:last-child {
  margin-bottom: 0;
}
