body {
    4font-size: 20px;
}

/* ==================================================== */

.navbar {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.navbar-brand img {
  max-width: 60px;
  max-height: 60px;
  width: auto;
  height: auto;
}
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 0.5rem;
}
.btn-outline-warning {
  border-color: #ffc107;
  color: #ffc107;
}
.btn-outline-warning:hover {
  background-color: #ffc107;
  color: #000;
}
/* Дополнительно для верхней строки */
.navbar .fa-phone-alt {
  font-size: 0.9rem;
}
/* Отступ между верхней и нижней строкой */
.navbar .collapse.navbar-collapse {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 0.5rem;
}


/* ==================================================== */

/* Мягкая тень для «парящих» плашек */
.shadow-soft {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* ==================================================== */


/* Скрываем полосу прокрутки в навигационной ленте */
.nav-inpage::-webkit-scrollbar {
  display: none;
}
.nav-inpage {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html {
  scroll-behavior: smooth;
}

/* ==================================================== */




/* Для фильтров: активная кнопка становится жёлтой (outline-warning) */
#caseFilters .btn.active {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}
/* Фиксированная высота изображений и правильное обрезание */
.card-img-top.object-fit-cover {
  object-fit: cover;
}
/* Плавное скрытие/появление карточек */
.case-card {
  transition: opacity 0.3s ease;
}
.case-card.d-none {
  opacity: 0;
  display: none !important;
}
/* ==================================================== */
/* Таймлайн */
.timeline {
  position: relative;
}

/* Горизонтальная линия (десктоп) */
.timeline::before {
  content: '';
  position: absolute;
  top: 20px;          /* центр маркера 40px/2 */
  left: 0;
  right: 0;
  height: 2px;
  background: #ffc107;
  z-index: 0;
}

.timeline-item {
  position: relative;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid #ffc107;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-marker span {
  font-weight: 700;
  color: #ffc107;
  font-size: 1.1rem;
}

.timeline-content {
  width: 100%;
}
.timeline-content h5 {
  margin-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 20px;            /* левый край линии */
    right: auto;
    width: 2px;
    height: auto;
  }
  .timeline-item {
    position: relative;    /* обязательно для абсолютного позиционирования маркера */
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding-top: 0;
    padding-left: 50px;    /* освобождаем место под линию и кружок */
    margin-bottom: 2rem;
  }
  .timeline-marker {
    position: absolute;
    top: 0;
    left: 30px;            /* совпадает с левым краем линии */
    transform: translate(-50%, 0);  /* центр кружка точно на линии */
  }
  .timeline-content {
    flex: 1;
  }
}

/* ==================================================== */


section[id] {
  scroll-margin-top: 50px;
}
@media (min-width: 992px) {
  section[id] {
    scroll-margin-top: 100px;
  }
}


/* ==================================================== */

.fs-7 {
    font-size: 0.75rem !important; /* 12px */
}
.fs-8 {
    font-size: 0.65rem !important; /* ~10px */
}




/* ==================================================== */





/* ==================================================== */




