@charset "UTF-8";
/* Указываем box sizing */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Убираем внутренние отступы и маркеры списков с нулевой специфичностью */
:where(ul[class], ol[class]) {
  padding: 0;
  list-style: none;
}

/* Убираем внешние отступы с нулевой специфичностью */
:where(body, h1, h2, h3, h4, p, ul[class], ol[class], li, figure, figcaption, blockquote, dl, dd) {
  margin: 0;
}

/* Выставляем основные настройки по-умолчанию для body */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Элементы a, у которых нет класса, сбрасываем до дефолтных стилей */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Упрощаем работу с изображениями */
img {
  display: block;
}

/* Автоотступы только для простых текстовых <article> без классов, чтобы не сдвигать карточки */
:where(article:not([class]) > * + *) {
  margin-top: 1em;
}

/* Наследуем шрифты для инпутов и кнопок */
input,
button,
textarea,
select {
  font: inherit;
}

/* Удаляем все анимации и переходы для людей, которые предпочитают их не использовать */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Запас прокрутки под фиксированную шапку с воздухом под рамку подсветки */
[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;
  }
}
html,
body {
  height: 100%;
  line-height: 1;
  font-size: 62.5%;
}

body {
  font-family: "Montserrat", sans-serif;
  color: #000000;
}

.wrapper {
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.content {
  font-size: 1.8rem;
  flex: 1 1 auto;
}

.container {
  max-width: 148rem;
  width: 100%;
  margin: 0 auto;
  padding: 0rem 2rem;
}

.image-text {
  margin-top: 6rem;
  color: #0e63ae;
}
.image-text__title {
  font-size: 3rem;
  font-weight: 600;
  line-height: 39px;
  margin-bottom: 2rem;
}
.image-text__title a {
  color: #0e63ae;
  text-decoration: none;
}

.image-text-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 6rem;
}
.image-text-block__text {
  color: #0e63ae;
  text-decoration: none;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.3;
  transition: all 0.2s ease;
}
.image-text-block__text a {
  color: #0e63ae;
  text-decoration: none;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 24px;
  transition: all 0.1s ease;
}
.image-text-block__text a:hover {
  margin-left: 0.5rem;
  font-weight: 600;
}
.image-text-block__image {
  max-height: 51rem;
}
.image-text-block__image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.image-text-block li, .image-text-block p {
  margin-bottom: 1rem;
}

/* ============================== */
.brochure {
  margin: 6rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(14, 99, 174, 0.5);
  border-radius: 40px;
}

.button-brochure {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 10rem;
  color: #fff;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.15rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  width: 100%;
  padding: 1rem 0;
}

.button-brochure span {
  font-size: 2rem;
  font-weight: 400;
  line-height: 39px;
  text-align: center;
}

.button-brochure:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 26, 48, 0.9);
  border-radius: 10rem;
  z-index: -2;
}

.button-brochure:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgba(0, 23, 43, 0.9);
  transition: all 0.3s;
  border-radius: 10rem;
  z-index: -1;
}

.button-brochure:hover {
  color: #fff;
}

.button-brochure:hover:before {
  width: 100%;
}

.title {
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 39px;
  margin-bottom: 2rem;
}
.title a {
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 39px;
  margin-bottom: 2rem;
  color: #0e63ae;
  text-decoration: none;
}

/* ============================== */
.start {
  margin-top: 10rem !important;
}
.start__block {
  position: relative;
}
.start__image img {
  height: 50svh;
  width: 100%;
  max-height: 90svh;
  object-fit: cover;
  border-radius: 20px;
}

.text-start {
  position: absolute;
  left: 3rem;
  bottom: 3rem;
  width: 100%;
  padding: 1rem 1rem 0rem;
  max-width: 92.5rem;
  background-color: #ffffff;
  border-radius: 40px;
  width: auto;
}
.text-start__title {
  color: #0e63ae;
  font-size: 3.2rem;
  line-height: 39px;
  font-weight: 600;
}
.text-start__text {
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 29px;
}

/* ============================== */
.training-programs {
  margin-top: 2rem;
}
.training-programs h3 {
  font-size: 2.4rem;
}
.training-programs li {
  list-style-type: none;
  margin-left: -4rem;
}
.training-programs li a {
  color: #0e63ae;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 40px;
  text-decoration: none;
}

.want-details {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border: 1px solid #0e63ae;
  border-radius: 20px;
  text-decoration: none;
  transition: font-weight 100ms linear;
  will-change: font-weight;
}
.want-details:hover span {
  font-weight: 500;
}
.want-details span {
  color: #0e63ae;
  font-size: 2rem;
  font-weight: 400;
  line-height: 24px;
}

.button-back a {
  font-size: 2.2rem;
  color: #000;
  text-decoration: none;
  transition: margin-left 0.3s ease;
}
.button-back a:hover {
  font-weight: 500;
  margin-left: 0.5rem;
}

/* PC + LAPTOP*/
@media (max-width: 1281.98px) {
  .container {
    max-width: 108rem;
  }
  .text-start {
    max-width: 90%;
    padding: 1rem 1rem 0rem;
  }
  .text-start__title {
    font-size: 2.4rem;
  }
  .text-start__text {
    font-size: 2rem;
  }
  .training-programs h3 {
    font-size: 2rem;
    margin-bottom: 0;
  }
  .training-programs ul {
    margin: 0;
  }
  .training-programs li a {
    font-size: 1.6rem;
  }
  .image-text-block__text {
    font-size: 2.2rem;
  }
}
@media (max-width: 1038.98px) {
  .title {
    font-size: 2.2rem;
  }
  .image-text-block {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 2rem;
  }
  .image-text-block__text {
    font-size: 2rem;
  }
}
/* TABLET */
@media (max-width: 860.98px) {
  .container {
    max-width: none;
  }
  .image-text-block {
    gap: 2rem;
  }
  .image-text-block__text {
    font-size: 2rem !important;
  }
  .start__image img {
    height: 100% !important;
    object-fit: contain !important;
  }
  .text-start {
    max-width: 90%;
    padding: 1rem 1rem 1rem;
    left: 2rem;
    bottom: 2rem;
  }
  .text-start__title {
    font-size: 2rem;
    margin-bottom: 0;
  }
  .text-start__text {
    font-size: 1.6rem;
  }
}
@media (max-width: 668.98px) {
  .text-start {
    left: 1rem;
    bottom: 1rem;
    padding: 1rem 1rem 1rem 2rem;
  }
  .text-start__title {
    margin-bottom: 1rem;
  }
  .text-start__text {
    line-height: 1.8rem;
  }
  .want-details span {
    font-size: 1.6rem;
  }
}
/* MOBILE */
@media (max-width: 499.98px) {
  .text-start__title {
    margin-bottom: 0rem;
    font-size: 1.4rem;
    line-height: 1;
  }
  .text-start__text {
    line-height: 1.2rem;
    font-size: 1.2rem;
    display: none;
  }
  .brochure span {
    font-size: 1.6rem;
    line-height: 24px;
  }
  .title {
    font-size: 2rem;
  }
  .image-text-block__text {
    font-size: 1.6rem !important;
    max-width: 90vw;
  }
  .image-text-block__image {
    max-width: 90vw;
  }
  .want-details img {
    display: none;
  }
}
.news {
  margin-top: 6rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
}
.news__body {
  width: 100%;
}
.news__header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.6rem;
  margin-bottom: 3rem;
}
.news__title {
  margin-bottom: 3rem;
  transition: transform 0.25s ease;
}
.news__header-row .news__title {
  margin-bottom: 0;
}
.news__title:hover {
  transform: translateX(4px);
}
.news__title a {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0e63ae;
  text-decoration: none;
}
.news__more {
  margin-top: 2rem;
}
.news__header-row .news__more {
  margin-top: 0;
}
.news__more a {
  color: #0e63ae;
  text-decoration: none;
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}
.news__more a:after {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #0e63ae;
  transition: width 0.35s ease;
}
.news__more a:hover:after {
  width: 100%;
  left: 0;
}

.news-page {
  margin-top: 11rem;
  margin-bottom: 6rem;
}

/* Шапка раздела и переключатель News / Events */
.media-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.8rem;
}
.media-header__eyebrow {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 0.6rem;
}
.media-header .news__title {
  margin-bottom: 0;
}

.media-switcher {
  display: inline-flex;
  background-color: #f1f5f9;
  padding: 0.4rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
}
.media-switcher__btn {
  font-size: 1.5rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  padding: 0.9rem 2.2rem;
  border-radius: 0.8rem;
  transition: all 0.2s ease;
}
.media-switcher__btn:hover {
  color: #0e63ae;
}
.media-switcher__btn._active {
  background-color: #0e63ae;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 26, 48, 0.18);
}

/* Панель поиска и фильтрации по годам */
.media-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.4rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1.4rem;
  padding: 1.4rem 1.8rem;
  margin-bottom: 3.6rem;
}
.media-toolbar__search {
  flex: 1 1 280px;
}
.media-toolbar__input {
  width: 100%;
  font-family: inherit;
  font-size: 1.5rem;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  padding: 1.1rem 1.6rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.media-toolbar__input:focus {
  border-color: #0e63ae;
  box-shadow: 0 0 0 3px rgba(0, 26, 48, 0.08);
}
.media-toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.media-toolbar__select {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 500;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  padding: 1.1rem 1.6rem;
  cursor: pointer;
  outline: none;
}
.media-toolbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #0e63ae;
  border: none;
  border-radius: 0.9rem;
  padding: 1.1rem 2.2rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.media-toolbar__btn:hover {
  opacity: 0.9;
}
.media-toolbar__reset {
  font-size: 1.4rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  padding: 0.8rem 1rem;
}
.media-toolbar__reset:hover {
  color: #b91c1c;
}

.media-empty {
  text-align: center;
  padding: 6rem 2rem;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 1.6rem;
}
.media-empty h3 {
  font-size: 2.2rem;
  color: #0e63ae;
  margin-bottom: 1rem;
}
.media-empty p {
  font-size: 1.5rem;
  color: #64748b;
  margin-bottom: 2rem;
}

/* Сетка карточек новостей и событий (строго под 800x600 / 4:3) */
.block-news {
  width: 100%;
  display: grid;
  grid-auto-rows: auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem 2.4rem;
}
.block-news__item {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid rgba(0, 26, 48, 0.08);
  border-radius: 1.6rem;
  padding: 1.8rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 26, 48, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.block-news__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 26, 48, 0.1);
  border-color: rgba(0, 26, 48, 0.2);
}
.block-news__item:hover .block-news__item-more {
  transform: translateX(4px);
}
.block-news__item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.block-news__item-date {
  font-size: 1.35rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 1.2rem;
}
.block-news__item-top .block-news__item-date {
  margin-bottom: 0;
}
.block-news__item-image {
  width: 100%;
  aspect-ratio: 4/3; /* Точная пропорция 800x600 */
  height: auto;
  margin-bottom: 1.6rem;
  overflow: hidden;
  border-radius: 1.2rem;
  background-color: transparent;
}
.block-news__item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Никакой обрезки краев 800x600 */
  object-position: center;
  border-radius: 1.2rem;
  display: block;
}
.block-news__item-text {
  color: #0e63ae;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 1rem;
}
.block-news__item-excerpt {
  font-size: 1.4rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 1.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.block-news__item-more {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid #f1f5f9;
  font-size: 1.35rem;
  font-weight: 600;
  color: #0e63ae;
  display: inline-block;
  transition: transform 0.2s ease;
}

.event-status-badge {
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.event-status-badge--upcoming {
  background-color: #dcfce7;
  color: #15803d;
}
.event-status-badge--past {
  background-color: #f1f5f9;
  color: #475569;
}

/* Современная пагинация */
.pagination__block {
  margin: 5rem 0 2rem;
  width: 100%;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination li {
  float: none !important;
  padding: 0 !important;
  font-size: 1.5rem;
  display: inline-flex;
}
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  height: 4rem;
  padding: 0 1.2rem;
  border-radius: 0.9rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: #1e293b;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}
.pagination li a:hover {
  border-color: #0e63ae;
  color: #0e63ae;
  background-color: #f8fafc;
}
.pagination .current-link,
.pagination .current-link a {
  background-color: #0e63ae !important;
  color: #ffffff !important;
  border-color: #0e63ae !important;
  border-radius: 0.9rem;
}
.pagination .current-link:not(:has(a)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  height: 4rem;
  padding: 0 1.2rem;
  font-weight: 700;
}
.pagination .dead-link span {
  color: #94a3b8;
  background-color: #f8fafc;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

/* Детальная страница новости / события (новая + совместимость) */
.news-article {
  margin: 11rem 0 6rem;
}
.news-article__container {
  max-width: 148rem;
  margin: 0 auto;
  padding: 0 2rem;
}
.news-article__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.8rem;
  font-size: 1.5rem;
}
.news-article__back-btn {
  display: inline-flex;
  align-items: center;
  color: #0e63ae;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  background-color: #f1f5f9;
  border-radius: 0.8rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.news-article__back-btn:hover {
  background-color: #0e63ae;
  color: #ffffff;
}
.news-article__crumb-sep, .news-article__crumb-current {
  color: #64748b;
}
.news-article__header {
  margin-bottom: 3rem;
  text-align: left;
}
.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 1.45rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.news-article__date {
  color: #0e63ae;
  background-color: rgba(0, 26, 48, 0.07);
  padding: 0.4rem 1.1rem;
  border-radius: 0.6rem;
  font-weight: 600;
}
.news-article__title {
  font-size: 3rem;
  line-height: 1.35;
  font-weight: 700;
  color: #0e63ae;
  text-align: center;
}
.news-article {
  /* Контейнер строго под 800x600 без растягивания и обрезки */
}
.news-article__figure {
  max-width: 800px;
  width: 100%;
  margin: 0 auto 3.6rem;
  border-radius: 1.6rem;
  overflow: hidden;
  background-color: transparent;
}
.news-article__image {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: 1.6rem;
  display: block;
  cursor: zoom-in;
}
.news-article__content {
  font-size: 1.75rem;
  line-height: 1.8;
  color: #1e293b;
  text-align: left;
}
.news-article__content p {
  margin-bottom: 1.6rem;
}
.news-article__content span {
  margin-bottom: 1rem;
}
.news-article__content h2,
.news-article__content h3 {
  color: #0e63ae;
  font-weight: 700;
  margin: 2.8rem 0 1.4rem;
  line-height: 1.35;
}
.news-article__content h2 {
  font-size: 2.4rem;
}
.news-article__content h3 {
  font-size: 2rem;
}
.news-article__content ul,
.news-article__content ol {
  margin: 0 0 2rem 2.4rem;
}
.news-article__content li {
  margin-bottom: 0.8rem;
}
.news-article__content blockquote {
  margin: 2.4rem 0;
  padding: 1.6rem 2.2rem;
  border-left: 4px solid #0e63ae;
  background-color: #f8fafc;
  border-radius: 0 1rem 1rem 0;
  font-style: italic;
  color: #0f172a;
}
.news-article__content a {
  color: #0e63ae;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.news-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 1.2rem;
  display: block;
  margin: 2rem auto;
}
.news-article__footer {
  margin-top: 4rem;
  padding-top: 2.4rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
}
.news-article__share {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.news-article__share-label {
  font-size: 1.45rem;
  font-weight: 600;
  color: #475569;
}
.news-article__share-btn {
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 600;
  color: #0e63ae;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.8rem 1.6rem;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.news-article__share-btn:hover {
  background-color: #0e63ae;
  color: #ffffff;
  border-color: #0e63ae;
}
.news-article__all-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0e63ae;
  text-decoration: none;
}

/* Обратная совместимость со старыми классами .news-detailed */
.news-detailed {
  margin: 0 0 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.news-detailed__container {
  margin-top: 10rem;
}
.news-detailed__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.news-detailed__title {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  font-weight: 600;
}
.news-detailed__date {
  margin-bottom: 3rem;
}
.news-detailed__image {
  max-width: 800px;
  width: 100%;
}
.news-detailed__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: 1.2rem;
}
.news-detailed__text {
  margin-top: 3rem;
  width: 100%;
  line-height: 29px;
  align-self: start;
  text-align: left;
}
.news-detailed__text span,
.news-detailed__text p {
  margin-bottom: 1rem;
}
.news-detailed__text a {
  color: #001a30;
  font-weight: 500;
}

.back-to-news {
  text-align: left;
}
.back-to-news a {
  font-size: 2rem;
}

.related-news {
  padding: 5rem 0 7rem;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.related-news__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
}
.related-news__title {
  font-size: 2.6rem;
  font-weight: 700;
  color: #0e63ae;
}
.related-news__more {
  font-size: 1.6rem;
  font-weight: 600;
  color: #0e63ae;
  text-decoration: none;
}

.article-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 12, 24, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.article-lightbox._open {
  display: flex;
}
.article-lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 0.8rem;
  object-fit: contain;
}

/* Раздел Media (media.php) */
.media-news {
  margin-top: 10rem;
}
.media-news__block {
  display: grid;
  grid-auto-rows: unset;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
}

.events__title {
  margin: 10rem 0 4rem;
  padding: 0 2rem;
}
.events__block {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 3rem;
  margin-bottom: 6rem;
  padding: 0 2rem;
}

.block-events__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background-color: #ffffff;
  border: 1px solid rgba(0, 26, 48, 0.08);
  border-radius: 1.4rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 26, 48, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.block-events__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 26, 48, 0.09);
}
.block-events__item-date {
  font-weight: 600;
  color: #64748b;
  margin-bottom: 1.4rem;
}

.events-media {
  margin-top: 0;
}

.media-events {
  margin-bottom: 6rem;
}

.ql-align-center {
  text-align: center;
}
.ql-align-center img {
  margin: 3rem auto 0;
}

.ql-align-right {
  text-align: right;
}

.ql-align-justify {
  text-align: justify;
}

/* PC + LAPTOP */
@media (max-width: 1281.98px) {
  .block-news {
    gap: 2.4rem;
  }
}
/* TABLET */
@media (max-width: 960.98px) {
  .block-news {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .news {
    padding: 0;
    margin-top: 6rem;
  }
  .events__title, .events__block {
    padding: 0;
  }
  .media-news {
    margin-top: 10rem;
  }
}
@media (max-width: 698.98px) {
  .block-news {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .events__block {
    flex-direction: column;
  }
  .news-article__title {
    font-size: 2.4rem;
  }
}
/* MOBILE */
@media (max-width: 499.98px) {
  .news {
    margin-top: 10rem;
  }
  .block-news {
    gap: 2rem;
  }
  .media-news {
    margin-top: 10rem;
  }
}
/* Брошюра / Научные мероприятия */
.brochure {
  margin: 6rem 0 0 0;
}

.button-brochure {
  border: 1px solid #001a30;
}
.button-brochure span,
.button-brochure svg,
.button-brochure svg g {
  transition: all 0.1s ease;
}
.button-brochure:hover span {
  color: #fff;
}
.button-brochure:hover svg g {
  fill: #fff;
}
.button-brochure span {
  color: #001a30;
}
.button-brochure img {
  margin-left: 1rem;
  width: 50px;
}
.button-brochure::after {
  background-color: #fff !important;
}

/* ==========================================================================
   СТРАНИЦА MEDIA — БАННЕР НАУЧНЫХ МЕРОПРИЯТИЙ 2026
   ========================================================================== */
.media-main {
  padding-top: 11.4rem;
  padding-bottom: 6.4rem;
}
.media-main .news {
  margin-top: 4.4rem;
}

.media-sci-banner {
  margin-bottom: 1.2rem;
}
.media-sci-banner__card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2.4rem;
  padding: 3.2rem 4rem;
  border-radius: 2.8rem;
  background: linear-gradient(135deg, #0e63ae 0%, #09447a 100%);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(14, 99, 174, 0.22);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.media-sci-banner__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(14, 99, 174, 0.28);
}
.media-sci-banner__card:hover .media-sci-banner__cta {
  transform: translateX(3px);
}
.media-sci-banner__left {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  max-width: 78rem;
}
.media-sci-banner__icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.media-sci-banner__icon svg {
  width: 2.8rem;
  height: 2.8rem;
  color: #ffffff;
}
.media-sci-banner__eyebrow {
  display: inline-block;
  font-size: 1.18rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.5rem;
}
.media-sci-banner__title {
  font-size: clamp(2.1rem, 2.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.media-sci-banner__sub {
  font-size: 1.48rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.media-sci-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.2rem;
  border-radius: 99rem;
  background: #ffffff;
  color: #0e63ae;
  font-size: 1.44rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

@media (max-width: 1160.98px) {
  .media-main {
    padding-top: 9.8rem;
  }
}
@media (max-width: 768.98px) {
  .media-sci-banner__card {
    padding: 2.4rem 2.2rem;
    border-radius: 2.2rem;
  }
  .media-sci-banner__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }
  .media-sci-banner__icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1.4rem;
  }
  .media-sci-banner__cta {
    width: 100%;
    justify-content: center;
  }
}