/* Переключение видимости по языкам */
html.lang-ru [data-lang="ro"] { display: none !important; }
html.lang-ro [data-lang="ru"] { display: none !important; }

/* Шапка с фоном и логотипом */
.site-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 18px 13px;
  color: #f9fafb;
  overflow: hidden;

  background-image:
    linear-gradient(135deg, rgba(15,23,42,0.90), rgba(15,23,42,0.80)),
    url("/assets/images/head-line.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Ссылка-логотип (флаг + текст) */
.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-image {
  width: 40px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.6);
}

.logo-title h1 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.subtitle {
  margin: 2px 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Переключатель языков */
.lang-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-switcher button {
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(15,23,42,0.25);
  color: inherit;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Подсветка активного языка — по классу на <html> */
html.lang-ru .lang-switcher button[data-set-lang="ru"],
html.lang-ro .lang-switcher button[data-set-lang="ro"] {
  background: #f9fafb;
  color: #0f172a;
  border-color: #f9fafb;
}

/* Hover */
.lang-switcher button:hover {
  background: rgba(249,250,251,0.12);
}

/* Подвал */
.site-footer{
  margin-top:24px;
  padding:24px 16px;
  background:linear-gradient(180deg, rgba(13,20,34,0.98) 0%, rgba(9,14,24,0.98) 100%);
  color:rgba(255,255,255,0.86);
  border-top:1px solid rgba(255,255,255,0.08);
}

.site-footer .footer-inner{
  max-width:1100px;
  margin:0 auto;
  text-align:center;
}

.site-footer .footer-title{
  font-weight:800;
  font-size:16px;
  margin-bottom:6px;
}

.site-footer .footer-subtitle{
  font-size:13px;
  opacity:0.9;
  margin-bottom:10px;
}

.site-footer .footer-note{
  font-size:12px;
  opacity:0.75;
}

/* Большая картинка на главной */
.index-hero {
  display: flex;
  justify-content: center;
}

.hero-image {
  width:70%;
  max-height:320px;
  object-fit:cover;
  border-radius:18px;
  display:block;
}


.index-content{
  max-width:980px;
  margin-top:1.75rem;
}

/* Картинка в статье справа */
.article-image-right {
  margin-bottom: 15px;
}

.article-image-right img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* ПК: картинка справа с обтеканием */
@media (min-width: 900px) {
  .article-image-right {
    float: right;
    max-width: 50%;
    margin-left: 20px;
    margin-bottom: 10px;
  }
}

/* Мобилка: картинка сверху */
@media (max-width: 899px) {
  .article-image-right {
    float: none;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .article-image-right img {
    width: 100%;
  }
}

.article-image-right figcaption {
    text-align: center;
    font-style: italic;
}

/* Заголовок и подзаголовок на главной */
.index-title {
  text-align: center;
  margin-top: -0.25rem;
  margin-bottom: 0.25rem;
}

.index-subtitle {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: #4b5563;
}

/* Текст на главной — по обеим краям */
.index-content p {
  text-align: justify;
}

/* Подсветка активного пункта оглавления */
.toc li.toc-current {
  background-color: rgba(17, 24, 39, 0.06);
  border-radius: 10px;
  padding: 2px 6px;
}

.toc li.toc-current > a {
  font-weight: 700;
}


/* Горизонтальный таймлайн под шапкой */
.timeline-bar {
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.4rem 0 0.6rem;
}

.timeline-scroll {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

/* Скрываем стандартные скроллбары */
.timeline-scroll::-webkit-scrollbar {
  display: none;
}
.timeline-scroll {
  scrollbar-width: none;
}

/* Картинка таймлайна — шире экрана */
.timeline-image {
  display: block;
  max-height: 180px;
  height: auto;
  max-width: none;
  -webkit-user-drag: none;
  user-drag: none;
}

/* ПК: повыше таймлайн */
@media (min-width: 900px) {
  .timeline-image {
    max-height: 210px;
  }
}

/* Состояние перетаскивания */
.timeline-scroll.is-dragging {
  cursor: grabbing;
}


/* Оверлей для увеличенного таймлайна */
.timeline-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.timeline-zoom-overlay.is-visible {
  display: flex;
}

.timeline-zoom-inner {
  max-width: 96vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-radius: 12px;
  background: #0b1120;
}

.timeline-zoom-image {
  display: block;
  height: 90vh;
  width: auto;
}

/* Таймлайн прилипает к верху экрана при скролле (ПК + моб) */
.timeline-bar {
  position: sticky;
  top: 0;
  z-index: 30; /* выше основного контента, ниже оверлея зума */
}

/* Фиксированный режим таймлайна (fallback к JS-реализации) */
.timeline-bar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
}

/* Перетаскивание увеличенного таймлайна */
.timeline-zoom-inner {
  cursor: grab;
}

.timeline-zoom-inner.is-dragging {
  cursor: grabbing;
}

/* Подсказка с ладошкой/пальцем поверх таймлайна */
.timeline-scroll {
  position: relative; /* чтобы можно было позиционировать подсказку */
}

/* Общий контейнер подсказки */
.timeline-hand-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  animation: timelineHintFade 2.3s ease-out forwards;
}

.timeline-hand-hint-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(15, 23, 42, 0.82); /* тёмный полупрозрачный фон */
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
}

.timeline-hand-icon {
  font-size: 20px;
  line-height: 1;
  animation: timelineHandMove 1.3s ease-in-out 0.25s 1;
}

.timeline-hand-arrows {
  display: flex;
  gap: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.timeline-hand-arrows .arrow {
  animation: timelineArrowPulse 1.3s ease-in-out 0.25s 1;
}

/* Разные иконки для ПК и мобайл */
.timeline-hand-hint--desktop .timeline-hand-icon::before {
  content: "✋";
}

.timeline-hand-hint--mobile .timeline-hand-icon::before {
  content: "👆";
}

/* Состояние скрытия */
.timeline-hand-hint--hide {
  animation: timelineHintFadeOut 0.25s ease-out forwards;
}

/* Анимации */
@keyframes timelineHintFade {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes timelineHandMove {
  0% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(14px);
  }
  60% {
    transform: translateX(-14px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes timelineArrowPulse {
  0% {
    transform: translateX(0);
    opacity: 0.2;
  }
  30% {
    transform: translateX(-4px);
    opacity: 1;
  }
  60% {
    transform: translateX(4px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0.4;
  }
}

@keyframes timelineHintFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .timeline-hand-hint-bubble {
    padding: 5px 8px;
    gap: 2px;
  }

  .timeline-hand-icon {
    font-size: 18px;
  }

  .timeline-hand-arrows {
    font-size: 12px;
    gap: 6px;
  }
}


/* FIX: hamburger icon position and host blocks */
.index-content {
  position: relative;
}

.article-header {
  position: relative;
}

/* Base hamburger pill button */
.toc-jump-btn {
  position: absolute;
  top: -0.75rem;
  right: -0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 25;
}

/* Slightly different offsets for index vs article if needed */
.toc-jump-btn--index {
  top: -0.75rem;
  right: -0.5rem;
}

.toc-jump-btn--article {
  top: -0.75rem;
  right: -0.5rem;
}

/* Three bars inside the hamburger */
.toc-jump-btn-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toc-jump-btn-inner span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #f9fafb;
}

/* Mobile: немного компактнее */
@media (max-width: 480px) {
  .toc-jump-btn {
    width: 28px;
    height: 28px;
    top: -1rem;
    right: -0.9rem;
  }

  .toc-jump-btn-inner span {
    width: 14px;
  }
}

/* === MOBILE HEADER FIX FINAL === */

/* MOBILE HEADER FIX — ONLY MOBILE PART + BASE TITLE SETTINGS */

/* Base title settings (desktop + mobile) */
.site-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.site-title-main,
.site-title-sub {
  display: inline;
}

.site-title-main + .site-title-sub {
  margin-left: 0.25rem;
}

/* MOBILE VERSION */
@media (max-width: 768px) {

  /* Header padding optimized */
  .site-header {
    padding: 17px 18px 12px;
  }

  /* RU/RO floating at the top-right */
  .lang-switcher {
    position: absolute;
    top: 8px;
    right: 16px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
  }

  /* FORCE 2‑LINE title on mobile */
  .site-title-main,
  .site-title-sub {
    display: block;
    margin-left: 0;
  }

  .site-title-sub {
    margin-top: 2px;
  }

  /* Slogan: no fixed height */
  .subtitle {
    margin: 4px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.25;
    max-width: 100%;
    height: auto;
    overflow: visible;
  }
}


/* === TITLE SPLIT FOR DESKTOP/MOBILE === */

/* по умолчанию показываем однострочный вариант, двухстрочный скрыт */
.site-title .title-ru-one,
.site-title .title-ro-one {
  display: inline;
}

.site-title .title-ru-two,
.site-title .title-ro-two {
  display: none;
}

/* мобилка: включаем двухстрочный вариант и скрываем однострочный */
@media (max-width: 768px) {
  .site-title .title-ru-one,
  .site-title .title-ro-one {
    display: none;
  }

  .site-title .title-ru-two,
  .site-title .title-ro-two {
    display: block;
  }
}


/* === HEADER TITLE DESKTOP/MOBILE FINAL FIX === */

/* Базово показываем однострочные заголовки, скрываем двухстрочные */
.title-ru-one,
.title-ro-one {
  display: inline;
}

.title-ru-two,
.title-ro-two {
  display: none;
}

/* Мобилка: включаем двухстрочные, однострочные скрываем */
@media (max-width: 768px) {
  .title-ru-one,
  .title-ro-one {
    display: none !important;
  }

  .title-ru-two,
  .title-ro-two {
    display: block !important;
  }
}

/* Явный десктоп: на всякий случай ещё раз фиксируем поведение */
@media (min-width: 769px) {
  .title-ru-one,
  .title-ro-one {
    display: inline !important;
  }

  .title-ru-two,
  .title-ro-two {
    display: none !important;
  }
}

/* Блок байки */
.article-aside-note {
  background: #fff7e6;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  margin: 1rem 0 1rem 1.5rem;
  font-size: 0.9rem;
  text-align: justify;
  border-radius: 10px;
}

.article-aside-note .article-aside-title {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #92400e;
  margin-bottom: 0.25rem;
}

@media (min-width: 900px) {
  .article-aside-note {
    float: right;
    max-width: 40%;
  }
}

@media (max-width: 899px) {
  .article-aside-note {
    float: none;
    max-width: 100%;
    margin: 1rem 0;
  }
}

/* === Рекомендуем к чтению — финальный === */
.article-recommended-v2 {
  margin-top: 1.2rem;
  padding: 1.2rem 1.3rem;
  border-radius: 12px;
  background: #FFFFE1;
  border: 1px solid #fdfb6a;
  display: flex;
  gap: 1.1rem;
  align-items: center;
  font-size: 0.95rem;
}

.article-recommended-icon {
  width: 58px;
  height: 58px;
  background-image: url('/assets/images/book.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: 0 0 auto;
}

.article-recommended-title {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #374151;
  margin-bottom: 0.4rem;
}

.article-recommended-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.article-recommended-list li {
  text-align: justify;
  margin-bottom: 0.3rem;
}

.article-recommended-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 899px) {
  .article-recommended-icon {
    width: 48px;
    height: 48px;
  }
}


/* === ARTICLE IMAGE ZOOM OVERLAY FIXED SCALING & SCROLL === */
.image-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 0;
}

.image-zoom-overlay.is-visible {
  display: flex;
}

.image-zoom-inner {
  max-width: 95vw;
  max-height: 95vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-zoom-img {
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 95vh;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}

body.image-zoom-open {
  overflow: hidden;
}

.social-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.social-list li {
  display: inline-flex;
  align-items: center;
  margin: 0 0.5rem 0.5rem 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f3f4f6;
}

.social-list a {
  margin-left: 8px;
  font-size: 0.95rem;
  text-decoration: none;
}

.social-list a:hover {
  text-decoration: underline;
}

.social-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.85;
}

.index-image-right {
  width: 60%;
  float: right;       /* аналог align="right" */
  padding: 6px;       /* отступ вокруг картинки */
  border-radius: 17px;  /* если хочешь красиво */
}

/* Мини-галерея на главной (стрелки + точки) */
.mini-gallery {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.mini-gallery-viewport {
  overflow: hidden;
  border-radius: 17px;
}

.mini-gallery-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mini-gallery-track::-webkit-scrollbar {
  display: none;
}

.mini-gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.mini-gallery-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 17px;
}

.mini-gallery--hero {
  width: 70%;
}

.mini-gallery--hero .mini-gallery-slide img {
  max-height: 320px;
  object-fit: cover;
}

.mini-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.85);
  color: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.mini-gallery-prev { left: 10px; }
.mini-gallery-next { right: 10px; }

.mini-gallery-arrow:hover {
  background: rgba(248, 250, 252, 0.98);
}

.mini-gallery-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.70);
  border: 1px solid rgba(15, 23, 42, 0.10);
  z-index: 2;
  backdrop-filter: blur(6px);
}

.mini-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.22);
  cursor: pointer;
}

.mini-gallery-dot.is-active {
  width: 18px;
  background: rgba(37, 99, 235, 0.9);
}

@media (hover: none) and (pointer: coarse) {
  .mini-gallery-arrow {
    opacity: 0.85;
  }
}

@media (min-width: 900px) {
  .mini-gallery--hero {
    width: 70% !important;
    max-width: 70%;
    margin: 0 auto;
    flex: 0 0 auto; /* ВАЖНО: убирает растягивание во flex */
  }
}


/* === MOBILE FULL-WIDTH INTRO + WALL IMAGE FIX === */

@media (max-width: 899px) {
  /* intro.jpg на всю ширину */
  .hero-image {
    width: 100% !important;
    max-height: none !important;
    border-radius: 17 !important;
  }

  .mini-gallery--hero {
    width: 100% !important;
  }

  /* wall.jpg между абзацами — тоже на всю ширину */
  .index-image-right {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 1rem 0 !important;
    border-radius: 17 !important;
  }

  .index-image-right img,
  img.index-image-right {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}


/* Верхний ряд: плашка + языки */
.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: -5px;
}

/* Плашка "Настенный постер" */
.header-poster-badge {
  background: #1e88e5;
  padding: 2px 11px;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-left:50px;
}

/* Чтобы логотип был центрирован под верхним рядом */
.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Стикий-кнопка "Купить постер" */
.poster-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 8px 12px;
  pointer-events: none;
}

.poster-sticky-button {
  pointer-events: auto;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  background: #009437;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* Мобилка: кнопка почти на всю ширину */
@media (max-width: 768px) {
  .poster-sticky-bar {
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
  }

  .poster-sticky-button {
    width: 100%;
    max-width: 480px;
    justify-content: center;
  }

  /* На мобилке языки остаются в строке с плашкой */
  .lang-switcher {
    position: static;
    margin-left: auto;
  }

  .header-top-row {
    align-items: center;
  }
}

/* Десктоп: панелька справа снизу */
@media (min-width: 769px) {
  .poster-sticky-bar {
    left: auto;
    right: 24px;
    bottom: 24px;
    justify-content: flex-end;
  }

  .poster-sticky-button {
    width: 100%;
    max-width: 420px;
  }
}


.poster-sticky-icon {
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* === TIMELINE ZOOM + CENTERING FIX === */

/* Центрирование таймлайна, когда он уже помещается по ширине экрана */
.timeline-scroll--center {
  display: flex;
  justify-content: center;
}

.timeline-scroll--center .timeline-image {
  max-height: 100%;
}

/* FIX: не даём режиму center снимать ограничение высоты таймлайна */
.timeline-scroll--center .timeline-image {
  max-height: 180px;
  height: auto;
}

@media (min-width: 900px) {
  .timeline-scroll--center .timeline-image {
    max-height: 210px;
  }
}


/* Кнопка закрытия для увеличенного таймлайна */
.timeline-zoom-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
}

.timeline-zoom-close:focus {
  outline: 2px solid rgba(248, 250, 252, 0.9);
  outline-offset: 2px;
}

/* Мобильный режим: таймлайн в зуме занимает ~80% высоты экрана,
   по ширине может выходить за экран (горизонтальный скролл) */
@media (max-width: 768px) {
  .timeline-zoom-overlay {
    padding: 0;
    align-items: center;
    justify-content: center;
  }

  .timeline-zoom-inner {
    max-width: 100vw;
    max-height: 80vh;
    overflow: auto;
  }

  .timeline-zoom-image {
    width: auto;
    height: 80vh;
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
  }

  .timeline-zoom-close {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    top: 10px;
    right: 10px;
  }
}


/* === WIDE-SCREEN TIMELINE CENTERING === */
/* На очень широких экранах, когда вьюпорт шире самой полосы таймлайна,
   центрируем её по горизонтали. Для обычных экранов поведение не меняется. */
@media (min-width: 1600px) {
  .timeline-bar {
    display: flex;
    justify-content: center;
  }

  .timeline-scroll {
    display: flex;
    justify-content: center;
  }
}

body.page-poster .poster-main h3 { text-align:center; }

body.page-poster .poster-main .index-subtitle{ text-align:center; }

body.page-poster .poster-main .index-title{ text-align:center; }

/* Красный крестик для пункта "никакой политики" */
.no-mark {
  position: relative;
  padding-left: 1.6rem;
}

.no-mark::before {
  content: "✖"; /* красный крест */
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.95rem;
  color: #dc2626; /* ярко-красный */
  font-weight: bold;
}


/* Чип-лейбл для цены на лендинге постера */
.chip-price {
  display: inline-block;
  padding: 4px 10px;
  background: #dcfce7;
  border-radius: 8px;
  font-weight: 700;
  color: #166534;
  font-size: 1rem;
}

/* Маленькая синяя кнопка "Купить постер" под статьёй */
.buy-poster-inline {
  display: inline-block;
  background: #1e88e5; /* тот же синий, что в шапке */
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.buy-poster-inline:hover {
  background: #1874c7;
  box-shadow: 0 4px 10px rgba(24, 116, 199, 0.35);
}

.article-buy-poster {
  margin: 1.5rem 0 0;
  text-align: center;
}

/* Линия под слоганом */
.footer-divider {
  width: 80px;
  height: 2px;
  margin: 10px auto 8px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  opacity: 0.7;
}

/* Блок ссылок в футере */
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "terms privacy"
    "contacts contacts";
  gap: 12px 18px;
  font-size: 0.85rem;
  margin-top: 6px;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  align-items: start;
}

.footer-links .footer-link {
  display: block;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s ease;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.footer-links a .footer-link-line{
  display:block;
}

.footer-links a:hover {
  color: #3b82f6;
}

.footer-links .footer-link-terms { grid-area: terms; }
.footer-links .footer-link-privacy { grid-area: privacy; }
.footer-links .footer-link-contacts { grid-area: contacts; }

/* ПК: стандартно в 3 колонки */
@media (min-width: 900px) {
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "contacts terms privacy";
    gap: 10px 14px;
  }
}

