/* Старый дизайн tvomsk.ru: дополнения поверх /CSS/default.css */

@font-face {
  font-family: 'PT Sans';
  src: url('/CSS/fonts/PTS55F_W.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PT Sans';
  src: url('/CSS/fonts/PTS75F_W.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'pt_serif_captionregular';
  src: url('/CSS/fonts/PTZ55F_W.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.legacy-site {
  background: #fff;
  color: #333;
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 12px;
}

#main {
  width: 1220px;
  min-height: 100vh;
}

.content {
  width: 1220px;
  margin: 10px auto;
}

#rubrics {
  width: 1220px;
  box-sizing: border-box;
}

#logo a {
  display: inline-block;
}

#inform {
  width: 270px;
}

#informweatherday {
  width: 100px;
  font-size: 19px;
  line-height: 1.3;
}

.legacy-counter {
  clear: both;
  padding-top: 4px;
  color: #777;
  font: 10px/1.3 Arial, sans-serif;
  text-align: right;
  white-space: nowrap;
}

.legacy-counter--footer {
  clear: none;
  padding-top: 0;
  text-align: left;
}

.legacy-switch {
  display: block;
  margin-top: 4px;
  color: #4e606e;
  font: 11px/1.3 'PT Sans', Arial, sans-serif;
  text-decoration: underline;
  text-align: right;
}

.legacy-switch:hover {
  color: #00a86b;
}

.legacy-switch--footer {
  margin-top: 8px;
  text-align: center;
}

#rubricsmenu1 a[aria-current='page'] {
  color: #00a86b;
}

#rubricssearch1 input {
  box-sizing: border-box;
}

#rubricssearch1 form {
  margin: 0;
}

#footer a {
  color: #333;
  text-decoration: underline;
}

#footer .col_1_3.center a {
  display: inline-block;
  margin: 0 6px;
  font-size: 12px;
  font-weight: 700;
}

/* Баннеры без файлов: текстовая заглушка вместо битой картинки */

.legacy-banner {
  overflow: hidden;
}

.legacy-banner__html {
  text-align: center;
}

.legacy-banner__html iframe {
  max-width: 100%;
  border: 0;
}

.legacy-banner--682x72mainup,
.legacy-banner--682x72_main_up {
  width: 682px;
  max-height: 72px;
  overflow: hidden;
}

.legacy-banner--682x72mainup iframe,
.legacy-banner--682x72_main_up iframe {
  max-width: 682px;
  max-height: 72px;
  border: 0;
}

.legacy-banner--270 {
  width: 270px;
}

.legacy-banner--1220,
.legacy-banner--1220aboveauthor,
.legacy-banner--1220_above_author {
  width: 1220px;
  max-width: 100%;
}

.legacy-banner--682 {
  width: 682px;
  max-width: 100%;
}

.legacy-banner__text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  box-sizing: border-box;
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #f3f3f3;
  color: #333;
  font: 12px/1.3 'PT Sans', Arial, sans-serif;
}

.legacy-banner__text:hover {
  color: #106ac6;
  text-decoration: underline;
}

.legacy-banner__label {
  color: #999;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Главная */

#block_author {
  min-height: 20px;
}

#block_author .col_author:nth-child(2n) {
  margin-right: 0;
}

.author_block_anons {
  display: block;
  color: #555;
  font: 12px/1.35 'PT Sans', Arial, sans-serif;
}

.author_block_anons:hover {
  color: #106ac6;
}

#block_poll .sm {
  color: #777;
  font-size: 11px;
}

.home-gallery-empty {
  display: grid;
  place-items: center;
  width: 1180px;
  max-width: 100%;
  height: 260px;
  background: linear-gradient(135deg, #1a2c90, #0a1446);
  color: #fff;
  font: 18px 'PT Sans', Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legacy-rubric-total {
  margin: 14px 0 0;
  color: #777;
  font: 11px 'PT Sans', Arial, sans-serif;
}

.legacy-poll-item {
  margin-bottom: 4px;
}

.legacy-poll-title {
  font-weight: 700;
}

.legacy-poll-bar {
  height: 6px;
  margin: 2px 0 6px;
}

.legacy-poll-note {
  margin-top: 10px;
  color: #999;
  font-size: 11px;
}

.legacy-rubric-total {
  margin: 10px 0;
  color: #777;
  font-size: 11px;
}

.home-gallery-empty {
  display: grid;
  place-items: center;
  width: 1220px;
  max-width: 100%;
  height: 260px;
  color: #fff;
  font: 16px 'PT Sans', Arial, sans-serif;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #1a2c90, #0a1446);
}

#slider_wrapper_gal img {
  max-width: 100%;
  height: auto;
}

#galtitle_left {
  float: left;
}

#block_tv .legacy-banner__text {
  min-height: 70px;
  font-size: 15px;
}

/* Рубрики, автор, поиск, статика */

.titleblock {
  min-height: 36px;
}

.rubrictitle {
  display: block;
  margin-bottom: 6px;
}

.pager {
  margin-top: 8px;
  color: #777;
}

.pager .pager-label {
  margin-right: 5px;
}

.pager .pager-gap {
  margin: 0 4px;
  color: #999;
}

.colru_2_4 {
  min-height: 20px;
}

.news_block {
  margin-bottom: 14px;
}

.news_block .date {
  font-size: 12px;
}

.news_full_anons {
  margin: 10px 0 16px;
}

.news_full_body {
  overflow-wrap: break-word;
}

.news_full_body img,
.news_full_body iframe {
  max-width: 100%;
  height: auto;
}

.news_full_body iframe {
  aspect-ratio: 16 / 9;
}

.news_full_body p {
  margin: 0 0 1em;
}

.title_author {
  display: block;
  margin: 10px 0;
  color: #777;
}

.title_author a {
  color: #333;
  text-decoration: underline;
}

.legacy-comments {
  margin-top: 14px;
}

.legacy-comments .comment {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.legacy-comments .comment__meta {
  color: #999;
  font-size: 11px;
}

.legacy-comments .comment__body {
  margin: 4px 0 0;
  font: 14px/1.45 'pt_serif_captionregular', Georgia, serif;
  white-space: pre-line;
}

.legacy-comments .comments__empty {
  color: #777;
}

.legacy-article-empty {
  padding: 20px;
  border: 1px dashed #ccc;
  background: #f7f7f7;
  color: #777;
}

.legacy-search-form {
  margin: 0 0 16px;
}

.legacy-search-form input[type='search'] {
  box-sizing: border-box;
  width: 420px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f3f3f3;
  font: 14px 'PT Sans', Arial, sans-serif;
}

.legacy-search-form button {
  margin-left: 6px;
  padding: 7px 14px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: linear-gradient(#fff, #c7c5c7);
  cursor: pointer;
  font: 13px 'PT Sans', Arial, sans-serif;
}

.legacy-prose {
  max-width: 100%;
  font: 14px/1.55 'pt_serif_captionregular', Georgia, serif;
  text-align: justify;
}

.legacy-prose h2 {
  margin: 22px 0 10px;
  font: 22px/1.2 'pt_serif_captionregular', Georgia, serif;
}

.legacy-prose p {
  margin: 0 0 1em;
}

.legacy-prose a {
  color: #106ac6;
  text-decoration: underline;
}

.legacy-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.legacy-contact-card {
  padding: 12px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  font: 13px/1.45 'PT Sans', Arial, sans-serif;
}

.legacy-contact-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

/* Видео */

/* 5 миниатюр в ряд, как в старом блоке «Видео» */
.row_video {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.row_video .col_1_5,
.row_video .col_1_5.videoitems {
  float: none;
  box-sizing: border-box;
  width: calc((100% - 40px) / 5);
  min-width: 0;
  margin: 0;
}

#block_video {
  margin: 40px 0;
}

#block_video .row_video .videoitems {
  min-height: 0;
}

#block_video .videoitems img,
.row_video .videoitems img {
  width: 100%;
  height: 130px;
  margin: 0;
  object-fit: cover;
}

#block_video .videoitems .video_thumb__empty,
.row_video .videoitems .video_thumb__empty {
  width: 100%;
  height: 130px;
}

#block_video .videoitems .video_block_title,
.row_video .videoitems .video_block_title {
  display: block;
  min-height: 46px;
  padding: 5px 0;
  font-size: 12px;
  line-height: 1.25;
}

#block_video .videoitems .video_plays,
.row_video .videoitems .video_plays {
  top: 0;
  left: 0;
  width: 100%;
  height: 130px;
  background-size: 46px 46px;
}

#block_video .videoitems .videosubs,
.row_video .videoitems .videosubs {
  position: static;
  width: auto;
  height: auto;
  padding: 3px 0 0;
  border: 0;
  background: none;
  text-align: left;
}

.legacy-video-filter {
  margin: 4px 0 16px;
  font: 13px 'PT Sans', Arial, sans-serif;
}

.legacy-video-filter select {
  padding: 4px 12px;
  border: 1px solid #ccc;
  background: #f3f3f3;
  font: 13px 'PT Sans', Arial, sans-serif;
}

.active_video_type {
  margin-right: 10px;
}

.row_video {
  clear: both;
}

.videoitems .video_thumb {
  position: relative;
  display: block;
  overflow: hidden;
  height: 188px;
  background: #101d63;
}

.videoitems .video_thumb img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.video_thumb__empty {
  display: grid;
  place-items: center;
  height: 188px;
  color: #fff;
  font: 13px 'PT Sans', Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1a2c90, #0a1446);
}

.videoitems a.video_plays,
.videoitems a.video_play {
  top: 30px;
  left: 0;
}

.legacy-video-source {
  margin: 14px 0;
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  color: #777;
  font: 12px 'PT Sans', Arial, sans-serif;
}

.legacy-video-poster {
  display: block;
  margin: 14px 0;
}

.legacy-video-poster img {
  display: block;
  max-width: 100%;
  border: 1px solid #ccc;
}

.legacy-player {
  max-width: 591px;
  margin: 14px 0;
  background: #000;
}

.legacy-player video,
.legacy-player iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

/* Галереи */

.photoitem .photo_thumb {
  display: block;
  height: 188px;
  overflow: hidden;
  background: #101d63;
}

.photoitem .photo_thumb img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.photo_thumb__empty {
  display: grid;
  place-items: center;
  height: 188px;
  color: #fff;
  font: 13px 'PT Sans', Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1a2c90, #0a1446);
}

.legacy-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.legacy-gallery-grid figure {
  margin: 0;
  border: 1px solid #ccc;
  background: #f7f7f7;
}

.legacy-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.legacy-gallery-grid figcaption {
  padding: 6px 8px;
  color: #555;
  font: 11px/1.3 'PT Sans', Arial, sans-serif;
}

/* Мобильная версия вторична, но не ломается */

@media (max-width: 700px) {
  .row_video {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row_video .col_1_5,
  .row_video .col_1_5.videoitems {
    width: auto;
  }

  #main {
    width: 100%;
    overflow-x: hidden;
  }

  .content {
    width: auto;
    margin: 10px;
  }

  #logo {
    padding: 10px;
  }

  #logo img {
    width: 200px;
    height: auto;
  }

  #up_banner_698x62 {
    position: static;
    width: auto;
    height: auto;
    padding: 0 10px;
  }

  #tvprogramm {
    position: static;
    display: inline-block;
    margin: 0 10px 10px;
    font-size: 15px;
  }

  #inform {
    position: static;
    width: auto;
    margin: 0 10px 10px;
    text-align: right;
  }

  #informweatherday,
  #informweathertitle,
  #informweathercloud {
    float: none;
    display: inline-block;
    width: auto;
    padding: 0 6px;
    font-size: 16px;
  }

  .legacy-counter,
  .legacy-switch {
    display: inline-block;
    margin-left: 10px;
  }

  #rubrics {
    width: auto;
    height: auto;
    padding: 0 10px 6px;
    white-space: normal;
  }

  #rubricsmenu1 {
    float: none;
    width: auto;
  }

  #rubricsmenu1 a {
    float: none;
    display: inline-block;
    padding: 7px 8px;
    margin: 0;
    font-size: 14px;
  }

  #rubricssearch1 {
    float: none;
    width: auto;
    padding: 6px 0;
  }

  #inpsearch1 {
    width: 100%;
    box-sizing: border-box;
  }

  #footer {
    margin-top: 24px;
    padding: 12px;
  }

  .col_1_3m,
  .col_1_3,
  .col_1_2,
  .col_1_3,
  .col_2_3,
  .col_3_4,
  .col_1_4,
  .col_1_5,
  .colru_3_4,
  .colru_2_4,
  .colru_1_4 {
    float: none;
    width: auto !important;
    margin-right: 0 !important;
  }

  .titleblock,
  .bannerleftblock {
    float: none;
    width: auto;
    height: auto;
  }

  .bannerleftblock {
    text-align: left;
  }

  .legacy-banner--682,
  .legacy-banner--1220,
  .legacy-banner--1220aboveauthor,
  .legacy-banner--270 {
    width: auto;
    max-width: 100%;
  }

  .videoitems,
  .photoitem {
    width: 48%;
    margin-right: 2%;
  }

  .videoitems img,
  .photoitem img,
  .video_thumb,
  .photo_thumb,
  .video_thumb__empty,
  .photo_thumb__empty {
    width: 100%;
    height: auto;
  }

  .legacy-contact-grid,
  .legacy-gallery-grid {
    grid-template-columns: 1fr;
  }

  #block_video {
    margin: 20px 10px;
  }
}

@media (max-width: 640px) {
  .videoitems,
  .photoitem {
    width: 100%;
    margin-right: 0;
  }

  #footer .col_1_3 {
    width: auto;
  }
}
