/* CSS Variables */
:root {
  --primary-color: #474a51;
  --primary-dark: #303338;
  --primary-light: #787c88;
  --secondary-color: #f59e0b;
  --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);
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Icons */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
}

.header-top {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-main {
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
}

.logo-text h1 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.logo-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.accessibility-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  font-family: "Inter", sans-serif;
  z-index: 10001; /* Увеличиваю z-index чтобы панель была поверх мобильного меню */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background-color: var(--panel-bg, rgba(255, 255, 255, 0.95));
  color: var(--panel-color, #000);
  transition: background-color 0.3s, color 0.3s;
}

.panel-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.panel-content {
  display: none;
  padding: 10px;
}

.panel-section {
  margin-bottom: 10px;
}

.control-btn {
  margin: 2px;
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
}

.control-btn:hover {
  background-color: currentColor;
  color: var(--panel-bg, #fff);
}

.lang-switcher {
  display: flex;
  gap: 8px;
  margin-left: 25px; /* чуть правее */
}

.lang-btn {
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: 20px; /* пилюльки */
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0); /* плавная тень */
}

.lang-btn:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lang-btn.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
}

.leaflet-control-attribution {
  display: none !important;
}

.desktop-nav {
  display: none;
  flex-wrap: wrap; /* разрешаем перенос */
  justify-content: center; /* по центру */
  gap: 12px 24px; /* расстояние между кнопками */
  max-width: 1000px;
  margin: 0 auto;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 998; /* Понижаю z-index чтобы кнопка была под мобильной панелью */
  transition: all 0.3s ease; /* Добавляю плавный переход */
}

.mobile-menu-btn span {
  width: 1.5rem;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
  border-radius: 1px;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  /* Предотвращаю скролл на overlay */
  overscroll-behavior: contain;
  touch-action: none;

  /* Размытие всего сайта, кроме мобильного меню */
  body.mobile-menu-open .header,
  body.mobile-menu-open main,
  body.mobile-menu-open footer {
    filter: blur(6px);
    transition: filter 0.3s ease;
  }

  body.mobile-menu-open .mobile-menu-sidebar {
    filter: none !important;
  }
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: var(--bg-primary);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* Улучшаю скролл в мобильном меню */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-sidebar.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-logo-image {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  object-fit: contain;
}

.mobile-logo-text h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.mobile-logo-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}

.mobile-menu-close {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.mobile-menu-close:hover {
  background: var(--bg-accent);
  color: var(--primary-color);
  transform: rotate(90deg);
}

.mobile-menu-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-nav {
  flex: 1;
  padding: 1rem 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  position: relative;
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
  background: var(--bg-accent);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  transform: translateX(4px);
}

.mobile-nav-link.active {
  background: var(--bg-accent);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.mobile-menu-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.mobile-contact-info {
  margin-bottom: 1rem;
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.contact-icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.mobile-work-hours {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  padding: 0.5rem;
  background: var(--bg-primary);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
}

/* Анимация гамбургера */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Темная тема для мобильного меню */
:root[data-theme="dark"] .mobile-menu-sidebar {
  background: var(--bg-primary);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .mobile-menu-header,
:root[data-theme="dark"] .mobile-menu-footer {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

:root[data-theme="dark"] .mobile-menu-close {
  background: var(--bg-primary);
}

:root[data-theme="dark"] .mobile-work-hours {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

/* Адаптивность мобильного меню */
@media (max-width: 480px) {
  .mobile-menu-sidebar {
    width: 100vw;
    right: -100vw;
  }
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vacancies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .page-header h1 {
    font-size: 4rem;
  }

  .contact-info {
    display: flex;
  }

  .work-hours {
    display: block;
  }

  .page-header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-header-text {
    text-align: left;
    flex: 1;
  }

  .page-header-actions {
    flex-direction: row;
    justify-content: flex-end;
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero h1 {
    font-size: 4rem;
  }

  .news-layout {
    grid-template-columns: 1fr 300px;
  }

  .main-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .header-top-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .vacancy-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .vacancy-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .phone-item,
  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .banking-item {
    text-align: center;
  }

  .reception-table {
    font-size: 0.875rem;
  }

  .reception-table th,
  .reception-table td {
    padding: 0.5rem;
  }

  .news-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .pagination {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination-numbers {
    order: -1;
  }

  .page-header-actions {
    flex-direction: column;
    width: 100%;
  }

  .search-box {
    min-width: auto;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.about-content,
.service-card,
.news-card,
.contact-card,
.news-item {
  animation: fadeInUp 0.6s ease-out;
}



/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-accent) 0%, #fef3c7 100%);
  padding: 4rem 0;
  overflow: hidden;
}

.hero-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-features h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  margin-bottom: 2rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.check-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

/* About Section */
.about {
  padding: 4rem 0;
  background-color: var(--bg-primary);
}

.about-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background-color: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

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

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

/* Services Section */
.services {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
}

/* News Section */
.news {
  padding: 4rem 0;
  background-color: var(--bg-primary);
}

.news-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.news-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.news-category {
  background-color: var(--bg-accent);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.news-date {
  font-size: 0.875rem;
  color: var(--text-light);
}

.news-card h3 {
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.news-card p {
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition);
}

.news-link:hover {
  color: var(--primary-dark);
}

.section-footer {
  text-align: center;
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
}

.contact-content {
  display: grid;
  gap: 3rem;
}

.contact-info-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  background-color: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-color);
  margin-right: 0.75rem;
}

.contact-card h3 {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.contact-card p {
  margin-bottom: 0;
  white-space: pre-line;
}

.contact-form-card {
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(34 197 94 / 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Page Header */
.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
  background-color: var(--bg-secondary);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-link:hover {
  color: var(--primary-dark);
}

.breadcrumb-separator {
  width: 1rem;
  height: 1rem;
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* News Page Styles */
.page-header-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.page-header-text {
  text-align: center;
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  width: 100%;
  max-width: 600px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: var(--transition);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.2);
}

.search-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
}

.filter-controls select {
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  min-width: 150px;
}

.filter-controls select option {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.news-content {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
}

.news-layout {
  display: grid;
  gap: 3rem;
}

.news-main {
  flex: 1;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-item {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.news-item.featured {
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-primary) 100%);
}

.news-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 0;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-category {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.news-category.announcement {
  background-color: #fef3c7;
  color: #92400e;
}

.news-category.news {
  background-color: #dbeafe;
  color: #1e40af;
}

.news-category.events {
  background-color: #f3e8ff;
  color: #7c3aed;
}

.news-category.reports {
  background-color: #ecfdf5;
  color: #059669;
}

.news-date {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.news-actions {
  display: flex;
  gap: 0.5rem;
}

.news-share-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.news-share-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
}

.news-share-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.news-content-wrapper {
  padding: 0 1.5rem 1.5rem;
}

.news-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.news-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.specialties-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.specialties-list li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 500;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.read-more-btn:hover {
  color: var(--primary-dark);
}

.read-more-btn .icon {
  width: 1rem;
  height: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-number {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-number:hover,
.pagination-number.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-dots {
  color: var(--text-light);
  font-weight: 500;
}

/* Sidebar */
.news-sidebar {
  width: 100%;
}

.sidebar-widget {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.category-list,
.archive-list {
  list-style: none;
}

.category-item,
.archive-item {
  margin-bottom: 0.5rem;
}

.category-link,
.archive-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.category-link:hover,
.category-link.active,
.archive-link:hover {
  background-color: var(--bg-accent);
  color: var(--primary-color);
}

.category-count {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.category-link.active .category-count {
  background-color: var(--primary-color);
  color: white;
}

.archive-link {
  gap: 0.5rem;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cloud-tag {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.cloud-tag:hover {
  background-color: var(--primary-color);
  color: white;
}

.contact-widget {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.contact-widget .widget-title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact-info-compact {
  margin-bottom: 1rem;
}

.contact-item-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.contact-item-compact .icon {
  width: 1rem;
  height: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* No Results Message */
.no-results-message {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.no-results-content {
  max-width: 300px;
  margin: 0 auto;
}

.no-results-icon {
  width: 4rem;
  height: 4rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.no-results-content h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.no-results-content p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Vacancies Styles */
.vacancies-content {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
}

.urgent-notice {
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.urgent-notice h2 {
  color: #92400e;
  margin-bottom: 1rem;
}

.urgent-notice p {
  color: #78350f;
  margin-bottom: 1rem;
}

.urgent-notice ul {
  color: #78350f;
  padding-left: 1.5rem;
}

.urgent-notice li {
  margin-bottom: 0.5rem;
}

.vacancies-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

.vacancy-card {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.vacancy-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.vacancy-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.vacancy-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.vacancy-type {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.vacancy-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.department,
.location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.vacancy-section {
  margin-bottom: 1.5rem;
}

.vacancy-section h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.vacancy-section ul {
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.vacancy-section li {
  margin-bottom: 0.25rem;
}

.vacancy-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.contact-email {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.reception-schedule {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.reception-schedule h2 {
  margin-bottom: 1.5rem;
}

.table-container {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
}

.schedule-table th,
.schedule-table td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

.schedule-table th {
  background-color: var(--bg-secondary);
  font-weight: 600;
}

.schedule-table tr:nth-child(even) {
  background-color: var(--bg-secondary);
}

.schedule-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Footer */
.footer {
  background-color: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
}


.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-section a:hover {
  color: white;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact .icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary-color);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* Contacts Page Styles */
.main-contact-info {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
}

.main-contact-grid {
  display: grid;
  gap: 2rem;
}

.main-contact-card {
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.main-contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-card-header .contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-color);
}

.contact-card-header h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.phone-list,
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phone-item,
.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.phone-item:last-child,
.schedule-item:last-child {
  border-bottom: none;
}

.phone-label,
.schedule-day {
  font-weight: 500;
  color: var(--text-secondary);
}

.phone-number,
.schedule-time {
  font-weight: 600;
  color: var(--text-primary);
}

.reception-schedule-section {
  padding: 4rem 0;
  background-color: var(--bg-primary);
}

.reception-table-card {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.reception-table {
  width: 100%;
  border-collapse: collapse;
}

.reception-table th,
.reception-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.reception-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.reception-table tr:nth-child(even) {
  background-color: var(--bg-secondary);
}

.reception-note {
  padding: 1.5rem;
  background-color: var(--bg-accent);
  border-top: 1px solid var(--border-color);
}

.reception-note p {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.departments-contacts {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
}

.department-section {
  margin-bottom: 3rem;
}

.department-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.department-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-color);
}

.contacts-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

/* Specialist Card Styles */
.contact-item-card {
    background-color: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: none;
    display: flex;
    flex-direction: row;
    height: auto;
    box-shadow: none;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

.contact-item-card:last-child {
    border-bottom: none;
}

.contact-item-card:hover {
    transform: none;
    box-shadow: none;
}

.contact-item-card-image {
    width: 140px;
    height: 140px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.contact-item-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.contact-item-card:hover .contact-item-card-image img {
    transform: scale(1.05);
}

.contact-item-card-image.no-image {
    background: linear-gradient(135deg, var(--bg-accent) 0%, #f0f0f0 100%);
    font-size: 3rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.contact-item-card-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;
    padding-top: 0.5rem;
}

.contact-position {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
    line-height: 1.3;
    font-weight: 400;
}

.contact-position:first-child {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.4rem;
}

.contact-position:nth-child(2) {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.contact-phone {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.2rem;
    white-space: nowrap;
}

.contact-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-word;
    margin-top: 0.1rem;
    padding-top: 0;
    border-top: none;
}

.contact-item-card {
  background-color: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-item-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.contact-position {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-phone {
  font-family: "Courier New", monospace;
  color: var(rgb(255, 255, 255));
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-email {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.banking-details {
  padding: 4rem 0;
  background-color: var(--bg-primary);
}

.banking-card {
  background-color: var(--bg-primary);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.banking-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.banking-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.banking-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.banking-value {
  font-weight: 500;
  color: var(--text-primary);
  font-family: "Courier New", monospace;
}

.contact-form-section {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
}

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--bg-primary);
  transition: var(--transition);
}

.contact-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(34 197 94 / 0.1);
}

/* Responsive Design */
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vacancies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .page-header h1 {
    font-size: 4rem;
  }

  .contact-info {
    display: flex;
  }

  .work-hours {
    display: block;
  }

  .page-header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-header-text {
    text-align: left;
    flex: 1;
  }

  .page-header-actions {
    flex-direction: row;
    justify-content: flex-end;
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero h1 {
    font-size: 4rem;
  }

  .news-layout {
    grid-template-columns: 1fr 300px;
  }

  .main-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .header-top-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .vacancy-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .vacancy-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .phone-item,
  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .banking-item {
    text-align: center;
  }

  .reception-table {
    font-size: 0.875rem;
  }

  .reception-table th,
  .reception-table td {
    padding: 0.5rem;
  }

  .news-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .pagination {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination-numbers {
    order: -1;
  }

  .page-header-actions {
    flex-direction: column;
    width: 100%;
  }

  .search-box {
    min-width: auto;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.about-content,
.service-card,
.news-card,
.contact-card,
.news-item {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}

/* добавляю стили для социальных сетей в footer */
.footer-social {
  margin-top: 1.5rem;
}

.footer-social h5 {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: white;
  font-weight: 500;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #303338;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--primary-color);
  transform: translateX(0.25rem);
}

.social-link .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: currentColor;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

/* добавляю адаптивные стили для социальных сетей */
@media (min-width: 768px) {
  .social-links {
    flex-direction: row;
    gap: 1rem;
  }
}

/* Активная кнопка (зелёная) */
.btn-active {
  background-color: #474a51; /* зелёный */
  color: #fff !important;
  border: 1px solid #303338;
}

.btn-active:hover {
  background-color: #474a51;
  border-color: #303338;
}

/* Адаптивность мобильного меню */
@media (max-width: 360px) {
  .mobile-menu-sidebar {
    width: 100vw;
    right: -100vw;
  }

  .accessibility-panel {
    top: 10px;
    right: 10px;
    font-size: 0.9rem;
  }
}

/* Улучшаю стили для сенсорных устройств */
@media (hover: none) and (pointer: coarse) {
  .mobile-nav-link {
    min-height: 48px; /* Минимальная высота для удобного нажатия пальцем */
    display: flex;
    align-items: center;
  }

  .mobile-menu-btn {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Исправляю блюр - убираю размытие с самого меню и улучшаю блокировку скролла */
body.mobile-menu-open {
  overflow: hidden;
  position: relative;
  height: 100%;
}

/* Дополнительная блокировка для html элемента */
html.mobile-menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100vh !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

/* Контейнер медиа */
.article-media {
  display: block; /* показываем контейнер */
  width: 100%; /* занимает всю ширину родителя */
  max-width: 100%; /* не вылезает за пределы */
  margin: 1rem 0; /* отступы сверху и снизу */
}

/* Изображения внутри контейнера */
.article-media img {
  width: 100%; /* растягиваем под ширину контейнера */
  max-width: 100%; /* не выходит за пределы */
  height: auto; /* сохраняем пропорции */
  display: block; /* убираем лишние отступы */
  border-radius: 6px; /* скругление по желанию */
  object-fit: cover; /* красиво подстраивает изображение */
}

/* Видео внутри контейнера */
.article-media video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.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;
}

/* Добавляю стили для красивой карточки документа */
.document-highlight {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-primary) 100%);
}

.document-card-featured {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--bg-primary);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-card-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.document-card-icon {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.document-card-icon svg {
  width: 60px;
  height: 60px;
  color: var(--primary-color);
  stroke-width: 2;
}

.document-card-content {
  flex: 1;
}

.document-card-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.document-card-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .document-card-featured {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .document-card-icon {
    width: 100px;
    height: 100px;
  }

  .document-card-icon svg {
    width: 50px;
    height: 50px;
  }

  .document-card-content h2 {
    font-size: 1.5rem;
  }

  .document-card-content p {
    font-size: 1rem;
  }
}

/* Added typewriter animation styles */
.typewriter-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 3.5rem;
}

.typewriter-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

.typewriter-cursor {
  font-size: 1.5rem;
  color: var(--primary-color);
  animation: blink 1s infinite;
  font-weight: 300;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* Redesigned Organizational Life Section - minimalist photo grid */
.organizational-life,
.social-life {
  padding: 5rem 0;
}

.organizational-life {
  background-color: var(--bg-primary);
}

.social-life {
  background-color: var(--bg-secondary);
}

.life-grid {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  margin-top: 3rem;
}

.life-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Updated image container to support carousel */
.life-image-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.life-image-carousel:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.carousel-images {
  position: relative;
  width: 100%;
  height: 400px;
  background-color: #f5f5f5;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
  z-index: 1;
}

/* Added carousel dots navigation */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.dot.active {
  background-color: rgba(255, 255, 255, 1);
  width: 30px;
  border-radius: 5px;
}

/* Removed old .life-image styles and replaced with carousel */
.life-image-carousel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
  pointer-events: none;
}

.life-image-carousel:hover::before {
  opacity: 1;
}

.life-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.life-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.life-image:hover::before {
  opacity: 1;
}

.life-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.life-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.life-image:hover img {
  transform: scale(1.08);
}

.life-text {
  padding: 1rem 0;
}

.life-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.life-text h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1.25rem 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.life-text p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

/* Reverse layout for alternating blocks */
.life-block-reverse {
  grid-template-columns: 1fr 1.2fr;
}

.life-block-reverse .life-image {
  order: 2;
}

.life-block-reverse .life-text {
  order: 1;
}

/* Dark theme support */
:root[data-theme="dark"] .life-image {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .life-image:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] .life-image-carousel {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .life-image-carousel:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] .dot {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

:root[data-theme="dark"] .dot.active {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Responsive design for tablets */
@media (max-width: 1024px) {
  .life-block,
  .life-block-reverse {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .life-text h3 {
    font-size: 1.5rem;
  }

  .life-text p {
    font-size: 1rem;
  }

  .life-icon {
    font-size: 2.5rem;
  }

  .carousel-images {
    height: 350px;
  }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .organizational-life,
  .social-life {
    padding: 3rem 0;
  }

  .life-grid {
    gap: 3rem;
    margin-top: 2rem;
  }

  .life-block,
  .life-block-reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .life-block-reverse .life-image {
    order: 1;
  }

  .life-block-reverse .life-text {
    order: 2;
  }

  .life-text {
    padding: 0;
  }

  .life-text h3 {
    font-size: 1.375rem;
  }

  .life-text p {
    font-size: 0.9375rem;
  }

  .life-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  .life-image {
    border-radius: 12px;
  }

  .typewriter-container {
    flex-direction: column;
    align-items: flex-start;
    min-height: 4rem;
  }

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

  .carousel-images {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .organizational-life,
  .social-life {
    padding: 2.5rem 0;
  }

  .life-grid {
    gap: 2.5rem;
  }

  .life-text h3 {
    font-size: 1.25rem;
  }

  .life-icon {
    font-size: 2rem;
  }

  .typewriter-container {
    flex-direction: column;
    align-items: flex-start;
    min-height: 4rem;
  }

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

  .org-photo-overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .social-grid {
    gap: 2.5rem;
  }

  .carousel-images {
    height: 240px;
  }
}

/* Dark theme support for new sections */
:root[data-theme="dark"] .life-image,
:root[data-theme="dark"] .social-item {
  background-color: #0e1627;
  border-color: var(--border-color);
}

:root[data-theme="dark"] .gallery-caption {
  background-color: #0e1627;
}


/* коллективный договор */
.collective-agreement {
  background: var(--bg-secondary);
  padding: 4rem 0;
  text-align: center;
  transition: var(--transition);
}

.collective-agreement h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.agreement-intro,
.agreement-summary {
  max-width: 850px;
  margin: 0 auto 2rem;
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1.7;
}

.agreement-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.benefit-item {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  background: var(--primary-color);
  color: #fff;
}

.benefit-item strong {
  text-align: left;
}

:root[data-theme="dark"] .collective-agreement {
  background: var(--primary-dark);
}

:root[data-theme="dark"] .benefit-item {
  background: #222;
  color: #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

:root[data-theme="dark"] .benefit-item:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Mobile responsive for contact cards */
@media (max-width: 767px) {
  .contact-item-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    align-items: flex-start;
  }

  .contact-item-card-image {
    width: 120px;
    height: 120px;
  }

  .contact-item-card-content {
    padding: 0;
  }

  .contact-position {
    font-size: 0.85rem;
  }

  .contact-position:nth-child(2) {
    font-size: 1rem;
  }

  .contact-phone {
    font-size: 0.85rem;
  }

  .contact-email {
    font-size: 0.8rem;
  }
}

.news-content figure,
.article-content figure,
.post-content figure {
  margin: 20px auto;
  text-align: center;
  display: block;
}

.news-content img,
.article-content img,
.post-content img {
  max-width: 100%;
  max-height: 700px;
  width: auto;
  height: auto;
  display: block;
  margin: 20px auto; /* Автоматические отступы слева и справа */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-content video,
.article-content video,
.post-content video {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  display: block;
  margin: 20px auto; /* Центрирование через margin auto */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Специально для Quill редактора */
.ql-editor {
  text-align: left; /* Текст остается слева */
}

.ql-editor img,
.ql-editor video,
.ql-editor iframe {
  display: block;
  margin-left: auto;
  margin-right: auto; /* Центрирование медиа */
}

.ql-editor .custom-video-wrapper {
  display: flex;
  justify-content: center; /* Центрируем видео контейнер */
  margin: 20px auto;
}

.ql-editor .custom-video-local,
.ql-editor .custom-video-embed {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 400px;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
  .news-content img,
  .article-content img,
  .post-content img,
  .news-content video,
  .article-content video,
  .post-content video {
    max-height: 300px;
    margin: 15px auto;
  }
}

/* Центрирование iframe (YouTube, Vimeo) */
.news-content iframe,
.article-content iframe,
.post-content iframe {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  max-height: 400px;
  width: 560px; /* Стандартная ширина YouTube */
  height: 315px; /* Стандартная высота YouTube */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Адаптивность для iframe */
@media (max-width: 640px) {
  .news-content iframe,
  .article-content iframe,
  .post-content iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}

/* Для картинок с подписями */
.news-content .wp-caption,
.article-content .wp-caption,
.post-content .wp-caption {
  margin: 20px auto;
  text-align: center;
  max-width: 100%;
}

.news-content .wp-caption-text,
.article-content .wp-caption-text,
.post-content .wp-caption-text {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Центрирование в слабых браузерах */
.news-content center,
.article-content center,
.post-content center {
  display: block;
  margin: 20px auto;
}

/* Усиленные селекторы для центрирования */
.news-content img:not(.no-center),
.article-content img:not(.no-center),
.news-content video:not(.no-center),
.article-content video:not(.no-center) {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  clear: both !important;
}

/* Для изображений внутри параграфов */
.news-content p img,
.article-content p img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Стили для Quill редактора на сайте */
.ql-editor img,
.ql-editor video {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.ql-editor .ql-video-wrapper,
.ql-editor .custom-video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.ql-editor .ql-video-local,
.ql-editor .custom-video-local {
  margin: 0 auto;
}

/* Исправление для inline стилей */
[style*="float: left"],
[style*="float:left"],
[style*="float: right"],
[style*="float:right"] {
  float: none !important;
  margin: 20px auto !important;
  display: block !important;
}

/* Центрирование в мобильной версии */
@media (max-width: 480px) {
  .news-content img,
  .article-content img,
  .news-content video,
  .article-content video {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
}

/* Полноэкранное модальное окно для изображений */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.fullscreen-modal.active {
    opacity: 1;
}

.fullscreen-content {
    position: relative;
    width: 95%;
    height: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
}

/* Архив стили */
.archive-main {
  padding: 2rem 0;
  min-height: calc(100vh - 300px);
}

.archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.archive-header {
  margin-bottom: 3rem;
  text-align: center;
}

.archive-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.archive-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.archive-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.archive-card-image {
  width: 100%;
  height: 200px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.archive-card-content {
  padding: 1.5rem;
}

.archive-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.archive-card-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.archive-card-count {
  display: inline-block;
  font-size: 0.85rem;
  background: #f9fafb;
  color: #6b7280;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.no-archive {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Модальное окно архива */
.archive-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.archive-modal.active {
  display: flex;
  opacity: 1;
}

.archive-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.archive-modal-close:hover {
  transform: scale(1.2);
}

.archive-modal-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.archive-modal-viewer {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#mediaViewer {
  max-width: 90%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.media-item {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.archive-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.archive-modal-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.archive-modal-counter {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

.media-viewer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.archive-modal-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.archive-modal-btn {
  background: linear-gradient(135deg, #474a51 0%, #303338 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.archive-modal-btn:hover {
  background: linear-gradient(135deg, #303338 0%, #1a1c21 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.archive-modal-btn:active {
  transform: translateY(0);
}

.archive-modal-list {
  width: 240px;
  max-height: 80vh;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin-left: 2rem;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.archive-modal-list-title {
  color: white;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.9;
}

#mediaList {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.media-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.archive-modal-list .media-item {
  max-width: 100%;
  border-radius: 6px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  color: white;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 500;
}

.archive-modal-list .media-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.archive-modal-list .media-item.active {
  background: linear-gradient(135deg, #474a51 0%, #303338 100%);
  border-color: #474a51;
  box-shadow: 0 2px 8px rgba(71, 74, 81, 0.3);
}

/* Мобильные стили */
@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .archive-header h1 {
    font-size: 1.8rem;
  }

  .archive-modal-content {
    flex-direction: column;
    padding: 1rem;
  }

  .archive-modal-list {
    width: 100%;
    max-height: 200px;
    margin-left: 0;
    margin-top: 1rem;
  }

  #mediaViewer {
    max-height: 50vh;
  }

  .media-item {
    max-height: 50vh;
  }
}
}

.fullscreen-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.fullscreen-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100000;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* Курсор-лупа для изображений */
.article-media img,
.news-content-wrapper img,
.news-media img,
.article-content img {
    cursor: zoom-in !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-media img:hover,
.news-content-wrapper img:hover,
.news-media img:hover,
.article-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Баннер в футере */
.footer-banner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-banner-link {
  display: inline-block;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.footer-banner-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Само изображение */
.footer-banner-img {
  width: 150px;   /* ← МЕНЯЕШЬ РАЗМЕР ЗДЕСЬ */
  height: auto;
  display: block;
}

.footer-banner {
  align-items: flex-start;
}