/* Editorial spread for «Че по Ростову?».
   Design pass using Unslop by Damir Sokolovsky / @heydamir (CC BY 4.0).
   https://github.com/heydamir/unslop */
@font-face {
  font-family: "Golos Text";
  src: url("/static/fonts/golos-text.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  font-family: "Golos Text", Arial, sans-serif;
  --background: #fff;
}

body { font-family: "Golos Text", Arial, sans-serif; }
.container { width: min(calc(100% - 64px), 1184px); }

.site-header {
  border-top: 4px solid var(--accent);
  background: var(--surface);
}
.header-inner { min-height: 112px; gap: 24px; }
.logo { gap: 12px; max-width: none; font-size: 32px; font-weight: 600; letter-spacing: -.035em; }
.logo-mark { width: 64px; height: 64px; }
.logo-text { max-width: none; font-size: inherit; line-height: 1; white-space: nowrap; }
.main-nav { gap: 24px; font-size: 14px; font-weight: 500; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-underline-offset: 8px;
}
.main-nav a:first-child {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.nav-channel { padding: 0; border: 0; border-radius: 0; background: none; }
.page-content { padding-block: 40px 64px; }
.eyebrow { margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* Only presentation changes: DOM, date groups and chronological order stay. */
.page-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 24px;
}
.page-heading .eyebrow { order: 1; margin: 0; }
.news-page h1 { font-size: 52px; font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.news-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; }
.date-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 0;
  padding-bottom: 16px;
  font-size: 16px;
  font-weight: 500;
}
.date-heading::before { content: ""; flex: none; width: 24px; height: 3px; background: var(--accent); }
.date-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.news-card {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  transition: none;
}
.news-card:hover { transform: none; border-color: var(--line); }
.news-card-link { flex-direction: row-reverse; align-items: flex-start; min-height: 0; gap: 20px; padding: 24px 0; }
.news-card-media { width: 136px; height: 104px; }
.news-card-copy { min-width: 0; flex: 1; justify-content: flex-start; gap: 12px; padding: 0; }
.news-card time { font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
.news-card-title { font-size: 24px; font-weight: 500; line-height: 1.28; letter-spacing: -.02em; overflow-wrap: anywhere; }
.news-card:hover .news-card-title { color: var(--accent); }
.date-heading + .news-card { grid-column: 1 / -1; }
.date-heading + .news-card .news-card-link { padding: 16px 0 32px; gap: 48px; align-items: center; }
.date-heading + .news-card .news-card-media { width: 46%; height: 300px; }
.date-heading + .news-card .news-card-title { font-size: 36px; line-height: 1.15; letter-spacing: -.03em; }

.feed-navigation { margin-top: 40px; }
.pager { gap: 8px; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 4px; font-size: 14px; }
.pager [aria-current="page"] { background: var(--accent); font-weight: 500; }
.pager .pager-action { border: 1px solid var(--line); padding-inline: 20px; }

.news-detail { max-width: 960px; margin-inline: auto; }
.back-link { min-height: 44px; display: inline-flex; align-items: center; margin-bottom: 24px; font-size: 14px; font-weight: 400; }
.news-detail h1 { max-width: none; font-size: 44px; font-weight: 500; line-height: 1.13; letter-spacing: -.03em; overflow-wrap: anywhere; }
.article-header { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-header > p:not(.eyebrow) { margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.article-dates { gap: 8px 20px; margin-top: 12px; font-size: 13px; line-height: 1.55; }
/* Retain full-frame object-fit: contain from site.css, including portrait media. */
.article-image { margin-bottom: 32px; border-radius: 0; }
.album-link { margin-bottom: 32px; border-radius: 0; }
.album-link-label { bottom: 16px; padding: 12px 16px; border-radius: 4px; font-weight: 500; background: rgb(21 21 21 / 84%); }
.article-body { max-width: 680px; margin-inline: auto; font-size: 20px; line-height: 1.65; overflow-wrap: anywhere; }
.article-body p { margin: 0 0 24px; }
.article-body a { color: #b41e25; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body blockquote { margin-inline: 0; padding-inline-start: 20px; border-inline-start: 3px solid var(--line); }
.button-link, .video-cta { min-height: 44px; padding: 12px 20px; border-radius: 4px; font-size: 14px; font-weight: 500; }
.button-link { margin-top: 24px; }
.video-cover { border-radius: 4px; }
.video-cover .article-image { margin: 0; }
.video-card-compact { border-radius: 4px; font-weight: 500; }

.related { margin-top: 48px; padding-top: 24px; }
.related > h2 { margin-bottom: 24px; font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related-card { border: 0; border-radius: 0; background: none; }
.related-card img { height: 176px; border-radius: 4px; }
.related-card span { padding: 16px 0; gap: 8px; }
.related-card strong { font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: -.015em; overflow-wrap: anywhere; }
.related-topic { padding: 24px; border: 1px solid var(--line); border-radius: 4px; background: #f7f6f3; }
.channel-panel { margin-top: 48px; padding: 24px 0; border-block: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); }
.channel-panel strong { font-size: 20px; font-weight: 500; }
.channel-links { gap: 24px; }
.channel-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; }

.site-footer { padding-block: 32px; background: #f7f6f3; }
.footer-inner { align-items: flex-start; flex-direction: column; gap: 20px; }
.footer-nav { flex-wrap: wrap; justify-content: flex-start; gap: 8px 20px; font-size: 13px; }
.footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:not(:first-child):not(.footer-channel)::before { content: none; }
.footer-nav .footer-channel { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.cookie-panel__inner { border-radius: 4px; }
.cookie-panel__button, .cookie-panel__details { min-height: 44px; display: inline-flex; align-items: center; border-radius: 4px; font-weight: 500; }
.back-to-top { border-radius: 4px; box-shadow: none; }
.static-page h1 { font-size: 44px; font-weight: 500; }
.static-page h2 { font-weight: 500; }
.empty-state, .service-page__card, .service-news-item { border-radius: 4px; }
.service-page__card h1 { font-size: 44px; font-weight: 500; }
.service-news-item span { font-weight: 500; }

@media (max-width: 1100px) {
  .logo { font-size: 28px; }
  .main-nav { gap: 16px; }
  .main-nav .nav-secondary { display: none; }
  .date-heading + .news-card .news-card-title { font-size: 32px; }
}

@media (max-width: 960px) {
  .news-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 0; flex-wrap: wrap; gap: 0; padding-top: 12px; justify-content: flex-start; }
  .logo { width: 100%; gap: 8px; font-size: 22px; letter-spacing: -.025em; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-text { display: block; max-width: none; font-size: 22px; line-height: 1; white-space: nowrap; }
  .main-nav { width: 100%; justify-content: space-between; gap: 0; margin-top: 8px; font-size: 13px; }
  .main-nav a { min-width: 44px; padding-inline: 4px; }
  .main-nav > a:first-child { font-size: 13px; }
  .main-nav > a:first-child::after { content: none; }
  .page-content { padding-block: 24px 40px; }
  .eyebrow { margin-bottom: 8px; font-size: 13px; line-height: 20px; }
  .page-heading { display: block; padding-bottom: 20px; margin-bottom: 16px; }
  .page-heading .eyebrow { margin-bottom: 8px; }
  .news-page h1 { font-size: 36px; }
  .date-heading { margin-top: 20px; padding-bottom: 8px; gap: 12px; font-size: 14px; }
  .date-heading::before { width: 20px; }
  .news-card-link { gap: 16px; padding-block: 20px; }
  .news-card-copy { gap: 8px; }
  .news-card-media { width: 88px; height: 72px; margin-top: 28px; }
  .news-card-title { font-size: 20px; }
  .date-heading + .news-card .news-card-link { flex-direction: column; align-items: stretch; padding: 16px 0 24px; gap: 16px; }
  .date-heading + .news-card .news-card-media { width: 100%; height: 200px; margin: 0; }
  .date-heading + .news-card .news-card-title { font-size: 26px; line-height: 1.18; }
  .pager { flex-wrap: wrap; gap: 4px; }
  .pager a, .pager span { min-width: 28px; padding: 8px 4px; }
  .pager .pager-action { padding-inline: 12px; }
  .back-link { margin-bottom: 16px; font-size: 13px; }
  .news-detail h1 { font-size: 30px; line-height: 1.16; }
  .article-header { padding-bottom: 20px; }
  .article-header > p:not(.eyebrow) { margin-top: 16px; font-size: 13px; }
  .article-dates { margin-top: 8px; gap: 8px 16px; font-size: 12px; }
  .album-link, .article-image { margin-bottom: 24px; }
  .album-link-label { bottom: 12px; min-height: 40px; padding: 8px 12px; font-size: 12px; }
  .article-body { font-size: 18px; }
  .article-body p { margin-bottom: 20px; }
  .related { margin-top: 32px; padding-top: 20px; }
  .related > h2 { margin-bottom: 20px; font-size: 24px; }
  .related-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .related-card { border-bottom: 1px solid var(--line); }
  .related-card a { flex-direction: row-reverse; gap: 16px; padding-block: 16px; }
  .related-card span { flex: 1; min-width: 0; padding: 0; }
  .related-card img { width: 88px; height: 72px; min-height: 0; object-fit: cover; }
  .related-card strong { font-size: 18px; line-height: 1.3; }
  .channel-panel { margin-top: 32px; padding: 20px 0; gap: 16px; }
  .site-footer { padding-block: 24px; }
  .footer-nav { gap: 0 20px; }
  .static-page h1, .service-page__card h1 { font-size: 34px; }
}

@media (max-width: 360px) {
  .logo-mark { width: 36px; height: 36px; }
  .logo-text { font-size: 20px; }
  .news-card-media { width: 72px; height: 64px; }
  .news-detail h1 { font-size: 28px; }
}
