/*
Theme Name: Patisson
Theme URI: https://mtv36.info/
Author: MTV36
Description: Легкая кастомная новостная тема для MTV36.info.
Version: 1.8.30
Text Domain: patisson
Requires at least: 6.6
Requires PHP: 8.1
*/
:root {
  --bg: #fff;
  --surface: #f5f6f7;
  --surface2: #eceff2;
  --text: #141619;
  --muted: #6b7179;
  --border: #e2e5e9;
  --accent: #d51c27;
  --max: 1240px;
  --reading: 760px;
  --radius: 16px;
  --gap: clamp(16px,2vw,28px);
  --shadow: 0 12px 38px rgba(18,22,27,.07);
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
input {
  font: inherit;
}
figure {
  margin: 0;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.p-shell {
  width: min(calc(100% - 32px),var(--max));
  margin-inline: auto;
}
.p-topline {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .82rem;
}
.p-topline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.p-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.admin-bar .p-site-header {
  top: 32px;
}
.p-header-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.p-brand {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  letter-spacing: -.035em;
}
.p-brand .custom-logo-link {
  display: inline-flex;
}
.p-brand .custom-logo-picture {
  display: inline-flex;
  line-height: 0;
}
.p-brand img {
  display: block;
  width: auto;
  max-height: 42px;
}
.p-brand-text {
  font-size: 1.55rem;
}
.p-nav {
  margin-left: auto;
  min-width: 0;
}
.p-nav ul,
.p-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.p-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(12px,1.4vw,21px);
}
.p-nav a {
  font-size: .91rem;
  font-weight: 700;
  white-space: nowrap;
}
.p-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-icon-button,
.p-menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 11px;
  cursor: pointer;
}
.p-icon-button svg,
.p-menu-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.p-menu-toggle {
  display: none;
}
.p-search-box {
  position: relative;
}
.p-search-box summary {
  list-style: none;
}
.p-search-box summary::-webkit-details-marker {
  display: none;
}
.p-search-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(440px,calc(100vw - 32px));
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.p-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.p-search-form input {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
}
.p-search-form button {
  border: 0;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  padding: 0 16px;
  font-weight: 750;
}
.p-breaking {
  border-bottom: 1px solid var(--border);
}
.p-breaking-row {
  display: flex;
}
.p-breaking-label {
  flex: 0 0 auto;
}
.p-main {
  padding-block: 26px 64px;
}
.p-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.p-section-title {
  margin: 0;
  font-size: clamp(1.45rem,2.6vw,2.15rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.p-section-link {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}
.p-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.p-meta {
  margin-top: 9px;
  color: var(--muted);
  font-size: .82rem;
}
.p-hero {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(340px,.85fr);
  gap: var(--gap);
}
.p-hero-main {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: end;
  overflow: clip;
  border-radius: var(--radius);
  background: var(--surface2);
  isolation: isolate;
}
.p-hero-main img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-hero-main:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,rgba(0,0,0,.78),rgba(0,0,0,.18) 68%,rgba(0,0,0,.05));
}
.p-hero-copy {
  color: #fff;
  padding: clamp(22px,4vw,42px);
}
.p-hero-copy .p-kicker {
  color: #fff;
  opacity: .88;
}
.p-hero-title {
  margin: 0;
  text-wrap: balance;
}
.p-hero-main .p-meta {
  color: rgba(255,255,255,.78);
}
.p-hero-side {
  display: grid;
  align-content: stretch;
}
.p-side-story {
  display: grid;
  grid-template-columns: 124px minmax(0,1fr);
  gap: 14px;
  padding: 14px 0;
}
.p-side-story img {
  width: 124px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
}
.p-side-story h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.22;
  letter-spacing: -.015em;
}
.p-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.p-card-media img {
  width: 100%;
  height: 100%;
  transition: transform .22s ease;
}
.p-card:hover .p-card-media img {
  transform: scale(1.02);
}
.p-editorial {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr);
  gap: var(--gap);
  padding-top: 22px;
  border-top: 3px solid var(--text);
}
.p-editorial-main {
  display: grid;
  grid-template-columns: minmax(260px,.92fr) minmax(0,1.08fr);
  gap: 22px;
  align-items: start;
}
.p-editorial-main img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
.p-editorial-main h3 {
  margin: 0;
  font-size: clamp(1.45rem,2.7vw,2.35rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.p-editorial-main p {
  margin: 12px 0 0;
  color: var(--muted);
}
.p-editorial-list {
  display: grid;
}
.p-editorial-list article {
  padding: 14px 0;
}
.p-editorial-list h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.22;
}
.p-duo {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(30px,5vw,64px);
}
.p-duo-block {
  padding-top: 20px;
  border-top: 3px solid var(--text);
}
.p-duo-feature {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  gap: 18px;
}
.p-duo-feature img {
  width: 190px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
}
.p-duo-feature h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.p-headline-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.p-headline-list li {
  padding: 12px 0;
  font-weight: 650;
  line-height: 1.28;
}
.p-stream-list {
  display: grid;
}
.p-stream-item {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.p-stream-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.p-stream-item img {
  width: 220px;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 12px;
}
.p-stream-item h2 {
  margin: 0;
  font-size: clamp(1.2rem,2vw,1.65rem);
  line-height: 1.14;
  letter-spacing: -.025em;
}
.p-stream-item p {
  margin: 9px 0 0;
  color: var(--muted);
}
.p-widget {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.p-widget+.p-widget {
  margin-top: 18px;
}
.p-article {
  margin-inline: auto;
}
.p-article-title {
  margin: 0;
  text-wrap: balance;
}
.p-article-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: #464c53;
  font-size: clamp(1.1rem,2vw,1.35rem);
}
.p-article-media {
  margin: 28px 0;
  overflow: clip;
  border-radius: var(--radius);
}
.p-article-content {
  font-size: 1.08rem;
}
.p-article-content>* {
  max-width: var(--reading);
  margin-left: auto;
  margin-right: auto;
}
.p-article-content figure,
.p-article-content .wp-block-image,
.p-article-content .wp-block-gallery,
.p-article-content .alignwide {
  max-width: 100%;
}
.p-article-content h2,
.p-article-content h3 {
  margin-top: 1.7em;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.p-article-content p {
  margin-top: 0;
  margin-bottom: 1.1em;
}
.p-pagination {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.p-pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.p-pagination .current {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.p-footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  font-size: .92rem;
  font-weight: 700;
}
@media (max-width:1080px) {
  .p-nav {
    display: none;
  }
  .p-menu-toggle {
    display: inline-grid;
  }
  .p-header-tools {
    margin-left: auto;
  }
  .p-nav.is-open {
    display: block;
    left: 16px;
    right: 16px;
    top: 74px;
    background: #fff;
  }
  .p-nav.is-open ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }
  .p-nav.is-open a {
    display: block;
  }
  .p-hero {
    grid-template-columns: 1fr;
  }
  .p-hero-main {
    min-height: 470px;
  }
  .p-hero-side {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0 22px;
  }
  .p-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:700px) {
  .p-shell {
    width: min(calc(100% - 24px),var(--max));
  }
  .p-topline {
    display: none;
  }
  .p-header-row {
    min-height: 62px;
    gap: 10px;
  }
  .p-brand img {
    max-height: 36px;
  }
  .p-nav.is-open {
    top: 62px;
    left: 12px;
    right: 12px;
  }
  .p-hero-main {
    min-height: 390px;
  }
  .p-hero-copy {
    padding: 20px;
  }
  .p-hero-side {
    grid-template-columns: 1fr;
  }
  .p-side-story {
    grid-template-columns: 104px minmax(0,1fr);
  }
  .p-side-story img {
    width: 104px;
  }
  .p-grid {
    grid-template-columns: 1fr;
  }
  .p-editorial {
    grid-template-columns: 1fr;
  }
  .p-editorial-main {
    grid-template-columns: 1fr;
  }
  .p-editorial-main img {
    aspect-ratio: 16/10;
  }
  .p-duo {
    grid-template-columns: 1fr;
  }
  .p-duo-feature {
    grid-template-columns: 124px minmax(0,1fr);
    gap: 14px;
  }
  .p-duo-feature img {
    width: 124px;
  }
  .p-duo-feature h3 {
    font-size: 1.12rem;
  }
  .p-stream-item {
    grid-template-columns: 112px minmax(0,1fr);
    gap: 14px;
  }
  .p-stream-item img {
    width: 112px;
  }
  .p-stream-item p {
    display: none;
  }
  .p-stream-item h2 {
    font-size: 1.05rem;
  }
  .p-footer-menu {
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,
*:before,
*:after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
/* ===== Patisson 0.3: article experience ===== */
.p-article {
  max-width: 1040px;
}
.p-article-header {
  max-width: 900px;
  margin: 0 auto 30px;
}
.p-article-meta {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--p-muted);
  font-size: .78rem;
  text-align: right;
}
.p-article-media {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.p-article-media img {
  width: 100%;
}
.p-figure-caption {
  padding: 8px 2px 0;
  color: var(--p-muted);
  font-size: .76rem;
  line-height: 1.4;
}
.p-article-content {
  min-width: 0;
}
.p-article-content > * {
  max-width: 100%;
}
.p-article-content p,
.p-article-content li {
  font-size: clamp(1.04rem, 1.35vw, 1.12rem);
}
.p-article-content blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--p-accent);
  color: #363b41;
  font-size: 1.13em;
}
.p-article-content blockquote p:last-child {
  margin-bottom: 0;
}
.p-article-content a {
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}
.p-article-content ul,
.p-article-content ol {
  padding-left: 1.35em;
}
.p-article-content iframe {
  max-width: 100%;
}
.p-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p-article-tags a {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--p-surface);
  color: #4e555d;
  font-size: .78rem;
  font-weight: 700;
}
.p-article-slot {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.p-page {
  max-width: 960px;
  margin-inline: auto;
}
.p-page-header {
  max-width: var(--p-reading);
  margin: 0 auto 28px;
}
.p-page-title {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.05em;
}
.p-page-media {
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: var(--p-radius);
}
.p-page-content {
  max-width: var(--p-reading);
  margin-inline: auto;
}
@media (max-width: 800px) {
  .p-article-meta {
    justify-content: flex-start;
    text-align: left;
  }
}
@media (max-width: 560px) {
  .p-article-lead {
    margin-top: 14px;
  }
  .p-article-media {
    border-radius: 12px;
  }
}
/* ===== Patisson 0.4 ===== */
/* Mobile navigation */
.p-nav-mobile-head {
  display: none;
}
.p-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(3px);
}
body.p-nav-open {
  overflow: hidden;
}
/* Placeholder images */
.p-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(213,28,39,.10), rgba(20,22,25,.035)),
    var(--p-surface-2);
  color: rgba(20,22,25,.38);
}
.p-placeholder-mark {
  font-size: clamp(.72rem, 1.8vw, 1rem);
  font-weight: 950;
  letter-spacing: .18em;
}
.p-placeholder-thumb {
  aspect-ratio: 16/10;
  border-radius: 12px;
}
.p-placeholder-card {
  aspect-ratio: 16/10;
}
/* Author page */
/* Widget slots */
.p-widget ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.p-widget li + li {
  border-top: 1px solid var(--p-border);
}
.p-widget li a {
  display: block;
  padding: 10px 0;
  font-weight: 700;
  line-height: 1.25;
}
.p-widget img {
  border-radius: 10px;
}
/* Infinite-scroll contract */
.p-infinite-article {
  position: relative;
}
.p-infinite-anchor {
  width: 100%;
  height: 1px;
  margin-top: 1px;
}
/* Improved focus */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(213,28,39,.22);
  outline-offset: 3px;
}
@media (max-width: 1080px) {
  .p-nav.is-open {
    position: fixed;
    z-index: 60;
    inset: 0 0 0 auto;
    width: min(420px, 92vw);
    height: 100dvh;
    padding: 18px 22px 28px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    box-shadow: -14px 0 44px rgba(0,0,0,.18);
  }
  .p-nav-mobile-head {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--p-border);
  }
  .p-nav-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--p-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
  }
  .p-nav.is-open ul {
    display: block;
  }
  .p-nav.is-open li {
    border-bottom: 1px solid var(--p-border);
  }
  .p-nav.is-open a {
    padding: 13px 0;
    font-size: 1rem;
  }
}
/* ===== Patisson 0.5: Infinite Scroll + manual featured integration ===== */
.p-hero-stage {
  position: relative;
  min-width: 0;
}
.p-hero-stage .p-hero-main {
  display: none;
}
.p-hero-stage .p-hero-main.is-active {
  display: flex;
}
.p-hero-switcher {
  position: absolute;
  z-index: 5;
  display: flex;
}
.p-hero-dot {
  padding: 0;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  cursor: pointer;
}
.mtv36-infinite-root.mtv36-infinite-patisson {
  font-family: inherit;
}
.mtv36-infinite-patisson.mtv36-infinite-single .mtv36-infinite-items {
  max-width: 900px;
  margin-inline: auto;
}
.mtv36-infinite-patisson .mtv36-infinite-teaser-title {
  font-family: inherit;
  font-weight: 800 !important;
  letter-spacing: -.025em;
}
/* ===== Patisson 0.6: editorial polish ===== */
.p-hero-title {
  max-width: 820px;
}
/* Срочные новости — непрерывная бегущая строка. */
.p-breaking {
  overflow: hidden;
}
.p-breaking-row {
  overflow: hidden;
}
.p-breaking-viewport {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}
.p-breaking-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: patisson-breaking-ticker 46s linear infinite;
}
.p-breaking-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  white-space: nowrap;
}
.p-breaking-separator {
  color: var(--p-accent);
  opacity: .7;
}
.p-breaking:hover .p-breaking-track,
.p-breaking:focus-within .p-breaking-track {
  animation-play-state: paused;
}
@keyframes patisson-breaking-ticker {
  from {
    transform: translate3d(0,0,0);
  }
  to {
    transform: translate3d(-50%,0,0);
  }
}
/* Первая и все AJAX-порции имеют одну карточную сетку. */
.p-archive-grid,
.p-home-latest-grid {
  align-items: stretch;
}
.p-archive-grid .p-card,
.p-home-latest-grid .p-card {
  height: 100%;
}
.p-archive-grid .p-card > a,
.p-home-latest-grid .p-card > a {
  display: flex;
  height: 100%;
  flex-direction: column;
}
.p-archive-grid .p-card-body,
.p-home-latest-grid .p-card-body {
  flex: 1 1 auto;
}
/* Соцсети сразу под главным фото. */
.p-share-under-media {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-share-label {
  margin-right: 4px;
  color: var(--p-muted);
  font-size: .76rem;
  font-weight: 760;
}
.p-share-under-media a {
  display: inline-flex;
  min-width: 48px;
  height: 34px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--p-border);
  border-radius: 999px;
  background: #fff;
  font-size: .76rem;
  font-weight: 900;
}
.p-share-under-media a:hover {
  border-color: var(--p-text);
  background: var(--p-text);
  color: #fff;
}
/* Нижняя карточка автора принадлежит Patisson и выводится из single.php. */
/* Infinite на странице новости — те же карточки Patisson. */
.mtv36-infinite-patisson.mtv36-infinite-single {
  width: min(100%, 1040px);
  margin: 50px auto 0;
  padding-top: 28px;
  border-top: 3px solid var(--p-text);
}
.mtv36-infinite-patisson.mtv36-infinite-single::before {
  content: "Дальше";
  display: block;
  margin: 0 0 20px;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.mtv36-infinite-patisson.mtv36-infinite-single .mtv36-infinite-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--p-gap);
}
/* Loader сам не должен выглядеть как отдельный чужой блок. */
.mtv36-infinite-patisson {
  margin-top: 0;
  padding-top: 0;
}
.mtv36-infinite-patisson .mtv36-infinite-status {
  min-height: 52px;
  padding: 14px 0;
  color: var(--p-muted);
  font-size: .82rem;
}
.mtv36-infinite-patisson .mtv36-infinite-spinner {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  border-width: 2px;
  border-color: rgba(20,22,25,.12);
  border-top-color: var(--p-accent);
}
@media (max-width: 1080px) {
  .mtv36-infinite-patisson.mtv36-infinite-single .mtv36-infinite-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .p-share-under-media {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .p-share-under-media::-webkit-scrollbar {
    display: none;
  }
  .mtv36-infinite-patisson.mtv36-infinite-single .mtv36-infinite-items {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-breaking-track {
    animation: none;
  }
}
/* ===== Patisson 0.7: one card system, spacing audit, most-read ===== */
:root {
  --p-card-gap: clamp(18px, 2vw, 28px);
  --p-card-radius: 16px;
}
/* One consistent vertical rhythm. */
.p-main {
  padding-top: clamp(18px, 2.4vw, 30px);
  padding-bottom: clamp(54px, 7vw, 82px);
}
.p-section {
  margin-top: var(--p-section-space);
}
.p-section:first-child {
  margin-top: 0;
}
.p-section-head {
  margin-bottom: clamp(18px, 2vw, 24px);
}
.p-grid {
  gap: var(--p-card-gap);
  align-items: stretch;
}
/* Canonical card. This is now the only card style used by Infinite Scroll. */
.p-card {
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.p-card:hover {
  transform: translateY(-2px);
  border-color: #d6d9de;
  box-shadow: 0 12px 30px rgba(18, 22, 27, .07);
}
.p-card-link {
  display: flex;
  height: 100%;
  min-height: 100%;
  flex-direction: column;
}
.p-card-media {
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--p-surface-2);
}
.p-card-media img,
.p-card-media .p-placeholder {
  width: 100%;
  height: 100%;
}
.p-card-media img {
  object-fit: cover;
}
.p-card-body {
  display: flex;
  min-height: 154px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px;
}
.p-card-body .p-kicker {
  margin-bottom: 8px;
}
.p-card-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.22;
  letter-spacing: -.018em;
}
.p-card-footer {
  margin-top: auto;
  padding-top: 14px;
}
.p-card-footer .p-meta {
  margin-top: 0;
}
/* Main page sections now share one width and one grid. */
.p-latest-section {
  width: 100%;
}
.p-home-latest-grid,
.p-archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* Infinite Scroll output: no second visual system, no extra margins. */
#mtv36-infinite-root.mtv36-infinite-patisson {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
#mtv36-infinite-root.mtv36-infinite-patisson > .mtv36-infinite-items {
  width: 100%;
}
#mtv36-infinite-root.mtv36-infinite-patisson .mtv36-infinite-status {
  width: 100%;
  min-height: 58px;
  margin: 14px 0 0;
  padding: 18px 0 6px;
  justify-content: center;
}
/* On a single post the Infinite container becomes the same 3-col p-grid. */
#mtv36-infinite-root.mtv36-infinite-patisson.mtv36-infinite-single {
  max-width: 1040px;
  margin: var(--p-section-space) auto 0;
  padding-top: 24px;
  border-top: 3px solid var(--p-text);
}
#mtv36-infinite-root.mtv36-infinite-patisson.mtv36-infinite-single::before {
  content: "Дальше";
  display: block;
  margin-bottom: 22px;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.035em;
}
#mtv36-infinite-root.mtv36-infinite-patisson.mtv36-infinite-single .mtv36-infinite-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--p-card-gap);
  align-items: stretch;
}
/* Smaller breaking-news ticker. */
.p-breaking-group a {
  padding-inline: 10px;
}
/* Archive / tag / author breathing room. */
.p-archive-head {
  margin-bottom: 28px;
  padding-bottom: 20px;
}
.p-slot {
  margin-top: 28px;
  margin-bottom: 28px;
}
/* Avoid collisions around single article elements. */
.p-article-header {
  margin-bottom: 30px;
}
.p-article-media {
  margin-top: 28px;
  margin-bottom: 0;
}
.p-share-under-media {
  margin-top: 14px;
  margin-bottom: 32px;
  padding-top: 0;
  border-top: 0;
}
.p-article-content {
  margin-top: 0;
}
.p-article-tags {
  margin-top: 36px;
}
@media (max-width: 1080px) {
  .p-home-latest-grid,
.p-archive-grid,
#mtv36-infinite-root.mtv36-infinite-patisson.mtv36-infinite-single .mtv36-infinite-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p-card-body {
    min-height: 142px;
  }
}
@media (max-width: 700px) {
  :root {
    --p-card-gap: 16px;
  }
  .p-home-latest-grid,
.p-archive-grid,
#mtv36-infinite-root.mtv36-infinite-patisson.mtv36-infinite-single .mtv36-infinite-items {
    grid-template-columns: 1fr;
  }
  .p-card-body {
    min-height: 0;
    padding: 16px;
  }
  .p-card-title {
    font-size: 1.06rem;
  }
  .p-breaking-group a {
    padding-inline: 9px;
  }
  .p-archive-head {
    margin-bottom: 22px;
    padding-bottom: 16px;
  }
}
/* ===== Patisson 0.8: hard unification of Infinite Scroll ===== */
/*
 * Cards no longer rely on a particular parent. Whether they are initial PHP
 * output or appended by AJAX, the same .p-card markup receives the same rules.
 */
.p-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--p-border);
  border-radius: var(--p-card-radius, 16px);
  background: #fff;
}
.p-card > .p-card-link,
.p-card .p-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
}
.p-card .p-card-media {
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
}
.p-card .p-card-body {
  display: flex;
  min-height: 154px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px;
}
.p-card .p-card-footer {
  margin-top: auto;
  padding-top: 14px;
}
[data-patisson-feed] {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--p-card-gap, 24px) !important;
  align-items: stretch !important;
}
/* Loader root never becomes a second visual feed on archive/home/author. */
body:not(.single-post) #mtv36-infinite-root.mtv36-infinite-patisson .mtv36-infinite-items {
  display: none !important;
}
/* Single-post Infinite gets exactly the same grid/card styling. */
.single-post #mtv36-infinite-root.mtv36-infinite-patisson .mtv36-infinite-items {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--p-card-gap, 24px) !important;
  align-items: stretch !important;
}
/* Author plugin must not leave a second legacy pagination/navigation surface. */
.author .navigation.pagination,
.author nav.pagination,
.author .pagination,
.author .page-numbers:not(.p-card *) {
  display: none !important;
}
/* ===== Native popular tabs + compact Patisson cards ===== */
/* Day / Week / Month switcher. */
/* JS marks actual ranking lists; exactly five cards remain in a horizontal strip. */
/* Smaller urgent-news typography retained. */
/* Global spacing audit after dynamic blocks. */
.p-most-read-section + .p-latest-section,
.p-slot + .p-section,
.p-section + .p-slot {
  margin-top: var(--p-section-space, 48px);
}
#mtv36-infinite-root.mtv36-infinite-patisson {
  clear: both;
}
#mtv36-infinite-root.mtv36-infinite-patisson .mtv36-infinite-status {
  margin-top: 18px;
  margin-bottom: 6px;
}
@media (max-width: 1080px) {
  [data-patisson-feed],
.single-post #mtv36-infinite-root.mtv36-infinite-patisson .mtv36-infinite-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 700px) {
  [data-patisson-feed],
.single-post #mtv36-infinite-root.mtv36-infinite-patisson .mtv36-infinite-items {
    grid-template-columns: 1fr !important;
  }
  .p-card .p-card-body {
    min-height: 0;
    padding: 16px;
  }
}
/* ===== Patisson 0.9: Most Read carousel ===== */
.p-most-read-section {
  overflow: hidden;
}
.p-most-read-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.p-most-read-top .p-section-title {
  margin: 0;
}
.p-popular-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.p-popular-tabs::-webkit-scrollbar {
  display: none;
}
.p-popular-tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid var(--p-border);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.p-popular-arrows {
  display: flex;
  gap: 7px;
}
.p-popular-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--p-border);
  border-radius: 50%;
  background: #fff;
  color: var(--p-text);
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.p-popular-arrow:hover,
.p-popular-arrow:focus-visible {
  border-color: var(--p-text);
  background: var(--p-text);
  color: #fff;
}
.p-popular-panel[hidden] {
  display: none !important;
}
.p-popular-track {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 1px 1px 13px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1px;
  scrollbar-width: none;
}
.p-popular-track::-webkit-scrollbar {
  display: none;
}
.p-popular-card {
  flex: 0 0 min(218px, 22vw);
  min-width: 190px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  background: #fff;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.p-popular-card:hover {
  transform: translateY(-2px);
  border-color: #d2d6db;
  box-shadow: 0 9px 24px rgba(18, 22, 27, .06);
}
.p-popular-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
}
.p-popular-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--p-surface-2);
}
.p-popular-card-media img,
.p-popular-card-media .p-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-popular-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.p-popular-card h3 {
  margin: 0;
  font-size: .91rem;
  font-weight: 790;
  line-height: 1.22;
  letter-spacing: -.012em;
}
.p-popular-card-views {
  margin-top: auto;
  padding-top: 11px;
}
@media (min-width: 1120px) {
  .p-popular-card {
    flex-basis: calc((100% - 48px) / 5);
    min-width: 0;
  }
}
@media (max-width: 700px) {
  .p-popular-arrow {
    width: 34px;
    height: 34px;
  }
  .p-popular-card {
    flex-basis: 72vw;
    min-width: 210px;
    max-width: 250px;
  }
}
/* ===== Patisson 1.0: homepage desktop polish ===== */
/* Compatibility aliases: the later editorial rules use the --p-* namespace. */
:root {
  --p-bg: var(--bg);
  --p-surface: var(--surface);
  --p-surface-2: var(--surface2);
  --p-text: var(--text);
  --p-muted: var(--muted);
  --p-border: var(--border);
  --p-accent: var(--accent);
  --p-gap: var(--gap);
  --p-reading: var(--reading);
  --p-radius: var(--radius);
  --p-max: var(--max);
  --p-section-space: clamp(34px, 3.4vw, 48px);
}
/* Desktop utility strip: no date, compact contact actions in one visual system. */
.p-topline-row {
  min-height: 40px;
}
.p-topline-description {
  color: var(--p-muted);
  font-size: .76rem;
  font-weight: 650;
}
.p-topline-actions,
.p-social-links {
  display: flex;
  align-items: center;
}
.p-topline-actions {
  margin-left: auto;
  gap: 11px;
}
.p-social-links {
  gap: 5px;
}
.p-social-link {
  width: 29px;
  height: 29px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--p-border);
  border-radius: 9px;
  background: #fff;
  color: var(--p-text);
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: -.02em;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.p-social-link svg {
  width: 15px;
  height: 15px;
}
.p-social-link:hover,
.p-social-link:focus-visible {
  border-color: var(--p-text);
  background: var(--p-text);
  color: #fff;
}
/* Breaking line: label + ticker read as one centered composition on desktop. */
/* Hero: the right rail is locked to the slider height and uses internal dividers only. */
.p-hero-side {
  border-top: 0;
}
.p-side-story {
  border-bottom: 0;
}
.p-hero-switcher {
  right: 22px;
  bottom: 20px;
  gap: 0;
}
.p-hero-dot {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.p-hero-dot::before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  margin: auto;
  border: 1.5px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  box-shadow: 0 1px 5px rgba(0,0,0,.2);
  transition: transform .15s ease, background .15s ease;
}
.p-hero-dot.is-active::before {
  background: #fff;
  transform: scale(1.08);
}
@media (min-width: 1081px) {
  .p-hero,
.p-hero-stage,
.p-hero-main,
.p-hero-side {
    min-height: 540px;
    height: 540px;
  }
  .p-hero-side {
    grid-template-rows: repeat(4, minmax(0, 1fr));
    align-content: stretch;
  }
  .p-side-story {
    min-height: 0;
  }
  .p-side-story > a {
    align-self: start;
  }
  .p-side-story img,
.p-side-story .p-placeholder-thumb {
    width: 112px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
  }
  .p-side-story-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .p-side-story .p-kicker {
    font-size: .68rem;
  }
  .p-side-story h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: .96rem;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
  .p-side-story .p-meta {
    font-size: .76rem;
  }
}
/* Internal list separators only: no line before first item or after last. */
.p-editorial-list {
  border-top: 0;
}
.p-editorial-list article {
  border-bottom: 0;
}
.p-editorial-list article + article {
  border-top: 1px solid var(--p-border);
}
.p-headline-list {
  border-top: 0;
}
.p-headline-list li {
  border-bottom: 0;
}
.p-headline-list li + li {
  border-top: 1px solid var(--p-border);
}
/* Homepage vertical rhythm: less empty space, still clearly separated. */
body.home .p-main {
  padding-top: clamp(18px, 2vw, 26px);
}
body.home .p-section {
  margin-top: var(--p-section-space);
}
body.home .p-section:first-child {
  margin-top: 0;
}
body.home .p-section-head {
  margin-bottom: clamp(16px, 1.7vw, 21px);
}
body.home .p-editorial {
  padding-top: 18px;
}
body.home .p-duo-block {
  padding-top: 18px;
}
/* Most read now follows Exclusive and does not need a second eyebrow or top rule. */
.p-most-read-section {
  padding-top: 0;
  border-top: 0;
}
.p-most-read-top {
  align-items: center;
}
.p-popular-tabs {
  margin-top: 14px;
  margin-bottom: 17px;
}
.p-popular-tab {
  color: var(--p-muted);
  border-color: var(--p-border);
  background: #fff;
}
.p-popular-tab:hover,
.p-popular-tab:focus-visible {
  border-color: color-mix(in srgb, var(--p-accent) 42%, var(--p-border));
  color: var(--p-accent);
}
.p-popular-tab.is-active {
  border-color: var(--p-accent);
  background: var(--p-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(213, 28, 39, .13);
}
.p-popular-card-media {
  position: relative;
}
.p-popular-card-views {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(15, 17, 20, .72);
  color: #fff;
  font-size: .69rem;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(6px);
}
.p-popular-card-views svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.p-popular-card-body {
  min-height: 84px;
  padding: 12px 13px 13px;
}
/* Tablet: two-column hero rail should still avoid outer rules. */
@media (max-width: 1080px) and (min-width: 701px) {
  .p-side-story {
    border: 0;
  }
  .p-side-story:nth-child(n + 3) {
    border-top: 1px solid var(--p-border);
  }
}
/* Mobile already works well; only normalize the rhythm and internal dividers. */
@media (max-width: 700px) {
  :root {
    --p-section-space: 36px;
  }
  body.home .p-main {
    padding-top: 16px;
  }
  body.home .p-section {
    margin-top: var(--p-section-space);
  }
  body.home .p-section-head {
    margin-bottom: 16px;
  }
  .p-side-story {
    border: 0;
  }
  .p-side-story + .p-side-story {
    border-top: 1px solid var(--p-border);
  }
  .p-popular-tabs {
    margin-top: 12px;
    margin-bottom: 14px;
  }
  .p-popular-card-body {
    min-height: 0;
  }
}
/* ===== Patisson 1.1: header, hero rail, spacing and footer refinement ===== */
/* Desktop top strip: plain prompt + icon buttons. */
.p-submit-news-label {
  color: var(--p-text);
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}
.p-social-link img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
}
/* The ticker stays full-width and left-aligned; label and running text share one horizontal center line. */
.p-breaking-label {
  display: inline-flex;
  align-items: center;
}
.p-breaking-viewport {
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: 1 1 auto;
  max-width: none;
}
.p-breaking-track,
.p-breaking-group {
  align-items: center;
}
@media (min-width: 1081px) {
  .p-breaking-viewport {
    flex: 1 1 auto;
    max-width: none;
  }
}
/* Desktop hero rail: first image starts exactly at slider top, last story finishes at slider bottom. */
@media (min-width: 1081px) {
  .p-hero-side {
    display: flex;
    flex-direction: column;
    min-height: 540px;
    height: 540px;
  }
  .p-side-story {
    flex: 0 0 auto;
    width: 100%;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 13px;
  }
  .p-side-story + .p-side-story {
    border-top: 1px solid var(--p-border);
  }
  .p-side-story-body {
    height: auto;
    display: block;
  }
  .p-side-story .p-kicker {
    margin: 0 0 5px;
  }
  .p-side-story h2 {
    min-height: 0;
  }
}
/* Slightly tighter rhythm around Most Read and the section that follows it. */
.p-most-read-section .p-popular-track {
  padding-bottom: 5px;
}
/* Mobile hero rail: thumbnail top aligns with the category label, not the middle of the text block. */
@media (max-width: 700px) {
  .p-side-story > a {
    align-self: start;
  }
}
/* Mobile submit-news chooser lives inside the menu to keep the compact header uncluttered. */
/* Footer rebuilt as a clear editorial information stack. */
.p-site-footer {
  margin-top: 56px;
  padding: 38px 0 30px;
  background: #090a0b;
  color: #fff;
}
.p-footer-stack {
  display: grid;
}
.p-footer-primary ul,
.p-footer-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
}
.p-footer-primary a {
  color: #fff;
  font-size: .9rem;
  font-weight: 780;
}
.p-footer-privacy {
  padding-top: 4px;
}
.p-footer-privacy a,
.p-footer-legal a,
.p-footer-secondary a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.p-footer-brand-row {
  display: flex;
  gap: 18px;
}
.p-footer-logo .custom-logo-link {
  display: inline-flex;
}
.p-footer-logo .custom-logo-picture {
  display: inline-flex;
  line-height: 0;
}
.p-footer-logo img {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 58px;
}
.p-footer-brand-text {
  font-size: 1.3rem;
  font-weight: 900;
}
.p-age-mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 48px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: .95rem;
  font-weight: 900;
  line-height: 1;
}
.p-footer-secondary .p-footer-menu {
  justify-content: flex-start;
  font-size: .88rem;
  font-weight: 650;
}
.p-footer-socials h2 {
  margin: 0 0 13px;
  font-size: 1rem;
  line-height: 1.2;
}
.p-footer-social-list {
  display: flex;
  align-items: center;
  gap: 11px;
}
.p-footer-social-list a {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: #fff;
}
.p-footer-social-list img,
.p-footer-social-list svg {
  width: 23px;
  height: 23px;
  object-fit: contain;
}
.p-footer-social-list a:hover,
.p-footer-social-list a:focus-visible {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.1);
  color: #fff;
}
.p-footer-legal {
  padding-top: 4px;
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  line-height: 1.55;
}
.p-footer-legal strong {
  color: #fff;
}
.p-footer-copyright {
  margin-bottom: 0 !important;
}
@media (max-width: 700px) {
  .p-site-footer {
    margin-top: 44px;
    padding: 30px 0 26px;
  }
  .p-footer-primary ul,
.p-footer-menu {
    gap: 8px 16px;
  }
  .p-footer-primary li,
.p-footer-menu li {
    flex: 0 0 calc(50% - 8px);
  }
  .p-footer-brand-row {
    justify-content: flex-start;
  }
  .p-footer-logo img {
    max-width: 138px;
    max-height: 50px;
  }
  .p-age-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: .88rem;
  }
  .p-footer-legal {
    font-size: .78rem;
  }
}
/* ===== Patisson 1.2: homepage alignment + footer composition ===== */
/* Breaking ticker follows the same content container as the rest of the page. */
.p-breaking-row {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  padding-inline: 0;
  justify-content: flex-start;
  align-items: center;
}
.p-breaking-label,
.p-breaking-viewport,
.p-breaking-track,
.p-breaking-group {
  align-items: center;
}
.p-breaking-label {
  align-self: center;
}
/* VK and MAX keep the same hover behavior as the vector TG/mail buttons. */
.p-social-link img {
  transition: filter .15s ease;
}
/* Hero-side cards: image top and category top are always aligned on every responsive width. */
.p-side-story {
  align-items: start;
}
.p-side-story > a,
.p-side-story-body {
  align-self: start;
}
.p-side-story-body {
  min-width: 0;
  padding-top: 0;
}
.p-side-story .p-kicker {
  display: block;
  margin-top: 0;
  margin-bottom: 6px;
  line-height: 1;
}
.p-side-story .p-meta {
  margin-top: 8px;
  padding-top: 0;
}
@media (min-width: 1081px) {
  .p-hero-side {
    justify-content: space-between;
  }
  .p-side-story {
    padding: 0 0 4px;
  }
  .p-side-story + .p-side-story {
    padding-top: 15px;
  }
}
@media (max-width: 1080px) and (min-width: 701px) {
  .p-side-story {
    align-items: start;
    padding-block: 13px;
  }
  .p-side-story:nth-child(-n + 2) {
    padding-top: 0;
  }
}
/* Keep the Most Read block close to its neighbours without making sections stick together. */
body.home .p-most-read-section {
  margin-top: clamp(26px, 2.2vw, 34px);
}
body.home .p-most-read-section + .p-section {
  margin-top: clamp(26px, 2.2vw, 34px);
}
/* Desktop footer: one menu row, then three balanced columns, then legal information. */
.p-footer-stack {
  gap: 0;
}
.p-footer-primary {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.p-footer-main-grid {
  display: grid;
  grid-template-columns: minmax(220px,.9fr) minmax(260px,1fr) minmax(240px,.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: 30px 0;
}
.p-footer-brand-row {
  align-items: center;
}
.p-footer-secondary .p-footer-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 20px;
}
.p-footer-secondary .p-footer-menu li {
  min-width: 0;
}
.p-footer-socials h2 {
  margin-bottom: 14px;
}
.p-footer-legal {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(220px,.85fr) minmax(280px,1fr) minmax(360px,1.35fr);
  gap: clamp(28px,4vw,58px);
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.p-footer-legal p {
  margin: 0;
}
.p-footer-privacy {
  padding: 20px 0 0;
}
.p-footer-copyright {
  margin: 10px 0 0 !important;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
}
@media (max-width: 1000px) {
  .p-footer-main-grid {
    grid-template-columns: 1fr 1fr;
  }
  .p-footer-socials {
    grid-column: 1 / -1;
  }
  .p-footer-legal {
    grid-template-columns: 1fr 1fr;
  }
  .p-footer-legal p:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  .p-breaking-row {
    width: min(calc(100% - 24px), var(--max));
  }
  .p-breaking-label {
    flex: 0 0 auto;
  }
  .p-breaking-viewport {
    min-width: 0;
  }
  body.home .p-most-read-section,
body.home .p-most-read-section + .p-section {
    margin-top: 28px;
  }
  .p-footer-primary {
    padding-bottom: 22px;
  }
  .p-footer-main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
  }
  .p-footer-socials {
    grid-column: auto;
  }
  .p-footer-secondary .p-footer-menu {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .p-footer-legal {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0;
  }
  .p-footer-legal p:last-child {
    grid-column: auto;
  }
  .p-footer-privacy {
    padding-top: 18px;
  }
}
/* ===== Patisson 1.3: mobile header popovers + official social assets ===== */
/* Official VK/MAX assets switch cleanly between dark and white states. */
.p-social-link-logo {
  position: relative;
}
.p-social-link-logo .p-social-logo-default,
.p-social-link-logo .p-social-logo-hover {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  transition: opacity .15s ease;
  filter: none !important;
}
.p-social-link-logo .p-social-logo-hover {
  opacity: 0;
}
.p-social-link-logo:hover .p-social-logo-default,
.p-social-link-logo:focus-visible .p-social-logo-default {
  opacity: 0;
}
.p-social-link-logo:hover .p-social-logo-hover,
.p-social-link-logo:focus-visible .p-social-logo-hover {
  opacity: 1;
}
.p-social-link:hover img,
.p-social-link:focus-visible img {
  filter: none !important;
}
/* Header popovers share one predictable geometry. */
.p-header-row {
  position: relative;
}
.p-header-details > summary {
  list-style: none;
}
.p-header-details > summary::-webkit-details-marker {
  display: none;
}
.p-submit-box {
  display: none;
}
.p-header-popover {
  z-index: 80;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(18,22,27,.14);
}
.p-header-popover-title {
  display: block;
  margin-bottom: 11px;
  color: var(--p-text);
  font-size: .88rem;
  font-weight: 850;
}
.p-submit-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.p-submit-option {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--p-border);
  border-radius: 11px;
  background: #fff;
  color: var(--p-text);
  font-size: .82rem;
  font-weight: 760;
}
.p-submit-option:hover,
.p-submit-option:focus-visible {
  border-color: #cbd0d6;
  background: var(--p-surface);
  color: var(--p-text);
}
.p-submit-option-icon {
  width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 23px;
}
.p-submit-option-icon img,
.p-submit-option-icon svg {
  width: 21px;
  height: 21px;
  object-fit: contain;
}
.p-submit-option-icon-tg {
  color: #141619;
}
/* Visually align the category cap-height with the thumbnail top. */
.p-side-story-body {
  transform: translateY(-5px);
}
@media (max-width: 1080px) and (min-width: 701px) {
  .p-side-story-body {
    transform: translateY(-5px);
  }
}
@media (max-width: 700px) {
  /* "Send news" is a header action, not a navigation item. */
  .p-submit-box {
    display: block;
  }
  .p-search-box {
    display: block !important;
  }
  .p-submit-box,
.p-search-box {
    position: static;
  }
  .p-header-popover,
.p-search-popover,
.p-submit-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 12px;
  }
  .p-search-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .p-search-form input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    font-size: 16px;
  }
  .p-search-form button {
    min-height: 46px;
    padding-inline: 18px;
  }
  .p-header-tools {
    gap: 6px;
  }
  .p-side-story-body {
    transform: translateY(-6px);
  }
}
@media (max-width: 390px) {
  .p-header-row {
    gap: 7px;
  }
  .p-icon-button,
.p-menu-toggle {
    width: 39px;
    height: 39px;
  }
  .p-brand img {
    max-height: 33px;
  }
  .p-submit-options {
    grid-template-columns: 1fr;
  }
}
/* ===== Patisson 1.8: author profile, author feed and article metadata ===== */
/* Article headline hierarchy is intentionally lighter than the first pass. */
.single-post .p-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 18px;
  color: var(--p-muted);
  font-size: .82rem;
  line-height: 1.35;
}
.single-post .p-article-meta-category {
  color: var(--p-accent);
  font-weight: 800;
}
.single-post .p-article-meta-date,
.single-post .p-article-meta-reading {
  color: var(--p-muted);
}
.single-post .p-article-meta-divider {
  color: var(--p-muted);
  font-size: .66rem;
  line-height: 1;
}
.single-post .p-article-updated {
  margin: 12px 0 0;
  color: var(--p-muted);
  font-size: .8rem;
  font-style: italic;
  line-height: 1.4;
}
body.author .p-author-shell {
  padding-top: clamp(18px, 3vw, 38px);
}
.p-author-profile {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  padding: clamp(28px, 4vw, 58px);
  border-radius: var(--p-card-radius, 16px);
  background: #f1f3f5;
  box-shadow: 0 14px 38px rgba(18, 22, 27, .06);
}
.p-author-avatar-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}
.p-author-avatar-wrap {
  width: clamp(170px, 18vw, 240px);
  aspect-ratio: 1;
}
.p-author-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 7px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(18, 22, 27, .14);
}
.p-author-contact {
  margin-top: 22px;
  text-align: center;
}
.p-author-contact-title {
  display: block;
  margin-bottom: 10px;
  color: var(--p-text);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
}
.p-author-contact-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.p-author-contact-link {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(18, 22, 27, .1);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.p-author-contact-link:hover,
.p-author-contact-link:focus-visible {
  transform: translateY(-2px);
  color: #fff !important;
  filter: brightness(.95);
  box-shadow: 0 7px 16px rgba(18, 22, 27, .16);
}
.p-author-contact-link--telegram {
  background: #2aabee;
}
.p-author-contact-link--email {
  background: #1da7e9;
}
.p-author-contact-link svg {
  width: 25px;
  height: 25px;
}
.p-author-profile-main {
  min-width: 0;
}
.p-author-profile-name {
  margin: 0;
  color: var(--p-text);
}
.p-author-profile-role {
  color: #6e7780;
}
.p-author-bio {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(18, 22, 27, .045);
}
.p-author-bio p {
  margin: 0 0 1em;
  color: #2c3035;
}
.p-author-bio p:last-child {
  margin-bottom: 0;
}
.p-author-feed {
  width: 100%;
}
.p-author-feed-head {
  margin-bottom: 20px;
}
.p-author-feed-grid {
  width: 100%;
}
.p-author-feed-status {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
  color: var(--p-muted);
  font-size: .82rem;
  text-align: center;
}
.p-author-feed-status.is-error {
  cursor: pointer;
  color: var(--p-accent);
}
.p-author-feed-status.is-finished {
  color: var(--p-muted);
}
.p-author-feed-spinner {
  width: 18px;
  height: 18px;
  display: none;
  flex: 0 0 18px;
  border: 2px solid rgba(20, 22, 25, .12);
  border-top-color: var(--p-accent);
  border-radius: 50%;
}
.p-author-feed-status.is-loading .p-author-feed-spinner {
  display: inline-block;
  animation: patisson-author-spin .8s linear infinite;
}
.p-author-feed-sentinel {
  width: 100%;
  height: 1px;
}
.p-author-empty {
  margin: 0;
  color: var(--p-muted);
  text-align: center;
}
@keyframes patisson-author-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1080px) {
  .p-author-profile {
    grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
    gap: 28px;
  }
  .p-author-avatar-wrap {
    width: min(210px, 25vw);
  }
}
@media (max-width: 700px) {
  body.author .p-author-shell {
    padding-top: 12px;
  }
  .p-author-profile {
    display: block;
    padding: 24px 16px 28px;
    text-align: center;
  }
  .p-author-avatar-column {
    align-items: center;
  }
  .p-author-avatar-wrap img {
    border-width: 6px;
  }
  .p-author-contact {
    margin-top: 18px;
  }
  .p-author-contact-title {
    margin-bottom: 9px;
    font-size: 1.05rem;
  }
  .p-author-contact-list {
    gap: 11px;
  }
  .p-author-contact-link {
    width: 50px;
    height: 50px;
  }
  .p-author-bio {
    text-align: center;
  }
  .p-author-feed {
    margin-top: 36px;
  }
  .p-author-feed-head {
    margin-bottom: 16px;
  }
}
@media (max-width: 390px) {
  .p-author-profile {
    padding-inline: 12px;
  }
}
/* ===== Patisson 1.4: mobile menu + single article polish ===== */
/* Secondary information links only belong to the mobile/tablet drawer. */
.p-nav-mobile-secondary {
  display: none;
}
/* Single article: calmer headline hierarchy. */
.p-article-title {
  max-width: 860px;
  font-size: clamp(2rem, 3.15vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -.042em;
}
.p-dzen-title {
  max-width: 820px;
  margin: 14px 0 0;
  color: #555c64;
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -.012em;
}
/* Share row follows the exact left edge/width of the featured image. */
.p-share-under-media {
  width: 100%;
  max-width: none;
  margin: 14px 0 32px;
  padding: 0;
  justify-content: flex-start;
}
/* Tags live with the article body, immediately before the author card. */
.p-article-tags {
  max-width: var(--p-reading);
  margin: 30px auto 0;
}
/* Restore one compact author card owned by Patisson. */
.p-author-card {
  display: grid !important;
  max-width: var(--p-reading);
  margin: 26px auto 0;
  padding: 20px;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  background: var(--p-surface);
}
.p-author-card-avatar img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
}
.p-author-card-label {
  display: block;
  color: var(--p-muted);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}
.p-author-card h2 {
  margin: 5px 0 0;
  font-size: 1.18rem;
  line-height: 1.12;
}
.p-author-card-link {
  display: inline-flex;
  margin-top: 11px;
  color: var(--p-accent);
  font-size: .82rem;
  font-weight: 800;
}
/* "Дальше": no black rule, compact gap after author, aligned with first card. */
#mtv36-infinite-root.mtv36-infinite-patisson.mtv36-infinite-single,
.mtv36-infinite-patisson.mtv36-infinite-single {
  margin-top: 34px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
#mtv36-infinite-root.mtv36-infinite-patisson.mtv36-infinite-single::before,
.mtv36-infinite-patisson.mtv36-infinite-single::before {
  width: min(100%, 900px);
  margin: 0 auto 20px;
  padding: 0;
  border: 0;
}
@media (max-width: 1080px) {
  .p-nav-mobile-secondary {
    display: block;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 3px solid var(--text);
  }
  .p-nav.is-open .p-nav-mobile-secondary ul {
    margin: 0;
    padding: 0;
  }
  .p-nav.is-open .p-nav-mobile-secondary li {
    border-bottom: 1px solid var(--border);
  }
  .p-nav.is-open .p-nav-mobile-secondary li:last-child {
    border-bottom: 0;
  }
  .p-nav.is-open .p-nav-mobile-secondary a {
    font-weight: 760;
  }
}
@media (max-width: 700px) {
  .p-article-title {
    font-size: clamp(1.82rem, 8vw, 2.42rem);
    line-height: 1.04;
    letter-spacing: -.036em;
  }
  .p-dzen-title {
    margin-top: 11px;
    font-size: 1.02rem;
  }
  .p-share-under-media {
    margin-top: 12px;
    margin-bottom: 26px;
  }
  .p-article-tags {
    margin-top: 26px;
  }
  .p-author-card {
    margin-top: 22px;
    padding: 16px;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
  }
  .p-author-card-avatar img {
    width: 58px;
    height: 58px;
  }
  #mtv36-infinite-root.mtv36-infinite-patisson.mtv36-infinite-single,
.mtv36-infinite-patisson.mtv36-infinite-single {
    margin-top: 28px !important;
  }
  #mtv36-infinite-root.mtv36-infinite-patisson.mtv36-infinite-single::before,
.mtv36-infinite-patisson.mtv36-infinite-single::before {
    margin-bottom: 16px;
  }
}
/* ===== Patisson 1.8.8: theme-owned single author card ===== */
/* Tags and the author card share the article reading column. */
.single-post .p-article-tags {
  max-width: var(--p-reading);
  margin: 30px auto 18px;
}
.single-post .p-author-card {
  display: grid !important;
  position: relative;
  overflow: hidden;
}
.single-post .p-author-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--p-accent);
}
/* If the optional MTV36 author-box plugin still appends its own card through
   the_content, hide the known markup immediately. theme.js also marks unknown
   legacy variants as duplicates after inspecting their contents. */
.single-post .p-article-content .mtv36-author-after-content,
.single-post .p-plugin-author-box-duplicate {
  display: none !important;
}
/* ===== Patisson 1.7: urgent ticker + robust MAX icon ===== */
/* iOS Safari can inflate text inside long animated, nowrap strips. Keep the
   ticker typography stable and deterministic. */
.p-breaking,
.p-breaking * {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis: none;
}
.p-breaking {
  background: #fff;
}
.p-breaking-row {
  min-height: 42px;
  background: #fff;
  gap: 12px;
}
.p-breaking-label {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  background: var(--p-accent, var(--accent));
  color: #fff !important;
  font-family: inherit !important;
  font-size: .72rem !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 28px !important;
  letter-spacing: .075em !important;
  text-transform: uppercase;
  white-space: nowrap;
}
.p-breaking-group a {
  font-family: inherit !important;
  font-size: .76rem !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.p-breaking-separator {
  font-family: inherit !important;
  font-size: .76rem !important;
  line-height: 1 !important;
}
/* The original MAX SVG uses a large mask/filter stack that Safari can render
   as a solid rectangle. v1.7 uses a rasterized transparent copy of that same
   official artwork for predictable rendering at icon size. */
.p-social-link-max .p-social-logo-default {
  opacity: 1 !important;
  filter: none !important;
}
.p-social-link-max:hover .p-social-logo-default,
.p-social-link-max:focus-visible .p-social-logo-default {
  opacity: 1 !important;
  filter: invert(1) !important;
}
.p-max-logo,
.p-footer-max-logo {
  object-fit: contain;
}
.p-footer-max-logo {
  filter: invert(1);
}
@media (max-width: 700px) {
  .p-breaking-row {
    min-height: 42px;
    gap: 9px;
  }
  .p-breaking-label {
    min-height: 26px;
    padding-inline: 9px;
    font-size: .66rem !important;
    line-height: 26px !important;
  }
  .p-breaking-group a,
.p-breaking-separator {
    font-size: .72rem !important;
  }
}
/* ===== Patisson 1.8: final cascade overrides =====
 * Keep the requested single-article hierarchy last in the cascade so older
 * compatibility layers cannot restore a superseded presentation.
 */
.single-post .p-article-meta {
  justify-content: flex-start;
  text-align: left;
}
/* ===== Patisson 1.8.3: calmer editorial typography ===== */
.p-hero-title {
  font-size: clamp(1.75rem, 2.55vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.single-post .p-article-title {
  font-size: clamp(1.78rem, 2.65vw, 2.7rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.single-post .p-dzen-title {
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  font-weight: 400;
  line-height: 1.38;
}
.p-author-profile-name {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.p-author-profile-role {
  margin: 12px 0 20px;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 500;
  line-height: 1.35;
}
.p-author-bio {
  padding: clamp(20px, 2.3vw, 28px);
}
.p-author-bio p {
  margin-bottom: .75em;
  font-size: clamp(.94rem, 1vw, 1.02rem);
  line-height: 1.55;
}
.page .p-page-title {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.035em;
}
@media (max-width: 700px) {
  .p-hero-title {
    font-size: clamp(1.52rem, 6.5vw, 2.05rem);
  }
  .single-post .p-article-title {
    font-size: clamp(1.6rem, 7vw, 2.08rem);
  }
  .single-post .p-dzen-title {
    font-size: .98rem;
    line-height: 1.36;
  }
  .p-author-profile-main {
    padding-top: 22px;
  }
  .p-author-profile-name {
    font-size: clamp(1.9rem, 8vw, 2.55rem);
  }
  .p-author-profile-role {
    margin: 10px 0 18px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
  }
  .p-author-bio {
    padding: 18px 16px;
  }
  .p-author-bio p {
    font-size: .96rem;
    line-height: 1.55;
  }
  .page .p-page-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }
}
/* ===== Patisson 1.8.4: interview feature and author mobile polish ===== */
.p-home-interview-card {
  position: relative;
  isolation: isolate;
  height: clamp(320px, 32vw, 420px);
  display: block;
  overflow: hidden;
  border-radius: var(--p-card-radius, 16px);
  background: var(--p-surface-2, #eceff2);
  color: #fff;
  box-shadow: 0 14px 38px rgba(18, 22, 27, .08);
}
.p-home-interview-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.p-home-interview-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .2) 66%, rgba(0, 0, 0, .05));
}
.p-home-interview-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(24px, 4vw, 48px);
}
.p-home-interview-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--p-accent, #d51c27);
  color: #fff;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.p-home-interview-title {
  max-width: 920px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.p-home-interview-card:hover .p-home-interview-image,
.p-home-interview-card:focus-visible .p-home-interview-image {
  transform: scale(1.018);
}
.p-home-interview-card:focus-visible {
  outline: 3px solid var(--p-accent, #d51c27);
  outline-offset: 3px;
}
.p-author-contact-link--vk {
  overflow: hidden;
  background: #0077ff;
}
.p-author-contact-vk-logo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
/* Keep the editorial plugin's mobile portrait close to the surname even when
 * global article-content spacing rules are present. */
.page .mtv36-editorial-person__photo,
.page .mtv36-editorial-person__body,
.page .mtv36-editorial-person__name {
  margin-top: 0;
}
@media (max-width: 700px) {
  .p-home-interview-card {
    height: clamp(250px, 68vw, 330px);
  }
  .p-home-interview-content {
    padding: 20px;
  }
  .p-home-interview-title {
    font-size: clamp(1.45rem, 6.6vw, 2rem);
    line-height: 1.1;
  }
  .p-author-avatar-wrap {
    width: min(44vw, 170px);
  }
  .page .mtv36-editorial-person {
    row-gap: 4px;
  }
}
@media (max-width: 390px) {
  .p-author-avatar-wrap {
    width: min(46vw, 160px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-home-interview-image {
    transition: none;
  }
}
/* ===== Patisson 1.8.5: managed RYА placements ===== */
.p-home-interview-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(18px, 2.2vw, 28px);
  align-items: stretch;
}
.p-home-interview-row--solo {
  grid-template-columns: minmax(0, 1fr);
}
.p-home-interview {
  min-width: 0;
}
.p-home-interview-row .p-home-interview-card {
  height: clamp(300px, 27vw, 360px);
}
.p-ad-slot {
  width: 100%;
  min-width: 0;
  margin: clamp(26px, 3.2vw, 42px) 0;
}
.p-ad-slot--shell {
  width: min(calc(100% - 32px), var(--p-max, var(--max, 1240px)));
  margin-right: auto;
  margin-left: auto;
}
.p-main > .p-ad-slot--global_header {
  margin-top: 0;
}
.p-main > .p-ad-slot--global_footer {
  margin-bottom: 0;
}
.p-ad-placeholder,
.p-ad-live {
  width: 100%;
  min-width: 0;
  border-radius: var(--p-card-radius, 16px);
}
.p-ad-custom {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--p-card-radius, 16px);
}
.p-ad-custom-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.p-ad-placeholder {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 34px);
  border: 1px dashed #aeb6bf;
  background: linear-gradient(135deg, transparent 49.7%, rgba(105, 115, 126, .08) 49.9%, rgba(105, 115, 126, .08) 50.1%, transparent 50.3%),
    linear-gradient(45deg, transparent 49.7%, rgba(105, 115, 126, .08) 49.9%, rgba(105, 115, 126, .08) 50.1%, transparent 50.3%),
    #f2f4f6;
  background-size: 72px 72px;
  color: #545e69;
  text-align: center;
}
.p-ad-placeholder::after {
  position: absolute;
  z-index: -1;
  inset: 12px;
  border: 1px solid rgba(105, 115, 126, .12);
  border-radius: calc(var(--p-card-radius, 16px) - 6px);
  content: "";
}
.p-ad-placeholder-kicker {
  margin-bottom: 8px;
  color: var(--p-accent, #d51c27);
  font-size: .68rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.p-ad-placeholder-title {
  color: var(--p-text, #141619);
  font-size: clamp(1rem, 1.6vw, 1.32rem);
  line-height: 1.15;
}
.p-ad-placeholder-scope {
  margin-top: 7px;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.25;
  text-transform: uppercase;
}
.p-ad-placeholder-size {
  margin-top: 4px;
  font-size: .78rem;
  line-height: 1.25;
}
.p-ad-placeholder-tech {
  max-width: 760px;
  margin-top: 9px;
  color: #737d87;
  font-size: .7rem;
  line-height: 1.35;
}
.p-ad-placeholder-tech code {
  color: inherit;
  font-size: inherit;
}
.p-ad-slot--leaderboard .p-ad-placeholder,
.p-ad-slot--leaderboard .p-ad-live {
  min-height: 120px;
}
.p-ad-slot--billboard .p-ad-placeholder,
.p-ad-slot--billboard .p-ad-live,
.p-ad-slot--content .p-ad-placeholder,
.p-ad-slot--content .p-ad-live {
  min-height: 250px;
}
.p-ad-slot--rectangle .p-ad-placeholder,
.p-ad-slot--rectangle .p-ad-live {
  min-height: 280px;
}
.p-home-interview-row .p-ad-slot--interview-side {
  height: 100%;
  margin: 0;
}
.p-home-interview-row .p-ad-slot--interview-side .p-ad-placeholder,
.p-home-interview-row .p-ad-slot--interview-side .p-ad-live {
  height: 100%;
}
.p-home-interview-row .p-ad-slot--interview-side .p-ad-custom {
  height: 100%;
}
.p-home-interview-row .p-ad-slot--interview-side .p-ad-custom-image {
  max-height: 100%;
}
.p-grid > .p-ad-slot--grid {
  grid-column: 1 / -1;
}
.p-ad-slot--stream {
  display: block;
}
.p-ad-slot--infinite-boundary {
  margin-bottom: 0;
}
.p-ad-slot--page-after {
  max-width: var(--p-reading, 760px);
  margin-right: auto;
  margin-left: auto;
}
.p-ad-slot--article-after {
  margin-top: 28px;
}
@media (max-width: 800px) {
  .p-home-interview-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .p-home-interview-row .p-home-interview-card {
    height: clamp(250px, 64vw, 320px);
  }
  .p-home-interview-row .p-ad-slot--interview-side {
    height: auto;
  }
  .p-home-interview-row .p-ad-slot--interview-side .p-ad-placeholder,
.p-home-interview-row .p-ad-slot--interview-side .p-ad-live {
    height: auto;
    min-height: 250px;
  }
  .p-home-interview-row .p-ad-slot--interview-side .p-ad-custom {
    height: auto;
  }
  .p-home-interview-row .p-ad-slot--interview-side .p-ad-custom-image {
    max-height: none;
  }
}
@media (max-width: 700px) {
  .p-ad-slot {
    margin-top: 26px;
    margin-bottom: 26px;
  }
  .p-ad-slot--shell {
    width: min(calc(100% - 24px), var(--p-max, var(--max, 1240px)));
  }
  .p-ad-placeholder {
    padding: 18px 14px;
    background-size: 56px 56px;
  }
  .p-ad-slot--leaderboard .p-ad-placeholder,
.p-ad-slot--leaderboard .p-ad-live {
    min-height: 100px;
  }
  .p-ad-placeholder-title {
    font-size: 1.05rem;
  }
  .p-ad-placeholder-scope {
    font-size: .75rem;
  }
  .p-ad-placeholder-size {
    font-size: .72rem;
  }
  .p-ad-placeholder-tech {
    font-size: .65rem;
  }
}
/* ===== Patisson 1.8.6: one boundary ad per feed ===== */
.patisson-has-footer-ad .p-main {
  padding-bottom: 0;
}
.patisson-has-footer-ad .p-site-footer {
  margin-top: clamp(18px, 2vw, 24px);
}
.mtv36-infinite-single .p-ad-slot--single-infinite {
  grid-column: 1 / -1;
}
/* ===== Patisson 1.8.11: tags + author aligned with Google Preferred Sources ===== */
/* Google Preferred Sources expands to the full single-article container
   (1040px on desktop). Tags and the theme-owned author card must use the same
   left/right edges, not the narrower 900px editorial measure. */
.single-post .p-article-tags,
.single-post .p-author-card {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  transform: none;
}
.single-post .p-article-tags {
  justify-content: flex-start;
}
/* ===== Patisson 1.8.12: article reactions ===== */
.p-reactions {
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--p-border);
  border-radius: 16px;
  background: var(--p-surface);
}
.p-reactions-title {
  flex: 0 0 auto;
  margin-right: auto;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.p-reactions-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.p-reaction-button {
  appearance: none;
  -webkit-appearance: none;
  min-width: 64px;
  height: 48px;
  padding: 5px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: var(--p-text);
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.p-reaction-button:hover {
  border-color: #d9dde1;
  transform: translateY(-1px);
}
.p-reaction-button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--p-accent) 42%, #fff);
  background: color-mix(in srgb, var(--p-accent) 7%, #fff);
}
.p-reaction-button:focus-visible {
  outline: 2px solid var(--p-accent);
  outline-offset: 2px;
}
.p-reaction-button[disabled] {
  opacity: .68;
  cursor: wait;
  transform: none;
}
.p-reaction-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.65rem;
  line-height: 1;
}
.p-reaction-count {
  min-width: 1ch;
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
@media (max-width: 820px) {
  .p-reactions {
    display: block;
    padding: 18px 16px;
  }
  .p-reactions-title {
    margin: 0 0 14px;
    font-size: 1.02rem;
  }
  .p-reactions-list {
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .p-reactions-list::-webkit-scrollbar {
    display: none;
  }
  .p-reaction-button {
    flex: 0 0 auto;
    min-width: 54px;
    height: 42px;
    padding-inline: 10px;
    gap: 6px;
  }
  .p-reaction-emoji {
    font-size: 1.45rem;
  }
  .p-reaction-count {
    font-size: .88rem;
  }
}
@media (max-width: 420px) {
  .p-reactions {
    margin-top: 22px;
    padding: 16px 14px;
    border-radius: 14px;
  }
  .p-reactions-list {
    gap: 5px;
  }
  .p-reaction-button {
    min-width: 50px;
    height: 40px;
    padding-inline: 9px;
    gap: 5px;
  }
  .p-reaction-emoji {
    font-size: 1.35rem;
  }
  .p-reaction-count {
    font-size: .84rem;
  }
}
/* ===== Patisson 1.8.15: compact author card ===== */
/* Keep the post-footer author card deliberately concise: label, name and contact.
   Give the card and its red spine only a subtle radius. */
.single-post .p-author-card {
  border-radius: 6px;
}
.single-post .p-author-card::before {
  border-radius: 6px 0 0 6px;
}
/* ===== Patisson 1.8.16: post-footer rhythm + compact reactions ===== */
/* Tags, reactions, author and Preferred Sources form one calm post-footer stack. */
.single-post .p-article-tags {
  margin-top: 24px;
  margin-bottom: 0;
}
.single-post .p-reactions {
  margin: 24px 0 0;
}
.single-post .p-author-card {
  margin-top: 24px;
}
.single-post .mtv36-google-source {
  margin-top: 24px !important;
  margin-bottom: 0 !important;
}
@media (max-width: 820px) {
  .single-post .p-reactions {
    padding: 14px 14px 13px;
  }
  .single-post .p-reactions-title {
    margin-bottom: 10px;
  }
  .single-post .p-reactions-list {
    gap: 5px;
    padding-bottom: 0;
  }
  .single-post .p-reaction-button {
    min-width: 50px;
    height: 38px;
    padding-inline: 8px;
    gap: 5px;
  }
  .single-post .p-reaction-emoji {
    font-size: 1.32rem;
  }
  .single-post .p-reaction-count {
    font-size: .82rem;
  }
  .single-post .mtv36-google-source {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
}
@media (max-width: 420px) {
  .single-post .p-reactions {
    margin-top: 24px;
    padding: 12px 12px 11px;
    border-radius: 14px;
  }
  .single-post .p-reactions-title {
    margin-bottom: 9px;
    font-size: 1rem;
  }
  .single-post .p-reaction-button {
    min-width: 48px;
    height: 36px;
    padding-inline: 7px;
    gap: 4px;
  }
  .single-post .p-reaction-emoji {
    font-size: 1.26rem;
  }
  .single-post .p-reaction-count {
    font-size: .8rem;
  }
}
@media (max-width: 360px) {
  /* Keep the first six reactions (through ❤️) visible even on very narrow phones;
         🤯 remains last and can sit just beyond them if the browser needs to scroll. */
  .single-post .p-reactions {
    padding-inline: 12px;
  }
  .single-post .p-reactions-list {
    gap: 3px;
  }
  .single-post .p-reaction-button {
    min-width: 42px;
    height: 34px;
    padding-inline: 5px;
    gap: 3px;
  }
  .single-post .p-reaction-emoji {
    font-size: 1.16rem;
  }
  .single-post .p-reaction-count {
    font-size: .76rem;
  }
}
/* Match the submit action to the search/menu control height. The envelope is
   intentionally sized against the two-line label by visual mass rather than
   against the button box itself. */
@media (max-width: 390px) {
  /* Search and menu are 39px at this breakpoint, so the submit control follows. */
}
/* ===== Patisson 1.8.19: submit-news button visual alignment =====
 * Keep the control exactly as tall as the neighboring search/menu buttons.
 * The envelope artwork is intentionally drawn almost edge-to-edge inside its
 * viewBox so its VISUAL height matches the two-line label, not just its SVG box.
 */
@media (max-width: 700px) {
  .p-submit-news-button {
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    padding: 0 11px !important;
    border-radius: 11px !important;
    line-height: 1 !important;
    text-align: left !important;
  }
  .p-submit-news-button .p-submit-news-envelope {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
    display: block !important;
    overflow: visible;
  }
  .p-submit-news-button-label {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: max-content !important;
    max-width: none !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    text-align: left !important;
    font-size: .74rem !important;
    font-weight: 800 !important;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
  }
  .p-submit-news-button-label > span {
    display: block;
    width: 100%;
    text-align: left;
  }
}
@media (max-width: 390px) {
  .p-submit-news-button {
    height: 39px !important;
    min-height: 39px !important;
    max-height: 39px !important;
    gap: 8px !important;
    padding: 0 9px !important;
  }
  .p-submit-news-button .p-submit-news-envelope {
    width: 28px !important;
    height: 28px !important;
    flex-basis: 28px !important;
  }
  .p-submit-news-button-label {
    font-size: .72rem !important;
    line-height: 1 !important;
  }
}


/* ===== Patisson 1.8.21: single cover crop + caption/update polish ===== */
/* The single-post cover uses the same visual crop as news cards. The source
   file stays untouched, so portrait images can still be used vertically inside
   article content. Only the featured-image presentation is forced horizontal. */
.single-post .p-article-media {
  overflow: visible;
  border-radius: 0;
}
.single-post .p-article-media-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--p-surface);
}
.single-post .p-article-media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
/* Keep the caption outside the clipped image frame. Extra left inset prevents
   glyph overhang (notably Cyrillic Ф) from being visually cut at the edge. */
.single-post .p-figure-caption {
  margin: 0;
  padding: 8px 2px 0;
}
.single-post .p-figure-caption--unsplash {
  padding-left: 8px;
}
/* The update timestamp now sits directly below the tags. */
.single-post .p-article-updated {
  width: 100%;
  max-width: none;
  margin: 10px 0 0;
}
@media (max-width: 560px) {
  .single-post .p-article-media-frame {
    border-radius: 12px;
  }
}

/* ===== Patisson 1.8.26: mobile breaking ticker white edge-to-edge ===== */
@media (max-width: 700px) {
  .p-breaking {
    background: #fff !important;
    box-shadow: 0 0 0 100vmax #fff;
    clip-path: inset(0 -100vmax);
  }

  .p-breaking-row {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 12px !important;
    box-sizing: border-box;
    background: #fff !important;
  }

  .p-breaking-viewport {
    background: #fff !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
}
