:root {
  /* Светлая тема (по умолчанию) */
  --bg-color: #f8f9fa;
  --text-color: #2c3e50;
  --primary-color: #e74c3c;
  --secondary-color: #34495e;
  --border-color: #e1e8ed;
  --hover-color: #f1f3f5;
  --card-bg: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gradient-start: #f8f9fa;
  --gradient-end: #ffffff;
  /* Цвета для пламени и звезды */
  --ribbon-orange: #ff4400;
  --ribbon-orange-dark: #ff6b00;
  --ribbon-orange-light: #ff8800;
  --star-glow: rgba(255, 68, 0, 0.6);
  /* Цвета для заголовков */
  --heading-color: #000000;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --primary-color: #e74c3c;
  --secondary-color: #adb5bd;
  --border-color: #495057;
  --hover-color: #343a40;
  --card-bg: #2d2d2d;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --gradient-start: #1a1a1a;
  --gradient-end: #2d2d2d;
  /* Цвета для пламени и звезды в темной теме */
  --ribbon-orange: #ff4400;
  --ribbon-orange-dark: #ff6b00;
  --ribbon-orange-light: #ff8800;
  --star-glow: rgba(255, 68, 0, 0.6);
  /* Цвета для заголовков в темной теме */
  --heading-color: #ffffff;
}

/* Стили для логотипа */
.navbar-brand {
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  font-family: "Montserrat", sans-serif;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  text-decoration: none;
}

.logo-symbol {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Основная звезда */
.logo-symbol::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--ribbon-orange);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(255, 68, 0, 0.5));
}

/* Внутренняя белая звезда */
.logo-symbol::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  z-index: 3;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.logo-text {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  position: relative;
  white-space: nowrap;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ribbon-orange), transparent);
  transition: width 0.3s ease;
}

/* Удаляем старые стили */
.obelisk, .star, .laurel-left, .laurel-right, .flame {
  display: none;
}

/* Добавляем декоративные элементы на обелиск */
.obelisk .decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.2) 2px,
    rgba(255, 255, 255, 0.2) 4px
  );
  opacity: 0.3;
}

.obelisk .decoration::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.obelisk .decoration::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.star {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #ff6b00, #ff4400);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  box-shadow: 0 0 20px rgba(255, 68, 0, 0.4);
}

.star::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: radial-gradient(circle at center, rgba(255, 68, 0, 0.2) 0%, transparent 70%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  z-index: -1;
}

/* Удаляем старые стили для звезды */
.star-container,
.animated-star,
.star-inner {
  display: none;
}

/* Удаляем стили для обелиска */
.improved-obelisk,
.obelisk-top,
.obelisk-body,
.obelisk-base {
  display: none;
}

/* Добавляем дополнительную анимацию свечения */
.star-container::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--star-glow) 0%, rgba(255, 68, 0, 0) 70%);
  z-index: 0;
}

/* Адаптация для футера */
.footer-logo .star-container {
  width: 30px;
  height: 30px;
}

.footer-logo .animated-star {
  width: 30px;
  height: 30px;
}

.footer-logo .improved-obelisk {
  width: 10px;
  height: 22px;
}

.footer-logo .obelisk-top {
  width: 6px;
  height: 6px;
}

.footer-logo .obelisk-body {
  width: 6px;
  height: 11px;
}

.footer-logo .obelisk-base {
  width: 10px;
  height: 5px;
}

body {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--text-color);

}

/* Стили для навигационной панели */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--card-bg);
  box-shadow: 0 2px 10px var(--shadow-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-right: 2rem;
  margin-left: auto;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

/* Стили для кнопки переключения темы */
.theme-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.3s ease;
  color: var(--text-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--hover-color);
}

.theme-toggle {
  transform: scale(1.1);
  background-color: var(--primary-color);
  color: white;
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* Стили для карточек */
.card,
.modal-content {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px var(--shadow-color);
}

/* Стили для кнопок */
.btn-primary {
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;

}

.btn-primary {
  background-color: #c0392b;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border: none;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;

}

.btn-secondary {
  background-color: #2c3e50;
  transform: translateY(-2px);
}

/* Стили для таблиц */
.table {
  background-color: var(--card-bg);
  color: var(--text-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow-color);
}

.table thead th {
  background-color: var(--hover-color);
  color: var(--text-color);
  border-bottom: 2px solid var(--border-color);
  padding: 1rem;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

/* Стили для форм */
.form-control {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 0.8rem;

}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
  outline: none;
}

/* Стили для карточек в разделе О проекте */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem; /* Increase from 2rem to 3rem */
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid .about-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px var(--shadow-color);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.about-grid .about-card {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-color);
  border-color: var(--ribbon-orange);
}

.about-grid .about-card .about-icon {
  transform: scale(1.1);
  color: var(--ribbon-orange);
}

.about-grid .about-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.about-grid .about-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.about-grid .about-card p {
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  font-size: 1.1rem;
}

/* Стили для модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1003;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal.active {
  opacity: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
}

.modal-content {
  background-color: var(--card-bg);
  padding: 20px;
  border: 1px solid var(--ribbon-orange);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(245, 130, 32, 0.4);
  margin-top: 0;
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
}

/* Унифицированные стили для всех крестиков на сайте */
.close,
.close-button,
.close-fullscreen,
.modal-close,
.close-modal {
  position: absolute;
  right: -10px;
  top: 0;
  font-size: 50px;
  font-weight: 300;
  color: var(--ribbon-orange);
  cursor: pointer;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1000;
  line-height: 1;
  padding: 0;
  margin: 0;
}

/* Специальный стиль для крестиков в разделах */
.control-button {
  position: absolute;
  right: -10px;
  top: 0;
  font-size: 50px;
  font-weight: 300;
  color: white; /* Белый цвет крестика */
  cursor: pointer;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1000;
  line-height: 1;
  padding: 0;
  margin: 0;
  background-color: var(--ribbon-orange); /* Оранжевый фон */
  border-radius: 50%; /* Делаем круг */
  box-shadow: 0 0 10px rgba(245, 130, 32, 0.5);
}

.close {
  color: var(--ribbon-orange-dark);
  transform: scale(1.1);
}

.control-button {
  color: white;
  transform: scale(1.1);
  background-color: var(--ribbon-orange-dark); /* Более темный оранжевый при наведении */
  box-shadow: 0 0 15px rgba(245, 130, 32, 0.7);
}

.close:active,
.close-button:active,
.close-fullscreen:active,
.modal-close:active,
.close-modal:active,
.control-button:active {
  transform: scale(0.95);
}

/* Стили для светлой темы */
.close,
.close-button,
.close-fullscreen,
.modal-close,
.close-modal {
  color: var(--ribbon-orange);
}

/* Стили для темной темы */
[data-theme="dark"] .close,
[data-theme="dark"] .close-button,
[data-theme="dark"] .close-fullscreen,
[data-theme="dark"] .modal-close,
[data-theme="dark"] .close-modal {
  color: var(--ribbon-orange);
}

[data-theme="dark"] .close,
[data-theme="dark"] .close-button,
[data-theme="dark"] .close-fullscreen,
[data-theme="dark"] .modal-close,
[data-theme="dark"] .close-modal {
  color: var(--ribbon-orange-dark);
}

/* Специальные стили для полноэкранного режима */
.close-fullscreen {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2001;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.close-fullscreen {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: white;
}

[data-theme="dark"] .close-fullscreen {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.obelisk-details {
  color: var(--text-color);
}

.obelisk-details h2 {
  color: var(--ribbon-orange);
  margin-bottom: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
}

.obelisk-details h3 {
  color: var(--ribbon-orange-light);
  margin: 12px 0 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
}

.location-info,
.event-info,
.current-state {
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border-left: 3px solid var(--ribbon-orange);
}

.location-info p,
.current-state p {
  margin: 6px 0;
  font-size: 16px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
  padding: 15px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1;
  box-shadow: 0 4px 15px var(--shadow-color);
  pointer-events: none;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.photo-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3));
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-item::after {
  opacity: 1;
}

.nav-button {
  background: var(--ribbon-orange);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.nav-button {
  background: var(--ribbon-orange-light);
}

/* Стили для футера */
.main-footer {
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 1rem;
  margin: 0;
  box-shadow: 0 -2px 10px var(--shadow-color);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-color);
  text-decoration: none;
  padding: 5px 10px;
  position: relative;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--text-color);
  opacity: 0.8;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--ribbon-orange);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-nav a.active {
  color: var(--text-color);
}

.footer-nav a.active::after {
  width: 100%;
}

.footer-theme-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.3s ease;
  color: var(--text-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--hover-color);
}

.footer-theme-toggle {
  transform: scale(1.1);
  background-color: var(--primary-color);
  color: white;
}

.footer-theme-toggle:active {
  transform: scale(0.95);
}

.footer-bottom {
  text-align: center;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
  padding-bottom: 0;
}

.footer-bottom p {
  color: var(--secondary-color);
  font-weight: 500;
  margin: 0;
  padding: 0;
}

[data-theme="dark"] .footer-bottom p {
  color: var(--text-color);
}

.section-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

.fullscreen-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-image.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-image img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.fullscreen-image.active img {
  transform: scale(1);
}

/* Стили для кнопок навигации в модальном окне */
.modal-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  z-index: 2001;
}

.modal-navigation:hover {
  background-color: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.close-fullscreen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.95) 100%);
  z-index: -1;
}

/* Update the map container to have a thicker border and remove the ribbon */
.map-container {
  position: relative;
  width: calc(100% - 80px);
  max-width: none;
  margin: 90px auto 20px;
  border: 3px solid var(--ribbon-orange);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
}

/* Remove the ribbon at the top of the container */
.map-container::before {
  display: none;
}

#map {
  width: 100%;
  height: calc(80vh - 40px);
  position: relative;
  z-index: 1;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow-color);
  border: none;
  margin: 0;
  padding: 0;
  transform: none;
}

/* Remove these elements as they're not needed */
.map-ribbon-border,
.map-ribbon-accent {
  display: none;
}

/* Стили для временной шкалы в разделе О проекте */
.about-section {
  position: relative;
  min-height: 100vh;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  overflow: visible;
}

.about-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.about-timeline::before {
  content: "";
  position: absolute;
  width: 16px;
  height: calc(100% + 100px);
  top: -50px;
  background: repeating-linear-gradient(180deg, #000000 0px, #000000 16px, #ff8800 16px, #ff8800 32px);
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(255, 136, 0, 0.4);
  border-radius: 2px;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.timeline-card {
  position: relative;
  width: 45%;
  opacity: 1;
  transform: none;
}

.timeline-card.left {
  margin-left: auto;
  padding-right: 50px;
}

.timeline-card.right {
  margin-right: auto;
  padding-left: 50px;
}

.timeline-content {
  background: linear-gradient(135deg, #ff6b00, #ff4400);
  padding: 45px 35px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
  border: 2px solid #ff8800;
  position: relative;

  margin-top: 50px;
}

.timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
  border-color: #ff8800;
}

.timeline-content h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
}

/* Добавляем статистику в карточки временной шкалы */
.timeline-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-stat-item {
  text-align: center;
  flex: 1;
}

.timeline-stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  margin-bottom: 5px;
}

.timeline-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Стили для карточек с преимуществами */
/* Add more space between the cards in the about-features section */
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 120px; /* Значительно увеличиваем расстояние между карточками с 80px до 120px */
  padding: 80px 40px; /* Увеличиваем внешние отступы секции */
  max-width: 1400px; /* Увеличиваем максимальную ширину контейнера */
  margin: 0 auto;
}

.feature-card {
  min-height: 320px;
  max-width: 380px;
  background: linear-gradient(145deg, var(--card-bg), var(--hover-color));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--ribbon-orange);
  border-radius: 20px;
  padding: 40px 25px;
  margin: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 30px;
  color: var(--ribbon-orange);
  display: inline-block;
  background: rgba(255, 107, 0, 0.15);
  width: 100px;
  height: 100px;
  line-height: 100px;
  border-radius: 50%;

  position: relative;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(255, 68, 0, 0.3);
}

.feature-icon::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.2) 0%, rgba(255, 107, 0, 0) 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background: rgba(255, 107, 0, 0.2);
}

.feature-card:hover .feature-icon::after {
  opacity: 1;
}

.feature-card h3 {
  color: var(--text-color);
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.feature-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--ribbon-orange), var(--ribbon-orange-light));
  border-radius: 3px;
}

.feature-card p {
  color: var(--text-color);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0;
  padding: 0 15px;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 500;
}

/* Стили для статистики в карточках */
.feature-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-color);
}

@media (max-width: 768px) {
  .feature-stats {
    flex-direction: column;
    gap: 15px;
  }

  .stat-item {
    margin-bottom: 10px;
  }
}

/* Стили для блока счетчиков */
.counters-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  margin: 2rem 0;
  opacity: 1;
  transform: translateY(0);
}

.counters-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.counter-card {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--shadow-color);
}

.counter-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.counter-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;

}

.counter-label {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .counters-section {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .counter-card {
    padding: 1.5rem;
  }

  .counter-value {
    font-size: 2rem;
  }
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
  .about-timeline {
    margin-top: 0;
  }

  .about-timeline::before {
    left: 30px;
    width: 12px;
    height: calc(100% + 200px);
    top: -75px;
    background: repeating-linear-gradient(180deg, #000000 0px, #000000 12px, #ff8800 12px, #ff8800 24px);
  }

  .timeline-card {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
    margin-bottom: 50px;
  }

  .timeline-card.left,
  .timeline-card.right {
    margin: 0 0 50px 0;
    padding-left: 70px;
    padding-right: 20px;
  }

  .timeline-card::before {
    width: 40px;
    right: auto;
  }

  .timeline-card.left::before,
  .timeline-card.right::before {
    right: auto;
    left: -40px;
  }

  .timeline-dot {
    left: 20px !important;
    width: 24px;
    height: 24px;
  }

  .about-features {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .timeline-date {
    left: 20px;
    font-size: 1rem;
    padding: 8px 16px;
  }
}
/* Убираем лишнее пространство под футером */
.main-footer {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Стили для видеоплеера */
.video-container {
    margin-top: 40px;
    padding: 0 20px;
}

.video-container h3 {
    color: var(--text-color);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.rutube-player {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.rutube-player iframe {
    display: block;
}

/* Стили для футера на главной странице */
.footer-content {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Стили для футера на страницах terms и privacy */
body.legal-page .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body.legal-page .footer-logo {
    margin-bottom: 30px;
}

body.legal-page .footer-logo .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

body.legal-page .footer-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

body.legal-page .footer-links,
body.legal-page .footer-legal {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
}

body.legal-page .footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

body.legal-page .footer-nav a:hover {
    color: var(--ribbon-orange);
}

.footer-bottom {
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-bottom p {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Убираем возможное пространство в body */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contacts-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contacts-container::after {
  content: '';
  height: 120px;
  display: block;
}

/* Если есть элемент после футера, который создает пространство */
.main-footer + * {
  display: none;
}

/* Убираем возможное пространство от memory-sparks */
.memory-sparks {
  bottom: 0;
  height: auto;
}

.contact-card p {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--text-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  line-height: 1.6;
}

.contact-description {
  color: var(--text-color) !important;
  font-size: 16px !important;
  margin-top: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  line-height: 1.6;
  opacity: 0.9;
}

.contact-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

/* Добавьте эти стили в конец файла */

/* Обновляем стили для секции с информацией об обелисках */
.obelisks-wiki-container {
  width: calc(100% - 80px);
  max-width: none;
  margin: 20px auto;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  overflow: hidden;
  border: 3px solid var(--ribbon-orange);
}

.obelisks-wiki-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--border-color);
}

.obelisks-navigation {
  display: flex;
  align-items: center;
  gap: 15px;
}

#obelisk-counter-nav {
  font-weight: 500;
  color: var(--text-color);
}

.obelisks-wiki-content {
  padding: 20px;
  max-height: none; /* Убираем ограничение по высоте */
}

.obelisk-wiki-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.obelisk-wiki-title {
  font-family: "Montserrat", sans-serif;
  font-size: 32px; /* Увеличиваем размер заголовка */
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  font-weight: bold;
}

.obelisk-wiki-section {
  margin-bottom: 30px;
}

.obelisk-wiki-section h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  color: var(--text-color);
  margin-bottom: 15px;
}

.expedition-reports {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expedition-report-item {
  padding: 14px 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.expedition-report-item p {
  margin-bottom: 8px;
}

.expedition-report-item p:last-child {
  margin-bottom: 0;
}

.expedition-report-item a {
  color: var(--ribbon-orange);
  text-decoration: none;
  font-weight: 600;
}

.expedition-report-item a:hover {
  text-decoration: underline;
}

.expedition-report-photo {
  margin: 12px 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.04);
}

.expedition-report-photo img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.expedition-report-heading {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  color: var(--text-color);
  margin: 18px 0 10px;
}

.expedition-report-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.expedition-report-photos .expedition-report-photo {
  margin: 0;
}

.expedition-report-table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
}

.expedition-report-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--card-bg);
}

.expedition-report-table th,
.expedition-report-table td {
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  vertical-align: top;
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.45;
}

.expedition-report-table th {
  background: rgba(255, 140, 0, 0.12);
  font-weight: 600;
  text-align: left;
}

.expedition-report-table td p {
  margin: 0 0 8px;
}

.expedition-report-photo-cell {
  margin: 8px 0 0;
}

.expedition-report-photo-cell img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

/* Обновляем стили для главного изображения */
.obelisk-main-image {
  width: 100%;
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.obelisk-main-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 600px;
  display: block;
  margin: 0 auto;
}

.obelisk-wiki-infobox {
  float: right;
  width: 300px;
  margin: 0 0 20px 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.obelisk-wiki-infobox-header {
  background-color: var(--ribbon-orange);
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: 600;
}

.obelisk-wiki-infobox-content {
  padding: 15px;
}

.obelisk-wiki-infobox-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.obelisk-wiki-infobox-row {
  display: flex;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 8px;
}

.obelisk-wiki-infobox-label {
  font-weight: 600;
  width: 40%;
  color: var(--text-color);
}

.obelisk-wiki-infobox-value {
  width: 60%;
  color: var(--text-color);
}

.obelisk-wiki-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--text-color);
  font-size: 16px;
}

.obelisk-wiki-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.obelisk-wiki-gallery-item {
  position: relative;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.obelisk-wiki-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.obelisk-wiki-gallery-item:hover img {
  transform: scale(1.05);
}

.obelisk-wiki-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.obelisk-wiki-gallery-item:hover .obelisk-wiki-gallery-caption {
  opacity: 1;
}

.obelisk-wiki-references {
  margin-top: 30px;
  padding: 20px;
  background-color: rgba(255, 140, 0, 0.05);
  border-radius: 8px;
}

.obelisk-wiki-references p {
  font-size: 1.1em;
  line-height: 1.5;
  color: var(--text-color);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .obelisks-wiki-header {
    flex-direction: column;
    gap: 10px;
  }

  .obelisk-wiki-infobox {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }

  .obelisks-navigation {
    width: 100%;
    justify-content: space-between;
  }
}

/* Добавляем стили для кнопки перехода к вики-секции */
.modal-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.nav-button.goto-wiki {
  background: var(--ribbon-orange);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;

  font-size: 16px;
  flex: 0 1 auto;
  margin: 0;
  text-align: center;
  min-width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-button.goto-wiki:hover {
  background: var(--ribbon-orange-light);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-button.prev,
.nav-button.next {
  flex: 0 1 auto;
  min-width: 40px;
  padding: 10px 15px;
  font-size: 16px;
  margin: 0;
}

.contact-card a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: var(--ribbon-orange);
}

.map-location-button {
  text-align: center;
  margin: 20px 0;
}

.goto-map-button {
  background-color: var(--primary-color);
  color: var(--text-color);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.goto-map-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.map-icon {
  font-size: 20px;
}

[data-theme="dark"] .goto-map-button {
  background-color: var(--accent-color);
  color: var(--background-color);
}

[data-theme="dark"] .goto-map-button:hover {
  background-color: var(--primary-color);
}

.timeline-date {
  background: white;
  color: #ff6b00;
  padding: 10px 20px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
  position: absolute;
  top: -25px;
  left: 20px;
  border: 2px solid #ff8800;
  z-index: 2;
}

.timeline-card.right .timeline-date {
  left: auto;
  right: 20px;
}

/* Добавляем стили для контейнера карты в мобильной версии */
@media (max-width: 768px) {
  .map-container {
    width: calc(100% - 24px);
    margin: 80px auto 20px;
  }

  .obelisks-wiki-container {
    width: calc(100% - 24px);
  }

  #map {
    height: calc(80vh - 70px);
  }
}

/* Стили для кнопки перезагрузки карты */
.map-container {
    position: relative;
}

.reload-map-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    width: 40px;
    height: 40px;
    background-color: var(--ribbon-orange);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.reload-map-button svg {
    width: 20px;
    height: 20px;
}

.reload-map-button:hover {
    transform: scale(1.1);
    background-color: #ff6b00;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.reload-map-button:active {
    transform: scale(0.95);
}

.reload-map-button svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.reload-map-button:hover svg {
    transform: rotate(180deg);
}

.reload-map-button:active svg {
    transform: rotate(360deg);
}

.photo-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    margin: 0 4px;
    text-decoration: none;
}

.photo-btn:hover {
    background-color: #0056b3;
}

/* Стили для страницы литературных источников */
.literature-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.literature-des.credit-item {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.credit-item h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.credit-item .role {
    display: block;
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.literature-description h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.period-description {
    font-size: 1.2rem;
    opacity: 0.8;
    font-style: italic;
}

.sources-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.source-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.source-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.source-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.source-text {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Добавляем анимацию появления для карточек */
.source-card {
/* Стили для кнопки литературы */
.literature-link {
    color: #FF8C00;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.literature-link:hover {
    color: #FFA500;
    border-bottom: 1px solid #FFA500;
}

.obelisk-wiki-references {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(255, 140, 0, 0.05);
    border-radius: 8px;
}

.obelisk-wiki-references p {
    font-size: 1.1em;
    line-height: 1.5;
    color: var(--text-color);
}

/* Стили для бургер-меню */
.burger-menu {
    display: none;
    width: 35px;
    height: 30px;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
    background: none;
    border: none;
    margin-left: 15px;
    position: relative;
}

.burger-menu div {
    width: 35px;
    height: 4px;
    background-color: #ff4400 !important;
  
    position: absolute;
    left: 0;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.burger-menu div:first-child {
    top: 0;
}

.burger-menu div:nth-child(2) {
    top: 10px;
}

.burger-menu div:last-child {
    top: 20px;
}

/* Медиа-запросы для мобильной версии */
@media screen and (max-width: 768px) {
    /* Скрываем георгиевскую ленту */
    .ribbon-decoration {
        display: none;
    }

    /* Настройка навигации */
    .navbar {
        padding: 0.5rem;
        position: relative;
    }

    /* Показываем бургер-меню на мобильных */
    .burger-menu {
        display: block;
    }

    .burger-menu div {
        background-color: var(--text-color);
    }

    /* Стили для мобильной навигации */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: 400px;
        background-color: var(--card-bg);
        padding: 70px 0 30px;
        z-index: 999;
        flex-direction: column;
        gap: 0;
        transition: transform 0.3s ease;
        transform: translateX(100%);
        align-items: center;
        justify-content: flex-start;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .nav-links a,
    .nav-links .nav-link {
        font-size: 1.2em;
        padding: 12px 20px;
        color: var(--text-color) !important;
        text-align: center;
        width: 100%;
        border: none;
      
        display: block !important;
        text-decoration: none !important;
        border-bottom: 1px solid var(--border-color);
        margin: 0 !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }

    .nav-links a:hover,
    .nav-links .nav-link:hover {
        transform: scale(1.1);
        color: var(--ribbon-orange) !important;
    }

    .nav-links.active {
        display: flex !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
    }

    .nav-links .nav-link-text {
        display: block !important;
        margin-bottom: 5px !important;
    }

    .nav-links .nav-link-line {
        display: block !important;
        width: 0 !important;
        height: 2px !important;
        background-color: var(--ribbon-orange) !important;
        transition: width 0.3s ease !important;
        margin: 0 auto !important;
    }

    .nav-links a:hover .nav-link-line,
    .nav-links .nav-link:hover .nav-link-line {
        width: 100% !important;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links.active {
        transform: translateX(0);
        display: flex !important;
    }

    /* Класс для открытого меню */
    .nav-links.active {
        display: flex;
    }

    /* Стили для бургер-меню в открытом состоянии */
    .burger-menu.active div:first-child {
        transform: translateY(9px) rotate(45deg);
    }

    .burger-menu.active div:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active div:last-child {
        transform: translateY(-9px) rotate(-45deg);
    }

    .logo-container {
        gap: 8px;
    }

    .logo-symbol {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 1rem;
    }

    /* Адаптация сетки для карточек */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    /* Адаптация модальных окон */
    .modal-content {
        width: 95%;
        padding: 15px;
        margin: 10px;
    }

    /* Адаптация таблиц */
    .table {
        font-size: 14px;
    }

    /* Адаптация источников литературы */
    .sources-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .source-card {
        padding: 1rem;
    }

    /* Адаптация кнопок */
    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Адаптация текста */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    /* Адаптация отступов */
    .section {
        padding: 2rem 1rem;
    }

    /* Адаптация контейнеров */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Адаптация элементов управления */
    .control-button {
        width: 40px;
        height: 40px;
        font-size: 30px;
        right: -5px;
    }

    /* Адаптация навигационных элементов */
    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    /* Адаптация кнопки темы */
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    /* Компактный футер для мобильных устройств */
    /* Стили для футера на всех страницах */
    .section-page footer,
    body > footer,
    footer.main-footer {
        padding: 10px 0 0 0 !important;
        margin: 0 !important;
        background: var(--card-bg) !important;
        border-top: 1px solid var(--border-color) !important;
        max-height: none !important;
        min-height: 0 !important;
        height: auto !important;
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }

    .section-page footer *,
    body > footer *,
    footer.main-footer * {
        max-height: none !important;
        min-height: 0 !important;
        height: auto !important;
    }

    @media screen and (max-width: 768px) {
        body > footer,
        body > .main-footer,
        #about-page footer,
        #participants-page footer,
        #contacts-page footer,
        #literature-page footer,
        .main-footer {
            padding: 10px 0 0 0 !important;
            margin: 0 !important;
            background: var(--card-bg) !important;
            border-top: 1px solid var(--border-color) !important;
            max-height: none !important;
            min-height: 0 !important;
            height: auto !important;
        }

        body > footer *,
        body > .main-footer *,
        #about-page footer *,
        #participants-page footer *,
        #contacts-page footer *,
        #literature-page footer *,
        .main-footer * {
            max-height: none !important;
            min-height: 0 !important;
            height: auto !important;
        }
    }

    .footer-content {
        padding: 20px !important;
    }

    .footer-nav {
        gap: 15px !important;
    }

    .footer-links,
    .footer-legal {
        gap: 15px !important;
        width: 100% !important;
        justify-content: center !important;
    }


    .footer-logo {
        margin: 0 0 10px 0 !important;
        transform: scale(0.8) !important;
        text-align: center !important;
    }

    #about-page .footer-nav,
    #participants-page .footer-nav,
    #contacts-page .footer-nav,
    #literature-page .footer-nav,
    .footer-nav {
        padding: 0 !important;
        margin-bottom: 10px !important;
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
    }

    #about-page .footer-nav a,
    #participants-page .footer-nav a,
    #contacts-page .footer-nav a,
    #literature-page .footer-nav a,
    .footer-nav a {
        font-size: 0.9em !important;
        padding: 5px 10px !important;
        display: inline-block !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    #about-page .footer-bottom,
    #participants-page .footer-bottom,
    #contacts-page .footer-bottom,
    #literature-page .footer-bottom,
    .footer-bottom {
        padding: 5px 0 !important;
        font-size: 0.8em !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
    }

    #about-page .footer-decoration,
    #about-page .footer-ribbon,
    #participants-page .footer-decoration,
    #participants-page .footer-ribbon,
    #contacts-page .footer-decoration,
    #contacts-page .footer-ribbon,
    #literature-page .footer-decoration,
    #literature-page .footer-ribbon,
    .footer-decoration,
    .footer-ribbon {
        display: none !important;
    }
}
}

/* Ribbon Divider */
.ribbon-divider {
    height: 20px;
    background: linear-gradient(
        to right,
        var(--ribbon-orange-dark),
        var(--ribbon-orange),
        var(--ribbon-orange-light)
    );
    position: relative;
    overflow: hidden;
}

.ribbon-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 20px
    );
    z-index: 1;
}

/* About Details Section */
.about-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    word-wrap: break-word;
}

.about-details .about-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    width: 100%;
    height: auto;
    overflow: visible;
}

.about-details .about-card h3 {
    color: var(--ribbon-orange);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-details .about-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.about-details .about-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-details .about-card li {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
    padding-left: 24px;
    position: relative;
}

.about-details .about-card li:before {
    content: '•';
    color: var(--ribbon-orange);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

@media (max-width: 768px) {
    .about-details {
        padding: 20px;
    }

    .about-details .about-card {
        padding: 20px;
    }

    .about-details .about-card h3 {
        font-size: 20px;
    }
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.team-section h2 {
    text-align: center;
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 600;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.05) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.team-credits {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.credit-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
}

@media (max-width: 768px) {
    .credit-items-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .credit-item {
        padding: 20px;
    }

    .credit-item h3 {
        font-size: 1.2em;
    }

    .credit-icon svg {
        width: 40px;
        height: 40px;
    }

    .team-section {
        padding: 40px 0;
    }
}

.credit-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.credit-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 35px 25px;
    position: relative;
  
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.credit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), transparent);
    border-radius: 16px;
    opacity: 0;
}

.credit-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.credit-icon svg {
    width: 100%;
    height: 100%;
    color: var(--ribbon-orange);
    transition: transform 0.3s ease;
}



.credit-item h3 {
    font-size: 24px;
    color: var(--text-color);
    margin: 0 0 15px 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.role {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
    margin: 10px 0;
    padding: 8px 20px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 30px;
    display: inline-block;
  
    position: relative;
    z-index: 1;
}



.organization {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 15px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Анимации */

/* Задержки анимации */

.credit-items-container .credit-item {
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 10px;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .team-section {
        padding: 60px 0;
    }

    .credits-group h2 {
        font-size: 32px;
    }

    .credit-items-container {
        grid-template-columns: 1fr;
    }

    .credit-item {
        padding: 25px;
    }
}

/* Стили для заголовков */
.about-section h2,
.team-section h2,
.contacts-container h2,
.literature-container h2 {
  color: var(--heading-color);
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-cards {
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 4rem auto 0;
  max-width: 1200px;
}

/* Специфичные стили для hero-секции */
.hero-full,
.section-page .hero-full,
#about-page .hero-full,
#participants-page .hero-full,
#contacts-page .hero-full,
#literature-page .hero-full {
  background-color: #333333 !important;
  color: var(--text-color);
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Стили для светлой темы */
[data-theme="light"] .hero-full,
[data-theme="light"] .section-page .hero-full,
[data-theme="light"] #about-page .hero-full,
[data-theme="light"] #participants-page .hero-full,
[data-theme="light"] #contacts-page .hero-full,
[data-theme="light"] #literature-page .hero-full {
  background-color: #666666 !important;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
}

.hero-title {
  color: white !important;
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
  letter-spacing: 2px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 24px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  margin-bottom: 30px;
}

/* Базовые стили для hero-секции */
.hero-full {
  background-color: #333333;
  color: var(--text-color);
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Стили для светлой темы */
html[data-theme="light"] .hero-full {
  background-color: #666666;
}

/* Стили для темной темы */
html[data-theme="dark"] .hero-full {
  background-color: #333333;
}

.georgian-ribbon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    background: #FFD700;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ribbon-left, .ribbon-right {
    position: absolute;
    width: 20px;
    height: 100%;
    background: #FFD700;
}

.ribbon-left {
    left: -10px;
    transform: skewY(45deg);
}

.ribbon-right {
    right: -10px;
    transform: skewY(-45deg);
}

.ribbon-content {
    color: #fff;
    text-align: center;
    font-size: 1.2em;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.quote-author {
    display: block;
    margin-top: 10px;
    font-style: italic;
    font-size: 0.9em;
}

.memorial-quote {
    position: relative;
    padding: 20px 40px;
    margin: 30px auto;
    max-width: 800px;
    text-align: center;
    font-size: 1.2em;
    color: var(--text-color);
    font-style: italic;
}

.memorial-quote::before,
.memorial-quote::after {
    content: '';
    position: absolute;
    height: 2px;
    left: 0;
    right: 0;
    background: repeating-linear-gradient(
        to right,
        #000000 0px,
        #000000 4px,
        #FFD700 4px,
        #FFD700 8px,
        #FF0000 8px,
        #FF0000 12px,
        #FFD700 12px,
        #FFD700 16px
    );
}

.memorial-quote::before {
    top: 0;
}

.memorial-quote::after {
    bottom: 0;
}

.quote-author {
    display: block;
    margin-top: 10px;
    font-style: italic;
    font-size: 0.9em;
    color: var(--text-color);
}

/* Стили для видеоплеера */
.video-container {
    margin-top: 40px;
    padding: 0 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.documentary-title {
    color: var(--text-color);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.documentary-info {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

.documentary-author {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.documentary-production {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
}

.video-description {
    margin-top: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-description p {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.video-description p:last-child {
    margin-bottom: 0;
}

.rutube-player {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-description .production-info {
    color: var(--accent-color);
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* Акцентные цвета для текста участников */
.accent-red {
    color: var(--ribbon-red) !important;
}

.accent-white {
    color: #ffffff !important;
}

.accent-orange {
    color: var(--ribbon-orange) !important;
}