/* ==== БАЗА И ПАЛИТРЫ ==== */
:root {
  --brand-start: #787c88; /* emerald-600 */
  --brand-end: #303338; /* lime-500 */
  --gradient-brand: linear-gradient(135deg, var(--brand-start) 0%, var(--brand-end) 100%);
  color-scheme: light;

  --primary-color: #474a51;
  --primary-dark: #303338;
  --primary-light: #787c88;

  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-accent: #f0fdf4;
  --border-color: #e5e7eb;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --text-primary: #f3f4f6;
  --text-secondary: #cbd5e1;
  --text-light: #94a3b8;

  --bg-primary: #0b1220;
  --bg-secondary: #0f172a;
  --bg-accent: #0a1220;
  --border-color: #1f2937;

  --brand-start: #787c88;
  --brand-end: #303338;
  --no1: #30333800;
  --gradient-brand: linear-gradient(135deg, var(--brand-start) 0%, var(--brand-end) 100%);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.35);
  --shadow-md: 0 6px 10px -1px rgb(0 0 0 / 0.45), 0 3px 6px -2px rgb(0 0 0 / 0.35);
  --shadow-lg: 0 14px 22px -5px rgb(0 0 0 / 0.5), 0 8px 12px -6px rgb(0 0 0 / 0.45);
  --shadow-xl: 0 24px 32px -8px rgb(0 0 0 / 0.55), 0 12px 16px -10px rgb(0 0 0 / 0.5);
}

/* ==== АНИМИРОВАННЫЕ ГРАДИЕНТЫ ==== */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-gradient,
  .header-top,
  .page-header,
  .btn-primary,
  .contact-widget,
  .theme-transition {
    animation: none !important;
    transition: none !important;
  }
}

/* ==== ГЛОБАЛЬНЫЕ АКЦЕНТЫ ==== */
.header-top {
  background: var(--gradient-brand);
  background-size: 200% 200%;
  animation: gradientShift 16s ease infinite;
}
.logo .logo-icon {
  background: var(--no1);
}
.page-header {
  background: radial-gradient(1200px 400px at 50% -200px, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
    var(--gradient-brand);
  background-size: auto, 200% 200%;
  animation: gradientShift 18s ease infinite;
}

/* Hero в тёмной теме */
:root[data-theme="dark"] .hero {
  background: radial-gradient(800px 300px at 50% -150px, rgba(255, 255, 255, 0.06) 0%, transparent 70%),
    linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(132, 204, 22, 0.08) 100%), var(--bg-secondary);
}

/* Кнопка */
.btn-primary {
  background-image: var(--gradient-brand);
  background-color: transparent;
  background-size: 200% 200%;
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
  animation: gradientShift 12s ease infinite;
}
.btn-primary:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ==== DARK THEME LAYERS ==== */
:root[data-theme="dark"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}
:root[data-theme="dark"] .header {
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
}
:root[data-theme="dark"] .mobile-menu {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6 {
  color: var(--text-primary);
}
:root[data-theme="dark"] p {
  color: var(--text-secondary);
}

:root[data-theme="dark"] .news-item,
:root[data-theme="dark"] .vacancy-card,
:root[data-theme="dark"] .contact-card,
:root[data-theme="dark"] .main-contact-card,
:root[data-theme="dark"] .banking-card,
:root[data-theme="dark"] .contact-form-card,
:root[data-theme="dark"] .sidebar-widget,
:root[data-theme="dark"] .contact-form-wrapper {
  background-color: #0e1627;
  box-shadow: var(--shadow-sm);
  border-color: var(--border-color);
}
:root[data-theme="dark"] .news-content,
:root[data-theme="dark"] .vacancies-content,
:root[data-theme="dark"] .departments-contacts,
:root[data-theme="dark"] .main-contact-info {
  background-color: var(--bg-secondary);
}

/* Навигация */
:root[data-theme="dark"] .nav-link {
  color: var(--text-secondary);
}
:root[data-theme="dark"] .nav-link:hover,
:root[data-theme="dark"] .nav-link.active {
  color: var(--primary-light);
}
:root[data-theme="dark"] .nav-link.active::after {
  background-color: var(--primary-light);
}

/* Категории */
:root[data-theme="dark"] .news-category.announcement {
  background-color: #3a2d1a;
  color: #fde047;
}
:root[data-theme="dark"] .news-category.news {
  background-color: #1e293b;
  color: #22c55e;
}
:root[data-theme="dark"] .news-category.events {
  background-color: #2a1f36;
  color: #eab308;
}
:root[data-theme="dark"] .news-category.reports {
  background-color: #10291f;
  color: #34d399;
}

/* Поля форм */
:root[data-theme="dark"] .contact-form input,
:root[data-theme="dark"] .contact-form textarea,
:root[data-theme="dark"] .contact-form select,
:root[data-theme="dark"] .filter-controls select,
:root[data-theme="dark"] .search-box input {
  background-color: #0b1322;
  border-color: #243148;
  color: var(--text-primary);
}
:root[data-theme="dark"] .search-box input::placeholder {
  color: #94a3b8;
}

/* Чипы, пагинация */
:root[data-theme="dark"] .pagination-btn,
:root[data-theme="dark"] .pagination-number,
:root[data-theme="dark"] .tag,
:root[data-theme="dark"] .cloud-tag,
:root[data-theme="dark"] .category-count {
  background-color: #0b1322;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

/* Контактный виджет */
.contact-widget {
  background: var(--gradient-brand);
  background-size: 200% 200%;
  animation: gradientShift 18s ease infinite;
  color: white;
}
.contact-widget .widget-title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* Тумблер темы */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 9999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all .2s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.theme-toggle .icon {
  width: 1.2rem;
  height: 1.2rem;
}
.theme-toggle .icon-sun {
  display: inline-block;
}
.theme-toggle .icon-moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle {
  background: #0b1322;
  color: #f1f5f9;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: inline-block;
}

/* Футер — фиксы высоты */
.footer {
  padding: 24px 0 !important;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 24px;
  align-items: start;
}
.footer-section h4 {
  margin: 0 0 8px;
}
.footer-section p {
  margin: 4px 0;
}
.footer-logo .logo-text h3 {
  margin: 0;
}
.footer-bottom {
  padding-top: 12px;
}

/* Dark footer */
:root[data-theme="dark"] .footer {
  background-color: #0b1220 !important;
  color: var(--text-primary);
}
:root[data-theme="dark"] .footer-section p,
:root[data-theme="dark"] .footer-bottom p {
  color: #cbd5e1;
}
:root[data-theme="dark"] .footer-section a {
  color: #cbd5e1;
}
:root[data-theme="dark"] .footer-section a:hover {
  color: #ffffff;
}
:root[data-theme="dark"] .footer-bottom {
  border-top: 1px solid #1f2937;
}
:root[data-theme="dark"] .footer-contact {
  color: #cbd5e1;
}
:root[data-theme="dark"] .footer-contact .icon {
  color: var(--primary-light);
}

/* Микроулучшения таблиц/телефонов */
:root[data-theme="dark"] .phone-item,
:root[data-theme="dark"] .schedule-item {
  border-bottom: 1px solid var(--border-color);
}
:root[data-theme="dark"] .reception-table th {
  background: linear-gradient(135deg, #787c88, #303338);
  color: #f8fafc;
}
:root[data-theme="dark"] .reception-table tr:nth-child(even) {
  background-color: #0b1322;
}

/* Urgent Notice — фиксированные цвета */
:root[data-theme="dark"] .urgent-notice h2 {
  color: #92400e;
}
:root[data-theme="dark"] .urgent-notice p {
  color: #78350f;
}

/* ==== ПЕРЕХОД ТЕМЫ: «АУРОРА»-ВОЛНА ==== */
@keyframes auroraMove {
  0% {
    transform: translate3d(-10%, -10%, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(10%, 10%, 0) rotate(180deg);
  }
  100% {
    transform: translate3d(-10%, -10%, 0) rotate(360deg);
  }
}
.theme-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  --x: 50vw;
  --y: 50vh;
  clip-path: circle(0 at var(--x) var(--y));
  transition: clip-path 650ms cubic-bezier(0.22, 1, 0.36, 1), opacity 350ms ease 500ms;
  opacity: 1;
  background: radial-gradient(1200px 600px at 20% 30%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(800px 800px at 80% 70%, rgba(0, 0, 0, 0.08), transparent 60%),
    linear-gradient(135deg, var(--brand-start), var(--brand-end));
  background-size: auto, auto, 200% 200%;
  animation: gradientShift 14s ease infinite;
  will-change: clip-path, opacity, transform;
  filter: saturate(1.05) contrast(1.02);
}
.theme-transition::before,
.theme-transition::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(400px 300px at 30% 30%, rgba(34, 197, 94, 0.25), transparent 60%),
    radial-gradient(500px 400px at 70% 60%, rgba(132, 204, 22, 0.2), transparent 60%);
  filter: blur(20px) saturate(1.1);
  animation: auroraMove 22s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
.theme-transition.to-dark {
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.08);
}
.theme-transition.to-light {
  box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.06);
}
.theme-transition.expand {
  clip-path: circle(140vmax at var(--x) var(--y));
}
.theme-transition.fade-out {
  opacity: 0;
}

/* ==== СТИЛИ ДЛЯ СТРАНИЦЫ НАГРАД ==== */
.awards-section {
  padding: 2rem 0;
}

.awards-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.award-card {
  background: var(--bg-primary);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.award-image {
  position: relative;
  overflow: hidden;
}

.award-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.award-card:hover .award-image img {
  transform: scale(1.05);
}

.award-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.award-card:hover .award-overlay {
  opacity: 1;
}

.award-overlay .icon {
  width: 2rem;
  height: 2rem;
  color: white;
}

.award-info {
  padding: 1rem;
}

.award-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.award-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.award-year {
  font-weight: 500;
  color: var(--primary-color);
}

.award-place {
  color: var(--text-light);
}

.award-category {
  display: inline-block;
  background: var(--bg-accent);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.no-awards {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

/* Модальное окно для наград */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  padding: 1rem;
  overflow-y: auto;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: 0.75rem;
  /* увеличиваю максимальную ширину модального окна */
  max-width: 1200px;
  margin: 2rem auto;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  /* увеличиваю отступы для большего модального окна */
  padding: 2rem;
}

.modal-image {
  width: 100%;
  /* увеличиваю высоту изображения в модальном окне */
  height: 400px;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-image:hover {
  transform: scale(1.02);
}

.modal-details p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  /* увеличиваю размер текста деталей */
  font-size: 1.1rem;
}

.modal-details strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Темная тема для наград */
:root[data-theme="dark"] .award-card {
  background-color: #0e1627;
  border-color: var(--border-color);
}

:root[data-theme="dark"] .award-category {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--primary-light);
}

:root[data-theme="dark"] .modal-content {
  background-color: #0e1627;
}

:root[data-theme="dark"] .filter-select {
  background-color: #0b1322;
  border-color: #243148;
  color: var(--text-primary);
}

/* Адаптивность */
@media (max-width: 768px) {
  .awards-grid {
    grid-template-columns: 1fr;
  }

  .awards-filters {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-group {
    width: 100%;
  }

  .filter-select {
    min-width: auto;
    width: 100%;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modal-image {
    /* увеличиваю высоту изображения на мобильных */
    height: 300px;
  }
}

@media (max-width: 480px) {
  .awards-section {
    padding: 1rem 0;
  }

  .modal {
    padding: 0.5rem;
  }

  .modal-content {
    margin: 1rem auto;
  }

  .modal-body {
    /* увеличиваю отступы на мобильных */
    padding: 1.5rem;
  }
}

/* ==== СТИЛИ ДЛЯ СТРАНИЦЫ БЕЗОПАСНОСТИ ==== */
.safety-content {
  /* увеличиваю верхний отступ для карточек с 3rem до 4rem */
  padding: 5rem 0 3rem;
}

.safety-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.safety-topic {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.safety-topic::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.safety-topic:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.safety-topic:hover::before {
  transform: scaleY(1);
}

.safety-topic.high {
  border-left: 4px solid #ef4444;
}

.safety-topic.medium {
  border-left: 4px solid #f59e0b;
}

.safety-topic.low {
  border-left: 4px solid #10b981;
}

.topic-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--bg-accent);
  border-radius: 50%;
  margin-top: 0.25rem;
}

.topic-content {
  flex: 1;
}

.topic-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.topic-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.topic-priority {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.priority-high {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.priority-medium {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.priority-low {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.topic-arrow {
  font-size: 1.5rem;
  color: var(--text-light);
  transition: all 0.3s ease;
  align-self: center;
}

.safety-topic:hover .topic-arrow {
  color: var(--primary-color);
  transform: translateX(4px);
}

/* Модальное окно для статей безопасности */
.safety-modal-content {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}

.safety-article {
  padding: 2rem;
}

.safety-article h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.safety-article-content {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

/* добавляю стили для изображений в статьях */
.safety-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-md);
}

.safety-article-content .article-image {
  text-align: center;
  margin: 1.5rem 0;
}

.safety-article-content .article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
}

.safety-article-content .image-caption {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
}

/* Темная тема для безопасности */
:root[data-theme="dark"] .safety-topic {
  background-color: #0e1627;
  border-color: var(--border-color);
}

:root[data-theme="dark"] .topic-icon {
  background-color: rgba(34, 197, 94, 0.1);
}

:root[data-theme="dark"] .safety-modal-content {
  background-color: #0e1627;
}

:root[data-theme="dark"] .priority-high {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

:root[data-theme="dark"] .priority-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

:root[data-theme="dark"] .priority-low {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

:root[data-theme="dark"] .warning-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.08));
  border-color: rgba(239, 68, 68, 0.3);
}

:root[data-theme="dark"] .warning-box h3 {
  color: #f87171 !important;
}

:root[data-theme="dark"] .info-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.08));
  border-color: rgba(16, 185, 129, 0.3);
}

:root[data-theme="dark"] .info-box h3 {
  color: #34d399 !important;
}

:root[data-theme="dark"] .info-box p {
  margin: 0;
  color: var(--text-secondary);
}

/* Адаптивность для безопасности */
@media (max-width: 768px) {
  .safety-topics {
    grid-template-columns: 1fr;
  }

  .safety-topic {
    padding: 1.25rem;
  }

  .topic-icon {
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
  }

  .topic-title {
    font-size: 1.1rem;
  }

  .safety-article {
    padding: 1.5rem;
  }

  .safety-article h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .safety-content {
    padding: 1rem 0;
  }

  .safety-topic {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .topic-icon {
    align-self: center;
  }

  .topic-arrow {
    display: none;
  }

  .safety-article {
    padding: 1rem;
  }
}

/* ==== СТИЛИ ДЛЯ МЕДИА В НОВОСТЯХ ==== */
.news-media,
.article-media {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  margin-bottom: 12px;
  aspect-ratio: 16 / 9;
}
.news-media img,
.article-media img,
.news-media video,
.article-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==== СТИЛИ ПОЛНОЙ СТАТЬИ ==== */
.article-page {
  padding: 2.5rem 0;
  background-color: var(--bg-secondary);
}
.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}
.article-header {
  margin-bottom: 1rem;
}
.article-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
}
.article-meta {
  display: flex;
  gap: .75rem;
  align-items: center;
  color: var(--text-light);
  font-size: .9rem;
}
.article-content {
  background: var(--bg-primary);
  border-radius: .75rem;
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  color: var(--text-secondary);
}
.article-content h2,
.article-content h3 {
  color: var(--text-primary);
  margin-top: 1rem;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.article-tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: .25rem .5rem;
  border-radius: .5rem;
  font-size: .8rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--primary-color);
}
.back-link:hover {
  color: var(--primary-dark);
}

/* Полноэкранное модальное окно */
.fullscreen-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fullscreen-modal.active {
  opacity: 1;
}

.fullscreen-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.fullscreen-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.fullscreen-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fullscreen-image:hover {
  transform: scale(1.02);
}

/* Адаптивность для полноэкранного режима */
@media (max-width: 768px) {
  .fullscreen-close {
    top: -2.5rem;
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }

  .fullscreen-content {
    max-width: 98vw;
    max-height: 98vh;
  }
}

/* ==== СТИЛИ ДЛЯ КАРТЫ ==== */
.company-map {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.map-container {
  flex: 1;
  min-height: 300px;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 12px 12px 0 0;
}

.map-info {
  padding: 20px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.map-info h3 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.map-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* Адаптивность для карты */
@media (max-width: 768px) {
  .company-map {
    margin-top: 2rem;
  }

  .map-container {
    min-height: 250px;
  }

  #map {
    min-height: 250px;
  }

  .map-info {
    padding: 16px;
  }

  .map-info h3 {
    font-size: 16px;
  }
}

/* Темная тема для карты */
:root[data-theme="dark"] .company-map {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

:root[data-theme="dark"] .map-info {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

:root[data-theme="dark"] .map-info h3 {
  color: var(--text-primary);
}

:root[data-theme="dark"] .map-info p {
  color: var(--text-secondary);
}

/* Стили для Leaflet карты в темной теме */
:root[data-theme="dark"] .leaflet-container {
  background: #1a202c;
}

:root[data-theme="dark"] .leaflet-control-container .leaflet-control {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

:root[data-theme="dark"] .leaflet-control-container .leaflet-control a {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

:root[data-theme="dark"] .leaflet-control-container .leaflet-control a:hover {
  background: var(--bg-accent);
}

:root[data-theme="dark"] .leaflet-popup-content-wrapper {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .leaflet-popup-tip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

/* ==== СТИЛИ ДЛЯ ВСТРОЕННОЙ КАРТЫ ==== */
.company-location {
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.company-location:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.company-location iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

.location-info {
  padding: 20px;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  gap: 16px;
}

.location-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.location-text h3 {
  margin: 0 0 4px 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.location-text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 768px) {
  .company-location {
    height: 320px;
    margin-top: 2rem;
  }

  .company-location iframe {
    height: 240px;
  }

  .location-info {
    padding: 16px;
    gap: 12px;
  }

  .location-icon {
    width: 40px;
    height: 40px;
  }

  .location-icon svg {
    width: 20px;
    height: 20px;
  }

  .location-text h3 {
    font-size: 16px;
  }

  .location-text p {
    font-size: 13px;
  }
}

/* Темная тема */
:root[data-theme="dark"] .company-location {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .company-location:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .location-info {
  background: var(--bg-secondary);
}

/* ==== СТИЛИ ДЛЯ КАСТОМНОГО МАРКЕРА LEAFLET ==== */
.custom-marker {
  background: none !important;
  border: none !important;
}

.marker-pin {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: bounce 2s infinite;
}

.marker-pin svg {
  width: 20px;
  height: 20px;
  color: white;
  transform: rotate(45deg);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: rotate(-45deg) translateY(0);
  }
  40% {
    transform: rotate(-45deg) translateY(-10px);
  }
  60% {
    transform: rotate(-45deg) translateY(-5px);
  }
}

/* ==== СТИЛИ ДЛЯ ВСПЛЫВАЮЩЕГО ОКНА КАРТЫ ==== */
.map-popup {
  font-family: "Inter", sans-serif;
  min-width: 250px;
}

.map-popup h3 {
  margin: 0 0 12px 0;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600;
}

.map-popup p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

.map-popup strong {
  color: var(--primary-color);
}

/* ==== СТИЛИ ДЛЯ ССЫЛКИ НА КАРТУ ==== */
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
  transition: color 0.2s ease;
}

.map-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Стили для логотипа */
.logo-image {
  width: 150%;
  height: 150%;
  object-fit: contain;
  border-radius: 8px;
}

/* Адаптивные размеры логотипа */
.header .logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer .logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Для темной темы */
[data-theme="dark"] .logo-image {
  filter: brightness(1.1);
}

/* Hover эффект */
.logo:hover .logo-image {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* ==== СТИЛИ ДЛЯ HERO С HTML ИЗОБРАЖЕНИЕМ ==== */
.hero {
  min-height: 67vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.hero-background {
  position: absolute;
  top: -20px;           /* Отрицательное значение сверху для компенсации */
  left: 0;
  width: 100%;
  height: calc(100% + 40px);  /* Увеличиваем высоту для покрытия полосы */
  object-fit: cover;
  object-position: center -90px;  /* Немного корректируем позицию */
  z-index: 0;
}

/* Планшеты и маленькие ПК (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-background {
    top: -30px;
    height: calc(100% + 60px);
    object-position: center -70px;
  }
}

/* Средние ПК (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .hero-background {
    top: -40px;
    height: calc(100% + 80px);
    object-position: center -100px;
  }
}

/* Большие экраны (1441px и выше) */
@media (min-width: 1441px) {
  .hero-background {
    top: -50px;
    height: calc(100% + 100px);
    object-position: center -130px;
  }
}

/* Очень большие экраны (1920px и выше) */
@media (min-width: 1920px) {
  .hero-background {
    top: -60px;
    height: calc(100% + 120px);
    object-position: center -50px;  /* ← ЭТО ЗНАЧЕНИЕ ПОДБЕРИ ПОД СВОЁ ИЗОБРАЖЕНИЕ */
  }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
  .hero-background {
    top: 0;
    height: 100%;
    object-position: center 0%;
  }
  
  .hero {
    min-height: 50vh;
  }
}
.hero-text-center {
  text-align: center;
  animation: fadeInUp 1s ease-out;
  /* улучшаю центрирование текста */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text-center h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  /* усиливаю тень для лучшей читаемости на поле */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  opacity: 0.9;
  /* добавляю сильную тень и обводку для лучшей видимости на светлых участках */
  color: black;
  text-shadow: 2px 2px 4px rgba(55, 55, 55, 0.8), 0 0 8px rgba(55, 55, 55, 0.6);
  -webkit-text-stroke: 1px rgba(55, 55, 55, 0.3);
}

.hero-description {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность для hero */
@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
  }

  .hero-text-center h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}

/* Темная тема для hero */
:root[data-theme="dark"] .hero-subtitle {
  color: white;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.6);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

:root[data-theme="dark"] .hero-text-center h1 {
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.6);
}

:root[data-theme="dark"] .hero-description {
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

/* ==== СТИЛИ ДЛЯ СТРАНИЦЫ АКЦИОНЕРОВ ==== */
.shareholders-section {
  padding: 2rem 0;
}

.year-selector {
  margin-bottom: 3rem;
  text-align: center;
}

.year-selector h2 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.year-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.year-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.year-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.year-btn.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-md);
}

.key-metrics {
  margin-bottom: 3rem;
}

.key-metrics h2 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-align: center;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.metric-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.metric-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.financial-reports h2 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-align: center;
}

.report-accordions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-primary);
  transition: all 0.2s ease;
}

.accordion-header:hover {
  background: var(--bg-accent);
}

.accordion-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.accordion-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.active {
  max-height: 2000px;
}

.accordion-content > div {
  padding: 1.5rem;
}

.balance-sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.balance-section h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.balance-group {
  margin-bottom: 1.5rem;
}

.balance-group h5 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.balance-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.balance-item span:first-child {
  color: var(--text-secondary);
}

.balance-item span:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

.balance-total {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  border-top: 2px solid var(--border-color);
  font-weight: 600;
}

.balance-total span:first-child {
  color: var(--text-primary);
}

.balance-total span:last-child {
  color: var(--primary-color);
}

.balance-grand-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 3px solid var(--primary-color);
  font-weight: 700;
  font-size: 1.125rem;
}

.balance-grand-total span {
  color: var(--text-primary);
}

.income-statement {
  max-width: 600px;
  margin: 0 auto;
}

.income-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.income-item span:first-child {
  color: var(--text-secondary);
}

.income-item span:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

.income-total {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  margin: 0.5rem 0;
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
}

.income-total span:first-child {
  color: var(--text-primary);
}

.income-total span:last-child {
  color: var(--primary-color);
}

.income-grand-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 3px solid var(--primary-color);
  font-weight: 700;
  font-size: 1.125rem;
  background: var(--bg-accent);
  border-radius: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.income-grand-total span {
  color: var(--text-primary);
}

.company-info {
  max-width: 800px;
  margin: 0 auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.info-item h5 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.info-item p {
  color: var(--text-secondary);
  margin: 0;
}

.info-item ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-secondary);
}

.info-item li {
  margin-bottom: 0.25rem;
}

.no-data {
  text-align: center;
  padding: 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  margin-top: 2rem;
}

.no-data p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* Темная тема для страницы акционеров */
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .accordion-item,
:root[data-theme="dark"] .info-item,
:root[data-theme="dark"] .no-data {
  background-color: #0e1627;
  border-color: var(--border-color);
}

:root[data-theme="dark"] .accordion-header {
  background-color: #0b1220;
}

:root[data-theme="dark"] .accordion-header:hover {
  background-color: #0e1627;
}

:root[data-theme="dark"] .year-btn {
  background-color: #0e1627;
  border-color: var(--border-color);
}

:root[data-theme="dark"] .income-grand-total {
  background-color: rgba(34, 197, 94, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
  .balance-sheet {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .year-buttons {
    gap: 0.25rem;
  }

  .year-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.article-media img {
  border-radius: 12px; /* скругление */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
}
.article-media video {
  max-width: 100%;
  display: block;
  margin: 10px 0;
}

.article-content img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
}

/* Гарантия отсутствия горизонтального скролла */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* Убедимся, что мобильное меню не создает скролл */
.mobile-menu-sidebar {
  right: -100%;
  width: 320px;
  max-width: 100vw; /* Ограничиваем ширину */
}

.mobile-menu-sidebar.active {
  right: 0;
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .mobile-menu-sidebar {
    width: 100vw;
    right: -100vw;
  }

  .mobile-menu-sidebar.active {
    right: 0;
  }
}

/* Блокировка скролла при открытом меню */
body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Улучшаем оверлей */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
