/**
 * Липкая навигация по разделам (js/section-nav.js): панель, вкладки, заголовок при прокрутке.
 */

/* Заголовок курса: показывается JS-ом, когда навигация «прилипает» */
#title {
  display: none;
}

.titleblock {
  position: fixed;
  top: 0;
  left: 20%;
  right: 0;
  border-radius: 0;
  transform: translateZ(0);
  will-change: transform;
  z-index: 1000;
  width: 60%;
  background-color: white;
  height: 50px;
}

@media (max-width: 768px) {
  .titleblock {
    display: none !important;
  }
  .navigation {
    display: none !important;
  }
}

.stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  transform: translateZ(0);
  will-change: transform;
  z-index: 800;
  width: 100%;
  padding-left: 18% !important;
  padding-top: 70px !important;
}

.stage {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.stage.pending {
  background: rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

.navigation {
  background: white;
  padding: 20px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  display: block;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-size: 14px;
}

.nav-links a.active,
.nav-links a:hover {
  color: #000;
  border-bottom-color: #134fa9;
  border-radius: 0px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 20px;
    display: none;
  }
}
