/* ============================================================
   UA CENTENARY — Усть-Алданский район 100 лет
   Единый файл стилей
   ============================================================ */


/* ════════════════════════════════════════════════════════════════
   ОПТИМИЗАЦИЯ ЗАГРУЗКИ ШРИФТОВ
   Подгоняем системные шрифты так чтобы при подмене на Google Fonts
   не было сдвига и мерцания (FOUT/FOIT)
   ════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Cormorant Fallback';
  src: local('Georgia'), local('Times New Roman'), local('serif');
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Montserrat Fallback';
  src: local('Helvetica Neue'), local('Arial'), local('sans-serif');
  size-adjust: 100%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* Скрываем тело пока CSS не применился — fade-in анимация при загрузке */
html.ua-loading body { opacity: 0; }

body { opacity: 1; transition: opacity 0.2s ease-in; }

/* Скрываем хедер/футер Astra на этой странице */
body.ua-centenary-page #masthead,
body.ua-centenary-page .ast-site-header-wrap,
body.ua-centenary-page .site-header,
body.ua-centenary-page #colophon,
body.ua-centenary-page .site-footer,
body.ua-centenary-page .ast-site-footer-wrap,
body.ua-centenary-page .entry-header,
body.ua-centenary-page .entry-footer,
body.ua-centenary-page .ast-breadcrumbs-wrap,
body.ua-centenary-page .post-navigation,
body.ua-centenary-page .comments-area { display: none !important; }

/* Убираем отступы Astra */
body.ua-centenary-page #content,
body.ua-centenary-page .ast-container,
body.ua-centenary-page #primary,
body.ua-centenary-page .entry-content,
body.ua-centenary-page .ast-article-single {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

body.ua-centenary-page .site-content { padding-top: 0 !important; }

body.ua-centenary-page { background: #0D1117 !important; }

/* ── НАВИГАЦИЯ ── */
#ua100-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(13,17,23,0.95) 0%, transparent 100%);
  backdrop-filter: blur(10px);
  transition: background 0.3s;
}

#ua100-nav.scrolled {
  background: rgba(13,17,23,0.97);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}


#ua100 .ua-footer-logo {
  font-family:'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif; font-size:2.2rem;
  font-weight:300; color:#C9A84C !important;
}

#ua100 .ua-footer-copy {
  font-size:0.65rem; color:rgba(255,255,255,0.2); letter-spacing:0.1em;
}

/* На главной — hero занимает весь экран, навигация поверх него */
/* Главная: hero начинается под фиксированной навигацией */
body.ua-page-home #ua-main { padding-top: 76px; }

/* Старый блок навигации в HTML-блоках (если остался) — спрятать */

/* Меню Astra-стандартного формата (li wrappers) */

/* ════════════════════════════════════════════════════════════════
   ОБЩИЕ СТИЛИ: ХЕДЕР, ФУТЕР, ВНУТРЕННИЕ СТРАНИЦЫ
   ════════════════════════════════════════════════════════════════ */

:root {
  --ua-bg-light:    #FAF6EE;
  --ua-bg-paper:    #F2EBDD;
  --ua-text-dark:   #2A2520;
  --ua-text-muted:  #6B5D4F;
}

/* Убираем белые полоски/границы которые Astra добавляет между секциями */
#ua100-nav,
#ua100-nav::after,
#ua-main,
#ua-main::before,
#ua-main::after,
.ast-container,
#content,
#primary,
.site-content {
  border: 0 !important;
  box-shadow: none !important;
}

/* Главное — фон main и body одинаковый, никаких разрывов */
body { background: #0D1117 !important; }

/* Убираем нижнюю границу хедера — она золотая, не белая, но при определённых случаях может казаться полосой */
#ua100-nav { border-bottom: 1px solid rgba(201,168,76,0.15); }

/* ── HEADER (общий, поверх главной + на внутренних страницах) ── */

/* Единый стиль навигации на всех страницах сайта */
#ua100-nav {
  background: rgba(13,17,23,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

#ua100-nav.scrolled {
  background: rgba(13,17,23,0.99);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Базовый хедер */
#ua100-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  padding: 18px 0;
  transition: background 0.4s, padding 0.3s, box-shadow 0.4s, border-color 0.3s;
}


/* ── ЛОГОТИП ── */


/* ── МЕНЮ ── */


/* ── БУРГЕР ── */


/* Отступ под фиксированный хедер на внутренних страницах */

/* Отступ под фиксированный хедер на внутренних страницах */
body.ua-page-inner #ua-main { padding-top: 76px; }

/* ── ВНУТРЕННИЕ СТРАНИЦЫ (светлые) ── */
body.ua-page-inner {
  background: #FAF6EE !important;
  color: #2A2520;
  font-family: 'Montserrat', 'Montserrat Fallback', system-ui, sans-serif;
}

body.ua-page-inner #content,
body.ua-page-inner .ast-container,
body.ua-page-inner #primary,
body.ua-page-inner .entry-content,
body.ua-page-inner .ast-article-single,
body.ua-page-inner .site-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  background: #FAF6EE !important;
}

/* ── ФУТЕР ── */
.ua-site-footer {
  background: #080c10;
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 60px 48px 40px;
}

.ua-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.ua-footer-logo {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  color: #C9A84C;
}

.ua-footer-tagline {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #A8B5C1;
  line-height: 1.7;
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-style: italic;
}

.ua-footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  text-align: right;
  line-height: 1.7;
}

/* На главной — hero занимает весь экран, навигация поверх него */
/* Главная: hero начинается под фиксированной навигацией */
body.ua-page-home #ua-main { padding-top: 76px; }

/* Старый блок навигации в HTML-блоках (если остался) — спрятать */

/* Меню Astra-стандартного формата (li wrappers) */

/* ── АДАПТИВ ── */

/* Если меню не помещается (много пунктов) — переключаемся на бургер раньше */


@media (max-width: 900px) {
  
  #ua100-nav { padding: 14px 0; }
  
  
  
  .ua-container { padding: 0 24px; }
  .ua-page-header { padding: 60px 0 40px; }
  .ua-page-body { padding: 40px 24px; }
  
  .ua-list-item { grid-template-columns: 1fr; }
  .ua-list-photo { min-height: 220px; }
  .ua-list-text { padding: 24px; }
  
  .ua-footer-inner { flex-direction: column; align-items: flex-start; }
  .ua-footer-copy { text-align: left; }
}

/* На внутренних страницах body имеет цвет КОНТЕНТА (светлый),
   а навигация — свой тёмный фон. Никаких прозрачных зон между ними. */
body.ua-page-inner { background: #FAF6EE !important; }

body.ua-page-inner #ua-main { background: #FAF6EE !important; }

body.ua-page-inner #content,
body.ua-page-inner .ast-container,
body.ua-page-inner #primary,
body.ua-page-inner .entry-content,
body.ua-page-inner .ast-article-single,
body.ua-page-inner .site-content,
body.ua-page-inner .ua-page-content,
body.ua-page-inner .ua-page-header {
  background: #FAF6EE !important;
  margin-top: 0 !important;
}

/* Убираем любые отступы между header и первым элементом main */
body.ua-page-inner #ua-main > *:first-child { margin-top: 0 !important; }

body.ua-page-inner .ua-page-content { margin-top: 0 !important; padding-top: 0 !important; }

body.ua-page-inner .ua-page-header { padding-top: 80px !important; }

/* Скрываем стандартные мета-блоки Astra с автором/датой/комментариями */
.ua-single-post .entry-meta,
.ua-single-post .ast-author-details,
.ua-single-post .ast-author-name,
.ua-single-post .ast-author-box,
.ua-single-post .post-meta,
.ua-single-post .entry-header .posted-by,
.ua-single-post .entry-header .posted-on,
.ua-single-post #comments,
.ua-single-post .comments-area,
.ua-single-post .comment-respond,
.ua-single-post #respond,
.ua-archive-page .entry-meta,
.ua-archive-page .post-meta {
  display: none !important;
}

/* ════════════════════════════════════════════════════════════════
   ФИНАЛЬНЫЕ ФИКСЫ: МОБИЛЬНОЕ МЕНЮ
   Принудительно показываем пункты меню в бургер-окне
   ════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════
   ВЫПАДАЮЩИЕ ПОДМЕНЮ
   ════════════════════════════════════════════════════════════════ */

/* Родительский пункт с подменю — позиционирование контекста */

/* Маркер у пунктов с подменю — стрелка вниз */


/* Само подменю */

/* Невидимый "мостик" сверху — чтобы курсор не терял подменю при переходе */

/* Открыть при наведении */

/* Пункты подменю */


/* Активный пункт подменю */

/* ── Подменю в мобильном бургере: сворачиваются, раскрываются по клику ── */
@media (max-width: 1100px) {
  /* Родительский пункт с подменю — стрелка справа, текст не накрывает её */
  
  
  
  
  /* Подменю по умолчанию свёрнуто */
  
  
  
  /* Развёрнутое подменю */
  
  
  
  
}

/* Скрываем подчёркивание у родителя пока открыто подменю — чтобы не было двух золотых линий */

/* Глобально — body не должен горизонтально скроллиться */
body { overflow-x: hidden; }

/* ════════════════════════════════════════════════════════════════
   ФИНАЛЬНЫЙ ФИКС СТРЕЛКИ В МОБИЛЬНОМ МЕНЮ (приоритет выше всего)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  /* Сначала убираем старую десктопную стрелку */
  
  
  /* При открытом подменю стрелка вверх */
  
  
  /* Гарантируем место под стрелку */
  
}

/* ════════════════════════════════════════════════════════════════
   ВИЗУАЛЬНОЕ ОТДЕЛЕНИЕ ЗОНЫ СТРЕЛКИ В МОБИЛЬНОМ МЕНЮ
   (клик на текст → страница, клик на стрелку → раскрыть подпункты)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  /* Тонкая разделительная линия между текстом и стрелкой */
  
  
  /* При наведении на стрелочную зону подсвечиваем её */
  
  
  /* Активное (открытое) состояние */
  
}


/* ============================================================
   УСТЬ-АЛДАНСКИЙ РАЙОН — 100 ЛЕТ
   ua-centenary.css  |  подключается через functions.php
   ============================================================ */

/* ── ПЕРЕМЕННЫЕ ── */
#ua100 {
  --gold:       #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark:  #8B6914;
  --deep:       #0D1117;
  --deep2:      #141B24;
  --deep3:      #1C2633;
  --white:      #F5F0E8;
  --silver:     #A8B5C1;
  font-family: 'Montserrat', 'Montserrat Fallback', system-ui, sans-serif;
  color: #F5F0E8 !important;
  background: #0D1117;
  overflow-x: hidden;
}

#ua100 * { box-sizing: border-box; margin: 0; padding: 0; }

/* Перекрываем цвета Astra */
#ua100 h1, #ua100 h2, #ua100 h3,
#ua100 h4, #ua100 h5, #ua100 h6 { color: #F5F0E8 !important; }

#ua100 p { color: #A8B5C1; }

/* ── HERO ── */
#ua100 .ua-hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0D1117;
}

#ua100 .ua-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(46,125,158,0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0a0e14 0%, #0D1117 60%, #0a0e14 100%);
}

#ua100 .ua-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(201,168,76,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 10%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 30%, rgba(201,168,76,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 15%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 60%, rgba(201,168,76,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 55%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(2px 2px at 78% 72%, rgba(201,168,76,0.45) 0%, transparent 100%);
}

#ua100 .ua-aurora {
  position: absolute;
  top: 0; left: -20%; right: -20%;
  height: 50%;
  opacity: 0.3;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(46,125,158,0.15) 20%,
    rgba(201,168,76,0.1) 40%,
    rgba(46,158,100,0.08) 60%,
    transparent 100%
  );
  animation: ua-aurora 8s ease-in-out infinite alternate;
  filter: blur(20px);
}

#ua100 .ua-landscape {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  overflow: hidden;
}

#ua100 .ua-landscape svg { width: 100%; height: 100%; }

#ua100 .ua-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  animation: ua-fadeUp 1.4s ease both;
}

#ua100 .ua-hero-eyebrow {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 24px;
}

#ua100 .ua-hero-year {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: clamp(7rem, 18vw, 16rem);
  font-weight: 300;
  line-height: 0.85;
  color: transparent !important;
  background: linear-gradient(135deg, #E8C97A 0%, #C9A84C 40%, #8B6914 100%);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: -0.02em;
}

#ua100 .ua-hero-let {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  font-weight: 300;
  font-style: italic;
  color: #E8C97A !important;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

#ua100 .ua-hero-divider {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, #C9A84C, transparent);
  margin: 20px auto;
}

#ua100 .ua-hero-title {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  color: #F5F0E8 !important;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

#ua100 .ua-hero-subtitle {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-style: italic;
  color: #A8B5C1 !important;
  margin-bottom: 48px;
}

#ua100 .ua-scroll-cta {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  cursor: pointer; text-decoration: none;
}

#ua100 .ua-scroll-cta span {
  font-size: 1.0rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: #A8B5C1;
}

#ua100 .ua-scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, #C9A84C, transparent);
  animation: ua-scrollLine 2s ease-in-out infinite;
}

/* ── ОБЩИЕ СТИЛИ СЕКЦИЙ ── */
#ua100 .ua-section-label {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: #C9A84C; margin-bottom: 16px;
}

#ua100 .ua-section-title {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300; line-height: 1.1;
  margin-bottom: 24px;
  color: #F5F0E8 !important;
}

#ua100 .ua-section-title em { color: #F5F0E8 !important; font-style: italic; }

#ua100 .ua-section-body {
  font-size: 0.95rem; font-weight: 300;
  line-height: 1.9; color: #A8B5C1; max-width: 600px;
}

/* ── О РАЙОНЕ ── */
#ua100 .ua-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px;
  background: #0D1117;
}

#ua100 .ua-stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 32px; margin-top: 48px;
}

#ua100 .ua-stat-item {
  border-top: 1px solid rgba(201,168,76,0.2);
  padding-top: 20px;
}

#ua100 .ua-stat-num {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 3.2rem; font-weight: 300;
  color: #E8C97A !important; line-height: 1;
}

#ua100 .ua-stat-label {
  font-size: 0.65rem; letter-spacing: 0.15em;
  color: #A8B5C1; margin-top: 6px; text-transform: uppercase;
}

#ua100 .ua-intro-visual {
  position: relative; display: flex;
  align-items: center; justify-content: center;
}

#ua100 .ua-intro-ring {
  width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  position: relative; animation: ua-rotate 30s linear infinite;
}

#ua100 .ua-intro-ring-dot {
  position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: #C9A84C; box-shadow: 0 0 20px #C9A84C;
}

#ua100 .ua-intro-center {
  position: absolute; text-align: center;
  animation: ua-rotateBack 30s linear infinite;
}

#ua100 .ua-intro-center-year {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 4.2rem; font-weight: 300; color: #C9A84C !important; line-height: 1;
}

#ua100 .ua-intro-center-text {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: #A8B5C1;
}

/* ── ХРОНОЛОГИЯ ── */
#ua100 .ua-timeline-section {
  background: #141B24;
  padding: 100px 0;
}

#ua100 .ua-timeline-header {
  text-align: center; max-width: 700px; margin: 0 auto 80px; padding: 0 48px;
}

#ua100 .ua-timeline-wrapper {
  position: relative; max-width: 1100px; margin: 0 auto; padding: 0 48px;
}

#ua100 .ua-timeline-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, #8B6914 10%, #8B6914 90%, transparent);
  transform: translateX(-50%);
}

#ua100 .ua-timeline-era { margin-bottom: 80px; }

#ua100 .ua-era-label { text-align: center; position: relative; margin-bottom: 48px; }

#ua100 .ua-era-label-inner {
  display: inline-block;
  background: #141B24;
  border: 1px solid rgba(201,168,76,0.3);
  padding: 8px 28px;
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 1.35rem; font-weight: 600;
  color: #C9A84C !important; letter-spacing: 0.1em; position: relative; z-index: 1;
}


#ua100 .ua-era-label-inner-finish {
  display: inline-block;
  background: #141B24;
  padding: 8px 28px;
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 1.35rem; font-weight: 600;
  color: #C9A84C !important; letter-spacing: 0.1em; position: relative; z-index: 1;
}

#ua100 .ua-timeline-item {
  display: grid; grid-template-columns: 1fr 60px 1fr;
  margin-bottom: 40px; opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#ua100 .ua-timeline-item.visible { opacity: 1; transform: translateY(0); }

/* ── ЦИТАТА ── */
#ua100 .ua-quote-section {
  padding:100px 48px; text-align:center;
  position:relative; overflow:hidden;
  background: #0D1117;
}

#ua100 .ua-quote-section::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
}

#ua100 blockquote { position:relative; max-width:800px; margin:0 auto; }

#ua100 .ua-quote-mark {
  font-family:'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif; font-size:10rem;
  line-height:0.5; color:rgba(201,168,76,0.12); display:block; margin-bottom:20px;
}

#ua100 blockquote p {
  font-family:'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size:clamp(2rem,3.5vw,3rem); font-weight:300; font-style:italic;
  line-height:1.5; color:#F5F0E8 !important; margin-bottom:32px;
}

#ua100 .ua-quote-author {
  font-size:0.65rem; letter-spacing:0.3em;
  text-transform:uppercase; color:#C9A84C;
}

/* ── ЛИЧНОСТИ ── */
#ua100 .ua-figures-section {
  padding:100px 48px; max-width:1200px; margin:0 auto;
  background: #0D1117;
}

#ua100 .ua-figures-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:2px; margin-top:60px;
}

#ua100 .ua-figure-card {
  position:relative; padding:40px 32px;
  background:#141B24; border:1px solid rgba(201,168,76,0.08);
  transition: border-color 0.3s, transform 0.3s;
}

#ua100 .ua-figure-card:hover {
  border-color:rgba(201,168,76,0.3); transform:translateY(-4px);
}

#ua100 .ua-figure-num {
  font-family:'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif; font-size:5rem; font-weight:300;
  color:rgba(201,168,76,0.06); position:absolute; top:16px; right:20px; line-height:1;
}

#ua100 .ua-figure-icon { width:40px; height:40px; margin-bottom:20px; color:#C9A84C; }

#ua100 .ua-figure-name {
  font-family:'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif; font-size:1.75rem;
  font-weight:600; margin-bottom:4px; color:#F5F0E8 !important;
}

#ua100 .ua-figure-role {
  font-size:0.8rem; letter-spacing:0.2em; text-transform:uppercase;
  color:#C9A84C; margin-bottom:16px;
}

#ua100 .ua-figure-text { font-size:0.95rem; line-height:1.75; color:#A8B5C1; }

/* ── КУЛЬТУРА ── */
#ua100 .ua-culture-section {
  padding:100px 48px; max-width:1200px; margin:0 auto;
  background: #0D1117;
}

#ua100 .ua-culture-grid {
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:32px; margin-top:60px;
}

#ua100 .ua-culture-card {
  position:relative; padding:48px 40px;
  background:linear-gradient(135deg,#141B24 0%,#1C2633 100%);
  border:1px solid rgba(201,168,76,0.1); overflow:hidden; transition:border-color 0.3s;
}

#ua100 .ua-culture-card:hover { border-color:rgba(201,168,76,0.3); }

#ua100 .ua-culture-card::before {
  content:''; position:absolute; top:0; left:0;
  width:3px; height:0; background:#C9A84C; transition:height 0.4s ease;
}

#ua100 .ua-culture-card:hover::before { height:100%; }

#ua100 .ua-culture-icon { font-size:2.5rem; margin-bottom:20px; }

#ua100 .ua-culture-title {
  font-family:'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif; font-size:1.9rem;
  font-weight:600; margin-bottom:12px; color:#F5F0E8 !important;
}

#ua100 .ua-culture-text { font-size:0.98rem; line-height:1.8; color:#A8B5C1; }

/* ── ФУТЕР ── */
#ua100 .ua-footer {
  border-top:1px solid rgba(201,168,76,0.1);
  padding:60px 48px 40px;
  display:flex; justify-content:space-between; align-items:flex-end;
  background:#080c10;
}

/* ── АДАПТИВ ── */
@media (max-width:900px) {
  #ua100-nav { padding:16px 24px; }
  /* old hide-on-mobile rule removed — burger menu now handles items */
  #ua100 .ua-intro { grid-template-columns:1fr; gap:40px; padding:80px 24px; }
  #ua100 .ua-intro-visual { display:none; }
  /* На мобильных: линия слева, точки точно на линии, события справа */
  /* Wrapper без padding — все отступы внутри элементов */
  #ua100 .ua-timeline-wrapper { padding: 0 !important; }
  
  /* Линия: 30px от левого края контейнера */
  #ua100 .ua-timeline-line { 
    left: 30px; 
    transform: none;
  }
  
  /* Колонки: 60px на точку (центр на 30px), 1fr на текст */
  #ua100 .ua-timeline-item { 
    grid-template-columns: 60px 1fr; 
    gap: 0;
    margin-bottom: 32px;
  }
  
  /* Точка по центру 60-пиксельной колонки = 30px от края = на линии */
  #ua100 .ua-timeline-item.left .ua-tl-dot,
  #ua100 .ua-timeline-item.right .ua-tl-dot { 
    grid-column: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
  }
  
  /* Контент справа от точки */
  #ua100 .ua-timeline-item.left .ua-tl-content,
  #ua100 .ua-timeline-item.right .ua-tl-content { 
    grid-column: 2; 
    text-align: left; 
    padding: 0 24px 0 12px;
  }
  
  /* Скрываем "пустые" колонки */
  #ua100 .ua-timeline-item.left .ua-tl-empty,
  #ua100 .ua-timeline-item.right .ua-tl-empty { display: none; }
  
  /* Заголовок эпохи и шапка таймлайна — с горизонтальными отступами */
  #ua100 .ua-timeline-header,
  #ua100 .ua-era-label { padding-left: 24px; padding-right: 24px; }
  #ua100 .ua-figures-grid { grid-template-columns:1fr; }
  #ua100 .ua-culture-grid { grid-template-columns:1fr; }
  #ua100 .ua-stats-row { gap:20px; }
  #ua100 .ua-footer { flex-direction:column; gap:20px; align-items:flex-start; padding:40px 24px; }
  #ua100 .ua-figures-section,
  #ua100 .ua-culture-section,
  #ua100 .ua-quote-section { padding:80px 24px; }
}

/* ════════════════════════════════════════════════════════════════
   ВОССТАНОВЛЕНИЕ ВЫРАВНИВАНИЯ ТАЙМЛАЙНА ГЛАВНОЙ
   (фикс после добавления overflow-wrap для других списков)
   ════════════════════════════════════════════════════════════════ */

/* Основной таймлайн на главной — стабильная grid-структура */
#ua100 .ua-timeline-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

#ua100 .ua-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}

#ua100 .ua-timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr !important;
  gap: 0 !important;
  margin-bottom: 40px;
}

/* На мобильных таймлайн — линейный (как было) */
@media (max-width: 900px) {
  #ua100 .ua-timeline-wrapper { padding: 0 !important; }
  #ua100 .ua-timeline-line { left: 30px !important; transform: none !important; }
  
  #ua100 .ua-timeline-item {
    grid-template-columns: 60px 1fr !important;
  }
  
  #ua100 .ua-timeline-item.left .ua-tl-content,
  #ua100 .ua-timeline-item.right .ua-tl-content {
    grid-column: 2 !important;
    text-align: left !important;
    padding: 0 24px 0 12px !important;
  }
  
  #ua100 .ua-timeline-item.left .ua-tl-dot,
  #ua100 .ua-timeline-item.right .ua-tl-dot {
    grid-column: 1 !important;
  }
  
  #ua100 .ua-timeline-item.left .ua-tl-empty,
  #ua100 .ua-timeline-item.right .ua-tl-empty {
    display: none !important;
  }
}


@keyframes ua-aurora {
  0%   { transform: skewX(-3deg) translateY(0);   opacity: 0.2; }
  100% { transform: skewX(3deg)  translateY(20px); opacity: 0.4; }
}

@keyframes ua-fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ua-scrollLine {
  0%,100% { opacity: 0.4; } 50% { opacity: 1; }
}

@keyframes ua-rotate { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

@keyframes ua-rotateBack { from{transform:rotate(0deg)} to{transform:rotate(-360deg)} }

#ua-main { background: transparent !important; }


.ua-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.ua-page-content { background: #FAF6EE; min-height: 60vh; padding-bottom: 100px; }

.ua-page-header {
  padding: 80px 0 60px;
  text-align: center;
  background: 
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 70%),
    #FAF6EE;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.ua-page-cover {
  margin-bottom: 40px;
  text-align: center;
  background: rgba(201,168,76,0.04);
  padding: 32px;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 4px;
}

.ua-page-cover img {
  display: inline-block;
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(42,37,32,0.15);
}

.ua-page-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 16px;
}

.ua-page-title {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: #2A2520 !important;
  margin: 0;
  letter-spacing: -0.01em;
}

.ua-page-divider {
  width: 60px; height: 1px;
  background: #C9A84C;
  margin: 28px auto 0;
}

.ua-page-intro {
  margin-top: 24px;
  font-size: 1.1rem;
  font-style: italic;
  color: #6B5D4F;
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  max-width: 700px;
  margin-left: auto; margin-right: auto;
}

.ua-page-body {
  padding: 60px 48px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2A2520;
}

.ua-page-body p { color: #2A2520; margin-bottom: 1.4em; }

.ua-page-body h2 {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 2.2rem; font-weight: 600;
  color: #2A2520 !important;
  margin: 2.5em 0 0.8em;
  line-height: 1.2;
}

.ua-page-body h3 {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 1.6rem; font-weight: 600;
  color: #2A2520 !important;
  margin: 2em 0 0.6em;
}

.ua-page-body a { color: #C9A84C; text-decoration: underline; }

.ua-page-body blockquote {
  border-left: 3px solid #C9A84C;
  padding: 0.5em 0 0.5em 28px;
  margin: 2em 0;
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 1.4rem; font-style: italic;
  color: #6B5D4F;
}

.ua-page-body img {
  max-width: 100%; height: auto;
  margin: 2em 0;
  border-radius: 4px;
}

/* ── СПИСОК «100 …» ── */
.ua-list-page .ua-page-header { padding-bottom: 40px; }

.ua-list-grid { padding: 60px 0; display: flex; flex-direction: column; gap: 32px; }

.ua-list-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: #FFFFFF;
  border: 1px solid rgba(201,168,76,0.15);
  text-decoration: none !important;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
  align-items: stretch;
}

.ua-list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(42,37,32,0.08);
  border-color: rgba(201,168,76,0.4);
}

.ua-list-num {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: #C9A84C !important;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAF6EE;
  border-right: 1px solid rgba(201,168,76,0.15);
  letter-spacing: -0.02em;
}

.ua-list-photo {
  background-size: cover;
  background-position: center;
  background-color: #E8DFC9;
  min-height: 200px;
}

.ua-list-photo--placeholder {
  background: linear-gradient(135deg, #E8DFC9 0%, #D4C9A8 100%);
  position: relative;
}

.ua-list-photo--placeholder::before {
  content: '?';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 4rem;
  color: rgba(201,168,76,0.3);
}

.ua-list-text {
  padding: 32px 32px 32px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ua-list-title {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #2A2520 !important;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.ua-list-excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #6B5D4F !important;
  margin: 0 0 12px 0;
}

.ua-list-more {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A84C;
}

.ua-list-empty {
  text-align: center;
  padding: 80px 32px;
  background: #FFFFFF;
  border: 1px dashed rgba(201,168,76,0.3);
  color: #6B5D4F;
  font-style: italic;
}

/* ════════════════════════════════════════════════════════════════
   ЗАПИСИ И АРХИВЫ (мероприятия, события)
   ════════════════════════════════════════════════════════════════ */

/* ── ОДНА ЗАПИСЬ ── */
.ua-single-post .ua-page-meta,
.ua-single-post .ua-post-meta {
  margin-top: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9A84C;
  font-family: 'Montserrat', 'Montserrat Fallback', system-ui, sans-serif;
  font-weight: 500;
}

.ua-post-cover {
  background: #FAF6EE;
  padding: 0 0 40px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.ua-post-cover .ua-container { padding: 0 48px; }

.ua-post-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(42,37,32,0.12);
}

/* ── НАВИГАЦИЯ МЕЖДУ ЗАПИСЯМИ ── */
.ua-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 60px;
  padding: 40px 0 20px;
  border-top: 1px solid rgba(201,168,76,0.2);
}

.ua-post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  background: #FFFFFF;
  border: 1px solid rgba(201,168,76,0.15);
  text-decoration: none !important;
  transition: border-color 0.3s, transform 0.3s;
}

.ua-post-nav-link:hover {
  border-color: rgba(201,168,76,0.45);
  transform: translateY(-2px);
}

.ua-post-nav-next { text-align: right; }

.ua-post-nav-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A84C;
  font-weight: 600;
}

.ua-post-nav-title {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #2A2520 !important;
  line-height: 1.3;
}

/* ── СЕТКА АРХИВА ── */
.ua-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 60px 0;
}

.ua-archive-card {
  background: #FFFFFF;
  border: 1px solid rgba(201,168,76,0.15);
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.ua-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(42,37,32,0.1);
  border-color: rgba(201,168,76,0.4);
}

.ua-archive-photo {
  background-size: cover;
  background-position: center;
  background-color: #E8DFC9;
  height: 220px;
  flex-shrink: 0;
}

.ua-archive-photo--placeholder {
  background: linear-gradient(135deg, #E8DFC9 0%, #D4C9A8 100%);
  position: relative;
}

.ua-archive-photo--placeholder::before {
  content: '⌘';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: rgba(201,168,76,0.3);
}

.ua-archive-text {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ua-archive-date {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9A84C;
  font-weight: 600;
  margin-bottom: 10px;
}

.ua-archive-title {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2A2520 !important;
  line-height: 1.25;
  margin: 0 0 12px;
}

.ua-archive-excerpt {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #6B5D4F !important;
  margin: 0 0 16px;
  flex: 1;
}

.ua-archive-more {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-top: auto;
}

.ua-archive-empty {
  text-align: center;
  padding: 80px 32px;
  background: #FFFFFF;
  border: 1px dashed rgba(201,168,76,0.3);
  color: #6B5D4F;
  font-style: italic;
}

/* ── ПАГИНАЦИЯ ── */
.ua-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 0 0 60px;
}

.ua-pagination span a,
.ua-pagination span span {
  display: inline-block;
  padding: 10px 16px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6B5D4F;
  text-decoration: none !important;
  border: 1px solid rgba(201,168,76,0.2);
  background: #FFFFFF;
  transition: all 0.3s;
  min-width: 42px;
  text-align: center;
}

.ua-pagination span a:hover {
  border-color: #C9A84C;
  color: #C9A84C;
}

.ua-pagination .current {
  background: #C9A84C;
  color: #FFFFFF !important;
  border-color: #C9A84C;
}

/* ── АДАПТИВ ДЛЯ АРХИВА ── */
@media (max-width: 900px) {
  .ua-archive-grid { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .ua-post-nav { grid-template-columns: 1fr; }
  .ua-post-nav-next { text-align: left; }
  .ua-post-cover .ua-container { padding: 0 24px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .ua-archive-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════════
   СЕТКА «100 ЛЮДЕЙ / 100 ДЕЛ / 100 МЕСТ»
   ════════════════════════════════════════════════════════════════ */

.ua-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 0 80px;
}

.ua-grid-item {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid rgba(201,168,76,0.18);
  text-decoration: none !important;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.ua-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(42,37,32,0.1);
  border-color: rgba(201,168,76,0.45);
}

/* Обёртка фото с аспект-рейтио и номером */
.ua-grid-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #F2EBDD;
  overflow: hidden;
}

.ua-grid-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top; /* лица обычно сверху */
  transition: transform 0.6s ease;
}

.ua-grid-item:hover .ua-grid-photo {
  transform: scale(1.04);
}

.ua-grid-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E8DFC9 0%, #D4C9A8 100%);
}

.ua-grid-photo--placeholder span {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 3rem;
  font-weight: 300;
  color: rgba(201,168,76,0.5);
  letter-spacing: 0.04em;
}

/* Номер — в углу карточки, золотая плашка */
.ua-grid-num {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(13,17,23,0.7);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  letter-spacing: 0.04em;
  border-left: 2px solid #C9A84C;
  z-index: 2;
}

/* Текст под фото */
.ua-grid-text {
  padding: 18px 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ua-grid-title {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #2A2520 !important;
  line-height: 1.25;
  margin: 0 0 6px;
  text-align: center;
  transition: color 0.3s;
}

.ua-grid-item:hover .ua-grid-title {
  color: #C9A84C !important;
}

.ua-grid-excerpt {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #6B5D4F !important;
  margin: 0;
  text-align: center;
}

/* ── АДАПТИВ ── */
@media (max-width: 1100px) {
  .ua-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 800px) {
  .ua-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 40px 0 60px; }
  .ua-grid-text { padding: 14px 12px 18px; }
  .ua-grid-title { font-size: 1rem; }
  .ua-grid-excerpt { font-size: 0.78rem; }
}

@media (max-width: 460px) {
  .ua-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Скрываем старый стиль списка (не используется на новых страницах, 
   но если осталась страница со старой разметкой — она тоже останется красивой) */
.ua-list-grid { display: flex; flex-direction: column; gap: 24px; padding: 40px 0; }

/* Список «100 …» — сдвигаем сетку чуть влево, делаем шире */
.ua-list-page .ua-container { 
  max-width: 1240px; 
}

.ua-list-page .ua-list-grid {
  padding-left: 0;
  padding-right: 0;
}

@keyframes ua-flash {
  0%, 100% { background: rgba(201,168,76,0.04); }
  30%      { background: rgba(201,168,76,0.18); }
}

.ua-list-excerpt { word-break: break-word; overflow-wrap: anywhere; min-width: 0; }

.ua-archive-excerpt { word-break: break-word; overflow-wrap: anywhere; min-width: 0; }

.ua-grid-excerpt { word-break: break-word; overflow-wrap: anywhere; min-width: 0; }

.ua-list-title, .ua-grid-title, .ua-archive-title,
.ua-list-excerpt, .ua-grid-excerpt, .ua-archive-excerpt {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ════════════════════════════════════════════════════════════════
   ЗАЩИТА ОТ ВЫЛЕТА ДЛИННЫХ СЛОВ В ОСНОВНОМ КОНТЕНТЕ СТРАНИЦЫ
   ════════════════════════════════════════════════════════════════ */
.ua-page-body,
.ua-page-body p,
.ua-page-body h1,
.ua-page-body h2,
.ua-page-body h3,
.ua-page-body h4,
.ua-page-body h5,
.ua-page-body h6,
.ua-page-body li,
.ua-page-body blockquote,
.ua-page-body a,
.ua-page-body span,
.ua-page-body div {
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Тоже для шапки страницы — если в заголовке окажется длинная строка */
.ua-page-title,
.ua-page-intro {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* И для шапки события */
.ua-page-meta, .ua-post-meta {
  word-break: break-word;
}

/* Контейнеры внутренних страниц никогда не должны выходить за вьюпорт */
.ua-page-content,
.ua-page-content > * {
  max-width: 100%;
  overflow-x: hidden;
}


#ua100 .ua-timeline-item.left .ua-tl-content { grid-column:1; text-align:right; padding-right:40px; }

#ua100 .ua-timeline-item.left .ua-tl-dot    { grid-column:2; }

#ua100 .ua-timeline-item.left .ua-tl-empty  { grid-column:3; }

#ua100 .ua-timeline-item.right .ua-tl-empty   { grid-column:1; }

#ua100 .ua-timeline-item.right .ua-tl-dot     { grid-column:2; }

#ua100 .ua-timeline-item.right .ua-tl-content { grid-column:3; text-align:left; padding-left:40px; }

#ua100 .ua-tl-dot {
  display:flex; align-items:flex-start; justify-content:center; padding-top:4px;
}

#ua100 .ua-tl-dot-inner {
  width:14px; height:14px; border-radius:50%;
  border:2px solid #C9A84C; background:#141B24;
  flex-shrink:0; transition: background 0.3s, box-shadow 0.3s;
}

#ua100 .ua-timeline-item:hover .ua-tl-dot-inner {
  background:#C9A84C; box-shadow:0 0 20px rgba(201,168,76,0.5);
}

#ua100 .ua-tl-year {
  font-family:'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif; font-size:1.9rem;
  font-weight:300; color:#C9A84C !important; margin-bottom:6px;
}

#ua100 .ua-tl-title {
  font-family:'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif; font-size:1.4rem;
  font-weight:600; color:#F5F0E8 !important; margin-bottom:8px; line-height:1.3;
}

#ua100 .ua-tl-text { font-size:0.95rem; line-height:1.75; color:#A8B5C1; }

#ua100 .ua-tl-tag {
  display:inline-block; margin-top:10px;
  font-size:0.58rem; letter-spacing:0.2em; text-transform:uppercase;
  color:#8B6914; border:1px solid rgba(201,168,76,0.25); padding:3px 10px;
}

/* ════════════════════════════════════════════════════════════════
   ИНТЕРАКТИВНАЯ ШКАЛА + СПИСОК СОБЫТИЙ
   ════════════════════════════════════════════════════════════════ */

.ua-calendar-page .ua-container { max-width: 1240px; }

/* ── ПОДСКАЗКА ── */
.ua-tl-hint {
  text-align: center;
  font-size: 0.78rem;
  font-style: italic;
  color: #8B7B6A;
  margin: 40px 0 16px;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ── ШКАЛА ── */
.ua-tl-wrap {
  position: relative;
  margin: 0 -20px 40px;
  padding: 60px 20px 30px;
  background: linear-gradient(180deg, transparent, rgba(201,168,76,0.04));
}

.ua-tl-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding: 50px 0 60px;
  scrollbar-color: #C9A84C transparent;
  scrollbar-width: thin;
}

.ua-tl-scroll::-webkit-scrollbar { height: 4px; }

.ua-tl-scroll::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.4); border-radius: 2px; }

.ua-tl-scroll::-webkit-scrollbar-track { background: transparent; }

.ua-tl-track {
  position: relative;
  height: 80px;
  min-width: 100%;
  width: 100%;
}

/* Линия */
.ua-tl-line {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    #C9A84C 4%,
    #C9A84C 96%,
    transparent 100%);
  transform: translateY(-50%);
}

/* Точки событий */
.ua-calendar-page .ua-tl-dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #FAF6EE;
  border: 2px solid #C9A84C;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: transform 0.25s, background 0.25s, opacity 0.3s;
}

.ua-calendar-page .ua-tl-dot:hover {
  transform: scale(1.5);
  background: #C9A84C;
  z-index: 5;
}

.ua-calendar-page .ua-tl-dot:hover .ua-tl-dot-tooltip { opacity: 1; transform: translate(-50%, -100%); }

.ua-calendar-page .ua-tl-dot--future { border-color: #2E7D9E; }

.ua-calendar-page .ua-tl-dot--future:hover { background: #2E7D9E; }

.ua-calendar-page .ua-tl-dot--dim { opacity: 0.25; }

/* Тултип над точкой */
.ua-calendar-page .ua-tl-dot-tooltip {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translate(-50%, -90%);
  white-space: nowrap;
  background: #2A2520;
  color: #FAF6EE;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 10;
}

.ua-calendar-page .ua-tl-dot-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #2A2520;
}

/* Метки десятилетий ПОД линией */
.ua-tl-decades {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 0;
}

.ua-tl-decade {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: opacity 0.2s;
}

.ua-tl-decade:disabled {
  opacity: 0.3;
  cursor: default;
}

.ua-tl-decade:not(:disabled):hover .ua-tl-decade-label {
  color: #C9A84C;
}

.ua-tl-decade-tick {
  width: 1px;
  height: 8px;
  background: #C9A84C;
}

.ua-tl-decade-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #6B5D4F;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}

.ua-tl-decade-count {
  font-size: 0.6rem;
  font-weight: 600;
  color: #FFFFFF;
  background: #C9A84C;
  padding: 1px 6px;
  border-radius: 8px;
  letter-spacing: 0;
  margin-top: 2px;
}

.ua-tl-decade--future .ua-tl-decade-tick { background: #2E7D9E; }

.ua-tl-decade--future .ua-tl-decade-count { background: #2E7D9E; }

.ua-tl-decade--active .ua-tl-decade-label { color: #C9A84C !important; font-weight: 700; }

.ua-tl-decade--active.ua-tl-decade--future .ua-tl-decade-label { color: #2E7D9E !important; }

.ua-tl-decade--active .ua-tl-decade-tick { height: 14px; width: 2px; }

/* Метки над линией для будущего */
.ua-tl-decade--future {
  /* Visually distinct */
}

/* ── ВКЛАДКИ-ФИЛЬТРЫ ── */
.ua-tl-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 40px;
  justify-content: center;
}

.ua-tl-tab {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.25);
  padding: 9px 16px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6B5D4F;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ua-tl-tab:hover { border-color: #C9A84C; color: #2A2520; }

.ua-tl-tab--active {
  background: #C9A84C;
  border-color: #C9A84C;
  color: #FFFFFF;
}

.ua-tl-tab--future {
  border-style: dashed;
  border-color: rgba(46,125,158,0.4);
  color: #2E7D9E;
}

.ua-tl-tab--future:hover { border-color: #2E7D9E; }

.ua-tl-tab--future.ua-tl-tab--active {
  background: #2E7D9E;
  border-color: #2E7D9E;
  color: #FFFFFF;
  border-style: solid;
}

.ua-tl-tab-count {
  font-size: 0.65rem;
  padding: 2px 7px;
  background: rgba(0,0,0,0.08);
  border-radius: 10px;
  letter-spacing: 0;
}

.ua-tl-tab--active .ua-tl-tab-count { background: rgba(255,255,255,0.25); }

/* ── КОНТЕНТ С СОБЫТИЯМИ ── */
.ua-cal-content { padding: 0 0 80px; }

.ua-cal-decade {
  padding: 50px 0 20px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.ua-cal-decade:last-child { border-bottom: none; }

.ua-cal-decade-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.ua-cal-decade-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #2A2520 !important;
  margin: 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ua-cal-decade-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,0.4), transparent);
}

.ua-cal-future-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2E7D9E;
  border: 1px dashed rgba(46,125,158,0.5);
  padding: 4px 10px;
  vertical-align: middle;
}

.ua-cal-decade--future .ua-cal-decade-title { color: #2E7D9E !important; }

.ua-cal-events { display: flex; flex-direction: column; }

.ua-cal-event {
  display: grid;
  grid-template-columns: 130px 1fr 110px 24px;
  gap: 28px;
  align-items: center;
  padding: 24px 16px 24px 0;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  text-decoration: none !important;
  position: relative;
  transition: background 0.3s, padding-left 0.3s;
}

.ua-cal-event:hover { background: rgba(201,168,76,0.04); padding-left: 16px; }

.ua-cal-event::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #C9A84C;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}

.ua-cal-event:hover::before { transform: scaleY(1); }

.ua-cal-event--highlight {
  background: rgba(201,168,76,0.12) !important;
  animation: ua-flash 1.8s ease;
}

.ua-cal-event-year {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem; font-weight: 600;
  color: #C9A84C !important;
  line-height: 1;
  white-space: nowrap;
}

.ua-cal-event-body { display: flex; flex-direction: column; gap: 6px; }

.ua-cal-event-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem; font-weight: 600;
  color: #2A2520 !important;
  line-height: 1.3; margin: 0;
  transition: color 0.3s;
}

.ua-cal-event:hover .ua-cal-event-title { color: #8B6914 !important; }

.ua-cal-event-excerpt {
  font-size: 0.9rem; line-height: 1.6;
  color: #6B5D4F !important; margin: 0;
  /* Обрезаем после 2 строк + защита от длинных слов без пробелов */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Защита от переполнения у заголовка тоже */
.ua-cal-event-title {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Чтобы grid-ячейка не "толкала" соседей при длинном тексте */
.ua-cal-event-body {
  min-width: 0;
}

.ua-cal-event-photo {
  width: 100%; height: 70px;
  background-size: cover; background-position: center;
  background-color: #F2EBDD;
  border-radius: 2px;
}

.ua-cal-event-arrow {
  font-size: 1.2rem;
  color: rgba(201,168,76,0.4);
  text-align: center;
  transition: transform 0.3s, color 0.3s;
}

.ua-cal-event:hover .ua-cal-event-arrow {
  transform: translateX(4px); color: #C9A84C;
}

/* Будущие события */
.ua-cal-event--future {
  background: rgba(46,125,158,0.025);
  border-left: 2px dashed rgba(46,125,158,0.25);
  padding-left: 14px;
}

.ua-cal-event--future .ua-cal-event-year { color: #2E7D9E !important; }

.ua-cal-event--future:hover { background: rgba(46,125,158,0.06); }

.ua-cal-event--future:hover::before { background: #2E7D9E; }

.ua-cal-event:not(:has(.ua-cal-event-photo)) .ua-cal-event-body { grid-column: 2 / 4; }

/* ── АДАПТИВ ── */
@media (max-width: 900px) {
  .ua-tl-wrap { padding: 30px 16px 16px; margin: 0 -16px 24px; }
  .ua-tl-track { min-width: 800px; }
  .ua-tl-decade-label { font-size: 0.85rem; }
  .ua-tl-decade-count { font-size: 0.55rem; padding: 1px 5px; }

  .ua-tl-controls { padding: 16px 0 30px; }
  .ua-tl-tab { padding: 8px 14px; font-size: 0.72rem; }

  .ua-cal-decade-title { font-size: 1.7rem; }
  .ua-cal-decade-header { gap: 14px; margin-bottom: 20px; }
  .ua-cal-decade { padding: 30px 0 12px; }

  .ua-cal-event {
    grid-template-columns: 80px 1fr 24px;
    gap: 14px; padding: 18px 0;
  }
  .ua-cal-event-year { font-size: 1.4rem; }
  .ua-cal-event-title { font-size: 1.05rem; }
  .ua-cal-event-excerpt { font-size: 0.85rem; }
  .ua-cal-event-photo { display: none; }
  .ua-cal-event:not(:has(.ua-cal-event-photo)) .ua-cal-event-body { grid-column: 2; }
}

/* ════════════════════════════════════════════════════════════════
   ЗАЩИТА ОТ ВЫЛЕТА ДЛИННЫХ СЛОВ ЗА ПРЕДЕЛЫ КОНТЕЙНЕРОВ
   ════════════════════════════════════════════════════════════════ */
.ua-list-text, .ua-grid-text, .ua-archive-text, .ua-cal-event-body { 
  min-width: 0; 
}

/* Колонка точки — фиксированная ширина, точка в центре */
#ua100 .ua-tl-dot {
  grid-column: 2 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding-top: 4px !important;
  width: 60px !important;
}

/* Контент левых событий */
#ua100 .ua-timeline-item.left .ua-tl-content {
  grid-column: 1 !important;
  text-align: right !important;
  padding-right: 40px !important;
  padding-left: 0 !important;
}

#ua100 .ua-timeline-item.left .ua-tl-empty {
  grid-column: 3 !important;
}

/* Контент правых событий */
#ua100 .ua-timeline-item.right .ua-tl-empty {
  grid-column: 1 !important;
}

#ua100 .ua-timeline-item.right .ua-tl-content {
  grid-column: 3 !important;
  text-align: left !important;
  padding-left: 40px !important;
  padding-right: 0 !important;
}

/* Текст внутри карточек — не вылезает за границы, но и не ломает сетку */
#ua100 .ua-tl-content {
  min-width: 0;
  overflow: hidden;
}

#ua100 .ua-tl-text,
#ua100 .ua-tl-title {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: none;
}

/* ════════════════════════════════════════════════════════════════
   ФИКС: ASTRA ДОБАВЛЯЕТ СВОИ СТРЕЛКИ — СКРЫВАЕМ ИХ
   (мы рисуем свои через ::after на .menu-link)
   ════════════════════════════════════════════════════════════════ */

/* Astra использует класс .menu-link на <a>. Наши правила должны таргетировать оба варианта */


/* ============================================================
   ════════════════════════════════════════════════════════════
   ███  НАВИГАЦИЯ — ЕДИНЫЙ ЧИСТЫЙ БЛОК  ███
   ════════════════════════════════════════════════════════════
   ============================================================ */

/* Скрываем всё что добавляет Astra в нашу навигацию */


/* ── ЛОГОТИП ── */


/* ── СПИСОК ПУНКТОВ ── */


/* ── ДЕСКТОПНОЕ ПОДМЕНЮ — ВЫПАДАЕТ ВНИЗ ── */


/* ── БУРГЕР ── */


/* ── МОБИЛЬНЫЕ: БУРГЕР + СВЁРНУТЫЕ ПОДМЕНЮ ── */
@media (max-width: 1100px) {
  

  
  

  
  
  

  /* В мобильном меню — стрелка справа, как раскрытый список */
  
  
  

  /* Свёрнутое подменю */
  
  
  
  
  
}


/* ============================================================
   ════════════════════════════════════════════════════════════
   ███   НАВИГАЦИЯ — ЕДИНЫЙ ЧИСТЫЙ БЛОК                    ███
   ════════════════════════════════════════════════════════════
   Здесь все стили хедера, меню, бургера, подменю.
   Не дублировать в других местах файла!
   ============================================================ */

/* Скрываем стрелки/тогглы которые добавляет Astra */
.ua-nav-wrapper .dropdown-menu-toggle,
.ua-nav-wrapper .ast-header-navigation-arrow,
.ua-nav-wrapper .ast-menu-toggle,
.ua-nav-wrapper .ast-arrow-svg,
.ua-nav-wrapper button.ast-menu-toggle {
  display: none !important;
}

/* ── ЛОГОТИП ── */
.ua-nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #C9A84C;
  transition: opacity 0.3s;
}
.ua-nav-logo:hover { opacity: 0.85; }
.ua-nav-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C9A84C;
  flex-shrink: 0;
}
.ua-nav-logo-text {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #F5F0E8;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.ua-nav-logo-text em {
  font-size: 0.75rem;
  font-family: 'Montserrat', 'Montserrat Fallback', system-ui, sans-serif;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.18em;
  color: #C9A84C;
  text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.85;
}

/* ── ОБЁРТКА И СПИСОК ── */
.ua-nav-wrapper {
  display: flex;
  align-items: center;
}
.ua-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ua-nav-links li {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.ua-nav-links a {
  font-family: 'Montserrat', 'Montserrat Fallback', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(245,240,232,0.78);
  text-decoration: none;
  transition: color 0.3s;
  padding: 10px 0;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.ua-nav-links a:hover { color: #C9A84C; }
.ua-nav-links .current-menu-item > a,
.ua-nav-links .current_page_item > a { color: #C9A84C; }

/* ── СТРЕЛКА У РОДИТЕЛЕЙ С ПОДМЕНЮ ── */
.ua-nav-links .menu-item-has-children > a::after {
  content: " ▾";
  display: inline-block;
  margin-left: 4px;
  font-size: 0.85em;
  color: #C9A84C;
  vertical-align: middle;
  transition: transform 0.3s;
}

/* ── ВЫПАДАЮЩЕЕ ПОДМЕНЮ (ДЕСКТОП) ── */
.ua-nav-links .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  min-width: 220px;
  background: rgba(13,17,23,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201,168,76,0.18);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 100000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.ua-nav-links .sub-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0; right: 0;
  height: 14px;
}
.ua-nav-links .menu-item-has-children:hover > .sub-menu,
.ua-nav-links .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ua-nav-links .sub-menu li { width: 100%; }
.ua-nav-links .sub-menu a {
  display: block;
  width: 100%;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(245,240,232,0.78);
  text-align: left;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, padding 0.2s;
}
.ua-nav-links .sub-menu a::after { content: none; }
.ua-nav-links .sub-menu a:hover {
  background: rgba(201,168,76,0.08);
  color: #C9A84C;
  padding-left: 28px;
}

/* ── БУРГЕР-КНОПКА ── */
.ua-nav-burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  z-index: 100001;
}
.ua-nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #C9A84C;
  border-radius: 1px;
  transition: transform 0.35s, opacity 0.3s;
}
.ua-nav-burger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ua-nav-burger.active span:nth-child(2) { opacity: 0; }
.ua-nav-burger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── МОБИЛЬНЫЕ: БУРГЕР + СВЁРНУТЫЕ ПОДМЕНЮ ── */
@media (max-width: 1100px) {
  .ua-nav-burger { display: flex; }

  .ua-nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(13,17,23,0.98);
    backdrop-filter: blur(20px);
    transition: right 0.4s ease;
    padding: 100px 32px 40px;
    border-left: 1px solid rgba(201,168,76,0.2);
    align-items: flex-start;
    overflow-y: auto;
  }
  .ua-nav-wrapper.open { right: 0; }

  .ua-nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: stretch;
  }
  .ua-nav-links li { width: 100%; }
  .ua-nav-links a {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(201,168,76,0.08);
  }

  /* Стрелка справа на мобильных */
  .ua-nav-links .menu-item-has-children > a {
    padding-right: 40px;
  }
  .ua-nav-links .menu-item-has-children > a::after {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 1rem;
  }
  .ua-nav-links .menu-item-has-children.ua-open > a::after {
    transform: translateY(-50%) rotate(180deg);
  }

  /* Свёрнутое подменю */
  .ua-nav-links .sub-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    margin: 0;
    transition: max-height 0.35s, opacity 0.25s;
  }
  .ua-nav-links .sub-menu::before { display: none; }
  .ua-nav-links .menu-item-has-children.ua-open > .sub-menu {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    padding: 0 0 8px 16px;
  }
  .ua-nav-links .sub-menu a {
    padding: 10px 0;
    font-size: 0.95rem;
    color: rgba(245,240,232,0.7);
    border-bottom: 1px solid rgba(201,168,76,0.05);
  }
  .ua-nav-links .sub-menu a:hover {
    padding-left: 0;
    background: transparent;
  }
}

/* ── КОНТЕЙНЕР ХЕДЕРА: центрирует логотип и меню по краям ── */
.ua-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
@media (max-width: 1100px) {
  .ua-nav-container { padding: 0 20px; gap: 20px; }
}


/* ════════════════════════════════════════════════════════════════
   ФИКС: ТАЙМЛАЙН ГЛАВНОЙ НА МОБИЛЬНЫХ
   Принудительно — линейный список слева, текст занимает оставшееся место
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  #ua100 .ua-timeline-wrapper {
    padding: 0 16px !important;
    max-width: 100% !important;
  }

  /* Линия — слева */
  #ua100 .ua-timeline-line {
    left: 30px !important;
    transform: none !important;
  }

  /* Грид: точка + контент */
  #ua100 .ua-timeline-item {
    grid-template-columns: 60px 1fr !important;
    gap: 0 !important;
  }

  /* Точка всегда в первой колонке */
  #ua100 .ua-timeline-item.left .ua-tl-dot,
  #ua100 .ua-timeline-item.right .ua-tl-dot {
    grid-column: 1 / 2 !important;
    grid-row: 1 !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 4px 0 0 0 !important;
  }

  /* Контент во второй колонке, всегда выровнен по левому краю */
  #ua100 .ua-timeline-item.left .ua-tl-content,
  #ua100 .ua-timeline-item.right .ua-tl-content {
    grid-column: 2 / 3 !important;
    grid-row: 1 !important;
    text-align: left !important;
    padding: 0 0 0 16px !important;
    min-width: 0 !important;
  }

  /* "Пустые" колонки скрываем — они только для desktop layout */
  #ua100 .ua-timeline-item.left .ua-tl-empty,
  #ua100 .ua-timeline-item.right .ua-tl-empty {
    display: none !important;
  }

  /* Текст внутри карточек переносится по словам, без вертикальной "ёлочки" */
  #ua100 .ua-tl-text,
  #ua100 .ua-tl-title,
  #ua100 .ua-tl-year {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   ФИКС: КРАЙНИЕ ТОЧКИ КАЛЕНДАРЯ ВИДНЫ ПОЛНОСТЬЮ
   ════════════════════════════════════════════════════════════════ */

/* Скролл-обёртка имеет внутренние паддинги — за счёт них трек со всеми точками
   сдвигается внутрь, и крайние точки оказываются в безопасной зоне */
.ua-calendar-page .ua-tl-scroll {
  padding-left: 40px !important;
  padding-right: 40px !important;
  padding-top: 50px;
  padding-bottom: 60px;
  overflow-y: visible;
}

/* Чтобы точки и метки не обрезались тенью или фоном */
.ua-calendar-page .ua-tl-wrap,
.ua-calendar-page .ua-tl-track,
.ua-calendar-page .ua-tl-decades {
  overflow: visible !important;
}

.ua-calendar-page .ua-tl-decade {
  white-space: nowrap;
}

/* Тултипы при наведении на крайние точки не выходят за фон */
.ua-calendar-page .ua-tl-dot:first-of-type .ua-tl-dot-tooltip {
  left: 0;
  transform: translate(0, -90%);
}
.ua-calendar-page .ua-tl-dot:last-of-type .ua-tl-dot-tooltip {
  left: auto;
  right: 0;
  transform: translate(0, -90%);
}

/* ════════════════════════════════════════════════════════════════
   СКРЫВАЕМ ОТРЫВОК НА ОДИНОЧНЫХ СТРАНИЦАХ И ЗАПИСЯХ
   (отрывок используется как мета-поле для года события и т.п.,
   не должен показываться пользователю на самой странице события)
   ════════════════════════════════════════════════════════════════ */

/* На странице событий и записей — скрываем все возможные блоки отрывка */
body.single .entry-summary,
body.single .post-summary,
body.single .ast-excerpt-container,
body.single .entry-content > .wp-block-post-excerpt,
body.page .ast-excerpt-container,
body.page .entry-content > .wp-block-post-excerpt {
  display: none !important;
}

/* Astra Pro иногда выводит отрывок через свой блок */
.ua-page-content .ast-excerpt-container,
.ua-single-post .ast-excerpt-container,
.ua-page-body > .entry-summary {
  display: none !important;
}

/* ════════════════════════════════════════════════════════════════
   ФИЛЬТРЫ ПО КАТЕГОРИЯМ В СЕТКЕ «100 ЛЮДЕЙ»
   ════════════════════════════════════════════════════════════════ */

.ua-grid-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 40px 0 30px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  margin-bottom: 0;
  justify-content: center;
}

.ua-grid-filter {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.25);
  padding: 10px 18px;
  font-family: 'Montserrat', 'Montserrat Fallback', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #6B5D4F;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
  text-align: left;
}
.ua-grid-filter:hover {
  border-color: #C9A84C;
  color: #2A2520;
}
.ua-grid-filter--active {
  background: #C9A84C;
  border-color: #C9A84C;
  color: #FFFFFF;
}
.ua-grid-filter--active:hover {
  color: #FFFFFF;
  background: #B8983F;
}

.ua-grid-filter-count {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(0,0,0,0.08);
  border-radius: 10px;
  letter-spacing: 0;
}
.ua-grid-filter--active .ua-grid-filter-count {
  background: rgba(255,255,255,0.25);
}

.ua-grid-empty-state {
  text-align: center;
  padding: 80px 32px;
  background: #FFFFFF;
  border: 1px dashed rgba(201,168,76,0.3);
  color: #6B5D4F;
  font-style: italic;
  margin-top: 30px;
}

/* На мобильных — фильтры скроллятся горизонтально */
@media (max-width: 700px) {
  .ua-grid-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 24px 4px 20px;
    margin: 0 -8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .ua-grid-filter {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.72rem;
  }
}

/* ════════════════════════════════════════════════════════════════
   ФИКС: ВИДЕО В HERO ДОЛЖНО БЫТЬ ФОНОМ, А НЕ ПЕРЕДНИМ ПЛАНОМ
   ════════════════════════════════════════════════════════════════ */

#ua100 .ua-hero,
#ua100 .ua-hero--video {
  position: relative !important;
  overflow: hidden !important;
  z-index: 0 !important;
}

/* Видео — позади всего */
#ua100 .ua-hero-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important;
  pointer-events: none !important;
  transform: none !important;
}

/* Затенение поверх видео */
#ua100 .ua-hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(13,17,23,0.5) 0%, transparent 70%),
    linear-gradient(180deg, rgba(13,17,23,0.6) 0%, rgba(13,17,23,0.75) 60%, rgba(13,17,23,0.95) 100%) !important;
}

/* Звёзды и северное сияние — над затенением */
#ua100 .ua-hero--video .ua-stars,
#ua100 .ua-hero .ua-stars {
  z-index: 2 !important;
}
#ua100 .ua-hero--video .ua-aurora,
#ua100 .ua-hero .ua-aurora {
  z-index: 2 !important;
}

/* Силуэт пейзажа */
#ua100 .ua-hero--video .ua-landscape,
#ua100 .ua-hero .ua-landscape {
  z-index: 5 !important;
  position: absolute !important;
  bottom: 0 !important;
}

/* Контент — ВПЕРЕДИ всего, чтобы кликался и читался */
#ua100 .ua-hero-content {
  position: relative !important;
  z-index: 10 !important;
}

/* ════════════════════════════════════════════════════════════════
   ФИНАЛЬНЫЙ ФИКС ТАЙМЛАЙНА НА ВСЕХ УСТРОЙСТВАХ
   Перебивает любые предыдущие правила точек и колонок
   ════════════════════════════════════════════════════════════════ */

/* === ДЕСКТОП (по умолчанию) === */
#ua100 .ua-timeline-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

#ua100 .ua-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}

#ua100 .ua-timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 40px;
}

#ua100 .ua-timeline-item.left .ua-tl-content {
  grid-column: 1;
  text-align: right;
  padding-right: 40px;
  padding-left: 0;
  min-width: 0;
  overflow: hidden;
}
#ua100 .ua-timeline-item.left .ua-tl-dot { grid-column: 2; }
#ua100 .ua-timeline-item.left .ua-tl-empty { grid-column: 3; }

#ua100 .ua-timeline-item.right .ua-tl-empty { grid-column: 1; }
#ua100 .ua-timeline-item.right .ua-tl-dot { grid-column: 2; }
#ua100 .ua-timeline-item.right .ua-tl-content {
  grid-column: 3;
  text-align: left;
  padding-left: 40px;
  padding-right: 0;
  min-width: 0;
  overflow: hidden;
}

/* Точка-обёртка */
#ua100 .ua-tl-dot {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 4px;
  width: 60px;
}

/* Сама круглая точка — НЕ flex, фиксированный размер */
#ua100 .ua-tl-dot-inner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #C9A84C;
  background: #141B24;
  display: block;
  box-sizing: border-box;
  flex-shrink: 0;
  flex-grow: 0;
}

/* === МОБИЛЬНЫЕ (≤900px) === */
@media (max-width: 900px) {
  #ua100 .ua-timeline-wrapper {
    padding: 0 16px;
    max-width: 100%;
  }

  /* Линия — слева, не в середине */
  #ua100 .ua-timeline-line {
    left: 30px;
    transform: none;
  }

  /* Грид: точка слева (60px), контент справа (1fr) */
  #ua100 .ua-timeline-item {
    grid-template-columns: 60px 1fr;
  }

  /* Точка ВСЕГДА в первой колонке, независимо от left/right */
  #ua100 .ua-timeline-item.left .ua-tl-dot,
  #ua100 .ua-timeline-item.right .ua-tl-dot {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  /* Контент ВСЕГДА во второй колонке, выровнен по левому краю */
  #ua100 .ua-timeline-item.left .ua-tl-content,
  #ua100 .ua-timeline-item.right .ua-tl-content {
    grid-column: 2 / 3;
    grid-row: 1;
    text-align: left;
    padding: 0 0 0 16px;
  }

  /* Пустые колонки скрываем */
  #ua100 .ua-timeline-item.left .ua-tl-empty,
  #ua100 .ua-timeline-item.right .ua-tl-empty {
    display: none;
  }
}

/* ════════════════════════════════════════════════════════════════
   ФИНАЛЬНАЯ ЦЕНТРОВКА ТОЧЕК НА МОБИЛЬНОМ ТАЙМЛАЙНЕ
   Точка идеально по центру линии (30px от левого края)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Обёртка точки — фиксированная ширина 60px, точка по центру */
  #ua100 .ua-tl-dot {
    width: 60px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 4px 0 0 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Точка-кружок строго 14×14, никаких сдвигов */
  #ua100 .ua-tl-dot-inner {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   ТОЧНОЕ ВЫРАВНИВАНИЕ ЛИНИИ И ТОЧЕК НА МОБИЛЬНОМ
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Wrapper: убираем padding слева, линия рисуется от 0 */
  #ua100 .ua-timeline-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Линия — на 30px от 0 = центр колонки точки (60px шириной) */
  #ua100 .ua-timeline-line {
    left: 30px !important;
  }

  /* Содержимое грид-секции имеет внутренний отступ, не вся обёртка */
  #ua100 .ua-timeline-item {
    padding: 0 16px 0 0;
  }
}

/* ════════════════════════════════════════════════════════════════
   ФИКС: МОБИЛЬНОЕ ОТОБРАЖЕНИЕ КАРТОЧЕК СПИСКА «100 …»
   (для page-list.php — 100 великих лет, удивительные места)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Карточка вертикальная — фото сверху, текст снизу */
  .ua-list-item {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* Фото — фиксированная высота, не на весь экран */
  .ua-list-photo {
    min-height: 220px !important;
    max-height: 320px !important;
    height: 50vw !important;
    width: 100% !important;
    background-size: cover !important;
    background-position: center !important;
  }

  /* Текст — нормальные отступы со всех сторон */
  .ua-list-text {
    padding: 24px !important;
  }

  /* Заголовок не должен наезжать на правый край */
  .ua-list-title {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
  }
  .ua-list-excerpt {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
  }
}