/* 📱 Единая адаптация под мобильные устройства */
@media (max-width: 768px) {


  #burger-menu-btn {
    position: absolute;
    top: 6px; /* было 12px */
    right: 12px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 1001;
  }


  /* ==== 🔹 ОБЩЕЕ ==== */

  .news-card {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .news-slider {
    gap: 12px;
    padding: 8px 0;
  }

  .news-scroll-left,
  .news-scroll-right {
    display: none;
  }

  .profession-btn {
    font-size: 14px;
    padding: 8px 10px;
    flex: 1 1 45%;
  }

  .d-flex.flex-wrap {
    justify-content: center;
  }

  h2.section-heading,
  h2.section-title {
    margin-top: 1rem;
  }

  .btn-card {
    margin-bottom: 10px;
    font-size: 1rem;
    padding: 10px 16px;
    width: 100%;
  }

  /* ==== 🔹 ВЕРХНЯЯ ПАНЕЛЬ ==== */

/* Возвращаем бургер-кнопку на мобилке */
#burger-menu-btn {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}


  .navbar .d-flex.align-items-center {
    flex-direction: column !important;
    align-items: center !important;
  }

  .navbar-brand {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .navbar-nav.flex-row {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 10px;
    margin: 0 auto 0.5rem;
    justify-items: stretch;
  }

  .navbar-nav.flex-row .nav-item {
    width: 100%;
  }

  .navbar-nav.flex-row .nav-link {
    display: block;
    background-color: #2a2d3f;
    color: #fff;
    padding: 10px;
    font-size: 0.95rem;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    height: 100%;
  }

  .navbar-nav.flex-row .nav-link:hover {
    background-color: #3e445f;
  }

  .search-form {
    display: none !important;
  }

  /* ==== 🔹 КАРТОЧКИ СЕТЕЙ ==== */

  .col-md-4 {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .neuro-card {
    padding: 16px;
    min-height: auto;
  }

  .neuro-card h2 a {
    font-size: 1.4rem;
  }

  .neuro-card p {
    font-size: 0.9rem;
  }

  .neuro-card .d-flex.justify-content-start.flex-nowrap {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-compare {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .favorite-icon-btn {
    top: 6px;
    right: 6px;
  }

  /* ==== 🔹 ОТЗЫВЫ ==== */

  .custom-review-container {
    padding: 12px;
  }

  .review-title {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
  }

  textarea.form-control {
    font-size: 0.95rem;
    padding: 8px;
  }

  .btn-primary {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
  }

  .review-card {
    padding: 1rem;
  }

  .dropdown.position-absolute {
    top: 8px !important;
    right: 8px !important;
  }

  .star,
  .star-rating .star {
    font-size: 22px;
  }

  .review-list-wrapper {
    padding: 20px;
  }

}
