/* ==========================================================================
   custom.css — SEO / доступность / мелкие правки поверх шаблона
   Подключается последним, после responsive.css
   ========================================================================== */

/* --- H1 на внутренних страницах.
   В шаблоне заголовки секций были свёрстаны как <h2>. Чтобы у каждой
   страницы был ровно один <h1> (требование поисковых систем), теги
   заменены на <h1>, а внешний вид сохранён этими правилами. --- */

.sec-title h1 {
  position: relative;
  display: block;
  font-size: 40px;
  line-height: 50px;
  font-weight: 700;
  margin: 0px;
}

.sidebar-page-container .news-block-one .inner-box .lower-content h1 {
  display: block;
  font-size: 40px;
  line-height: 50px;
  font-weight: 600;
  margin-bottom: 30px;
}

.error-section .inner-box h1 {
  display: block;
  font-size: 40px;
  line-height: 50px;
  font-weight: 700;
  margin-bottom: 25px;
}

@media only screen and (max-width: 767px) {
  .sec-title h1,
  .sidebar-page-container .news-block-one .inner-box .lower-content h1,
  .error-section .inner-box h1 {
    font-size: 30px;
    line-height: 40px;
  }
}

/* --- CLS: у картинок теперь есть width/height, не даём им ломать сетку --- */

figure.image img,
figure.image-box img {
  width: 100%;
  height: auto;
}

/* --- Доступность: видимый фокус с клавиатуры (в шаблоне был убран) --- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #de2c2c;
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Уважаем системную настройку «уменьшить движение» --- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- скрытая подпись для скринридеров --- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
