/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #000;
  background-color: #fff; /* ← добавляем: серый фон для страницы */
  margin: 0; /*убираем отступы */
  padding: 0;
}

.site-wrapper {
  max-width: 1206px;
  width: 100%;
  margin: 0 auto;
  background-color: #ffffff; /* тоже белый */
  box-shadow:
    -15px 0 25px -10px rgba(0, 0, 0, 0.15),
    /* тень слева */ 15px 0 25px -10px rgba(0, 0, 0, 0.15); /* тень справа */
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Lora', serif;
}

h1 {
  font-size: 36px;
  font-weight: 500;
}

h2 {
  font-size: 28px;
  font-weight: 500;
}

h3 {
  font-size: 24px;
  font-weight: 500;
  margin: 20px 0 20px 0;
}

p {
  font-size: 24px;
  font-family: 'Inter', sans-serif;
}

.lead {
  font-size: 22px !important;
  margin-bottom: 20px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
}

.large-text {
  font-family: Inter;
  font-size: 40px;
}

.small-text {
  font-size: 16px;
}

/* Шапка */
.header {
  padding: 30px 89px 10px 89px;
  background-color: #fff;
}

.header__image {
  width: 100%;
  max-width: 1028px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.burger__line {
  width: 100%;
  height: 2px;
  background-color: #032d69;
  transition: all 0.3s ease;
}

/* Анимация бургера в крестик при открытии */
.burger.active .line1 {
  transform: translateY(9px) rotate(45deg);
}
.burger.active .line2 {
  opacity: 0;
}

.burger.active .line3 {
  transform: translateY(-9px) rotate(-45deg);
}

/* Меню */
.menu {
  position: relative;
  width: 100%;
  max-width: 1028px;
  padding: 16px 0;
  background-color: #fff;
  margin: 0 auto 20px auto;
  box-sizing: border-box;
}

/* Верхняя линия */
.menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background-color: #000000;
}

/* Нижняя линия */
.menu::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background-color: #000000;
}

.menu__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  gap: 44px; /* ← расстояние между пунктами меню 44px */
  max-width: 100%;
  justify-content: space-between; /*Добавить - распределяет пространство между элементами */
}

.menu__link {
  color: #000000; /* чёрный цвет */
  text-decoration: none; /* без подчёркивания */
  font-weight: 500;
}

.menu__link.active {
  font-weight: 700; /* Bold (700) для активного пункта */
  color: #032d69; /* можно оставить чёрным или изменить цвет */
}

/* Родительский пункт "Ещё" — ОБЯЗАТЕЛЬНО должен иметь position: relative */
.menu__item--dropdown {
  position: relative; /* БЕЗ ЭТОГО подменю не будет позиционироваться */
  list-style: none;
}

.menu__item--dropdown .menu__link {
  display: flex;
  align-items: center;
  gap: 8px; /* Расстояние между текстом и стрелкой */
}

/* Стили для стрелки */
.dropdown-arrow {
  transition: transform 0.3s ease; /* Плавный поворот */
}

/* При наведении на пункт — поворачиваем стрелку вверх */
.menu__item--dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Подменю (скрыто по умолчанию) */
.menu__sublist {
  display: none; /* скрыто */
  position: absolute;
  top: calc(100% + 8px); /* Отступ 8px от основного пункта */
  left: 0;
  background-color: #f6f6f6;
  width: 184px;
  height: 74px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 100;
  flex-direction: column;
}

/* НЕВИДИМЫЙ МОСТИК - заполняет пространство между пунктом и подменю */
.menu__item--dropdown::after {
  content: '';
  position: absolute;
  /* Располагаем мостик между пунктом меню и подменю */
  top: 100%; /* Сразу под пунктом меню */
  left: 0;
  width: 100%;
  height: 8px; /* Высота равна вашему отступу */
  background: transparent;
  z-index: 101;
}

/* При наведении на пункт ИЛИ на мостик - показываем подменю */
.menu__item--dropdown:hover .menu__sublist,
.menu__item--dropdown:hover::after {
  display: flex;
}

/* Пункты подменю */
.menu__subitem {
  display: block; /* убирает маркеры */
  margin: 0;
  padding: 0;
}

/* Ссылки в подменю */
.menu__sublink {
  display: block;
  padding: 10px;
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  line-height: normal;
}

.menu__sublink:hover {
  cursor: pointer;
}

/*Сброс базовых отступов для элемента списка */
.menu__item--search {
  margin-left: auto; /*Прижимает поиск к правому краю*/
}

/* Контейнер формы */
.search-form {
  position: relative;
  display: inline-block; /* Чтобы форма занимала только нужную ширину */
  width: auto; /* Автоматическая ширина по содержимому */
}

/* Стили поля ввода */
.search-form__input {
  /* Убираем стандартные границы и фон */
  border: none;
  background: transparent;
  outline: none;
  padding: 8px 24px 8px 8px; /* Отступы: справа оставляем место для иконки */

  /* Шрифт */
  font-family: Inter;
  font-size: 16px;
  color: #000;
  font-weight: 500;

  /* Ширина поля */
  width: 180px; /* 167px (общая линия) - 24px (место под иконку) = 143px */
}

.search-form__input:focus::after {
  border-bottom-color: #032d69;
}

.search-form__input:focus::placeholder {
  color: #032d69; /* Если хотите менять цвет placeholder */
}

.search-form:focus-within::after {
  background-color: #032d69; /* Синий цвет для линии */
  height: 2px;
}

/* При фокусе на поле ввода — меняем цвет иконки */
.search-form__input:focus ~ .search-form__btn svg path {
  fill: #032d69;
}

/* Placeholder (текст "Поиск") */
.search-form__input::placeholder {
  color: #000;
  font-weight: normal;
}

/* Кнопка с иконкой */
.search-form__btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  /* Стили кнопки */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px; /* Кликабельность */

  display: flex;
  align-items: center;
  justify-content: center;

  /* Прозрачность при наведении для интерактива */
  transition: opacity 0.2s ease;
}

.search-form__btn:hover {
  opacity: 0.7;
}

.search-form::after {
  content: '';
  position: absolute;
  bottom: -2px; /* Располагаем сразу под формой */
  left: 0;
  width: 180px; /* Точная длина линии по заданию */
  height: 1px; /* Толщина линии */
  background-color: #000000; /* Чёрный цвет */
}

.title-row {
  position: relative;
  display: flex;
  justify-content: space-between !important; /* Левый элемент слева, правый - справа */
  align-items: flex-end; /* Выравнивание по нижнему краю */
  flex-wrap: wrap;
  width: 100%;
}

.title-row p {
  margin: 0; /* Убираем отступы параграфа */
  line-height: 1.3; /* Опционально: регулировка высоты строки */
}

.title-row h3 {
  margin: 0; /* ← ДОБАВИТЬ ЭТО */
}

/* .title-row .link-with-arrow {
  margin-left: auto;  прижимает кнопку к правому краю 
} */

.title-hr {
  display: block;
  margin: 10px 0px 40px 0px;
  border: none;
  border-top: 3px solid #032d69 !important;
  color: #032d69;
  opacity: 1;
}

/* Контейнер для заголовка и кнопки */
.title-with-lang {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

/* Кнопка переключения языка */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #032d69;
  transition: opacity 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.lang-switch:hover {
  opacity: 0.7;
}

.lang-switch img {
  width: 24px;
  height: 24px;
}

.link-with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 16px; /* Расстояние между текстом и стрелкой 16px */
  font-family: Inter;
  font-size: 16px;
  font-weight: 500;
  color: #12151d;
  text-decoration: none;
  letter-spacing: 0.02em; /* опционально */
  line-height: 1;
  margin: 0;
}

.link-with-arrow:link,
.link-with-arrow:visited,
.link-with-arrow:hover,
.link-with-arrow:focus,
.link-with-arrow:active {
  text-decoration: none;
  color: #12151d;
}

/* Контейнер контента */
.main {
  max-width: 1028px;
  padding: 0;
  margin: 0 auto;
  background-color: #fff;
}

.mobile-only {
  display: none;
}

/* Десктопный заголовок виден */
.page-content .title-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  width: 100%;
}

.page-content .title-row .link-with-arrow {
  margin-left: auto !important;
}

/* Контейнер для всего контента страницы */
.page-content {
  max-width: 1028px;
  margin: 0 auto;
  padding: 0;
}

.lead-article-link {
  text-decoration: none; /* Убирает подчёркивание */
  color: inherit; /* Наследует цвет */
  display: block; /* Чтобы ссылка была блочной */
}

.lead-article-link:hover {
  transform: translateY(-2px); /* Подпрыгивание вверх */
}

.lead-article-link:hover h1 {
  color: #032d69; /* Меняем цвет заголовка при наведении */
}

.content-image {
  width: 100%; /* На всю ширину родителя */
  max-width: 1028px; /* Максимальная ширина */
  height: auto; /* Высота автоматически, чтобы не искажать */
  display: block;
  margin-bottom: 20px;
}

/* Сетка для карточек новостей — новое название */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  row-gap: 40px;
  margin-top: 40px;
}

.news-card {
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: pointer;
}

/* Состояние при наведении мыши */
.news-card:hover {
  transform: translateY(-3px); /* поднимается вверх */
}

.news-tag {
  display: inline-block;
  background-color: #093f8b; /* синий фон */
  color: white; /* белый текст */
  padding: 3px 10px; /* отступы внутри */
  font-size: 18px; /* размер шрифта */
  margin-bottom: 5px;
}

/* Текст поверх изображения 
.news-image__overlay-text {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  padding: 0 20px 20px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  line-height: 1.4;
} */

/* Убедитесь, что изображение правильно отображается */
.news-image {
  position: relative;
  overflow: hidden;
}

/* Специальный класс для 4 новости с другим отступом */
.news-image-special {
  width: 100%;
  margin-top: 45px; /* ← здесь меняйте отступ сверху */
  margin-bottom: 10px; /* ← здесь меняйте отступ снизу */
}

.news-image-special img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #001d46;
}

.news-image img {
  display: block;
  width: 100%;
  height: auto;
}

/*.news-title {
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 20px;
}*/
/* Увеличиваем минимальную высоту для всех заголовков в сетке новостей */
.news-title {
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 500;
  margin-top: 5px;
  margin-bottom: 20px;
  min-height: 20px; /* ← достаточно для 2 строк при font-size 24px */
}

.news-link {
  text-decoration: none;
  color: #000;
}

.news-link:hover {
  color: #032d69;
}

.archive-title {
  margin-bottom: 20px;
}

/* Контейнер сетки архива */
.archives-grid {
  display: grid;
  grid-template-columns: repeat(6, 138px);
  gap: 40px;
  max-width: 1028px;
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Каждая карточка с фото и текстом*/
.archives-card {
  border: 1px;
  transition: transform 0.3s ease;
}

.archives-card-large {
  grid-column: span 2; /* ширина на 2 колонки: 138*2 + 40 = 316px */
  grid-row: span 2; /* высота на 2 ряда */
  width: 318px; /* фиксированная ширина */
  height: 550px; /* фиксированная высота как в макете */
  border: 2px solid #032d69; /* рамка вокруг всей карточки */
  padding: 0;
  position: relative;
  background: white;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Текстовая ссылка в большой карточке */
.archives-card-large a:last-child {
  margin-top: 0;
  padding: 10px 0 0 20px;
  background: white;
  order: -1;
  white-space: nowrap; /* предотвращает перенос всей строки */
}

/* Стили для текста внутри большой карточки - в одну строку */
.archives-card-large .link-number,
.archives-card-large .link-date {
  display: inline-block; /* вместо block */
  font-size: 24px; /* одинаковый размер для обоих */
  font-weight: 500; /* одинаковое начертание */
}

/* Стили для текста внутри большой карточки */
.archives-card-large .link-number {
  margin-right: 10px; /* отступ между номером и датой */
}

.archives-card-large .link-date {
  white-space: nowrap;
}

/* Убираем лишние отступы у ссылки с картинкой в большой карточке */
.archives-card-large a:first-child {
  line-height: 0;
  display: block;
  margin-top: auto; /* прижимает контейнер с картинкой к низу */
}

.archives-card:hover {
  transform: translateY(-3px); /* подпрыгивает вверх на 5px */
}

/* Карточка с кнопкой - центрируем */
.archives-card.button-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  min-height: 138px; /* такая же высота, как у карточек с фото */
  margin-bottom: 20px;
  padding-top: 0; /* убираем отступ сверху */
}

.archives-card.button-card:hover {
  transform: none;
}

/* Фотография */
.archives-card img {
  width: 138px;
  height: 195px;
  display: block;
  border: 1px solid #001d46;
  padding: 1px;
}

/* Изображение в большой карточке */
.archives-card-large img {
  width: 314px;
  height: 450px;
  display: block;
  border: none;
  padding: 0;
  object-fit: cover;
  margin-top: auto; /* прижимает изображение к низу */
  margin-bottom: 20px; /* отступ снизу от изображения до рамки */
}

.archives-card a {
  text-decoration: none;
}

/* Стили только для текстовой ссылки (второй <a>) */
.archives-card a:last-child {
  display: inline-block;
  margin-top: 20px;
  text-align: left;
  font-family: 'Inter', sans-serif;
  color: #032d69;
  text-decoration: none;
}

.link-number {
  font-size: 20px;
  display: block; /* переносит на новую строку */
}

.link-date {
  font-size: 14px;
  display: block; /* переносит на новую строку */
}

.archives-card a:last-child .link-date {
  white-space: nowrap; /* текст не переносится на новую строку */
  display: inline-block; /* чтобы блок сжимался по содержимому */
}

/* Стили для ссылки с изображением (первый <a>) */
.archives-card a:first-child {
  display: block;
  margin-top: 0;
  line-height: 0; /* убирает лишний отступ снизу у картинки */
}

/* Кнопка "Смотреть ещё" */
.archives-card.button-card .more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  height: 42px;
  background-color: #f6f6f6;
  font-family: 'Lora', serif;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: none;
}

.more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  height: 42px;
  background-color: #f6f6f6;
  font-family: 'Lora', serif !important;
  font-size: 20px;
  font-weight: 500;
  color: #000;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box; /* ← Добавьте: учитывает padding и border в ширине/высоте */
  padding: 0;
  margin: 0;
  border: none;
}

.site-footer {
  background-color: #f6f6f6;
  color: #000;
  padding: 40px 89px 60px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1206px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Основная строка: логотип слева, правая колонка справа */
.footer-row {
  display: flex; /*включает флекс режим*/
  justify-content: space-between; /*Логотип слева, колонка справа*/
  align-items: flex-start; /* выравнивание по верхнему краю */
  gap: 40px; /* отступ между логотипом и правой частью */
  flex-wrap: wrap; /* на мобильных — в столбик */
}

/* Логотип */
.footer-logo {
  flex-shrink: 0;
}

.footer-logo img {
  width: 100%;
  max-height: 100%;
  height: auto;
}

/* Правая колонка (меню + текст под ним) */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* прижимаем содержимое к правому краю */
  gap: 12px;
}

/* Меню */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 47px;
}

.footer-nav a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s;
}

.footer-nav a.active {
  color: #032d69;
  font-weight: 600;
}

.footer-copyright {
  align-self: flex-start;
  width: 100%;
}

/* Текст "При цитировании..." */
.footer-copyright p {
  font-size: 20px;
  color: #000;
  margin: 0;
  text-align: left;
  font-weight: 300;
}

/* Верхняя черта */
.footer-divider-top {
  width: calc(100% + 178px); /* компенсируем горизонтальный padding */
  margin-left: -89px; /* сдвигаем влево */
  margin-top: -40px; /* убираем отступ сверху */
  margin-bottom: 40px; /* возвращаем отступ снизу (как было) */
  border: 0;
  height: 1px;
  background-color: #12151d;
}

/* Нижняя черта */
.footer-divider-bottom {
  width: 1028px; /* фиксированная ширина */
  border: 0;
  height: 1px;
  background-color: #032d69;
  opacity: 0.5; /* 50% прозрачности */
}

/* Дополнительная строка текста */
.footer-extra p {
  font-size: 20px;
  color: #000;
  margin: 0;
  text-align: left;
  font-weight: 300;
}

.about-infographics {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap; /* чтобы на маленьких экранах переносились */
}

.about-infographics .about-image {
  width: 494px;
  max-width: 100%; /* чтобы не вылезали за пределы экрана */
  height: auto; /* автоматическая высота */
  object-fit: cover;
}

.history-button-container {
  margin-top: 20px;
}

.history-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 327px;
  height: 50px;
  background-color: #f6f6f6;
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 500;
  color: #000;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: none;
}

.dates-image {
  width: 100%;
  margin-bottom: 60px;
}

.about-wrapper {
  display: flex;
  gap: 40px; /* расстояние между текстом и картинками */
  align-items: flex-start; /* выравнивание по верхнему краю */
  justify-content: space-between;
}

.about-content {
  width: 60%; /* или любое значение, которое хотите */
  max-width: 650px; /* максимальная ширина текста */
}

.about-text {
  font-family: 'Inter', serif;
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 20px;
  width: 90%; /* 2/3 от родительского блока (на 1/3 меньше) */
  max-width: 90%;
}

/* Стили для колонки с обложками */
.about-images {
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex-shrink: 0; /* ← ГЛАВНОЕ: запрещаем сжиматься */
  min-width: 200px; /* минимальная ширина, чтобы картинки не съезжали */
}

/* Стили для изображений-обложек */
.about-images .about-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0px;
}

/* Контейнер сетки 4 колонки */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 равные колонки */
  gap: 40px; /* расстояние между колонками */
  max-width: 1206px;
  margin: 0 auto 40px auto;
  align-items: start;
}

/* Общие стили для ячеек 
.contacts-item {
  width: 100%;
}

Стили для изображений */
.contacts-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.contacts-text {
  text-align: left; /* текст прижат к левому краю */
  margin: 0; /* сам блок с текстом по центру */
}

/* Стили для текста */
.contacts-text h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #000;
}

.contacts-text p {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: #000;
  margin: 0;
}

.contacts__map {
  width: 1028px;
  max-width: 100%;
  height: 575px;
  margin: 0 auto;
  margin-bottom: 40px;
}

#map {
  width: 100%;
  height: 100%;
}

.contacts__info p {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 10px;
}

.contacts__info p:last-child {
  margin-bottom: 0; /* Убираем отступ у последнего элемента */
}

.article {
  max-width: 1028px;
  width: 100%;
  margin: 0 auto;
}

.article__title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 34px;
  font-weight: 500;
}

.article__columns {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

/* .article__content {
  width: 721px;
  margin-bottom: 40px;
} */

.article__content {
  width: 100% !important;
  max-width: 100% !important;
}

.article__content lead {
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 20px;
  color: #000;
}

/* Для всех обычных статей — сайдбар от верхней границы h1 */
.article__sidebar {
  width: 267px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

/* Тег в сайдбаре */
.sidebar-tag {
  display: inline-block;
  background-color: #032d69;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.article__content p {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.article__links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article__links-list li {
  margin-bottom: 20px;
}

.article__link {
  display: block;
  width: 267px;
  padding: 10px 0 10px 10px;
  background-color: #f6f6f6;
  font-size: 16px;
  text-decoration: none;
  color: #000;
  transition: color 0.2s;
  box-sizing: border-box;
}

.article__link.active {
  text-decoration: none;
  font-weight: 500;
  color: #032d69;
  transition: color 0.2s;
}

.article__link:hover {
  color: #032d69;
}

/* Фотография в статье */
.article__image {
  width: 721px;
  margin-top: 20px;
  margin-bottom: 20px;
  border: 1px;
}

.article__image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #001d46;
}

.image-caption {
  font-size: 14px;
  color: #000;
  margin-top: 8px;
  text-align: left;
  font-style: italic;
}

.article__signature {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-top: 20px;
  text-align: right;
}

/* Контейнер для селекта и поиска в одной строке */
.archive-controls {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Существующий стиль .demo-container */
.demo-container {
  background: transparent;
  width: auto;
  margin: 0;
  margin-bottom: 0;
}

/* КАСТОМНЫЙ ВЫПАДАЮЩИЙ СПИСОК */
.custom-select {
  position: relative;
  width: 280px;
  margin: 0;
  user-select: none;
  font-family: 'Inter', sans-serif;
}

/* Кнопка / триггер */
.select-trigger {
  background: #f6f6f6;
  border: none;
  border-radius: 0;
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.trigger-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  color: #000000;
  flex: 1;
}

.dropdown-arrow {
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s ease;
  display: block;
}

.select-trigger.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* ВЫПАДАЮЩЕЕ МЕНЮ */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: auto;
  width: 280px;
  height: 235px;
  background: #f6f6f6;
  border: none;
  border-radius: 0;
  overflow-y: auto;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s,
    transform 0.2s ease;
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ПОЛЗУНОК ПРОКРУТКИ */
.dropdown-menu::-webkit-scrollbar {
  width: 16px;
  background: transparent;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 0px !important;
  border: none !important;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #c4c4c4;
}

.dropdown-menu::-webkit-scrollbar-corner {
  background: transparent;
}

.dropdown-menu {
  scrollbar-width: thin;
  scrollbar-color: #d9d9d9 transparent;
}

/* Пункты списка */
.dropdown-item {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 10px 16px;
  color: #000000;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  background-color: #f6f6f6;
  border-bottom: 1px solid #e5e5e5;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: #f6f6f6;
  color: #032d69;
  font-weight: 600;
}

.dropdown-item.selected {
  background: #e8e8e8;
  color: #032d69;
  font-weight: 500;
}

/* ПОИСК - стили как у селекта */
.search-container {
  flex: 1;
  max-width: 400px;
}

.search-wrapper {
  display: flex;
  gap: 0; /* убираем gap, чтобы элементы были вплотную */
  width: 100%;
  background: #f6f6f6; /* фон как у триггера */
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  background: #f6f6f6;
  border: none;
  outline: none;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: #999;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.search-input:focus {
  background: #f6f6f6;
}

.search-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1rem;
  background: #f6f6f6;
  color: #000000;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.search-button:hover {
  background: #f6f6f6;
  color: #032d69;
  font-weight: 500;
}

.search-button svg {
  flex-shrink: 0;
  stroke: #000000;
  transition: stroke 0.15s ease;
}

.search-button:hover svg {
  stroke: #032d69;
}

/* Статистика поиска */
.search-stats {
  text-align: left;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #666;
}

/* Сообщение "Ничего не найдено" */
.no-results-message {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #666;
}

/* Подсветка найденного текста */
.highlight {
  background-color: #ffeb3b;
  color: #000;
  padding: 0 2px;
  border-radius: 2px;
}

/* Анимация для найденных карточек */
.search-match {
  animation: highlightPulse 0.5s ease;
}

@keyframes highlightPulse {
  0% {
    background-color: rgba(255, 235, 59, 0.3);
  }
  100% {
    background-color: transparent;
  }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  /* Мобильный заголовок — располагаем элементы */
  .header__title-row.mobile-only {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-top: 30px !important;
    margin-bottom: 10px !important;
  }

  /* Бургер — справа */
  .header__container {
    order: 2 !important;
  }

  /* Строки (номер и PDF) — слева, в колонку */
  .title-row {
    order: 1 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  /* Бургер сам по себе */
  .burger {
    display: flex !important;
    position: relative;
    right: 0;
  }

  /* Кнопка PDF — делаем как блок */
  .header__title-row.mobile-only .link-with-arrow {
    display: inline-flex !important;
    margin: 0 !important;
  }

  .title-with-lang {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .lead-article-link {
    width: 100% !important;
  }

  .lead-article-link h1 {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .desktop-header-row {
    display: none !important;
  }

  .archive-controls {
    flex-direction: column;
    gap: 15px;
  }

  .search-container {
    max-width: 100%;
    width: 100%;
  }

  .custom-select {
    width: 100%;
  }

  .dropdown-menu {
    width: 100%;
  }
}

/* ---------- СТИЛИ ДЛЯ ПРЯМОУГОЛЬНЫХ КАРТОЧЕК 2025 (БЕЗ КАРТИНОК) ---------- */
.archives-grid-rectangles {
  display: grid;
  grid-template-columns: repeat(6, 138px);
  gap: 40px;
  margin-top: 20px;
  margin-bottom: 40px;
  justify-content: start;
}

.rect-card {
  width: 138px;
  height: 50px;
  background: #f6f6f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
  text-align: center;
}

.rect-card:hover {
  transform: translateY(-4px);
}

.rect-card .link-number {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #032d69;
  display: block;
}

.rect-card .link-date {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #032d69;
  display: block;
}

/* ---------- ОБЩИЕ СТИЛИ ---------- */
.link-number {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #001d46;
  display: block;
}

.link-date {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #001d46;
  display: block;
}

.year-content {
  margin-bottom: 20px;
}

/* ПОИСК - стили как у селекта */
.search-container {
  flex: 1;
  max-width: 400px;
}

.search-wrapper {
  display: flex;
  gap: 40px; /* меняем с 0 на 10px - расстояние между полем и кнопкой */
  width: 100%;
  background: transparent; /* убираем общий фон */
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  background: #f6f6f6;
  border: none;
  outline: none;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.search-input::placeholder {
  color: #999;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.search-input:focus {
  background: #f6f6f6;
}

.search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  background: #032d69; /* синий фон */
  color: #ffffff; /* белый текст */
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border-radius: 0;
}

.search-button:hover {
  background: #0a4da0; /* более светлый синий при наведении */
  color: #ffffff;
  font-weight: 500;
}

.search-stats {
  text-align: center;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #666;
}

.no-results-message {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #666;
}

/* Подсветка найденного текста */
.highlight {
  background-color: #ffeb3b;
  color: #000;
  padding: 0 2px;
  border-radius: 2px;
}

/* Анимация для найденных карточек */
.search-match {
  animation: highlightPulse 0.5s ease;
}

/* Расстояние между плашками 20px */
.link-card {
  margin-bottom: 10px;
}

.link-card:last-child {
  margin-bottom: 0;
}

/* Стиль каждой серой плашки */
.inline-links-wrapper {
  width: 1028px;
  height: 44px;
  background-color: #f6f6f6;
  display: flex;
  align-items: center;
  gap: 32px;
  padding-left: 24px;
  padding-right: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 44px;
  color: #000000;
}

/* Стиль ссылки */
.link-item {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.link-item:hover {
  color: #032d69;
  text-decoration: none;
}

@keyframes highlightPulse {
  0% {
    background-color: rgba(255, 235, 59, 0.5);
  }
  100% {
    background-color: transparent;
  }
}

/* ========== СТРАНИЦА ПОИСКА ========== */

/* Контейнер страницы поиска */
.search-page {
  max-width: 1028px;
  margin: 0 auto;
  padding: 0;
  background-color: #fff;
}

.search-page h1 {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 30px;
  color: #000;
}

/* Большая форма поиска (на странице search.html) */
.search-form-large {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
}

.search-form-large input {
  flex: 1;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  background: #f6f6f6;
  border: none;
  outline: none;
  box-sizing: border-box;
}

.search-form-large input::placeholder {
  color: #999;
}

.search-form-large input:focus {
  background: #f6f6f6;
}

.search-form-large button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #032d69;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-form-large button:hover {
  background: #0a4da0;
}

/* Статистика поиска */
.search-results-count {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* Список результатов */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Карточка результата */
.search-result-item {
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.search-result-item h3 {
  margin: 0 0 8px 0;
}

.search-result-item h3 a {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 500;
  color: #032d69;
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-result-item h3 a:hover {
  color: #0a4da0;
}

/* URL результата */
.search-result-url {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #006621;
  text-decoration: none;
  margin-bottom: 8px;
}

.search-result-url:hover {
  text-decoration: none;
}

/* Сниппет (отрывок текста) */
.search-result-snippet {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #545454;
  margin: 0;
}

/* Подсветка найденных слов */
.search-result-snippet mark {
  background-color: #ffeb3b;
  color: #000;
  padding: 0 2px;
  border-radius: 2px;
}

/* Сообщения-заглушки */
.search-loading,
.search-placeholder,
.search-no-results {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #666;
}

/* Блок с фотографией и подписью для обтекания */
.float-image-left {
  float: left;
  width: 400px; /* Можно изменить под ваши нужды */
  margin: 0 20px 20px 0;
}

.float-image-left .article__image {
  width: 100%;
  margin: 0;
}

.float-image-left img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #001d46;
}

/* Очистка обтекания */
.clear-both {
  clear: both;
}

/* Общий стиль для всех плашек (для новостей 1 и 2 - прозрачные) */
.news-image__overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  color: #000000;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.4;
}
/* Заголовок внутри плашки */
.news-title-overlay {
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

/* Для новостей 1 и 2 — отступ после заголовка */
.news-image__overlay-text .news-title-overlay {
  margin-bottom: 10px;
}

.news-image__overlay-text.overlay-gray .news-title-overlay {
  margin-bottom: 0;           /* ← это перебивает для серых плашек */
}

.news-image__overlay-text.overlay-gray {
  position: relative;  /* или убрать position */
  background-color: #f6f6f6;
  height: 74px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.news-title-overlay .news-link {
  text-decoration: none;
  color: #000000;
}

.news-title-overlay .news-link:hover {
  color: #032d69;
}

/* ============================================ */
/* МОБИЛЬНАЯ АДАПТАЦИЯ (ПОЛНАЯ ВЕРСИЯ)          */
/* ============================================ */

/* Глобальные правила для всех изображений */
img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Оверлей для мобильного меню */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* НЕРАЗРЫВНЫЕ ГРУППЫ - предлоги и инициалы не переносятся */
.nowrap {
  white-space: nowrap !important;
  display: inline-block !important;
}
/* Планшеты и большие телефоны (до 1024px) */
@media (max-width: 1024px) {
  .menu__list {
    gap: 20px;
  }

  .footer-nav ul {
    gap: 20px;
  }
}

/* Телефоны (до 768px) */
@media (max-width: 768px) {
  /* Отступы в шапке */
  .header {
    padding: 15px 20px 10px 20px;
  }
  /* Мобильный заголовок */
  .mobile-only {
    display: block;
  }

  /* Скрываем десктопный дубль */
  .page-content .title-row {
    display: none !important;
  }

  /* Бургер показываем */
  .burger {
    display: flex;
  }

  /* Меню — мобильная версия */
  .menu {
    position: static;
    padding: 0;
  }

  .menu .menu__list {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 20px 20px;
    gap: 20px;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: none;
  }

  .menu.active .menu__list {
    left: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .menu__item--search {
    margin-left: 0;
    width: 100%;
  }

  .search-form {
    width: 100%;
  }

  .search-form__input {
    width: 100%;
  }

  .search-form::after {
    width: 100%;
  }

  /* Сетка новостей — 1 колонка */
  .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
  }

  /* Архив — 2 колонки */
  .archives-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .archives-card {
    width: 100%;
  }

  .archives-card img {
    width: 100%;
    height: auto;
    border: 1px solid #001d46;
  }

  .archives-card.button-card {
    width: 100%;
    min-height: auto;
  }

  .archives-card.button-card .more-button {
    width: 100%;
  }

  /* Размеры шрифтов */
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  p,
  .lead {
    font-size: 18px;
  }

  .large-text {
    font-size: 28px;
  }

  /* Футер */
  .site-footer {
    padding: 20px;
  }

  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    align-items: center;
  }

  .footer-nav ul {
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  .footer-copyright p {
    text-align: center;
    font-size: 16px;
  }

  .footer-extra p {
    text-align: center;
    font-size: 16px;
  }

  .footer-divider-top {
    width: calc(100% + 40px);
    margin-left: -20px;
  }

  .footer-divider-bottom {
    width: 100%;
  }

  /* Контейнеры */
  .site-wrapper {
    box-shadow: none;
  }

  .page-content {
    padding: 0 15px;
  }

  .main {
    padding: 0 15px;
  }

  /* Строка с номером и PDF */
  .title-with-lang {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Archive controls */
  .archive-controls {
    flex-direction: column;
    gap: 15px;
  }

  .search-container {
    max-width: 100%;
    width: 100%;
  }

  .custom-select {
    width: 100%;
  }

  .dropdown-menu {
    width: 100%;
  }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
  .archives-grid {
    grid-template-columns: 1fr;
  }

  .title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .link-with-arrow {
    gap: 8px;
    font-size: 14px;
  }
}
/* Для очень маленьких экранов (ширина меньше 400px) разрешаем перенос */
@media (max-width: 400px) {
  .nowrap {
    white-space: normal;
  }
}
