:root{--tm-ink:#111214;--tm-muted:#6c7075;--tm-line:#dedede;--tm-paper:#f4f4f2;--tm-accent:#ff4a2f}
html,body,button,input,select,textarea,h1,h2,h3,h4,h5,h6,p,a,span,div,time{font-family:'Roboto',sans-serif!important;letter-spacing:0!important}
html,body{max-width:100%;overflow-x:hidden}body{margin:0;background:#fff;color:var(--tm-ink)}body.tm-search-active{overflow:hidden}
.tm-header{background:#fff;border-bottom:1px solid var(--tm-line)}.tm-header-inner{width:min(1160px,calc(100% - 40px));min-height:176px;margin:0 auto;display:grid;grid-template-columns:48px 1fr 48px;align-items:center}
.tm-brand{justify-self:center;display:flex;flex-direction:column;align-items:center;color:var(--tm-ink)!important;text-decoration:none!important;text-align:center}.tm-logo{position:relative;width:58px;height:58px;display:grid;place-items:center;margin-bottom:13px;border-radius:50%;background:var(--tm-ink);color:#fff;font-weight:900;font-size:18px}.tm-logo:after{content:'';position:absolute;inset:0;border-radius:50%;border:4px solid var(--tm-accent);clip-path:inset(0 0 50% 50%)}.tm-brand-name{font-size:30px;line-height:1.05;font-weight:900}.tm-brand-tagline{margin-top:8px;color:var(--tm-muted);font-size:14px;line-height:1.35}
.tm-search-open,.tm-search-close{border:0;padding:0;background:transparent;color:var(--tm-ink);cursor:pointer}.tm-search-open{width:44px;height:44px;display:grid;place-items:center;border-radius:50%}.tm-search-open:hover{background:var(--tm-paper)}.tm-search-open svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2}.tm-header-balance{width:44px}.tm-search-dialog[hidden]{display:none}.tm-search-dialog{position:fixed;inset:0;z-index:99999;background:rgba(255,255,255,.98);display:grid;place-items:center;padding:24px}.tm-search-close{position:absolute;top:30px;right:38px;width:52px;height:52px;font-size:44px;line-height:1}.tm-search-panel{width:min(900px,100%)}.tm-search-title{margin:0 0 28px;font-size:54px;line-height:1;font-weight:900}.tm-search-form{display:flex;gap:12px}.tm-search-form input{flex:1;min-width:0;height:64px;padding:0 22px;border:2px solid var(--tm-ink);border-radius:6px;background:#fff;color:var(--tm-ink);font-size:20px}.tm-search-form button{height:64px;padding:0 30px;border:0;border-radius:6px;background:var(--tm-ink);color:#fff;font-size:17px;font-weight:700;cursor:pointer}
.tm-site-content{background:#fff}.tm-main{width:min(1320px,calc(100% - 48px));margin:0 auto;padding:52px 0 80px}.tm-section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}.tm-section-heading h1{margin:0;color:var(--tm-ink);font-size:42px;line-height:1.05;font-weight:900}.tm-section-heading span{color:var(--tm-muted);font-size:15px}
.tm-feed{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px 24px}.tm-feed-featured .tm-post-card-lead{grid-column:span 2;grid-row:span 2}.tm-post-card,.tm-post-body{min-width:0;max-width:100%}.tm-post-media{display:block;overflow:hidden;border-radius:6px;aspect-ratio:16/10;background:#e8e8e6}.tm-post-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.tm-post-card:hover .tm-post-media img{transform:scale(1.025)}.tm-post-placeholder{width:100%;height:100%;display:grid;place-items:center;color:#aaa;font-size:32px;font-weight:900}.tm-post-body{padding-top:15px;overflow:hidden}.tm-post-meta{display:flex;flex-wrap:wrap;gap:8px 14px;color:var(--tm-muted);font-size:12px;font-weight:500;text-transform:uppercase}.tm-post-meta span{color:var(--tm-accent);font-weight:700}.tm-post-title{display:block;width:100%;max-width:100%;margin:9px 0 0;font-size:24px;line-height:1.16;font-weight:900;overflow-wrap:anywhere;word-break:break-word;white-space:normal!important}.tm-post-title a{display:block;max-width:100%;color:var(--tm-ink)!important;text-decoration:none!important;white-space:normal!important}.tm-post-card-lead .tm-post-media{aspect-ratio:16/9}.tm-post-card-lead .tm-post-title{max-width:900px;font-size:42px;line-height:1.08}.tm-post-excerpt{max-width:780px;margin-top:12px;color:var(--tm-muted);font-size:17px;line-height:1.5;white-space:normal!important;overflow-wrap:anywhere}
.tm-pagination{margin-top:58px;text-align:center}.tm-pagination .page-numbers{display:inline-grid;place-items:center;min-width:42px;height:42px;margin:3px;padding:0 10px;border-radius:4px;background:var(--tm-paper);color:var(--tm-ink)!important;text-decoration:none!important}.tm-pagination .current{background:var(--tm-ink);color:#fff!important}
.tm-search-page-head{margin-bottom:45px;padding:38px;border-radius:8px;background:var(--tm-paper)}.tm-search-page-head p{margin:0 0 8px;color:var(--tm-muted);font-size:14px}.tm-search-page-head h1{margin:0 0 28px;font-size:46px;line-height:1.1}.tm-empty{grid-column:1/-1;padding:80px 20px;color:var(--tm-muted);text-align:center}
.newsx-site-footer{font-family:'Roboto',sans-serif!important}.newsx-bottom-section-wrap .newsx-builder-grid-row{display:flex;justify-content:center;min-height:68px;padding:0 24px}.newsx-copyright{color:#9e9e9e;text-align:center;font-size:12px;line-height:1.5}.single .newsx-post-date,.single .post-date{font-variant-numeric:tabular-nums}.newsx-post-time{display:none!important}
@media(max-width:900px){.tm-header-inner{min-height:150px}.tm-feed{grid-template-columns:repeat(2,minmax(0,1fr))}.tm-feed-featured .tm-post-card-lead{grid-column:1/-1;grid-row:auto}}
@media(max-width:620px){.tm-header-inner,.tm-main{width:min(100% - 28px,1320px)}.tm-header-inner{min-height:138px;grid-template-columns:40px 1fr 40px}.tm-logo{width:46px;height:46px;margin-bottom:9px;font-size:15px}.tm-brand-name{font-size:23px}.tm-brand-tagline{max-width:230px;font-size:12px}.tm-main{padding:34px 0 60px}.tm-section-heading{align-items:start;flex-direction:column;gap:8px}.tm-section-heading h1{font-size:32px}.tm-feed{grid-template-columns:1fr;gap:34px}.tm-post-title,.tm-post-card-lead .tm-post-title{font-size:26px}.tm-post-card-lead .tm-post-media,.tm-post-media{aspect-ratio:16/10}.tm-search-dialog{padding:18px}.tm-search-close{top:15px;right:18px}.tm-search-title{font-size:38px}.tm-search-form{flex-direction:column}.tm-search-form input,.tm-search-form button{width:100%;height:56px}.tm-search-page-head{padding:24px 18px}.tm-search-page-head h1{font-size:34px;overflow-wrap:anywhere}}
/* Editorial mosaic */
.tm-header-inner{min-height:132px}
.tm-logo{width:48px;height:48px;margin-bottom:8px;font-size:15px}.tm-brand-name{font-size:26px}.tm-brand-tagline{margin-top:5px;font-size:13px}
.tm-main{width:min(1160px,calc(100% - 40px));padding:26px 0 72px}.tm-home-main{padding-top:18px}
.tm-feed{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.tm-post-card{grid-column:span 2;height:440px}.tm-feed-featured .tm-post-card-lead{grid-column:1/-1;grid-row:auto;height:468px}.tm-feed-featured .tm-post-card:nth-child(2),.tm-feed-featured .tm-post-card:nth-child(3){grid-column:span 3;height:360px}
.tm-post-link{position:relative;display:block;width:100%;height:100%;overflow:hidden;border-radius:8px;background:#202124;color:#fff!important;text-decoration:none!important}
.tm-post-media{position:absolute;inset:0;display:block;width:100%;height:100%;aspect-ratio:auto;border-radius:0}.tm-post-media:after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.72) 0%,rgba(0,0,0,.15) 55%,rgba(0,0,0,0) 78%)}.tm-post-media img{width:100%;height:100%;object-fit:cover}.tm-post-placeholder{background:#27282b;color:#777}
.tm-post-body{position:absolute;z-index:2;left:0;right:0;bottom:0;display:block;padding:32px 40px;color:#fff;overflow:visible}.tm-post-meta{display:flex;color:#fff;font-size:12px;text-transform:none}.tm-post-meta span{color:#fff}.tm-post-title,.tm-post-card-lead .tm-post-title{display:block;width:auto;max-width:100%;margin:10px 0 0;color:#fff;font-size:22px;line-height:1.16;font-weight:700;overflow-wrap:normal;word-break:normal}.tm-post-card-lead .tm-post-title{max-width:940px;font-size:40px}.tm-post-card:not(.tm-post-card-lead) .tm-post-body,.tm-post-card:nth-child(n+4) .tm-post-body{padding:28px 40px}.tm-post-card:nth-child(n+4) .tm-post-title{font-size:21px}
.tm-section-heading{margin:18px 0 24px}.tm-section-heading h1{font-size:38px}
.tm-search-page-head{margin:4px 0 34px;padding:0;background:transparent}.tm-search-page-head p{font-size:16px}.tm-search-page-head h1{font-size:42px}.tm-search-page-head .tm-search-form{max-width:760px}
.tm-single-main{width:100%;padding:52px 0 80px}.tm-article-header{width:min(744px,calc(100% - 40px));margin:0 auto 42px}.tm-article-meta{display:flex;align-items:center;gap:10px;margin-bottom:20px;color:var(--tm-muted);font-size:13px}.tm-article-meta a{color:var(--tm-ink)!important;text-decoration:none!important;font-weight:500}.tm-article-header h1{margin:0;color:var(--tm-ink);font-size:56px;line-height:1.02;font-weight:700;overflow-wrap:anywhere}.tm-article-deck{margin-top:22px;color:var(--tm-muted);font-size:22px;line-height:1.4}.tm-article-hero{width:min(1160px,calc(100% - 40px));margin:0 auto 54px;overflow:hidden;border-radius:8px}.tm-article-hero img{display:block;width:100%;height:auto}.tm-article-content{width:min(744px,calc(100% - 40px));margin:0 auto;color:#27282a;font-size:19px;line-height:1.7}.tm-article-content>*{max-width:100%}.tm-article-content p{margin:0 0 1.55em}.tm-article-content h2{margin:1.6em 0 .7em;font-size:36px;line-height:1.12}.tm-article-content h3{margin:1.5em 0 .6em;font-size:28px;line-height:1.2}.tm-article-content img{height:auto;border-radius:8px}.tm-article-content a{color:#1769aa!important}.tm-article-tags{width:min(744px,calc(100% - 40px));margin:42px auto 0;display:flex;flex-wrap:wrap;gap:8px}.tm-article-tags a{padding:8px 12px;border-radius:5px;background:var(--tm-paper);color:var(--tm-ink)!important;text-decoration:none!important;font-size:13px}
@media(max-width:900px){.tm-feed{grid-template-columns:repeat(2,minmax(0,1fr))}.tm-post-card,.tm-feed-featured .tm-post-card:nth-child(2),.tm-feed-featured .tm-post-card:nth-child(3){grid-column:span 1;height:360px}.tm-feed-featured .tm-post-card-lead{grid-column:1/-1;height:430px}.tm-post-body,.tm-post-card:not(.tm-post-card-lead) .tm-post-body,.tm-post-card:nth-child(n+4) .tm-post-body{padding:24px}.tm-post-card-lead .tm-post-title{font-size:34px}}
@media(max-width:620px){.tm-header-inner{min-height:122px}.tm-logo{width:42px;height:42px}.tm-brand-name{font-size:22px}.tm-brand-tagline{font-size:11px}.tm-main{width:calc(100% - 28px);padding-top:14px}.tm-feed{grid-template-columns:1fr;gap:12px}.tm-post-card,.tm-feed-featured .tm-post-card:nth-child(2),.tm-feed-featured .tm-post-card:nth-child(3){grid-column:1;height:330px}.tm-feed-featured .tm-post-card-lead{grid-column:1;height:380px}.tm-post-body,.tm-post-card:not(.tm-post-card-lead) .tm-post-body,.tm-post-card:nth-child(n+4) .tm-post-body{padding:22px}.tm-post-title,.tm-post-card:nth-child(n+4) .tm-post-title{font-size:21px}.tm-post-card-lead .tm-post-title{font-size:28px}.tm-article-header h1{font-size:38px}.tm-article-deck{font-size:18px}.tm-article-hero{width:100%;border-radius:0}.tm-article-content{font-size:18px}.tm-article-content h2{font-size:30px}.tm-single-main{padding-top:34px}}


/* === главная: сетка ленты + «Показать ещё» (добавлено 14.11.2026) === */
/* ==========================================================================
   Главная: ритм ленты
   Desktop:  1 полный → (2/3 + 1/3) → (1/3 + 2/3) → 3 → 3 → подгрузка по 3
   Tablet:   1 полный → далее по 2
   Mobile:   11 малых → подгрузка по 3
   Пагинация отключена, вместо неё кнопка «Показать ещё».
   ========================================================================== */

/* --- Desktop: 6 колонок, «кирпичик» = 2 колонки ------------------------- */
@media (min-width: 901px) {
  .tm-feed-featured {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--tm-grid-gap, 18px);   /* = отступ от шапки, уточняется скриптом */
  }

  /* 1. большой на всю ширину */
  .tm-feed-featured > .tm-post-card:nth-child(1) {
    grid-column: span 6;
    height: 468px;
  }
  .tm-feed-featured > .tm-post-card:nth-child(1) .tm-post-title {
    font-size: 40px;
    max-width: 940px;
  }

  /* 2. большой 2/3 + малый 1/3 */
  .tm-feed-featured > .tm-post-card:nth-child(2) {
    grid-column: span 4;
    height: 380px;
  }
  .tm-feed-featured > .tm-post-card:nth-child(3) {
    grid-column: span 2;
    height: 380px;
  }

  /* 3. малый 1/3 + большой 2/3 (змейкой) */
  .tm-feed-featured > .tm-post-card:nth-child(4) {
    grid-column: span 2;
    height: 380px;
  }
  .tm-feed-featured > .tm-post-card:nth-child(5) {
    grid-column: span 4;
    height: 380px;
  }

  /* 4. дальше — по три малых в ряд, включая все подгруженные */
  .tm-feed-featured > .tm-post-card:nth-child(n+6) {
    grid-column: span 2;
    height: 330px;
  }

  /* размеры текста под ширину карточки */
  .tm-feed-featured > .tm-post-card:nth-child(2) .tm-post-title,
  .tm-feed-featured > .tm-post-card:nth-child(5) .tm-post-title {
    font-size: 28px;
    line-height: 1.14;
  }
  .tm-feed-featured > .tm-post-card:nth-child(3) .tm-post-title,
  .tm-feed-featured > .tm-post-card:nth-child(4) .tm-post-title {
    font-size: 21px;
  }
  .tm-feed-featured > .tm-post-card:nth-child(n+6) .tm-post-title {
    font-size: 21px;
  }

  /* отступы внутри узких карточек поменьше, иначе текст не влезает */
  .tm-feed-featured > .tm-post-card:nth-child(3) .tm-post-body,
  .tm-feed-featured > .tm-post-card:nth-child(4) .tm-post-body,
  .tm-feed-featured > .tm-post-card:nth-child(n+6) .tm-post-body {
    padding: 24px 26px;
  }
  .tm-feed-featured > .tm-post-card:nth-child(2) .tm-post-body,
  .tm-feed-featured > .tm-post-card:nth-child(5) .tm-post-body {
    padding: 30px 36px;
  }
}

/* --- Tablet: 1 полный, дальше по два ------------------------------------ */
@media (min-width: 621px) and (max-width: 900px) {
  .tm-feed-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--tm-grid-gap, 18px);
  }
  .tm-feed-featured > .tm-post-card:nth-child(1) {
    grid-column: span 2;
    height: 430px;
  }
  .tm-feed-featured > .tm-post-card:nth-child(1) .tm-post-title {
    font-size: 34px;
  }
  .tm-feed-featured > .tm-post-card:nth-child(n+2) {
    grid-column: span 1;
    height: 330px;
  }
  .tm-feed-featured > .tm-post-card:nth-child(n+2) .tm-post-title {
    font-size: 21px;
  }
  .tm-feed-featured > .tm-post-card:nth-child(n+2) .tm-post-body {
    padding: 22px;
  }
}

/* --- Mobile: 11 одинаковых малых ---------------------------------------- */
@media (max-width: 620px) {
  .tm-feed-featured {
    grid-template-columns: 1fr;
    gap: var(--tm-grid-gap, 18px);
  }
  .tm-feed-featured > .tm-post-card,
  .tm-feed-featured > .tm-post-card:nth-child(1) {
    grid-column: 1 / -1;
    height: 300px;
  }
  .tm-feed-featured > .tm-post-card .tm-post-title,
  .tm-feed-featured > .tm-post-card:nth-child(1) .tm-post-title {
    font-size: 21px;
  }
  .tm-feed-featured > .tm-post-card .tm-post-body,
  .tm-feed-featured > .tm-post-card:nth-child(1) .tm-post-body {
    padding: 22px;
  }
}

/* --- Пагинация отключена, вместо неё кнопка ----------------------------- */
.tm-home-main .tm-pagination {
  display: none !important;
}

.tm-load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 52px 0 0;
}

.tm-load-more {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  padding: 17px 52px;
  border-radius: 8px;
  background: var(--tm-ink);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: opacity .2s ease, transform .2s ease;
}

.tm-load-more:hover {
  opacity: .88;
}

.tm-load-more:active {
  transform: translateY(1px);
}

.tm-load-more[disabled] {
  opacity: .55;
  cursor: progress;
}

/* скелетон для подгружаемых карточек */
.tm-post-card.is-loading .tm-post-media {
  animation: tmPulse 1.2s ease-in-out infinite;
}

@keyframes tmPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: .85; }
}

.tm-feed-end {
  margin: 34px 0 0;
  text-align: center;
  color: var(--tm-muted);
  font-size: 14px;
}

@media (max-width: 620px) {
  .tm-load-more-wrap {
    margin-top: 32px;
  }
  .tm-load-more {
    width: 100%;
    padding: 16px 20px;
  }
}

/* === логотип из фавикона в шапке (14.11.2026) === */
.tm-logo {
  background: none !important;
  border-radius: 22%;
  padding: 0;
  overflow: visible;
}
.tm-logo:after {
  display: none !important;
}
.tm-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 22%;
}

/* === кнопка «вверх»: высота и уровень как у «Показать ещё» (14.11.2026) === */
#newsx-back-to-top {
  width: var(--tm-lm-height, 54px);
  height: var(--tm-lm-height, 54px);
  border-radius: 8px;
  transition: opacity .2s ease, bottom .18s ease, transform .2s ease;
}
#newsx-back-to-top svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 620px) {
  #newsx-back-to-top {
    right: 16px;
  }
}

/* === подзаголовок в шапке: всегда одна строка (14.11.2026) === */
.tm-brand-tagline {
  max-width: none !important;
  white-space: nowrap;
  font-size: 13px;               /* потолок, ниже подстраивает скрипт */
  letter-spacing: -0.005em;
}
.tm-brand {
  max-width: 100%;
}
.tm-header-inner {
  min-width: 0;
}

/* средняя колонка шапки должна сжиматься меньше текста, иначе подгонка не работает */
.tm-header-inner {
  grid-template-columns: 48px minmax(0, 1fr) 48px;
}
@media (max-width: 900px) {
  .tm-header-inner {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }
}
.tm-brand {
  min-width: 0;
  overflow: hidden;
}
.tm-brand-tagline {
  min-width: 0;
}

/* === отступ вокруг «Показать ещё»: одинаковый сверху и снизу, вдвое меньше === */
.tm-load-more-wrap {
  margin: 26px 0;
}
/* нижний отступ главной убираем — он дублировал поле под кнопкой */
.tm-home-main {
  padding-bottom: 0 !important;
}
@media (max-width: 620px) {
  .tm-load-more-wrap {
    margin: 26px 0;
  }
}

/* подпись «Это все новости» — те же 26px до и после */
.tm-feed-end {
  margin: 26px 0;
}

/* === поиск справа и в границах сайта (14.11.2026) === */
/* 1. кнопка лупы — в правую колонку шапки */
.tm-search-open {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.tm-header-balance {
  grid-column: 1;
  grid-row: 1;
}
.tm-brand {
  grid-column: 2;
  grid-row: 1;
}

/* 2. панель поиска в границах контента сайта (точно выравнивает скрипт) */
.tm-search-dialog {
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
}
.tm-search-panel {
  width: min(900px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}
.tm-search-close {
  right: max(18px, calc((100vw - 1160px) / 2));
}

@media (max-width: 900px) {
  .tm-search-dialog {
    padding: 18px 14px;
  }
  .tm-search-close {
    right: 14px;
  }
}


/* === мета карточки: рубрика заглавными, точка между рубрикой и датой (14.11.2026) === */
.tm-post-card .tm-post-meta {
  gap: 0;
  align-items: baseline;
  font-weight: 400;
}
.tm-post-card .tm-post-meta > span,
.tm-post-card .tm-post-meta time {
  font-weight: 400;
}
.tm-post-card .tm-post-meta > span {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tm-post-card .tm-post-meta > span::after {
  content: "\2022";
  display: inline-block;
  margin: 0 9px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1;
  vertical-align: -0.02em;
  letter-spacing: 0;
  opacity: 1;
}

/* === SEO-блоки: крошки, связанные статьи, автор (14.11.2026) === */
.tm-crumbs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 14px;font-size:13px;color:var(--tm-muted)}
.tm-crumbs a{color:var(--tm-muted);text-decoration:none}
.tm-crumbs a:hover{color:var(--tm-ink)}
.tm-crumbs-sep{opacity:.5}
.tm-crumbs [aria-current]{color:var(--tm-ink)}

.tm-related{margin:26px 0 0;padding-top:22px;border-top:1px solid var(--tm-line)}
.tm-related-title{font-size:22px;line-height:1.2;margin:0 0 16px}
.tm-related-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 16px}
.tm-related-item{display:block;text-decoration:none!important;color:inherit!important}
.tm-related-thumb{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:6px;margin-bottom:8px;background:var(--tm-paper)}
.tm-related-name{display:block;font-size:14px;line-height:1.3;font-weight:700}
.tm-related-item:hover .tm-related-name{text-decoration:underline}

.tm-author{display:flex;gap:9px;align-items:center;margin:22px 0 0 auto;padding:9px 13px;border-radius:8px;background:var(--tm-paper);width:max-content;max-width:100%}
.tm-author-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.tm-author-name{font-weight:700;font-size:13px;line-height:1.2;white-space:nowrap}

@media (max-width:900px){.tm-related-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}}
@media (max-width:620px){.tm-related-list{grid-template-columns:1fr;gap:12px}.tm-related{margin-top:22px;padding-top:18px}}
@media (max-width:620px){.tm-author{padding:8px 12px;gap:8px}.tm-author-avatar{width:32px;height:32px}}

/* === все заголовки карточек одного размера — как у малого блока (14.11.2026) === */
.tm-feed-featured > .tm-post-card .tm-post-title,
.tm-feed-featured > .tm-post-card:nth-child(1) .tm-post-title,
.tm-feed-featured > .tm-post-card:nth-child(2) .tm-post-title,
.tm-feed-featured > .tm-post-card:nth-child(5) .tm-post-title,
.tm-feed-featured > .tm-post-card.tm-post-card-lead .tm-post-title {
  font-size: 21px;
  line-height: 1.16;
}

/* === заголовок статьи как на главной, мета под ним (14.11.2026) === */
.tm-article-header h1{font-size:21px;line-height:1.16;margin:0 0 10px;font-weight:700}
.tm-article-meta{margin:0 0 16px;font-size:13px;gap:8px}
.tm-crumbs{margin-bottom:12px}

/* === воздух вокруг статьи как на главной (14.11.2026) === */
.tm-single-main{padding-top:18px;padding-bottom:26px}
@media(max-width:620px){.tm-single-main{padding-top:14px}}
.tm-article{margin-bottom:0}
.tm-article-header{margin-bottom:26px}

/* === «Читайте также»: карточки как на главной — фото фоном, белый текст, затемнение === */
.tm-related-item{position:relative;display:block;height:230px;border-radius:8px;overflow:hidden;background:#202124;text-decoration:none!important;color:#fff!important}
.tm-related-item .tm-related-thumb{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;margin:0;border-radius:0;aspect-ratio:auto;background:#202124;transition:transform .35s ease}
.tm-related-item:after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(to top,rgba(0,0,0,.78) 0%,rgba(0,0,0,.28) 55%,rgba(0,0,0,0) 80%)}
.tm-related-item:hover .tm-related-thumb{transform:scale(1.03)}
.tm-related-item .tm-related-name{position:absolute;z-index:2;left:0;right:0;bottom:0;display:block;padding:20px 22px;color:#fff!important;font-size:18px;line-height:1.22;font-weight:700}
.tm-related-item:hover .tm-related-name{text-decoration:none}

@media (max-width:900px){
  .tm-related-item{height:210px}
  .tm-related-item .tm-related-name{font-size:16px;padding:16px 18px}
}
@media (max-width:620px){
  .tm-related-item{height:190px}
  .tm-related-item .tm-related-name{font-size:16px;padding:14px 16px}
}

/* === подпись автора: слева, без фона, размер как текст статьи (14.11.2026) === */
.tm-author{display:flex;align-items:center;gap:8px;margin:24px 0 0;padding:0;background:none;border-radius:0;width:auto;max-width:100%;font-size:19px;line-height:1.7}
.tm-author-label{color:var(--tm-muted);font-size:19px;line-height:1.7}
.tm-author-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:0 0 auto;margin:0}
.tm-author-name{font-weight:700;color:var(--tm-ink);font-size:19px;line-height:1.4;white-space:normal}

@media (max-width:620px){
  .tm-author{padding:0;gap:7px;margin-top:20px}
  .tm-author,.tm-author-label,.tm-author-name{font-size:17px}
  .tm-author-avatar{width:28px;height:28px}
}

/* === подпись автора: обычный шрифт и цвет как у текста статьи === */
.tm-author-label,
.tm-author-name,
.tm-author{color:#27282a;font-weight:400}
.tm-author-label{color:#27282a}
.tm-author-name{color:#27282a;font-weight:400}

/* === подпись автора на 30% меньше текста статьи (19px → 13.3px) === */
.tm-author,
.tm-author-label,
.tm-author-name{font-size:13.3px;line-height:1.5}
.tm-author{gap:6px;margin-top:20px}
.tm-author-avatar{width:22px;height:22px}

@media (max-width:620px){
  .tm-author,
  .tm-author-label,
  .tm-author-name{font-size:11.9px}
  .tm-author-avatar{width:20px;height:20px}
}

/* === «Материал по теме»: убираем лишний воздух вокруг заголовка === */
.tm-related{margin-top:22px;padding-top:18px}
.tm-article-content .tm-related-title,
.tm-related-title{margin:0 0 16px;font-size:22px;line-height:1.2;font-weight:900}

/* === «Материал по теме»: по две карточки в ряд, на телефоне по одной === */
.tm-related-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
.tm-related-item{height:265px}
.tm-related-item .tm-related-name{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:17px;line-height:1.3}

@media (max-width:900px){
  .tm-related-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
  .tm-related-item{height:240px}
  .tm-related-item .tm-related-name{font-size:16px;padding:16px 18px}
}
@media (max-width:620px){
  .tm-related-list{grid-template-columns:1fr;gap:12px}
  .tm-related-item{height:210px}
  .tm-related-item .tm-related-name{font-size:16px;padding:14px 16px;-webkit-line-clamp:3}
}

/* === обложка статьи по ширине текстовой колонки (14.11.2026) === */
.tm-article-hero{width:min(744px,calc(100% - 40px));margin:0 auto 26px;border-radius:8px;overflow:hidden}
.tm-article-hero img{display:block;width:100%;height:auto}
@media (max-width:620px){
  .tm-article-hero{width:calc(100% - 40px);margin:0 auto 20px;border-radius:6px}
}

/* === «Показать ещё»: на телефоне оставляем место справа под кнопку «вверх» === */
@media (max-width:620px){
  .tm-load-more-wrap{justify-content:flex-start;padding-right:84px}
  .tm-load-more{width:100%;padding:16px 18px}
}

/* === главная без верхнего полноширинного блока: 2/3+1/3, затем 1/3+2/3 (14.11.2026) === */
@media (min-width:901px){
  .tm-feed-featured > .tm-post-card:nth-child(1),
  .tm-feed-featured > .tm-post-card.tm-post-card-lead{grid-column:span 4;height:380px}
  .tm-feed-featured > .tm-post-card:nth-child(2){grid-column:span 2;height:380px}
  .tm-feed-featured > .tm-post-card:nth-child(3){grid-column:span 2;height:380px}
  .tm-feed-featured > .tm-post-card:nth-child(4){grid-column:span 4;height:380px}
  .tm-feed-featured > .tm-post-card:nth-child(n+5){grid-column:span 2;height:330px}
}
@media (min-width:621px) and (max-width:900px){
  .tm-feed-featured > .tm-post-card:nth-child(1),
  .tm-feed-featured > .tm-post-card.tm-post-card-lead{grid-column:span 1;height:330px}
}

/* === видео в статье: обложка с кнопкой, запуск по клику (14.11.2026) === */
.tm-video{position:relative;display:block;width:100%;aspect-ratio:16/9;margin:26px 0;border-radius:8px;overflow:hidden;background:#111214;cursor:pointer;color:transparent;font-size:0;line-height:0}
.tm-video img,.tm-video iframe{position:absolute;inset:0;display:block;width:100%;height:100%;border:0;object-fit:cover}
.tm-video:after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(to top,rgba(0,0,0,.28),rgba(0,0,0,0) 45%)}
.tm-video .tm-video-play{position:absolute;z-index:2;left:50%;top:50%;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;background:rgba(255,255,255,.92);display:grid;place-items:center;transition:transform .2s ease,background .2s ease}
.tm-video .tm-video-play:before{content:'';display:block;width:0;height:0;margin-left:6px;border-style:solid;border-width:12px 0 12px 19px;border-color:transparent transparent transparent #111214}
.tm-video:hover .tm-video-play{transform:scale(1.06);background:#fff}
.tm-video.is-loaded{cursor:default}
.tm-video.is-loaded:after,.tm-video.is-loaded .tm-video-play{display:none}
.tm-video.is-missing{aspect-ratio:auto;height:auto;background:#f4f4f2;padding:14px 16px;border-radius:8px;color:#1769aa;font-size:14px;line-height:1.4}
@media (max-width:620px){.tm-video{margin:20px 0}.tm-video .tm-video-play{width:60px;height:60px;margin:-30px 0 0 -30px}.tm-video .tm-video-play:before{border-width:9px 0 9px 15px;margin-left:5px}}

/* === видео: значок на карточке и окно поверх ленты (14.11.2026) === */
.tm-play-badge{position:absolute;z-index:2;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:rgba(255,255,255,.92);pointer-events:none;opacity:0;transition:opacity .2s ease,transform .2s ease}
.tm-play-badge:before{content:'';position:absolute;left:50%;top:50%;width:0;height:0;margin:-11px 0 0 -7px;border-style:solid;border-width:11px 0 11px 17px;border-color:transparent transparent transparent #111214}
.tm-post-card:hover .tm-play-badge{opacity:1;transform:scale(1.03)}
.tm-post-card[data-tm-video] .tm-post-media:after{content:'';position:absolute;inset:0;background:rgba(0,0,0,.12);pointer-events:none}
.tm-post-card[data-tm-video] .tm-post-media{position:relative}
.tm-post-card[data-tm-video] .tm-play-badge{opacity:1}

body.tm-voverlay-open{overflow:hidden}
.tm-voverlay{position:fixed;inset:0;z-index:9000;display:flex;align-items:center;justify-content:center;padding:24px}
.tm-voverlay[hidden]{display:none!important}
.tm-voverlay-backdrop{position:absolute;inset:0;background:rgba(10,10,11,.86)}
.tm-voverlay-box{position:relative;width:min(1100px,100%);max-height:100%;background:#0b0b0c;border-radius:12px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.55)}
.tm-voverlay-frame{position:relative;width:100%;aspect-ratio:16/9;background:#000}
.tm-voverlay-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.tm-voverlay-title{margin:0;padding:14px 18px;color:#fff;font-size:16px;line-height:1.3;font-weight:700;background:#0b0b0c}
.tm-voverlay-close{position:absolute;z-index:3;right:10px;top:10px;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#111214;font-size:26px;line-height:1;cursor:pointer;display:grid;place-items:center;transition:transform .15s ease}
.tm-voverlay-close:hover{transform:scale(1.06)}
@media (max-width:620px){.tm-voverlay{padding:10px}.tm-voverlay-box{border-radius:10px}.tm-voverlay-title{font-size:14px;padding:10px 12px}.tm-voverlay-close{width:34px;height:34px;font-size:22px;right:6px;top:6px}.tm-play-badge{width:52px;height:52px;margin:-26px 0 0 -26px}}

/* === подвал: вторая строка «О проекте | почта» (14.11.2026) === */
.newsx-copyright-line{line-height:1.5}
.newsx-footer-links{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:10px;font-size:12px;line-height:1.5}
.newsx-footer-links a{color:#9e9e9e;text-decoration:none;border-bottom:0;transition:color .15s ease}
.newsx-footer-links a:hover,.newsx-footer-links a:focus{color:#2196f3!important}
.newsx-footer-links .sep{color:#6f7175}

/* === страницы (например «О проекте»): колонка и типографика как в статьях === */
.newsx-default-page-wrap{padding:34px 0 60px}
.newsx-default-page-wrap .newsx-single-inner{width:min(744px,calc(100% - 40px));margin:0 auto;display:block}
.newsx-default-page-wrap .newsx-page-title{margin:0 0 18px;font-size:28px;line-height:1.15;font-weight:900;color:var(--tm-ink)}
.newsx-default-page-wrap .newsx-post-content{font-size:19px;line-height:1.7;color:#27282a}
.newsx-default-page-wrap .newsx-post-content p{margin:0 0 1.1em}
.newsx-default-page-wrap .newsx-post-content a{color:#1769aa}
.newsx-default-page-wrap .newsx-post-content img{max-width:100%;height:auto;border-radius:8px}
.newsx-default-page-wrap .newsx-post-content h2{font-size:28px;line-height:1.2;margin:1.4em 0 .6em}
.newsx-default-page-wrap .newsx-post-content h3{font-size:22px;line-height:1.25;margin:1.3em 0 .5em}
.newsx-default-page-wrap .primary{width:100%}
@media (max-width:620px){
	.newsx-default-page-wrap{padding:24px 0 44px}
	.newsx-default-page-wrap .newsx-single-inner{width:calc(100% - 28px)}
	.newsx-default-page-wrap .newsx-page-title{font-size:24px}
	.newsx-default-page-wrap .newsx-post-content{font-size:18px}
}

/* === подвал прижат к низу на коротких страницах (14.11.2026) === */
#page.site{display:flex;flex-direction:column;min-height:100vh}
body.admin-bar #page.site{min-height:calc(100vh - var(--wp-admin--admin-bar--height,32px))}
#content.site-content{flex:1 0 auto;width:100%}
#site-footer{flex:0 0 auto}

/* === убираем белую полоску под подвалом: canvas красим в цвет подвала (14.11.2026) === */
body{background:#111214}
#page.site{background:#fff}

/* === кнопка «вверх» в цвет ссылок сайта (14.11.2026) === */
#newsx-back-to-top{background-color:#1769aa!important;color:#fff!important}
#newsx-back-to-top:hover{background-color:#135a92!important}
#newsx-back-to-top svg,#newsx-back-to-top svg *{fill:#fff!important;stroke:none}

/* === кнопка «вверх»: одинаковый отступ от низа экрана на всех страницах (14.11.2026) === */
#newsx-back-to-top{bottom:114px!important;width:57px;height:57px}
@media (max-width:620px){#newsx-back-to-top{width:55px;height:55px}}

/* === поиск строкой в шапке (14.11.2026) === */
.tm-search{grid-column:3;justify-self:end;position:relative;display:flex;align-items:center;height:44px}
.tm-search-inline{position:absolute;right:0;top:50%;transform:translateY(-50%);display:flex;align-items:center;height:44px;width:0;opacity:0;pointer-events:none;overflow:hidden;background:#fff;border:1px solid transparent;border-radius:10px;transition:width .22s ease,opacity .16s ease,border-color .16s ease,box-shadow .2s ease}
.tm-search.is-open .tm-search-inline{width:min(360px,calc(100vw - 48px));opacity:1;pointer-events:auto;border-color:var(--tm-line);box-shadow:0 10px 26px rgba(17,18,20,.08)}
.tm-search.is-open .tm-search-open{opacity:0;pointer-events:none}
.tm-search-inline input{flex:1;min-width:0;height:100%;border:0;outline:none;background:transparent;padding:0 4px 0 16px;font-size:15px;color:var(--tm-ink);box-shadow:none}
.tm-search-inline input::placeholder{color:#9aa0a6}
.tm-search-inline input::-webkit-search-cancel-button,.tm-search-inline input::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
.tm-search-dismiss{flex:0 0 auto;display:grid;place-items:center;width:32px;height:32px;margin-right:6px;padding:0;border:0;background:transparent;color:#8b9095;line-height:0;cursor:pointer;border-radius:50%;-webkit-appearance:none;appearance:none}.tm-search-dismiss svg{display:block;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tm-search-dismiss:hover{background:var(--tm-paper);color:var(--tm-ink)}
@media (max-width:620px){.tm-search.is-open .tm-search-inline{width:calc(100vw - 36px)}}
@media (max-width:620px){
	.tm-header.tm-searching .tm-brand{opacity:0;visibility:hidden;transition:opacity .15s ease}
	.tm-header.tm-searching .tm-header-inner{position:relative}
}
