@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap");

/* Глобальные стили */
body {
  overflow-x: hidden;
  background-color: #f4f6fb;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   ВЕРХНЯЯ НАВИГАЦИОННАЯ ПАНЕЛЬ (ПРЕМИУМ + ПЛАВАЮЩАЯ ЛИНИЯ)
   ЕДИНЫЙ СТАТИЧНЫЙ РАЗМЕР НА ВСЕХ ВКЛАДКАХ САЙТА
   ========================================================= */
.navbar {
  position: relative;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  padding: 0.65rem 0;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar > .container-fluid {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
}

.navbar-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin-left: -10px;
  border-radius: 16px;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Мягкий радиальный ореол в фирменных цветах газеты позади логотипа */
.navbar-brand::before {
  content: "";
  position: absolute;
  inset: -6px -14px;
  border-radius: 22px;
  background: radial-gradient(
    ellipse at 45% 50%,
    rgba(217, 4, 41, 0.26) 0%,
    rgba(255, 30, 66, 0.15) 45%,
    rgba(255, 122, 69, 0.06) 70%,
    transparent 85%
  );
  filter: blur(10px);
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
  pointer-events: none;
}

/* Акцентная газетная красная линия с неоновым свечением снизу логотипа */
.navbar-brand::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #d90429 18%,
    #ff1e42 50%,
    #d90429 82%,
    transparent 100%
  );
  box-shadow:
    0 0 12px rgba(217, 4, 41, 0.85),
    0 0 24px rgba(255, 30, 66, 0.55);
  opacity: 0;
  transform: scaleX(0.2);
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.navbar-brand img {
  max-height: 76px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.08));
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar-brand:hover::before {
  opacity: 1;
  transform: scale(1.06);
  animation: logoAuraPulse 2.2s ease-in-out infinite alternate;
}

.navbar-brand:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.navbar-brand:hover img {
  transform: translateY(-2px) scale(1.045);
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 10px rgba(217, 4, 41, 0.65))
    drop-shadow(0 0 22px rgba(255, 30, 66, 0.48))
    drop-shadow(0 6px 26px rgba(217, 4, 41, 0.35));
  animation: logoEditorialGlow 2.2s ease-in-out infinite alternate;
}

@keyframes logoEditorialGlow {
  0% {
    filter:
      drop-shadow(0 0 2px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 9px rgba(217, 4, 41, 0.6))
      drop-shadow(0 0 20px rgba(255, 30, 66, 0.42))
      drop-shadow(0 6px 24px rgba(217, 4, 41, 0.3));
  }
  100% {
    filter:
      drop-shadow(0 0 3px rgba(255, 255, 255, 1))
      drop-shadow(0 0 14px rgba(255, 30, 66, 0.82))
      drop-shadow(0 0 30px rgba(217, 4, 41, 0.65))
      drop-shadow(0 8px 34px rgba(255, 82, 82, 0.45));
  }
}

@keyframes logoAuraPulse {
  0% {
    opacity: 0.85;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.navbar-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-link {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1e293b !important;
  padding: 12px 20px !important;
  border-radius: 12px;
  position: relative;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #d90429 !important;
  background-color: rgba(217, 4, 41, 0.05);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.is-current-page {
  color: #d90429 !important;
}

/* Плавающая красная линия под текстом вкладок */
.nav-floating-line {
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 3.5px;
  width: 0;
  background: linear-gradient(90deg, #ff1e42 0%, #d90429 50%, #9b001a 100%);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(217, 4, 41, 0.45);
  pointer-events: none;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
  opacity: 0;
  z-index: 5;
}

.navbar .dropdown-menu,
.dropdown-menu {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 10px;
  min-width: 170px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  margin-top: 4px !important;
}

/* Невидимый мостик между кнопкой «Выпуски» и выпадающим списком, чтобы меню не закрывалось при ведении мыши */
.navbar .dropdown-menu::before,
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.navbar .dropdown-item,
.dropdown-item {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.96rem;
  color: #1e293b;
  padding: 9px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.navbar .dropdown-item::after,
.dropdown-item::after {
  content: "→";
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s ease;
  color: #d90429;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.dropdown-item:hover,
.dropdown-item.active,
.dropdown-item:active {
  background: rgba(217, 4, 41, 0.09);
  color: #d90429 !important;
  padding-left: 20px;
}

.navbar .dropdown-item:hover::after,
.dropdown-item:hover::after,
.dropdown-item.active::after {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 991.98px) {
  .navbar {
    padding: 0.38rem 0;
  }
  .navbar > .container-fluid {
    padding: 0 14px;
  }
  .navbar-brand {
    max-width: calc(100% - 62px);
    padding: 2px 0;
  }
  .navbar-brand img {
    max-height: 44px;
    max-width: 195px;
    width: auto;
  }
  .navbar-toggler {
    padding: 6px 10px;
  }

  .navbar-collapse {
    background: #ffffff;
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.08);
  }

  .nav-floating-line,
  .navbar .dropdown-menu::before,
  .dropdown-menu::before {
    display: none;
  }

  .navbar .dropdown-menu,
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    margin-top: 6px !important;
  }

  .navbar .dropdown-menu.show,
  .dropdown-menu.show {
    display: block;
  }
}

/* =========================================================
   ОРИГИНАЛЬНЫЙ ДИЗАЙН И ВЕРСТКА ВКЛАДКИ «ВЫПУСКИ»
   ========================================================= */

/* Общий контейнер */
.container {
  max-width: 1320px;
  margin: 5rem auto;
  padding: 0 15px;
}

/* Обертка для контента и боковой панели */
.main-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start; /* Выравнивание по верхнему краю */
}

/* Основной контент */
.content-wrapper {
  flex: 1;
  min-width: 0;
  max-width: 960px;
}

/* Боковой контейнер с навигацией */
.sidebar-toc {
  width: 260px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #e0e4e8;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 24px;
  height: fit-content;
  transition: box-shadow 0.3s ease;
}

.sidebar-toc:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Контент боковой панели */
.toc-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  color: #0f172a;
  margin-bottom: 15px;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 6px;
  letter-spacing: -0.01em;
}

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

.toc-list li {
  margin-bottom: 10px;
}

.toc-link {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  display: block;
  font-size: 0.98rem;
  color: #1e293b;
  text-decoration: none;
  padding: 6px 0;
  border-left: 3px solid #e74c3c;
  padding-left: 10px;
  transition: all 0.3s ease;
}

.toc-link:hover {
  color: #ff7061;
  border-left-color: #ff7061;
  background-color: #f9f9f9;
}

/* Заголовок выпуска */
.release-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.4rem;
  color: #0f172a;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Контейнер для текста */
.release-box {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.3s ease;
}

.release-box:hover {
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.11);
}

/* Подзаголовок "Выпуск 1. Сентябрь 2020" */
.release-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 1.18rem;
  color: #64748b;
  text-align: center;
  margin-top: 40px; /* Отступ сверху для разделения выпусков */
  margin-bottom: 12px;
  font-weight: 600;
  border-top: 1px dashed #cbd5e1; /* Пунктирная линия для разделения выпусков */
  padding-top: 22px;
}

/* Центрированный заголовок с красной полосой */
.intro-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.7rem;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 6px;
  text-align: center;
  letter-spacing: -0.015em;
  transition: border-bottom-color 0.3s ease;
}

.intro-title:hover {
  border-bottom-color: #ff7061;
}

/* Остальные заголовки h2 */
.release-box h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.7rem;
  color: #0f172a;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 6px;
  text-align: center;
  letter-spacing: -0.015em;
  transition: border-bottom-color 0.3s ease;
}

.release-box h2:hover {
  border-bottom-color: #ff7061;
}

.release-box h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  color: #0f172a;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.release-box p {
  font-family: "Inter", sans-serif;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 20px;
}

.release-box li {
  font-family: "Inter", sans-serif;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 14px;
}

/* Информационный блок (футер — единый дизайн со страницами «Главная», «Новости» и «Редакция») */
.info-section {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 3.2rem 0 2.6rem;
  margin-top: auto;
  border-top: 4px solid #d90429;
  position: relative;
}

.info-section > .container {
  margin: 0 auto;
}

.info-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-transform: none;
  letter-spacing: normal;
}

.info-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-content:hover {
  box-shadow: none;
}

.info-item {
  font-size: 0.98rem;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.info-item strong {
  color: #ffffff;
  font-weight: 600;
}

.info-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 15px;
  margin-left: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: none;
  transition: all 0.22s ease;
}

.info-btn:hover {
  background: #d90429;
  border-color: #d90429;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: none;
}

.info-icon {
  display: none;
}

/* Кнопка "Наверх" (единый стиль со страницами «Главная», «Новости» и «Редакция») */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #d90429 0%, #9b001a 100%);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 10px 24px rgba(217, 4, 41, 0.35);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1000;
}

.scroll-to-top.show,
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 26px rgba(217, 4, 41, 0.5);
}

.scroll-to-top svg {
  color: #ffffff;
}

/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
}

/* Адаптивность для мобильных */
@media (max-width: 767.98px) {
  .main-wrapper {
    flex-direction: column; /* Вертикальная компоновка */
    gap: 15px; /* Уменьшенный отступ между блоками */
  }

  .content-wrapper {
    max-width: 100%; /* Полная ширина */
    order: 2; /* Контент ниже */
  }

  .sidebar-toc {
    width: 100%; /* Полная ширина на мобильных */
    position: static; /* Статичное положение, чтобы быть сверху */
    order: 1; /* Навигация выше контента */
    margin-bottom: 20px; /* Отступ снизу для разделения */
    top: auto; /* Убираем фиксированное позиционирование */
  }

  .toc-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .toc-list li {
    margin-bottom: 8px;
  }

  .toc-link {
    font-size: 0.9rem;
    padding: 4px 0;
    padding-left: 8px;
  }

  .release-wrapper {
    padding: 0 15px;
  }

  .release-title {
    font-size: 2rem;
  }

  .release-box {
    padding: 20px;
  }

  .release-subtitle {
    font-size: 1rem;
  }

  .intro-title {
    font-size: 1.5rem;
  }

  .release-box h2 {
    font-size: 1.5rem;
  }

  .release-box h3 {
    font-size: 1.25rem;
  }

  .release-box p {
    font-size: 1rem;
  }

  .release-box ul li {
    font-size: 1rem;
  }
}

.centered-pre {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 80%; /* Настраиваемая ширина */
  max-width: 600px; /* Чуть шире для лучшей читаемости */
  text-align: left; /* Выравнивание текста внутри по левому краю */
  padding: 15px; /* Увеличенные отступы для воздушности */
  background-color: #ffffff; /* Белый фон для чистоты */
  border: 1px solid #e0e4e8; /* Легкая серая граница */
  border-radius: 8px; /* Более мягкие скругленные углы */
  font-family: "Courier New", Courier, monospace; /* Моноширинный шрифт для кода */
  white-space: pre; /* Сохраняем пробелы и переносы */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Мягкая тень для глубины */
  transition: all 0.3s ease; /* Плавные переходы для эффектов */
}

/* Эффект при наведении */
.centered-pre:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); /* Усиленная тень при наведении */
  border-color: #e74c3c; /* Красная граница в стиле вашего дизайна */
}

.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  margin: 22px 0;
}

/* Вложенный .release-box вокруг галерей не создаёт лишнюю рамку и не сжимает фото */
.release-box .release-box {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 4px 0;
  margin: 8px 0;
}

.release-box .release-box:hover {
  box-shadow: none;
}

.photo-item {
  width: 100%;
  max-width: 460px;
  margin: 22px auto;
  padding: 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.photo-gallery .photo-item {
  flex: 1 1 calc(50% - 20px);
  max-width: 420px;
  min-width: 260px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.photo-item:hover {
  border-color: #d90429;
  background: #fffdfd;
  box-shadow:
    0 10px 26px rgba(217, 4, 41, 0.14),
    0 0 0 3px rgba(217, 4, 41, 0.08);
}

.photo-img,
.larger-photo {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  background-color: #f8fafc;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}

.photo-gallery .photo-img {
  aspect-ratio: 4 / 3;
}

.photo-caption {
  padding: 10px 8px 4px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #334155;
  margin: 0;
  background: transparent;
}

.photo-caption br:first-child {
  display: none;
}

/* Скрываем пустые заготовки фото-блоков, если в src указана только папка без имени файла */
.photo-item:has(img[src$="/"]),
.photo-item:has(img[src=""]) {
  display: none !important;
}


/* Модальное окно (поверх всей страницы, включая верхнюю навигационную панель) */
.photo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Отображение модального окна */
.photo-modal.active {
  display: flex; /* Flex для центрирования изображения */
  opacity: 1;
}

/* Увеличенное изображение */
.modal-img {
  max-width: 95%;
  max-height: 95%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767.98px) {
  .photo-item,
  .photo-gallery .photo-item {
    flex: 1 1 100%;
    width: 100%;
    max-width: 450px;
    padding: 8px;
  }
}

/* Обертка футера для горизонтального расположения */
.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

/* Секция с файлами */
.files-section {
  flex: 1;
  min-width: 260px;
  padding: 0;
}

.files-title {
  font-family: "Montserrat", sans-serif;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  border-bottom: 2px solid #d90429;
  padding-bottom: 8px;
}

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

.file-item {
  margin-bottom: 10px;
}

.file-link {
  display: flex;
  align-items: center;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 9px 14px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  transition: all 0.22s ease;
}

.file-link:hover {
  background-color: #d90429;
  border-color: #d90429;
  color: #ffffff;
  transform: translateX(4px);
}

.file-icon {
  margin-right: 10px;
  color: #f87171;
  flex-shrink: 0;
  transition: color 0.22s ease;
}

.file-link:hover .file-icon {
  color: #ffffff;
}

/* Информация о школе */
.info-content-wrapper {
  flex: 2;
  min-width: 300px;
  text-align: center;
}

/* Адаптивность */
@media (max-width: 767.98px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .files-section,
  .info-content-wrapper {
    width: 100%;
    text-align: center;
  }

  .files-title,
  .info-title {
    font-size: 1.25rem;
  }

  .file-link {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

.user-upload-section {
  margin-top: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 5px;
}

.form-group input[type="file"] {
  font-size: 1rem;
  width: 100%;
}

.form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #e0e4e8;
  border-radius: 5px;
  resize: vertical;
}

.submit-btn {
  background-color: #e74c3c;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #ff7061;
}

.user-content {
  margin-top: 20px;
}

/* Кнопка-ссылка в тексте и подписях (в едином стиле со страницей «Новости») */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 4px;
  padding: 5px 14px;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: #d90429 !important;
  background: rgba(217, 4, 41, 0.09);
  border-radius: 999px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.text-link::after {
  content: "↗";
  font-size: 0.94rem;
  transition: transform 0.22s ease;
}

.text-link:hover {
  background: #d90429;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(217, 4, 41, 0.28);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.text-link:hover::after {
  transform: translate(2px, -2px);
}

.text-link:active {
  transform: translateY(0);
}

.poem {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 20px;
  font-family: "Inter", sans-serif;
}

/* Бургер-меню */
.navbar-toggler {
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.2);
}

.navbar-toggler.clicked {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.5);
  animation: fadeBorder 1.5s ease forwards;
}

@keyframes fadeBorder {
  0% {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.5);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

@media (max-width: 992px) {
  .navbar-toggler {
    background-color: #fff;
    border-radius: 12px;
  }
}
