#content-block {
  display: none;
  opacity: 0;
  transition: all 0.5s ease;
}
.flatpickr-input {
  font-size: 0.9rem;
}

#content-block.show {
  display: block;
  opacity: 1;
}

/* --- Required CSS (not customizable) --- */

.modal {
  display: none;
}

.modal:target {
  display: flex;
}

/* --- Required CSS (customizable) --- */

.modal {
  text-align: left;
  backdrop-filter: blur(2px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
}

.modal:target {
  justify-content: space-around;
  align-items: center;
}

.modal__overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  cursor: default;
}

.modal__content {
  min-width: 480px;
  position: relative;
  background-color: #f5f5f5;
  padding: 2rem;
}

.modal__close {
  color: initial;
  text-decoration: none;
  position: absolute;
  top: 0;
  right: 0;
  padding: 0 0.5rem;
  display: inline-block;
}

@media screen and (max-width: 900px) {
  .modal__content {
    min-width: 90%;
    max-width: 100%;
    position: relative;
    background-color: #f5f5f5;
    padding: 2rem;
  }
}

.hidden {
  display: none;
}

#loginForm {
  background-image: url(/aa/img/login__bg.jpg);
  height: 100vh;
}

.badge {
  line-height: 15px;
}

img#logo {
  height: 30px;
  margin-right: 10px;
}

/* Прижатие подвала к нижнему краю */
html,
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Modern Footer Styles */
.modern-footer {
  position: relative;
  margin-top: auto;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #ffffff;
  overflow: hidden;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
  fill: #f8f9fa;
  z-index: 1;
}

.footer-content {
  padding: 5rem 2rem 1.5rem;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col {
  animation: fadeInUp 0.6s ease-out;
}

.footer-col:nth-child(1) {
  animation-delay: 0.1s;
}

.footer-col:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-col:nth-child(3) {
  animation-delay: 0.3s;
}

.footer-col:nth-child(4) {
  animation-delay: 0.4s;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-logo i {
  font-size: 2rem;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: rgba(14, 165, 233, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
  border-color: rgba(14, 165, 233, 0.5);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  padding: 0.25rem 0;
  border-radius: 4px;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(5px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.stat-item:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateX(3px);
}

.stat-item i {
  font-size: 1.2rem;
  color: #0ea5e9;
  transition: all 0.2s ease;
}

.stat-item:hover i {
  color: #38bdf8;
}

.stat-item strong {
  color: #ffffff;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0;
}

.footer-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.footer-badge:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.4);
  transform: translateY(-1px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-content {
    padding: 2.5rem 1.5rem 1.25rem;
  }

  .footer-title {
    font-size: 1rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  backdrop-filter: blur(10px);
}

.brand-logo-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 1rem;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #6c757d;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057 !important;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #0d6efd !important;
  background-color: rgba(13, 110, 253, 0.08);
}

.navbar-toggler {
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 991.98px) {
  .site-header {
    position: relative;
  }

  .navbar-collapse {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .navbar-nav {
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.6rem 1rem !important;
    background-color: #f8f9fa;
    margin-bottom: 0.25rem;
  }

  .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }
}

@media (max-width: 575.98px) {
  .brand-logo-wrapper {
    width: 35px;
    height: 35px;
  }

  .brand-title {
    font-size: 0.85rem;
  }

  .brand-subtitle {
    font-size: 0.65rem;
  }

  .navbar {
    padding: 0.75rem 0;
  }
}

/* Анимация при наведении на ссылки */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0d6efd, transparent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Тень для шапки при скролле */
.site-header.scrolled {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
}
