/* ============================================================
   PVESTNIK — визуальные правки
   Красно-белая палитра сохранена. Подключается после
   theme.css / responsive.css, поэтому используем !important.
   ============================================================ */

:root {
  --pv-red: #c8102e;
  --pv-red-dark: #8e0b20;
  --pv-ink: #1b1b1f;
  --pv-muted: #6b7280;
  --pv-bg: #f5f6f7;
  --pv-line: #ececec;
  --pv-radius: 10px;
  --pv-card-shadow: 0 6px 18px rgba(16, 16, 20, .08);
  --pv-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- База ---------- */
body { font-size: 16px; line-height: 1.6; color: var(--pv-ink); }
p { line-height: 1.65; }
a { transition: color .2s ease, opacity .2s ease; }

/* ---------- Типографика: уменьшаем «гигантские» заголовки ---------- */
.sec_titles { font-size: 22px !important; line-height: 1.2 !important; margin-bottom: 22px !important; }
.sec_titles_2 { font-size: 18px !important; line-height: 1.25 !important; }
.cates { font-size: 20px !important; line-height: 1.2 !important; letter-spacing: .04em !important; }
.blok-header-pagetitle-news{
      display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.tw1_details h2,
.tw1_details h2 a { font-size: 18px !important; line-height: 1.25 !important; }
.tt_f_content h3,
.tt_f_content h3 a { font-size: 18px !important; line-height: 1.25 !important; }
.tt_s_content h3,
.tt_s_content h3 a { font-size: 17px !important; line-height: 1.25 !important; }
.tt_s_content h4,
.tt_s_content h4 a { font-size: 16px !important; line-height: 1.3 !important; }
.fi1_content h2,
.fi1_content h2 a { font-size: 24px !important; line-height: 1.2 !important; }
.mp_post_content h5,
.mp_post_content h5 a { font-size: 14px !important; line-height: 1.3 !important; }
.single_rc_post h4,
.single_rc_post h4 a { font-size: 16px !important; line-height: 1.3 !important; }

/* ---------- Картинки: убираем приглушение (opacity .6) ---------- */
.mp_post_thumb img,
.tt_thumb img,
.tw1_thumb img,
.fi1_sm img,
.tt_feature_post img,
.featured_item_1 img { opacity: 1 !important; }

/* ---------- Скругления и аккуратные тени ---------- */
.tt_thumb, .tw1_thumb, .mp_post_thumb, .fi1_sm, .tt_f_thumb,
.single_cate_item, .featured_item_1 { border-radius: var(--pv-radius); }
.tt_thumb img, .tw1_thumb img, .fi1_sm img, .tt_f_thumb img, .mp_post_thumb img {
  transition: transform .45s var(--pv-ease), opacity .3s ease;
}
.tt_s_post:hover .tt_thumb img,
.featured_item_1:hover img,
.tt_feature_post:hover .tt_f_thumb img,
.fi1_sm:hover img,
.mp_post:hover .mp_post_thumb img { transform: scale(1.05); }

.tw1_details h2 a:hover,
.tt_f_content h3 a:hover,
.tt_s_content h3 a:hover,
.tt_s_content h4 a:hover,
.fi1_content h2 a:hover { opacity: .82; }

/* ---------- Вертикальный ритм ---------- */
.mb_60 { margin-bottom: 34px !important; }
.widget { margin-bottom: 30px !important; }
.widget_title { margin-bottom: 20px !important; }

/* ---------- Легкое появление секций ---------- */
.comon_section { animation: pvFadeUp .5s var(--pv-ease) both; }
@keyframes pvFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Мобильные правки ---------- */
@media (max-width: 991px) {
  body { font-size: 15px; }
  .sec_titles { font-size: 20px !important; }
  .sec_titles_2 { font-size: 17px !important; }
  .tw1_details h2,
  .tw1_details h2 a { font-size: 17px !important; }
  .tt_f_content h3,
  .tt_f_content h3 a { font-size: 17px !important; }
  .logo_02 img { max-height: 72px !important; width: auto !important; }
}

@media (prefers-reduced-motion: reduce) {
  .comon_section { animation: none; }
  .tt_thumb img, .tw1_thumb img, .fi1_sm img, .tt_f_thumb img, .mp_post_thumb img { transition: none; }
}

/* ---------- Меню: выпадающий список рубрик ---------- */
.main_menu_2 ul li.menu-item-has-children { position: relative; }
.main_menu_2 ul li.menu-item-has-children > ul.sub-menu {
  display: block !important;
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  padding: 6px 0; margin: 0; list-style: none; z-index: 2000;
  border-top: 2px solid #c8102e;
  visibility: hidden; opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
}
.main_menu_2 ul li.menu-item-has-children:hover > ul.sub-menu {
  visibility: visible !important; opacity: 1 !important;
}
.main_menu_2 ul.sub-menu li { display: block; float: none; padding: 0 !important; }
.main_menu_2 ul.sub-menu li a {
  display: block; padding: 7px 16px !important; color: #1b1b1f !important;
  font-size: 14px; text-transform: none; letter-spacing: 0;
  font-family: 'Roboto', sans-serif;
}
.main_menu_2 ul ul.sub-menu > li:hover > a { padding-left: 16px !important; color: #fff !important; }
.main_menu_2 ul.sub-menu li a:hover { background: #c8102e; color: #fff !important; }

/* ---------- Меню: выпадающие разделы Афиши (третий уровень) ---------- */
@media (min-width: 992px) {
  .main_menu_2 ul ul.sub-menu li.menu-item-has-children > ul.sub-menu {
    left: 100% !important; top: 0 !important; margin-left: 0 !important;
    border-top: 2px solid #c8102e;
  }
  .main_menu_2 ul ul.sub-menu li.menu-item-has-children:hover > ul.sub-menu {
    visibility: visible !important; opacity: 1 !important; top: 0 !important;
  }
}

.tw1_details { padding: 20px 0 0 !important; }

/* ---------- Похожие новости: 4 в ряд ---------- */
.top_viral_post .row > .col-lg-6 { flex: 0 0 25% !important; max-width: 25% !important; }
.top_viral_post .tw1_thumb img { min-height: 0 !important; height: 180px !important; }
.top_viral_post .tw1_details { padding: 16px 0 0 !important; }
.top_viral_post .tw1_details h2,
.top_viral_post .tw1_details h2 a { font-size: 15px !important; line-height: 1.25 !important; }
@media (max-width: 991px) {
  .top_viral_post .row > .col-lg-6 { flex: 0 0 50% !important; max-width: 50% !important; }
}

/* ---------- Правые баннеры: компактнее ---------- */

.comon_section aside.widget[class="widget"],
.sidebar_1 aside.widget[class="widget"] { margin-bottom: 16px !important; }

/* ---------- Убрать автора «By …» ---------- */
.cm_author { display: none !important; }

/* ---------- Мета новостей в столбик ---------- */
.comon_meta { display: flex; flex-direction: column; gap: 10px !important; }

/* ---------- Бегущая строка «Важное» — фиксированная высота, обрезка ---------- */
.tr_slider_2 { height: 22px !important; overflow: hidden !important; }
.tr_slider_2 .top_post_news {
  height: 22px !important; margin: 0 !important; overflow: hidden !important;
}
.tr_slider_2 .top_post_news a {
  display: flex !important;
  align-items: center;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ---------- Верхний блок: выравнивание картинок по высоте ---------- */
.featured_item_1 .big-img {
  width: 100% !important; height: 495px !important; min-height: 0 !important;
  object-fit: cover !important; display: block;
}
.featured_item_1 .small-img {
  width: 100% !important; height: 240px !important; min-height: 0 !important;
  object-fit: cover !important; display: block;
}
@media (max-width: 991px) {
  .featured_item_1 .big-img { height: 260px !important; }
  .featured_item_1 .small-img { height: 180px !important; }
}

/* ---------- Блоки главной: единая высота картинок ---------- */
.tt_f_thumb img {
  width: 100% !important; height: 400px !important; min-height: 0 !important;
  object-fit: cover !important;
}
.tt_thumb img {
  width: 100% !important; height: 220px !important; min-height: 0 !important;
  object-fit: cover !important;
}
.tw1_thumb img {
  width: 100% !important; height: 220px !important; min-height: 0 !important;
  max-width: 100% !important; object-fit: cover !important;
  transform: none !important;
}
@media (max-width: 991px) {
  .tt_f_thumb img { height: 240px !important; }
  .tt_thumb img { height: 170px !important; }
  .tw1_thumb img { height: 170px !important; }
}

/* ---------- Названия разделов: акцентная линия в корпоративных цветах ---------- */
:root {
  --pv-azure: #6b8fa3;
  --pv-gray: #9aa1a8;
}
.sec_titles_2 {
  border-bottom: 1px solid var(--pv-line) !important;
  border-bottom-width: 1px !important;
  padding-bottom: 18px !important;
  font-weight: 800 !important;
}
.sec_titles_2 i {
  position: absolute !important;
  left: 0 !important;
  bottom: -2px !important;
  width: 120px !important;
  height: 4px !important;
  border-radius: 3px !important;
  background: linear-gradient(90deg, var(--pv-red) 0%, var(--pv-azure) 60%, var(--pv-gray) 100%) !important;
}
.sec_titles_2 i:after {
  display: none !important;
}

/* ---------- Категории новостей: лёгкое затемнение при наведении ---------- */
a.cats {
  transition: filter .2s ease, background-color .2s ease;
}
a.cats:hover {
  filter: brightness(.85);
}

/* ---------- Сайдбар главной: Рубрики / Архив / Календарь ---------- */
.pv-widget { margin-bottom: 26px; }
.pv-widget__title {
  position: relative;
  font-size: 18px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--pv-ink);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ececec;
}
.pv-widget__title:after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 60px; height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pv-red) 0%, var(--pv-azure) 60%, var(--pv-gray) 100%);
}
.pv-widget__select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d9dde1;
  border-radius: 8px;
  background: #fff;
  color: #1b1b1f;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease;
}
.pv-widget__select:focus { border-color: var(--pv-azure); }

/* Календарь */
.pv-cal { border: 1px solid #ececec; border-radius: 10px; overflow: hidden; }
.pv-cal__head {
  display: flex; align-items: center; justify-content: space-between;
  background: #f4f5f6; padding: 8px 10px;
}
.pv-cal__month { font-weight: 700; font-size: 14px; color: #1b1b1f; }
.pv-cal__nav {
  width: 26px; height: 26px; line-height: 24px; text-align: center;
  border-radius: 50%; background: #fff; color: #1b1b1f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-size: 18px;
}
.pv-cal__nav:hover { background: var(--pv-red); color: #fff; }
.pv-cal__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pv-cal__table th {
  font-size: 11px; font-weight: 700; color: #8a8f95; text-transform: uppercase;
  padding: 6px 0; background: #fff; border-bottom: 1px solid #f0f0f0;
}
.pv-cal__day, .pv-cal__pad {
  text-align: center; font-size: 13px; color: #3a3a3a; padding: 6px 0;
  border: 1px solid #f4f4f4;
}
.pv-cal__day.is-has { background: #fdf2f4; }
.pv-cal__day.is-has a { color: var(--pv-red); font-weight: 700; }
.pv-cal__day.is-has:hover { background: var(--pv-red); }
.pv-cal__day.is-has:hover a { color: #fff; }
.pv-cal__day.is-today { box-shadow: inset 0 0 0 2px var(--pv-azure); }
.pv-cal-wrap { position: relative; transition: opacity .2s ease; }
.pv-cal-wrap.is-loading { opacity: .45; }
.pv-cal__month { color: #1b1b1f; text-decoration: none; }
.pv-cal__month:hover { color: var(--pv-red); }
/* ---------- Хедер: баннер «Полоцк.бел» ---------- */
.pv-header-row aside.widget { margin-bottom: 0 !important; }
.pv-header-banner { display: block; line-height: 0; }
.pv-header-banner img {
  display: block; width: auto; max-width: 100%; height: auto;
  margin: 0 auto;
}
@media (min-width: 1200px) {
  .pv-header-banner img { max-width: 160px; }
}
@media (max-width: 991px) {
  .pv-header-banner { margin-top: 10px; }
}
@media (max-width: 767px) {
  .pv-header-banner img { max-width: 180px; }
  .pv-header-row aside.widget img { width: 50% !important; max-width: 50% !important; margin: 0 auto; display: block; }
}

/* ---------- TG banner: pulse ---------- */
.tg-banner {
  animation: pvTgPulse 2.2s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}
.tg-banner img {
  display: block; width: 100% !important; height: auto !important;
  border-radius: 10px;
}
.tg-banner:hover { animation-play-state: paused; }
@keyframes pvTgPulse {
  0%, 100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 0 rgba(0, 136, 204, 0)); }
  50% { transform: scale(1.025); opacity: .85; filter: drop-shadow(0 0 14px rgba(0, 136, 204, .55)); }
}
@media (prefers-reduced-motion: reduce) {
  .tg-banner { animation: none; }
}

/* ---------- Mobile: search vertical centering + submenu togglers ---------- */
@media (max-width: 991px) {
  .header_02 .search_form {
    margin-top: 5px;
  }
  .header_02 .search_form button {
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
  }
  .mobile_menu ul.sub-menu li.menu-item-has-children {
    position: relative;
  }
  .mobile_menu ul.sub-menu li.menu-item-has-children > a {
    padding-right: 55px;
  }
  .main_menu_2 ul li.menu-item-has-children > ul.sub-menu {
    display: none !important;
  }
  .main_menu_2 ul li.menu-item-has-children > ul.sub-menu.pv-open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* --- PV: news detail image normalization --- */
.container .row > .blog_content_3 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 15px;
    padding-right: 15px;
}
.blog_content_3 .sb_img { margin-bottom: 20px; }
.blog_content_3 .sb_img img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.blog_content_3 div[itemprop="articleBody"] img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto 18px;
}
.blog_content_3 div[itemprop="articleBody"] figure {
    max-width: 100%;
    margin: 0 0 18px;
}
@media (max-width: 767px) {
    .blog_content_3 .sb_img img { aspect-ratio: 16 / 9; }
}
/* --- /PV: news detail image normalization --- */

/* --- PV: wrap WP preformatted blocks --- */
.blog_content_3 pre,
.blog_content_3 .wp-block-preformatted,
.blog_content_3 .wp-block-code,
.blog_content_3 div[itemprop="articleBody"] pre {
    white-space: pre-wrap !important;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0 0 18px;
}
/* --- /PV: wrap WP preformatted blocks --- */

/* --- PV: pagination --- */
.pv-pagination{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 10px;user-select:none}
.pv-pagination a,.pv-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border:1px solid #e3e3e3;border-radius:8px;color:#333;text-decoration:none;font-size:15px;line-height:1;transition:border-color .15s,color .15s,background .15s}
.pv-pagination a:hover{border-color:#c72026;color:#c72026;background:#fff}
.pv-pagination .is-current{background:#c72026;border-color:#c72026;color:#fff;font-weight:600}
.pv-pagination .is-disabled{opacity:.35}
.pv-pagination .pv-dots{border:none;background:none;color:#999;min-width:24px}
.pv-pagination .pv-pagination__nav{font-size:17px}
@media (max-width:480px){.pv-pagination{gap:4px}.pv-pagination a,.pv-pagination span{min-width:32px;height:32px;padding:0 6px;font-size:13px}}
/* --- /PV: pagination --- */

/* --- PV: pagination row --- */
.sp_5_section .row.pagination{
    justify-content: center;
}
/* --- /PV: pagination row --- */

/* --- PV: news-page row --- */
.sp_5_section .row.news-page {
    justify-content: center;
}
/* --- /PV: news-page row --- */
