/* ==========================================================================
   Словарь АПиМ — публичные стили каталога и страницы термина.
   Каталог воспроизводит утверждённую вёрстку (Tailwind-утилизацию разворачиваем
   в обычный CSS, чтобы страницы были полностью отрисованы сервером и не ждали
   клиентского Tailwind-рантайма).
   Страница термина воспроизводит утверждённые стили .glossary-* без изменений,
   кроме добавленных отступов контейнера и общих responsive-правок.
   ========================================================================== */

/* --- Базовый сброс (соответствует preflight, без которого h1/p получают
       браузерные margin) ---------------------------------------------------- */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}

html {
  /* Цвет совпадает с фоном глоссария: пока изображение не загрузилось,
     видна спокойная заливка, а не чёрный экран. */
  background: #1b6380;
  scrollbar-width: none;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  /* Фон даёт .g-backdrop; здесь только запасной цвет холста. */
  background: transparent;
  color: #18233a;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

/* --- Шрифтовые алиасы утверждённого макета --------------------------------- */
.font-medium-alias {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-weight: 500;
}

.font-regular-alias {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-weight: 400;
}

.font-semibold-alias {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid #16537c;
  outline-offset: 3px;
}

/* ==========================================================================
   Единый responsive header АПиМ (один DOM-узел, без клонов)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  transition:
    box-shadow 0.25s ease,
    border-radius 0.25s ease;
}

.site-header.is-stuck {
  box-shadow: 0 8px 30px rgba(3, 13, 16, 0.12);
  border-radius: 0 0 16px 16px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 20px;
}

.navbar .logo {
  flex: 0 0 auto;
  line-height: 0;
}

.navbar .logo img {
  width: 120px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li {
  font-size: 12px;
  text-align: center;
  padding: 0 2px;
}

.nav-links li a {
  display: inline-block;
  color: #030d10;
  font-weight: 500;
  line-height: 120%;
  text-align: center;
  text-decoration: none;
}

.nav-links li a:hover {
  text-decoration: underline;
}

.nav-links li.lk-btn {
  padding: 0;
}

.lk-btn button {
  border-radius: 100px;
  background: #d57b59;
  padding: 10px 30px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.lk-btn button:hover {
  opacity: 0.9;
}

.bvi-container {
  line-height: 0;
}

/* Кнопка «Версия для слабовидящих» — тот же размер, что и иконка в макете. */
.bvi-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

/* На десктопе пункты меню делят всю ширину между логотипом и правой частью. */
@media (min-width: 1201px) {
  .nav-links {
    flex: 1;
    justify-content: space-between;
  }
}

.bvi-open img {
  width: 20px;
  height: 20px;
}

/* Пункт «Главная страница» нужен только в мобильном меню */
.nav-links li.only-mobile {
  display: none;
}

.burger-button {
  display: none;
  flex-direction: column;
  flex: 0 0 auto;
  width: 25px;
  padding: 4px 0;
}

.burger-button span {
  display: block;
  height: 1.5px;
  width: 25px;
  margin: 3px 0;
  border-radius: 3px;
  background: #000;
  transition: all 0.3s ease;
}

.burger-button[aria-expanded='true'] span:nth-child(1) {
  transform: rotate(45deg);
  position: relative;
  top: 7.5px;
}

.burger-button[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.burger-button[aria-expanded='true'] span:nth-child(3) {
  transform: rotate(-45deg);
  position: relative;
  top: -7.5px;
}

.header-admission-btn {
  display: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 30px;
  background: #d57b59;
  color: #fff;
}

.header-admission-btn:active {
  opacity: 0.85;
}

@media (max-width: 1200px) {
  .burger-button {
    display: flex;
  }

  .header-admission-btn {
    display: block;
    margin-left: auto;
  }

  .site-header.menu-open .header-admission-btn {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: #fff;
    border-bottom: 1px solid #095459;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 12px 24px rgba(3, 13, 16, 0.08);
  }

  .site-header.menu-open .nav-links {
    display: flex;
  }

  /* В мобильном меню подписи идут одной строкой, как в текущем header сайта */
  .nav-links br {
    display: none;
  }

  .nav-links li {
    margin: 12px 0;
    font-size: 14px;
  }

  .nav-links li.only-mobile {
    display: block;
  }

  .nav-links li a {
    font-weight: 500;
  }

  .nav-links li.lk-btn {
    text-align: center;
  }
}

@media (max-width: 380px) {
  .header-admission-btn {
    font-size: 11px;
    padding: 8px 14px;
  }

  .navbar .logo img {
    width: 100px;
  }
}

/* ==========================================================================
   Фон глоссария: градиент за контентом, карточки остаются белыми подложками.
   Фиксированный слой — поэтому длинные страницы не растягивают фон.
   ========================================================================== */
.g-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Пока фотография грузится, виден фирменный цвет, а не чёрный прямоугольник. */
  background-color: #1b6380;
  background-image: url('https://fs.getcourse.ru/fileservice/file/download/a/798636/sc/118/h/d775569f760b3a84fe216ac990e70a78.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ==========================================================================
   Каталог /slovar/ — утверждённый макет главной
   ========================================================================== */
.g-page {
  min-height: 100dvh;
  /* 50px между списком терминов и футером. */
  padding-bottom: 50px;
}

.g-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Гуттеры только там, где контейнер упирается в край вьюпорта:
   от 1232px и выше макет остаётся ровно таким, как в утверждённой вёрстке. */
@media (max-width: 1231px) {
  .g-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.g-hero {
  /* Отступ от нижнего края навбара до заголовка: 58px на компьютере. */
  padding-top: 58px;
}

.g-hero__title {
  background-image: linear-gradient(
    104deg,
    #fff 75.83%,
    rgba(255, 255, 255, 0.69) 99.03%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Как на странице термина: одни и те же размеры на всех страницах словаря. */
  font-size: 50px;
  font-weight: 600;
  line-height: 1.2;
}

.g-hero__description {
  max-width: 925px;
  margin-top: 4px;
  color: #fff;
  /* Как на странице термина. */
  font-size: 23px;
  font-weight: 500;
  line-height: 1.27;
}

.g-hero__break {
  display: none;
}

.g-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

/* --- chips (разделы) ------------------------------------------------------ */
.g-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 5px;
}

.g-chip {
  display: flex;
  align-items: center;
  height: 33px;
  padding: 0 12px;
  border-radius: 51px;
  background: rgba(235, 236, 236, 0.58);
  color: #000;
  font-size: 10.575px;
  font-weight: 500;
  line-height: normal;
  transition: background-color 0.2s ease;
}

.g-chip:hover {
  background: #e3e7e8;
}

.g-chip--active {
  background: #16537c;
  color: #fff;
}

.g-chip--active:hover {
  background: #16537c;
}

/* --- карточка поиска ------------------------------------------------------ */
.g-card {
  border-radius: 27px;
  background: #fff;
}

.g-search {
  padding: 25px 40px 20px;
}

.g-search__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.g-search__title {
  color: #16537c;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
}

/* Сброс всех фильтров — в стиле неактивного chip. */
.g-reset {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  border-radius: 51px;
  background: rgba(235, 236, 236, 0.58);
  color: #16537c;
  font-size: 10.575px;
  line-height: normal;
  transition: background-color 0.2s ease;
}

.g-reset:hover {
  background: #e3e7e8;
}

.g-search__field {
  display: flex;
  align-items: center;
  gap: 10.693px;
  width: 100%;
  height: 46px;
  margin-top: 12px;
  padding: 0 15px;
  border: 0.815px solid #16537c;
  border-radius: 51px;
}

.g-search__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #16537c;
}

.g-search__input {
  min-width: 0;
  flex: 1;
  background: transparent;
  border: 0;
  font-size: 10.575px;
  font-weight: 500;
  color: #18233a;
  outline: none;
}

.g-search__input::placeholder {
  color: #adadad;
}

/* Нативный крестик поиска не нужен: рядом своя кнопка с доступным названием. */
.g-search__input::-webkit-search-cancel-button,
.g-search__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.g-search__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  margin-right: -6px;
  border-radius: 50%;
  color: #858585;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.g-search__clear svg {
  width: 14px;
  height: 14px;
}

.g-search__clear:hover {
  color: #16537c;
  background: #f1f4f5;
}

/* --- разделы: на телефоне сворачиваются под кнопку ----------------------- */
.g-cats {
  margin-top: 18px;
}

.g-cats__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  height: 33px;
  padding: 0 12px;
  border-radius: 51px;
  background: #16537c;
  color: #fff;
  font-size: 10.575px;
  line-height: normal;
}

.g-cats__toggle-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.g-cats__chevron {
  width: 10px;
  height: 6px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.g-cats__chevron.is-open {
  transform: rotate(180deg);
}

/* --- алфавит -------------------------------------------------------------- */
.g-alphabet {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}

.g-alphabet__all {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32.102px;
  padding: 0 12px;
  border: 0.658px solid #bbb;
  border-radius: 8.224px;
  background: #fff;
  color: #18233a;
  font-size: 11px;
  line-height: 1.09;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.g-alphabet__all:hover {
  border-color: #16537c;
}

.g-alphabet__all[aria-pressed='true'] {
  border-color: #16537c;
  background: #16537c;
  color: #fff;
}

.g-alphabet__letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32.102px;
  height: 32.102px;
  border: 0.658px solid #bbb;
  border-radius: 8.224px;
  background: #fff;
  color: #18233a;
  font-size: 16.449px;
  font-weight: 600;
  line-height: 1.09;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.g-alphabet__letter:hover {
  border-color: #16537c;
}

.g-alphabet__letter[aria-pressed='true'] {
  border-color: #16537c;
  background: #16537c;
  color: #fff;
}

/* --- карточка «Термин дня» ------------------------------------------------ */
.g-daily {
  position: relative;
  min-height: 403px;
  overflow: hidden;
  padding: 25px 24px;
  border-radius: 27px;
  background-color: #12191a;
  /* Декоративное изображение: фон без искажения пропорций (`auto` высота),
     не перехватывает нажатия и не мешает читать текст. */
  background-image: url('https://fs.getcourse.ru/fileservice/file/download/a/798636/sc/62/h/e25198543809b526012f1ffcd257fb89.png'),
    linear-gradient(168.39deg, #1a8388 9.21%, #12191a 90.86%);
  background-position:
    center top,
    0 0;
  background-size:
    100% auto,
    cover;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
}

.g-daily__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 353px;
}

.g-daily__badge {
  display: inline-flex;
  align-items: center;
  height: 33px;
  padding: 0 12px;
  border-radius: 51px;
  background: #fff;
  color: #000;
  font-size: 10.575px;
  font-weight: 500;
}

.g-daily__body {
  max-width: 362px;
  margin-top: 27px;
}

.g-daily__name {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.2;
}

.g-daily__name a {
  text-decoration: none;
}

.g-daily__name a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.g-daily__text {
  margin-top: 11px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.g-daily__more {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.g-daily__more-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* --- карточка списка терминов -------------------------------------------- */
.g-terms {
  margin-top: 20px;
  padding: 25px 40px 48px;
}

.g-terms__head {
  margin-top: 29px;
}

.g-terms__letter {
  color: #16537c;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
}

.g-terms__list {
  margin-top: 32px;
}

.g-term-item + .g-term-item {
  margin-top: 48.554px;
}

.g-term-item {
  color: #18233a;
}

.g-term-item__name {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.19;
}

.g-term-item__name a:hover {
  color: #16537c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.g-term-item__text {
  max-width: 1069px;
  margin-top: 16px;
  font-size: 24.277px;
  font-weight: 400;
  line-height: 1.19;
}

/* Раздел в карточке — та же строка-подпись, что была в утверждённом макете. */
.g-term-item__section {
  margin-top: 16px;
  color: #16537c;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.19;
}

/* Подсветка найденного фрагмента: мягкая подложка фирменного цвета. */
.g-hl {
  padding: 0 1px;
  border-radius: 2px;
  background: rgba(22, 83, 124, 0.14);
  color: inherit;
}

.g-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.g-more {
  height: 40px;
  padding: 0 22px;
  border-radius: 51px;
  background: #16537c;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  transition: opacity 0.2s ease;
}

.g-more:hover {
  opacity: 0.88;
}

/* Пустая выдача: что искали, какие фильтры действуют и что сделать. */
.g-empty {
  padding: 4px 0 16px;
}

.g-empty__title {
  color: #16537c;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.g-empty__text {
  margin-top: 12px;
  color: #18233a;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.g-empty__filter {
  margin-top: 8px;
  color: #858585;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.g-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.g-empty__button {
  height: 33px;
  padding: 0 14px;
  border: 0.815px solid #16537c;
  border-radius: 51px;
  background: #fff;
  color: #16537c;
  font-size: 10.575px;
  line-height: normal;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.g-empty__button:hover {
  background: #f1f4f5;
}

.g-empty__button--primary {
  background: #16537c;
  color: #fff;
}

.g-empty__button--primary:hover {
  background: #16537c;
  opacity: 0.9;
}

/* Текст только для скринридеров: объявления о смене выдачи. */
.g-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Индекс терминов для клиентов без JavaScript: каталог остаётся обходимым. */
.g-index {
  margin-top: 20px;
  padding: 25px 40px 48px;
}

.g-index__title {
  color: #16537c;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
}

.g-index__group {
  margin-top: 28px;
}

.g-index__letter {
  color: #16537c;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.g-index__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 5px;
  margin-top: 12px;
}

.g-index__link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 7px 12px;
  border-radius: 50px;
  background: #f3f3f3;
  color: #111;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.g-index__link:hover {
  background: #16537c;
  color: #fff;
}

@media (min-width: 640px) {
  .g-hero__break {
    display: block;
  }

  .g-alphabet {
    gap: 8.224px;
  }
}

@media (min-width: 1024px) {
  .g-grid {
    grid-template-columns: 736fr 443fr;
  }

  .g-grid--single {
    grid-template-columns: 1fr;
  }

  .g-terms {
    padding-left: 43px;
    padding-right: 43px;
  }

  .g-terms__head {
    margin-left: -3px;
  }
}

/* Телефон и планшет: разделы прячутся под кнопку, карточка «Термин дня»
   становится компактнее, чтобы список терминов начинался выше. */
@media (max-width: 767px) {
  /* Телефон: 30px от навбара до заголовка каталога. */
  .g-hero {
    padding-top: 30px;
  }

  /* Заголовок и вступление каталога на телефоне — как на странице термина. */
  .g-hero__title {
    font-size: 34px;
  }

  .g-hero__description {
    font-size: 16px;
  }

  /* Внутренние отступы карточек каталога на телефоне: 30px по вертикали, 15px по бокам. */
  .g-search,
  .g-daily,
  .g-terms {
    padding: 30px 15px;
  }

  .g-cats__toggle {
    display: inline-flex;
  }

  /* Текст карточки термина на телефоне читается компактнее. */
  .g-term-item__text {
    font-size: 16px;
  }

  .g-term-item__section {
    font-size: 14px;
  }

  .g-chips {
    display: none;
    margin-top: 10px;
  }

  .g-chips.is-open {
    display: flex;
  }

  .g-alphabet {
    justify-content: flex-start;
    gap: 6px;
    margin-top: 18px;
  }

  .g-daily {
    min-height: auto;
  }

  .g-daily__inner {
    min-height: auto;
  }

  .g-daily__body {
    max-width: none;
    margin-top: 18px;
  }

  .g-daily__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }

  .g-terms__list {
    margin-top: 24px;
  }

  .g-term-item + .g-term-item {
    margin-top: 32px;
  }

  .g-more-wrap {
    margin-top: 32px;
  }

  .g-empty__title {
    font-size: 20px;
  }
}

/* ==========================================================================
   Страница термина /slovar/:slug/
   Базовые стили .glossary-* из утверждённого макета.
   ========================================================================== */
.glossary-page,
.glossary-page * {
  box-sizing: border-box;
}

.glossary-page {
  position: relative;
  /* Подстраховка от горизонтального выхода содержимого за вьюпорт. */
  overflow: hidden;
  /* Отступ от нижнего края навбара до заголовка: 58px на компьютере. */
  padding: 58px 0 80px;
}

.glossary-page__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.glossary-header__title {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 50px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a.glossary-header__title:hover {
  color: #cfe3f0;
}

.glossary-header__description {
  max-width: 792px;
  margin: 7px 0 0;
  color: #fff;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.27;
}

.glossary-term {
  display: flex;
  flex-direction: column;
  min-height: 456px;
  margin-top: 55px;
  padding: 30px 34px 38px;
  border-radius: 23px;
  background: #fff;
}

.glossary-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
}

.glossary-breadcrumbs a {
  color: #858585;
  text-decoration: none;
  transition: color 0.2s ease;
}

.glossary-breadcrumbs a:hover {
  color: #16537c;
}

.glossary-breadcrumbs > span {
  color: #858585;
}

.glossary-breadcrumbs [aria-current='page'] {
  color: #111;
}

.glossary-term__content {
  margin-top: 35px;
  /* 20px воздуха между текстом термина и линией-разделителем навигации.
     Нижняя привязка навигации (`margin-top: auto`) при этом сохраняется. */
  margin-bottom: 20px;
}

.glossary-term__title {
  margin: 0;
  color: #16537c;
  font-size: 33px;
  font-weight: 600;
  line-height: 1.2;
}

.glossary-term__description {
  max-width: 760px;
  margin: 13px 0 0;
  color: #18233a;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
}

.glossary-term__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  margin-top: 28px;
}

.glossary-term__subtitle {
  margin: 0;
  color: #16537c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.glossary-term__simple {
  max-width: 440px;
  margin: 7px 0 0;
  color: #18233a;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.glossary-term__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.glossary-term__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 7px 12px;
  border-radius: 50px;
  background: #f3f3f3;
  color: #111;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.glossary-term__tag:hover {
  background: #16537c;
  color: #fff;
}

.glossary-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid #dedede;
}

.glossary-term__content + .glossary-navigation {
  margin-top: auto;
}

.glossary-navigation__item {
  display: inline-flex;
  align-items: center;
  gap: 19px;
  min-width: 0;
  color: #16537c;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.glossary-navigation__item:hover {
  opacity: 0.65;
}

.glossary-navigation__item--next {
  margin-left: auto;
  text-align: right;
  /* Стрелка — по внешнему краю ссылки: текст, затем стрелка вправо. */
  flex-direction: row-reverse;
}

.glossary-navigation__arrow {
  width: 20px;
  height: 32px;
  flex-shrink: 0;
}

.glossary-navigation__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.glossary-navigation__label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.glossary-navigation__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.glossary-page a:focus-visible {
  outline: 2px solid #16537c;
  outline-offset: 4px;
}

/* Страница термина не найдена (404) */
.glossary-missing {
  min-height: 320px;
}

@media (max-width: 1231px) {
  .glossary-page__container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 767px) {
  .glossary-page {
    /* Телефон: 30px от навбара до заголовка. */
    padding: 30px 16px 50px;
  }

  .glossary-page__container {
    padding-left: 0;
    padding-right: 0;
  }

  .glossary-header__title {
    font-size: 34px;
    line-height: 1.15;
  }

  .glossary-header__description {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.4;
  }

  .glossary-term {
    min-height: auto;
    margin-top: 35px;
    padding: 25px 20px 28px;
    border-radius: 20px;
  }

  .glossary-breadcrumbs {
    gap: 5px;
    font-size: 9px;
  }

  .glossary-term__content {
    margin-top: 28px;
  }

  .glossary-term__title {
    font-size: 27px;
    overflow-wrap: anywhere;
  }

  .glossary-term__description {
    margin-top: 15px;
    font-size: 17px;
    line-height: 1.35;
  }

  .glossary-term__details {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
  }

  .glossary-term__subtitle {
    font-size: 14px;
  }

  .glossary-term__simple {
    font-size: 14px;
    line-height: 1.4;
  }

  .glossary-navigation {
    gap: 12px;
    margin-top: 35px !important;
    padding-top: 22px;
  }

  .glossary-navigation__item {
    gap: 8px;
  }

  .glossary-navigation__arrow {
    width: 13px;
    height: 24px;
  }

  .glossary-navigation__label {
    font-size: 9px;
  }

  .glossary-navigation__name {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 359px) {
  .glossary-term {
    padding-right: 15px;
    padding-left: 15px;
  }

  .glossary-header__title {
    font-size: 30px;
  }

  .glossary-navigation__name {
    font-size: 11px;
  }
}

/* ==========================================================================
   Доступность: видимый фокус поиска и зоны нажатия (визуально без изменений)
   ========================================================================== */

/* Ввод заполняет всю высоту поля: клик по любому месту строки ставит курсор. */
.g-search__input {
  align-self: stretch;
}

/* У input свой `outline: none`, поэтому фокус показываем на оболочке поля. */
.g-search__field:focus-within {
  outline: 2px solid #16537c;
  outline-offset: 3px;
}

/* Невидимые зоны нажатия: размеры элементов остаются прежними. */
.g-reset,
.g-daily__more,
.g-search__clear,
.g-cats__toggle,
.g-chip,
.g-alphabet__all,
.g-alphabet__letter {
  position: relative;
}

.g-reset::after,
.g-daily__more::after,
.g-search__clear::after,
.g-cats__toggle::after,
.g-chip::after,
.g-alphabet__all::after,
.g-alphabet__letter::after {
  content: '';
  position: absolute;
  border-radius: inherit;
}

.g-reset::after {
  inset: -9px;
}

.g-daily__more::after {
  inset: -11px 0;
}

.g-search__clear::after {
  inset: -10px;
}

.g-cats__toggle::after {
  inset: -6px 0;
}

.g-chip::after {
  inset: -3px -2px;
}

.g-alphabet__all::after,
.g-alphabet__letter::after {
  inset: -3px;
}

/* ==========================================================================
   Футер АПиМ — разметка и стили основного сайта без изменений.
   Фон занимает всю ширину страницы, содержимое — в контейнере футера.
   ========================================================================== */
.apim-footer {
  width: 100%;
  background: #101214;
  color: #fff;
  font-family: inherit;
}

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

.apim-footer__container {
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
}




.apim-footer__main {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 2.6fr);
  gap: clamp(60px, 7vw, 120px);

  padding: 56px 0 64px;
}


/* =========================
   БРЕНД
========================= */

.apim-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.apim-footer__logo {
  display: block;
  width: min(100%, 150px);
  margin-bottom: 28px;
}

.apim-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.apim-footer__description {
  max-width: 320px;
  margin: 0;

  color: rgba(255, 255, 255, 0.64);

  font-size: 14px;
  line-height: 1.55;
}

.apim-footer__description a {
  color: #fff;
  text-decoration: none;
  transition:
    opacity 0.2s ease;
}

.apim-footer__description a:hover {
  opacity: 0.65;
}


/* =========================
   СОЦСЕТИ
========================= */

.apim-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 30px;
}

.apim-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.04);

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.apim-footer__social:hover {
  transform: translateY(-2px);

  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.apim-footer__social img {
  display: block;

  width: 18px;
  height: 18px;

  object-fit: contain;
}


/* =========================
   НАВИГАЦИЯ
========================= */

.apim-footer__navigation {
  display: grid;
  grid-template-columns:
    minmax(150px, 1fr)
    minmax(150px, 1fr)
    minmax(150px, 1fr)
    minmax(200px, 1.15fr);

  gap: 44px 34px;
}

.apim-footer__column {
  min-width: 0;
}

.apim-footer__title {
  margin: 0 0 24px!important;

  color: #fff;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.apim-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.apim-footer__links a {
  color: rgba(255, 255, 255, 0.58);

  font-size: 14px;
  line-height: 1.45;

  text-decoration: none;

  transition:
    color 0.2s ease;
}

.apim-footer__links a:hover {
  color: #fff;
}


/* =========================
   ПРИЁМНАЯ КОМИССИЯ
========================= */

.apim-footer__column--contacts {
  padding-left: 4px;
}

.apim-footer__contact-description {
  max-width: 240px;

  margin: 0 0 20px!important;

  color: rgba(255, 255, 255, 0.58);

  font-size: 14px;
  line-height: 1.45;
}

.apim-footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;


}

.apim-footer__contacts a {
  color: #fff;

  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;

  text-decoration: none;

  transition:
    opacity 0.2s ease;
}

.apim-footer__contacts a:hover {
  opacity: 0.65;
}

.apim-footer__button {
  display: flex;
  align-items: center;
  justify-content: center;
 margin-top:20px;
  width: 100%;

  min-height: 50px;

  padding: 13px 20px;

  border-radius: 12px;

  background: #fff;
  color: #111;

  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;

  text-align: center;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.apim-footer__button:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

.apim-footer__login {
  display: inline-block;

  margin-top: 18px!important;

  color: rgba(255, 255, 255, 0.56);

  font-size: 13px;
  line-height: 1.4;

  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 4px;

  transition:
    color 0.2s ease;
}

.apim-footer__login:hover {
  color: #fff;
}


/* =========================
   ЮРИДИЧЕСКАЯ ЧАСТЬ
========================= */

.apim-footer__legal {
  padding: 30px 0 34px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.apim-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 8px 0;

  margin-bottom: 24px!important;
}

.apim-footer__legal-links a {
  position: relative;

  display: inline;

  color: rgba(255, 255, 255, 0.48);

  font-size: 12px;
  line-height: 1.5;

  text-decoration: none;

  transition:
    color 0.2s ease;
}

.apim-footer__legal-links a:not(:last-child)::after {
  content: "·";

  display: inline-block;

  margin: 0 9px!important;

  color: rgba(255, 255, 255, 0.22);
}

.apim-footer__legal-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.apim-footer__legal-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 30px;
}

.apim-footer__legal-info p {
  margin: 0!important;

  color: rgba(255, 255, 255, 0.34);

  font-size: 11px;
  line-height: 1.55;
}

.apim-footer__legal-info p {
  grid-column: 1;
}

.apim-footer__legal-info span {
  margin: 0 4px!important;
}

.apim-footer__legal-info a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;

  transition:
    color 0.2s ease;
}

.apim-footer__legal-info a:hover {
  color: #fff;
}


/* =========================
   ПЛАНШЕТ
========================= */

@media (max-width: 1180px) {

  .apim-footer__main {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .apim-footer__brand {
    display: grid;
    grid-template-columns: minmax(220px, 0.6fr) minmax(280px, 1fr);
    gap: 20px 60px;
    align-items: start;
  }

  .apim-footer__logo {
    grid-row: 1 / span 2;
    margin-bottom: 0!important;
  }

  .apim-footer__description {
    max-width: 470px;
  }

  .apim-footer__socials {
    margin-top: 2px!important;
  }

}


/* =========================
   МАЛЕНЬКИЙ ПЛАНШЕТ
========================= */

@media (max-width: 900px) {

  .apim-footer__container {
    width: min(100% - 36px, 1440px);
  }

  .apim-footer__main {
    padding: 60px 0 52px;
  }

  .apim-footer__navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 44px;
  }

}


/* =========================
   МОБИЛЬНЫЙ
========================= */

@media (max-width: 640px) {

  .apim-footer__container {
    width: calc(100% - 32px);
  }

  .apim-footer__main {
    gap: 48px;
    padding: 48px 0 0;
  }

  .apim-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .apim-footer__logo {
    width: 210px;
    margin-bottom: 24px!important;
  }

  .apim-footer__description {
    max-width: 100%;

    font-size: 13px;
  }

  .apim-footer__socials {
    margin-top: 26px!important;
  }

  .apim-footer__social {
    width: 40px;
    height: 40px;
  }

  .apim-footer__navigation {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .apim-footer__column {
    padding: 26px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .apim-footer__column:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .apim-footer__title {
    margin-bottom: 18px!important;

    font-size: 15px;
  }

  .apim-footer__links {
    gap: 12px;
  }

  .apim-footer__links a {
    font-size: 14px;
  }

  .apim-footer__column--contacts {
    padding-left: 0;
  }

  .apim-footer__button {
    max-width: 100%;
  }

  .apim-footer__legal {
    padding: 26px 0 30px;
  }

  .apim-footer__legal-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;

    margin-bottom: 24px!important;
  }

  .apim-footer__legal-links a {
    font-size: 11px;
  }

  .apim-footer__legal-links a:not(:last-child)::after {
    display: none;
  }

  .apim-footer__legal-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .apim-footer__legal-info p {
    font-size: 10px;
  }

}

/* ==========================================================================
   Версия для слабовидящих: панель настроек и режимы отображения.
   Собственная реализация: плагин bvi основного сайта в Chatium не подключён.
   ========================================================================== */
.a11y {
  position: fixed;
  top: 78px;
  right: 20px;
  z-index: 60;
  width: min(320px, calc(100vw - 32px));
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(3, 13, 16, 0.22);
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

.a11y[hidden] {
  display: none;
}

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

.a11y__title {
  margin: 0;
  color: #16537c;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.a11y__close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
  border-radius: 50%;
  background: rgba(235, 236, 236, 0.58);
  color: #18233a;
  font-size: 18px;
  line-height: 1;
}

.a11y__close:hover {
  background: #e3e7e8;
}

.a11y__group {
  margin-top: 16px;
}

.a11y__label {
  display: block;
  color: #858585;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.a11y__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.a11y__option {
  height: 32px;
  padding: 0 12px;
  border-radius: 51px;
  background: rgba(235, 236, 236, 0.58);
  color: #16537c;
  font-size: 11px;
  font-weight: 500;
  line-height: normal;
  transition: background-color 0.2s ease;
}

.a11y__option:hover {
  background: #e3e7e8;
}

.a11y__option[aria-pressed='true'] {
  background: #16537c;
  color: #fff;
}

.a11y__reset {
  width: 100%;
  height: 38px;
  margin-top: 18px;
  border-radius: 51px;
  background: #16537c;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.a11y__reset:hover {
  opacity: 0.9;
}

/* Цветовые схемы: фильтры на верхнеуровневых блоках — панель остаётся читаемой. */
html[data-a11y-theme='mono'] body > :not(script):not(.a11y) {
  filter: grayscale(1);
}

html[data-a11y-theme='dark'] body > :not(script):not(.a11y) {
  filter: invert(1) hue-rotate(180deg);
}

@media (max-width: 767px) {
  .a11y {
    top: auto;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }
}

/* Крупный шрифт: увеличиваем текстовые размеры, сетка и ширины не меняются. */
html[data-a11y-font='125'] {
  --a11y-scale: 1.25;
}

html[data-a11y-font='150'] {
  --a11y-scale: 1.5;
}

html[data-a11y-font] .g-hero__title {
  font-size: calc(50px * var(--a11y-scale));
}

html[data-a11y-font] .g-hero__description {
  font-size: calc(23px * var(--a11y-scale));
}

html[data-a11y-font] .g-search__title,
html[data-a11y-font] .g-terms__letter,
html[data-a11y-font] .g-daily__name {
  font-size: calc(27px * var(--a11y-scale));
}

html[data-a11y-font] .g-term-item__name {
  font-size: calc(24px * var(--a11y-scale));
}

html[data-a11y-font] .g-term-item__text {
  font-size: calc(24.277px * var(--a11y-scale));
}

html[data-a11y-font] .g-term-item__section {
  font-size: calc(16px * var(--a11y-scale));
}

html[data-a11y-font] .g-daily__text {
  font-size: calc(18px * var(--a11y-scale));
}

html[data-a11y-font] .glossary-header__title {
  font-size: calc(50px * var(--a11y-scale));
}

html[data-a11y-font] .glossary-header__description {
  font-size: calc(23px * var(--a11y-scale));
}

html[data-a11y-font] .glossary-term__title {
  font-size: calc(33px * var(--a11y-scale));
}

html[data-a11y-font] .glossary-term__description {
  font-size: calc(21px * var(--a11y-scale));
}

html[data-a11y-font] .glossary-term__simple {
  font-size: calc(15px * var(--a11y-scale));
}

html[data-a11y-font] .glossary-term__subtitle {
  font-size: calc(14px * var(--a11y-scale));
}

@media (max-width: 767px) {
  html[data-a11y-font] .g-hero__title {
    font-size: calc(34px * var(--a11y-scale));
  }

  html[data-a11y-font] .g-hero__description {
    font-size: calc(16px * var(--a11y-scale));
  }

  html[data-a11y-font] .g-term-item__text {
    font-size: calc(16px * var(--a11y-scale));
  }

  html[data-a11y-font] .g-term-item__section {
    font-size: calc(14px * var(--a11y-scale));
  }

  html[data-a11y-font] .glossary-header__title {
    font-size: calc(34px * var(--a11y-scale));
  }

  html[data-a11y-font] .glossary-header__description {
    font-size: calc(16px * var(--a11y-scale));
  }

  html[data-a11y-font] .glossary-term__title {
    font-size: calc(27px * var(--a11y-scale));
  }

  html[data-a11y-font] .glossary-term__simple {
    font-size: calc(14px * var(--a11y-scale));
  }
}

/* ==========================================================================
   «Программы обучения по психологии» на странице термина.
   Разметка и стили взяты из макета: фиксированные ширина и высота карточек
   убраны, чтобы длинный текст не обрезался и сетка адаптировалась.
   ========================================================================== */
.dictionary-courses,
.dictionary-courses *,
.dictionary-courses *::before,
.dictionary-courses *::after {
  box-sizing: border-box;
}

.dictionary-courses {
  width: 100%;
  min-width: 0;
  margin-top: 14px;
  padding: 39px 40px 40px;
  border-radius: 27px;
  background: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
}

.dictionary-courses__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dictionary-courses__header h2 {
  margin: 0;
  color: #16537c;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
}

.dictionary-courses__header a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: #000;
  font-size: 10.575px;
  font-weight: 500;
  text-decoration: none;
}

.dictionary-courses__header a svg {
  width: 14px;
  height: 14px;
}

.dictionary-courses__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.dictionary-course {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(24, 35, 58, 0.12);
}

.dictionary-course__visual {
  position: relative;
  flex: 0 0 144px;
  height: 144px;
  overflow: hidden;
  background: #131b1e;
}

.dictionary-course__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dictionary-course__important {
  position: absolute;
  left: 17px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 34px);
  min-height: 32px;
  padding: 5px 14px 5px 6px;
  border-radius: 50px;
  background: #fff;
  color: #000;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
}

.dictionary-course__important-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #cd4f38;
  color: #fff;
}

.dictionary-course__important-icon svg {
  width: 14px;
  height: 14px;
}

.dictionary-course__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 15px;
}

.dictionary-course__info h3 {
  margin: 0;
  color: #273d3e;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dictionary-course__info p {
  margin: 5px 0 0;
  color: #273d3e;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.dictionary-course__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.dictionary-course__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  max-width: 100%;
  min-height: 29px;
  padding: 7px 14px;
  border-radius: 25px;
  background: #e83d46;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.dictionary-course__button:hover {
  opacity: 0.9;
}

.dictionary-course__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16537c;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.dictionary-course__time svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.dictionary-courses a:focus-visible {
  outline: 2px solid #16537c;
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .dictionary-courses__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dictionary-courses {
    margin-top: 12px;
    padding: 25px 15px 30px;
    border-radius: 20px;
  }

  .dictionary-courses__header {
    align-items: flex-start;
    gap: 10px;
  }

  .dictionary-courses__header h2 {
    font-size: 23px;
  }

  .dictionary-courses__header a {
    padding-top: 6px;
    white-space: nowrap;
  }

  .dictionary-courses__list {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 20px;
  }
}

@media (max-width: 390px) {
  .dictionary-courses__header {
    flex-wrap: wrap;
  }
}
