/* Стили для боковой панели */
.sidebar {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  position: sticky;
  top: 1rem;
  border: 1px solid rgba(104, 94, 59, 0.1);
  height: 750px; /* Фиксированная высота для десктопной версии */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-color) transparent;
}

/* Стилизация скроллбара для WebKit (Chrome, Safari) */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: var(--secondary-color);
  border-radius: 3px;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 3px 0 0 3px;
}

.sidebar-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(104, 94, 59, 0.2);
  position: relative;
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--secondary-color);
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu li {
  margin-bottom: 0.75rem;
  position: relative;
}

.sidebar-menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.sidebar-menu a:hover {
  color: var(--secondary-color);
  padding-left: 0.5rem;
}

.sidebar-submenu {
  list-style: none;
  margin: 0.5rem 0 0.5rem 1rem;
  padding: 0;
  border-left: 1px solid rgba(104, 94, 59, 0.2);
}

.sidebar-submenu li {
  margin-bottom: 0.5rem;
}

.sidebar-submenu a {
  padding: 0.3rem 0 0.3rem 1rem;
  font-size: 0.95rem;
  font-weight: normal;
}

/* Центрирование блоков */
.working-hours {
  margin: 0 auto;
  text-align: center;
  display: block;
}

.deputy-info .card {
  margin: 0 auto;
  max-width: 500px;
}

.schedule-section .col-6,
.deputy-info .col-6 {
  margin: 0 auto;
  float: none;
  text-align: center;
}

.schedule-section .offset-3,
.deputy-info .offset-3 {
  margin-left: auto;
  margin-right: auto;
}

/* Адаптивность */
@media (max-width: 992px) {
  .sidebar {
    position: relative;
    top: 0;
    max-height: none;
    overflow: visible;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .sidebar {
    padding: 1.5rem;
  }
  
  .sidebar-title {
    font-size: 1.3rem;
  }
}
