:root { --manrope: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

/* Контент статьи (попап) */
.t-feed__post-popup .t-redactor__text,
.t-feed__post-popup .t-redactor__text p,
.t-feed__post-popup .t-redactor__text li{
  font-family: var(--manrope) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
}

/* Метаданные: дата, uptitle, автор */
.t-feed__post-popup .js-feed-post-date,
.t-feed__post-popup .t-feed__post-popup__date,
.t-feed__post-popup .t-uptitle_xs,
.t-feed__post-popup .t-uptitle_sm,
.t-feed__post-popup .t-uptitle:not(.t-feed__post-popup__relevants-title){
  font-family: var(--manrope) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  color: #949494 !important;
  letter-spacing: normal !important;
  text-transform: lowercase !important;
}

/* Автор — без изменения регистра */
.t-feed__post-popup .js-feed-post-author-name,
.t-feed__post-popup .t-feed__post-popup__author-name{
  font-family: var(--manrope) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  color: #949494 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* Заголовок статьи */
.t-feed__post-popup .t-feed__post-popup__title,
.t-feed__post-popup .js-feed-post-title{
  font-family: 'YesevaOne', serif !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.3px !important;
}

/* «Смотрите также» — заголовок блока */
.t-feed__post-popup .t-feed__post-popup__relevants-title{
  font-family: 'YesevaOne', serif !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.3px !important;
}

/* «Смотрите также» — заголовок карточки */
.t-feed__post-popup .t-feed__post-popup__relevants .t-feed__post-popup__relevants-item-title.t-name.t-name_xs,
.t-feed__post-popup .t-feed__post-popup__relevants a .t-feed__post-popup__relevants-item-title.t-name.t-name_xs{
  font-family: 'YesevaOne', serif !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.3px !important;
  display: inline-block;
  color: #6864A4 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* «Смотрите также» — описание карточки */
.t-feed__post-popup .t-feed__post-popup__relevants :is(
  .t-feed__post-popup__relevants-item-descr.t-descr.t-descr_xxs,
  .t-descr, .t-descr_xxs, .t-descr_sm){
  font-family: var(--manrope) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  color: #282828 !important;
  margin-top: 10px !important;
}

/* Скругление изображения карточки */
.t-feed__post-popup .t-feed__post-popup__relevants :is(.t-bgimg,.t-feed__post-popup__relevants-bgimg,.t-feed__post-popup__relevants-item-img){
  border-radius: 15px !important;
  overflow: hidden !important;
}
.t-feed__post-popup .t-feed__post-popup__relevants :is(.t-bgimg,.t-feed__post-popup__relevants-bgimg){
  clip-path: inset(0 round 15px) !important;
}

/* Фон попапа статьи */
.t-feed__post-popup .t-popup__container{ background:#FBFBFB !important; }
.t-feed__post-popup{ background:#FBFBFB !important; }
.t-feed__post-popup .t-popup__content{ background:transparent !important; }

/* Лента постов: тег и дата — letter-spacing нормальный */
.t-feed .t-feed__post-tag.t-uptitle,
.t-feed .t-feed__post-tag.t-uptitle_xs,
.t-feed .t-feed__post-date.t-uptitle,
.t-feed .t-feed__post-date.t-uptitle_xs,
.t-feed .js-feed-post-date.t-uptitle,
.t-feed .js-feed-post-date.t-uptitle_xs{
  letter-spacing: normal !important;
}

/* Цитаты в статье (попап) — 15px, Medium */
.t-feed__post-popup blockquote.t-redactor__quote{
  font-family: var(--manrope) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
}

/* Префейс-цитата — 20px, Medium */
.t-feed__post-popup blockquote.t-redactor__preface{
  font-family: var(--manrope) !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
}

/* Callout текст — 15px, Medium */
.t-feed__post-popup .t-redactor__callout-text,
.t-feed__post-popup .t-redactor__callout-text p,
.t-feed__post-popup .t-redactor__callout-text li{
  font-family: var(--manrope) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
}

/* H2 в статье — 20px, Medium, #6864A4 */
.t-feed__post-popup h2.t-redactor__h2{
  font-family: 'YesevaOne', serif !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.3px !important;
  color: #6864A4 !important;
}

/* Callout-блок — скругление 15px */
.t-feed__post-popup blockquote.t-redactor__callout,
.t-feed__post-popup blockquote.t-redactor__callout.t-redactor__callout_fontSize_default{
  border-radius: 15px !important;
  overflow: hidden !important;
  background-clip: padding-box;
}

/* Заголовок блока T668 */
.t668__title.t-name.t-name_xl{
  color: #6864A4 !important;
}

/* Автоскейл для страниц постов */
@media screen and (min-width: 1200px) and (max-width: 1439px) {
  div#allrecords[data-post-page="y"] { zoom: 1.1 !important; }
  div#allrecords[data-post-page="y"] #t-header,
  div#allrecords[data-post-page="y"] #t-footer { zoom: calc(1 / 1.1) !important; }
}
@media screen and (min-width: 1440px) and (max-width: 1679px) {
  div#allrecords[data-post-page="y"] { zoom: 1.2 !important; }
  div#allrecords[data-post-page="y"] #t-header,
  div#allrecords[data-post-page="y"] #t-footer { zoom: calc(1 / 1.2) !important; }
}
@media screen and (min-width: 1680px) and (max-width: 1919px) {
  div#allrecords[data-post-page="y"] { zoom: 1.4 !important; }
  div#allrecords[data-post-page="y"] #t-header,
  div#allrecords[data-post-page="y"] #t-footer { zoom: calc(1 / 1.4) !important; }
}
@media screen and (min-width: 1920px) {
  div#allrecords[data-post-page="y"] { zoom: 1.6 !important; }
  div#allrecords[data-post-page="y"] #t-header,
  div#allrecords[data-post-page="y"] #t-footer { zoom: calc(1 / 1.6) !important; }
}

/* Превью статей "Смотрите также" - десктоп */
.t-feed__post-popup__relevants {
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 0 40px !important;
  box-sizing: content-box !important;
}

.t-feed__post-popup__relevants-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.t-feed__post-popup__relevants-item,
.t-feed__post-popup__relevants-item.t-col_3 {
  width: calc((100% - 60px) / 4) !important;
  max-width: none !important;
  flex: 0 0 calc((100% - 60px) / 4) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Отступ между картинкой и заголовком */
.t-feed__post-popup__relevants-textwrapper {
  padding-top: 10px !important;
}

/* Превью статей "Смотрите также" - мобилка */
@media screen and (max-width: 639px) {
  .t-feed__post-popup__relevants {
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .t-feed__post-popup__relevants-wrapper {
    flex-direction: column !important;
    gap: 40px !important;
  }
  
  .t-feed__post-popup__relevants-item,
  .t-feed__post-popup__relevants-item.t-col_3 {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  .t-feed__post-popup__relevants-title-wrapper {
    margin-bottom: 0px !important;
  }
}

/* Мобильные правки (≤320px) */
@media (max-width: 320px){
  .t-feed__post-popup .t-redactor__text,
  .t-feed__post-popup .t-redactor__text p,
  .t-feed__post-popup .t-redactor__text li{ font-size:14px !important; line-height:1.3 !important; }

  .t-feed__post-popup .js-feed-post-date,
  .t-feed__post-popup .t-feed__post-popup__date,
  .t-feed__post-popup .js-feed-post-author-name,
  .t-feed__post-popup .t-feed__post-popup__author-name,
  .t-feed__post-popup .t-uptitle_xs,
  .t-feed__post-popup .t-uptitle_sm,
  .t-feed__post-popup .t-uptitle:not(.t-feed__post-popup__relevants-title){ font-size:14px !important; }

  .t-feed__post-popup .t-feed__post-popup__relevants .t-feed__post-popup__relevants-item-title.t-name.t-name_xs,
  .t-feed__post-popup .t-feed__post-popup__relevants a .t-feed__post-popup__relevants-item-title.t-name.t-name_xs{ font-size:20px !important; }

  .t-feed__post-popup .t-feed__post-popup__relevants :is(
    .t-feed__post-popup__relevants-item-descr.t-descr.t-descr_xxs,
    .t-descr, .t-descr_xxs, .t-descr_sm){ font-size:14px !important; }

  .t-feed__post-popup .t-feed__post-popup__relevants-title{ font-size:20px !important; }

  .t-feed__post-popup blockquote.t-redactor__quote{ font-size:14px !important; line-height:1.3 !important; }
  .t-feed__post-popup blockquote.t-redactor__preface{ font-size:14px !important; line-height:1.3 !important; }
  
  .t-feed__post-popup .t-redactor__callout-text,
  .t-feed__post-popup .t-redactor__callout-text p,
  .t-feed__post-popup .t-redactor__callout-text li{ font-size:14px !important; line-height:1.3 !important; }

  .t-feed__post-popup h2.t-redactor__h2{ font-size:18px !important; line-height:1.3 !important; }
}

/* Отступ между заголовком статьи и картинкой */
.t-feed__post-popup__title,
.t-feed__post-popup .js-feed-post-title {
  margin-bottom: 10px !important;
}

/* Отступ между картинкой статьи и текстом */
.t-feed__post-popup__cover-wrapper,
.t-feed__post-popup__cover {
  margin-bottom: 10px !important;
}

/* Отступ от автора до "Смотрите также" */
.t-feed__post-popup__author-wrapper {
  margin-bottom: 0px !important;
}

/* Страница блога - отступ от категорий до первой статьи (мобилка) */
@media screen and (max-width: 639px) {
  .t-feed__parts-switch-wrapper {
    margin-bottom: 20px !important;
    gap: 5px !important;
    row-gap: 5px !important;
  }
  
  .t-feed__parts-switch-btn {
    margin-bottom: 5px !important;
  }
}

/* Страница блога - метаданные строчными буквами */
.t-feed .t-feed__post-date,
.t-feed .js-feed-post-date,
.t-feed .t-feed__post-tag {
  text-transform: lowercase !important;
}