@charset "UTF-8";
/* Запас прокрутки под фиксированную шапку с воздухом под рамку подсветки */
[id] {
  scroll-margin-top: 14rem;
}

@keyframes anchorHighlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 99, 174, 0.32);
    outline: 2px solid #0e63ae;
    outline-offset: 8px;
  }
  45% {
    box-shadow: 0 0 0 10px rgba(14, 99, 174, 0.1);
    outline: 2px solid #0e63ae;
    outline-offset: 8px;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 99, 174, 0);
    outline: 2px solid transparent;
    outline-offset: 8px;
  }
}
@keyframes anchorFramePulse {
  0% {
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(14, 99, 174, 0.24);
  }
  18% {
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(14, 99, 174, 0.08);
  }
  70% {
    opacity: 1;
    box-shadow: 0 0 0 12px rgba(14, 99, 174, 0.03);
  }
  100% {
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(14, 99, 174, 0);
  }
}
/* Подсветка для отдельных карточек (у которых уже есть padding со всех сторон) */
.is-anchor-highlight {
  border-radius: 2.4rem;
  animation: anchorHighlightPulse 2.2s ease-out;
}

/* Подсветка для секций (.container): равный воздух 1.6rem сверху, снизу и по бокам без сдвига макета */
.container.is-anchor-highlight {
  position: relative;
  animation: none;
  outline: none;
  box-shadow: none;
}
.container.is-anchor-highlight::after {
  content: "";
  position: absolute;
  inset: -1.6rem 0.4rem;
  border: 2px solid rgba(14, 99, 174, 0.85);
  border-radius: 2.8rem;
  background: rgba(14, 99, 174, 0.025);
  pointer-events: none;
  animation: anchorFramePulse 2.2s ease-out forwards;
}

/* Мгновенный плавный возврат иконки + при закрытии анимированного <details> */
details.is-closing .adm-faq__icon,
details.is-closing .rat-item__plus,
details.is-closing .edu-program-row__plus {
  transform: rotate(0deg) !important;
}

.header {
  position: fixed;
  width: 100%;
  top: 1.4rem;
  left: 0;
  z-index: 100;
  padding: 0 2rem;
  transition: top 0.25s ease;
}
.header__container {
  max-width: 144rem !important;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 99, 174, 0.14);
  border-radius: 2.2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding: 0 2.6rem !important;
}

.bar-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 7.4rem;
  padding: 1rem 0;
}
.bar-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.bar-header__logo img {
  height: 4.8rem;
  width: auto;
  display: block;
}
.bar-header__search {
  display: flex;
  align-items: center;
}
.bar-header__search a {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  background: #eef5fc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.2rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.bar-header__search a:hover {
  background: rgba(14, 99, 174, 0.16);
  transform: translateY(-1px);
}
.bar-header__search img {
  width: 1.8rem;
  height: 1.8rem;
  margin: 0;
}

.menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.menu__body {
  margin-right: 2rem;
}
.menu__list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
}
.menu__item {
  position: relative;
  margin-right: 0;
}
.menu__item-row {
  display: flex;
  align-items: center;
}
.menu__link {
  color: #0f172a;
  font-size: 1.52rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  padding: 0.9rem 1.25rem;
  border-radius: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.menu__link.active {
  color: #0e63ae;
  background: #eef5fc;
  font-weight: 600;
}
.menu__link:hover {
  color: #0e63ae;
  background: rgba(14, 99, 174, 0.07);
}
.menu__caret {
  font-size: 1.1rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.menu__toggle {
  display: none;
}
.menu__dropdown {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  min-width: 24rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(14, 99, 174, 0.15);
  border-radius: 1.8rem;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 120;
}
.menu__dropdown::before {
  content: "";
  position: absolute;
  top: -1.2rem;
  left: 0;
  right: 0;
  height: 1.2rem;
}
.menu__dropdown li {
  margin: 0;
}
.menu__dropdown a {
  display: block;
  padding: 0.95rem 1.3rem;
  border-radius: 1.1rem;
  font-size: 1.42rem;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.35;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.menu__dropdown a:hover {
  background: #eef5fc;
  color: #0e63ae;
}
.menu__item--right .menu__dropdown {
  left: auto;
  right: 0;
}

@media (min-width: 1161px) {
  .menu__item--has-sub:hover .menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .menu__item--has-sub:hover .menu__caret {
    transform: rotate(180deg);
  }
}
.language-switcher {
  position: relative;
  cursor: pointer;
}
.language-switcher__icon {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.3rem;
  border-radius: 99rem;
  background: #eef5fc;
  border: 1px solid rgba(14, 99, 174, 0.16);
  transition: background-color 0.2s ease;
}
.language-switcher__icon:hover {
  background: rgba(14, 99, 174, 0.14);
}
.language-switcher__icon img {
  width: 2rem;
  height: 1.8rem;
  border-radius: 2px;
}
.language-switcher span {
  font-size: 1.45rem;
  color: #0e63ae;
  margin: 0;
  font-weight: 600;
  display: inline-block;
}
.language-switcher__menu {
  display: none;
  border-radius: 1.6rem;
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  left: auto;
  min-width: 11rem;
  padding: 0.8rem;
  background-color: #ffffff;
  border: 1px solid rgba(14, 99, 174, 0.14);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  z-index: 60;
}
.language-switcher__menu._active {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.language-switcher__item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 1rem;
  margin: 0;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.language-switcher__item:hover {
  background: #eef5fc;
}
.language-switcher__item span {
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 600;
}
.language-switcher__item img {
  width: 2rem;
  height: 1.8rem;
}

.burger-menu {
  display: none;
}

@media (max-width: 1360.98px) {
  .menu__link {
    font-size: 1.42rem;
    padding: 0.8rem 0.95rem;
  }
}
@media (max-width: 1160.98px) {
  [id] {
    scroll-margin-top: 12.4rem;
  }
  .header {
    top: 1rem;
    padding: 0 1.4rem;
  }
  .header__container {
    padding: 0 1.8rem !important;
    border-radius: 1.8rem;
  }
  .menu {
    gap: 0.8rem;
  }
  .menu__body {
    position: absolute;
    top: -600%;
    left: 0;
    width: 100%;
    margin-right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .menu__body._active {
    z-index: 5;
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    width: 100%;
    max-height: 75vh;
    overflow-y: auto;
    padding: 1.6rem;
    opacity: 1;
    pointer-events: auto;
    background-color: #ffffff;
    border: 1px solid rgba(14, 99, 174, 0.16);
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
  }
  .menu__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  .menu__item {
    width: 100%;
  }
  .menu__item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
  }
  .menu__link {
    flex: 1;
    padding: 1.1rem 1.4rem;
    font-size: 1.6rem;
  }
  .menu__caret {
    display: none;
  }
  .menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 1rem;
    border: 1px solid rgba(14, 99, 174, 0.18);
    background: #eef5fc;
    color: #0e63ae;
    font-size: 1.3rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .menu__dropdown {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #eef5fc;
    border-radius: 1.4rem;
    margin: 0.4rem 0 0.8rem;
    padding: 0.6rem;
  }
  .menu__dropdown::before {
    display: none;
  }
  .menu__item._open .menu__dropdown {
    display: block;
  }
  .menu__item._open .menu__toggle {
    transform: rotate(180deg);
  }
  .burger-menu {
    z-index: 5;
    display: block;
    position: relative;
    width: 3.8rem;
    height: 3.8rem;
    cursor: pointer;
    background: #eef5fc;
    border: 1px solid rgba(14, 99, 174, 0.18);
    border-radius: 1.2rem;
    margin-left: 0.8rem;
  }
  .burger-menu span,
  .burger-menu::before,
  .burger-menu::after {
    left: 0.9rem;
    position: absolute;
    height: 2px;
    width: 1.8rem;
    border-radius: 2px;
    transition: all 0.3s ease;
    background-color: #0e63ae;
  }
  .burger-menu::before,
  .burger-menu::after {
    content: "";
  }
  .burger-menu::before {
    top: 1.1rem;
  }
  .burger-menu::after {
    bottom: 1.1rem;
  }
  .burger-menu span {
    top: 50%;
    transform: scale(1) translate(0, -50%);
  }
  .burger-menu._active span {
    transform: scale(0) translate(0, -50%);
  }
  .burger-menu._active::before {
    top: 48%;
    transform: rotate(-45deg) translate(0, -50%);
  }
  .burger-menu._active::after {
    bottom: 50%;
    transform: rotate(45deg) translate(0, 50%);
  }
}
@media (max-width: 499.98px) {
  .bar-header {
    min-height: 6.4rem;
  }
  .bar-header__logo img {
    height: 4rem;
    width: auto;
  }
  .bar-header__search a {
    margin-right: 0.6rem;
    width: 3.4rem;
    height: 3.4rem;
  }
}