    /* ----- Подключение шрифта Stereonic-M (замените путь на свой) ----- */
    @font-face{
            font-family: 'Stereonic-M';
    src: 
         url('../fonts/Stereonic-M.woff')  format('woff'),
         url('../fonts/Stereonic-M.otf')   format('opentype');
    font-weight:400;
    font-style:normal;}

    /* ----- Общие стили (светлая тема, античность/ампир) ----- */
    body {
      background-color: #faf6f0;
      font-family: 'Georgia', 'Times New Roman', serif;
      color: #2c2b28;
    }

    /* Декоративные элементы в духе ампира */
    .empire-border {
      border: 2px solid #c9b79b;
      box-shadow: inset 0 0 0 1px #e4d5c0, 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    /* Все заголовки используют Stereonic-M (с запасным вариантом) */
    h1, h2, h3, h4, h5, h6,
    .empire-title,
    .hero-title,
    .section-title,
    .navbar-brand,
    .timeline-year,
    .event-date,
    .builder-card .card-title,
    .hero-title,
    .section-title small {
      font-family: 'Stereonic-M', 'Playfair Display', 'Georgia', serif;
      font-weight: 700;
      letter-spacing: 1px;
    }

    .empire-title {
      position: relative;
      display: inline-block;
    }
    .empire-title::after {
      content: '';
      position: absolute;
      left: 20%;
      bottom: -10px;
      width: 60%;
      height: 3px;
      background: linear-gradient(90deg, transparent, #b8a58b, transparent);
    }

    .empire-subtitle {
      font-family: 'Georgia', serif;
      font-weight: 400;
      font-style: italic;
      color: #6b6256;
    }

    /* Карточки с лёгким «мраморным» фоном */
    .card-marble {
      background: #fcf8f2;
      border: 1px solid #ddd0be;
      border-radius: 8px;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .card-marble:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    }

    /* Шапка */
    .navbar-empire {
      background: #f3ede5;
      border-bottom: 2px solid #c9b79b;
    }
    .navbar-empire .navbar-brand {
      font-size: 1.6rem;
      color: #3d3a33;
    }
    .navbar-empire .nav-link {
      font-family: 'Georgia', serif;
      color: #4d463c;
      font-size: 1.05rem;
      margin: 0 10px;
      letter-spacing: 1px;
      border-bottom: 2px solid transparent;
      transition: border-color 0.2s;
    }
    .navbar-empire .nav-link:hover {
      border-bottom-color: #b8a58b;
      color: #2c2b28;
    }

    /* Герой */
    .hero-section {
      background: linear-gradient(135deg, #f3ede5 0%, #e8dfd4 100%);
      padding: 80px 0 100px; /* Нижний отступ, чтобы текст не наезжал на волну */
      position: relative;
      /* border-bottom: 4px solid #c9b79b; — убрано */
    }
    
    /* Частая волнистая линия */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0,20 Q40,40 80,20 T160,20 T240,20 T320,20 T400,20 T480,20 T560,20 T640,20 T720,20 T800,20 T880,20 T960,20 T1040,20 T1120,20 T1200,20 T1280,20 T1360,20 T1440,20 L1440,40 L0,40 Z' fill='%23faf6f0'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 -8px 4px rgba(124, 138, 197, 0.5));
}
    
    /* Контент поверх волны */
    .hero-section .container {
      position: relative;
      z-index: 2;
    }
    
    .hero-title {
      font-size: 4.5rem;
      color: #2f2b24;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
      letter-spacing: 4px;
    }
    .hero-sub {
      font-size: 1.4rem;
      font-style: italic;
      color: #5f5546;
      font-family: 'Georgia', serif;
    }

    /* Секции */
    .section-padding {
      padding: 70px 0 60px;
    }

    .section-title {
      font-size: 3rem;
      color: #3d3a33;
      margin-bottom: 20px;
      letter-spacing: 2px;
    }
    .section-title small {
      font-size: 1.2rem;
      display: block;
      font-weight: 400;
      color: #7a6e5e;
      letter-spacing: 1px;
      margin-top: 6px;
    }

    /* Таймлайн (вехи) */
    
    .timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #222;
    margin: 0 0 8px 0;
    }
    
    @media (max-width: 767px) {
        .timeline-title {
            font-size: 1rem;
        }
    }
    
    .timeline-item {
      border-left: 2px solid #c9b79b;
      padding-left: 24px;
      position: relative;
      margin-bottom: 30px;
    }
    .timeline-item::before {
      content: '◆';
      position: absolute;
      left: -11px;
      top: 0;
      color: #b8a58b;
      font-size: 1.4rem;
    }
    .timeline-year {
      font-size: 2.2rem;
      line-height: 1;
      color: #4d463c;
    }
    .timeline-text {
      font-size: 1.1rem;
      color: #3d3a33;
      font-family: 'Georgia', serif;
    }

    /* Карточки первостроителей */
    .builder-card .card-img-top {
      border-radius: 50%;
      width: 120px;
      height: 120px;
      object-fit: cover;
      margin: 20px auto 10px;
      border: 4px solid #e4d5c0;
    }
    .builder-card .card-title {
      font-size: 1.3rem;
    }
    .builder-card .card-text {
      color: #5f5546;
      font-family: 'Georgia', serif;
    }

    /* Сетка событий (даты) */
    .event-card {
      background: #fcf8f2;
      border: 1px solid #ddd0be;
      border-radius: 8px;
      padding: 20px 18px;
      transition: background 0.2s;
    }
    .event-card:hover {
      background: #f7f0e7;
    }
    .event-date {
      font-size: 2rem;
      line-height: 1;
      color: #4d463c;
    }
    .event-month {
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: #8a7c6a;
      font-family: 'Georgia', serif;
    }
    .event-desc {
      font-size: 1.05rem;
      color: #3d3a33;
      font-family: 'Georgia', serif;
    }

    /* Подвал */
    .footer-empire {
      background: #f3ede5;
      border-top: 2px solid #c9b79b;
      padding: 30px 0;
      color: #5f5546;
    }
    .footer-empire a {
      color: #4d463c;
      text-decoration: none;
    }
    .footer-empire a:hover {
      color: #2c2b28;
      text-decoration: underline;
    }

    /* Адаптив */
    @media (max-width: 768px) {
      .hero-title {
        font-size: 2.8rem;
      }
      .section-title {
        font-size: 2.2rem;
      }
      .timeline-year {
        font-size: 1.6rem;
      }
      .builder-card .card-img-top {
        width: 90px;
        height: 90px;
      }
    }
    @media (max-width: 576px) {
      .hero-title {
        font-size: 2.2rem;
      }
      .hero-sub {
        font-size: 1.1rem;
      }
    }

    /* Кнопка в стиле ампир */
    .btn-empire {
      background: #dacdbd;
      border: 2px solid #b8a58b;
      color: #2f2b24;
      font-family: 'Georgia', serif;
      font-weight: 600;
      letter-spacing: 1px;
      padding: 10px 32px;
      border-radius: 30px;
      transition: all 0.25s;
    }
    .btn-empire:hover {
      background: #c9b79b;
      border-color: #a6927a;
      color: #1e1c18;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    }

    /* декоративные разделители */
    .ornament-divider {
      text-align: center;
      font-size: 2rem;
      color: #c9b79b;
      letter-spacing: 12px;
      margin: 10px 0 20px;
      opacity: 0.6;
    }

    /* фикс для иконок */
    .bi {
      margin-right: 6px;
    }
    
    
    
    /* ============================================================
       стили детальной страницы первостроителя
       ============================================================ */

    /* Хлебные крошки / навигация */
    .breadcrumb-empire {
      font-family: 'Georgia', serif;
      font-size: .95rem;
      color: #8a7c6a;
      letter-spacing: .5px;
    }
    .breadcrumb-empire a {
      color: #4d463c;
      text-decoration: none;
      border-bottom: 1px dashed #c9b79b;
    }
    .breadcrumb-empire a:hover { color: #2c2b28; border-bottom-style: solid; }

    /* Левая колонка: «прилипает» при прокрутке на десктопе */
    @media (min-width: 992px) {
      .builder-aside { position: sticky; top: 90px; }
    }

    /* Портрет: прямоугольный, с рамкой-паспарту */
    .builder-detail-card {
      background: #fcf8f2;
      border: 1px solid #ddd0be;
      border-radius: 8px;
      padding: 16px;
    }
    .builder-detail-photo {
      width: 100%;
      aspect-ratio: 3 / 4;
      object-fit: cover;
      border: 4px solid #e4d5c0;
      border-radius: 8px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
      display: block;
    }
    .builder-detail-photo-caption {
      font-family: 'Georgia', serif;
      font-style: italic;
      font-size: .9rem;
      color: #8a7c6a;
      margin-top: 8px;
      text-align: center;
    }

    /* Годы жизни под фотографией */
    .builder-years {
      font-family: 'Stereonic-M', 'Playfair Display', 'Georgia', serif;
      font-size: 1.6rem;
      letter-spacing: 2px;
      color: #4d463c;
      margin-top: 14px;
      text-align: center;
      line-height: 1.1;
    }
    .builder-years small {
      display: block;
      font-family: 'Georgia', serif;
      font-size: .75rem;
      font-weight: 400;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: #8a7c6a;
      margin-top: 6px;
    }

    /* Блок аудиоматериалов */
    .audio-panel { padding: 16px 18px; }
    .audio-label {
      font-family: 'Georgia', serif;
      font-size: .8rem;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: #8a7c6a;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .audio-panel audio {
      width: 100%;
      accent-color: #b8a58b;
      border-radius: 30px;
    }
    .audio-caption {
      font-family: 'Georgia', serif;
      font-size: .85rem;
      font-style: italic;
      color: #8a7c6a;
      margin-top: 8px;
    }
    .audio-panel + .audio-panel { margin-top: 14px; }

    /* Основной контент справа */
    .builder-content {
      font-family: 'Georgia', serif;
      font-size: 1.1rem;
      line-height: 1.8;
      color: #3d3a33;
    }
    .builder-content h2 {
      font-family: 'Stereonic-M', 'Playfair Display', 'Georgia', serif;
      font-size: 1.7rem;
      letter-spacing: 1.5px;
      color: #3d3a33;
      margin: 2.2rem 0 1rem;
    }
    .builder-content h2:first-child { margin-top: 0; }
    .builder-content p { margin-bottom: 1rem; }
    .builder-content blockquote {
      border-left: 3px solid #c9b79b;
      padding: 6px 0 6px 20px;
      margin: 1.5rem 0;
      font-style: italic;
      color: #5f5546;
      font-size: 1.15rem;
    }
    .builder-content blockquote footer {
      font-style: normal;
      font-size: .9rem;
      color: #8a7c6a;
      margin-top: 8px;
    }

    /* Мобильная адаптация */
    @media (max-width: 991px) {
      .builder-detail-photo { aspect-ratio: 4 / 3; }
      .builder-years { font-size: 1.3rem; }
    }
    @media (max-width: 768px) {
      .section-title { font-size: 2.2rem; }
      .builder-content { font-size: 1.02rem; }
    }