@media (max-width: 992px) {
  .heroes-container {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 100px;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
  }

  .site-title {
    font-size: 1.8rem;
  }

  .site-subtitle {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.6rem;
    text-align: center;
  }

  .hero-card img,
  .no-photo-placeholder {
    height: auto;
    width: 100%;
    object-fit: cover;
  }

  .search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .search-form input,
  .search-form select,
  .search-form button {
    width: 100%;
  }

  .submit-form input,
  .submit-form textarea,
  .submit-form select {
    width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
  }

  .hero-content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero-photo-container,
  .hero-text {
    width: 100%;
  }

  .hero-photo-container img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 576px) {
  .heroes-container,
  .search-form {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .hero-card-content h3 {
    font-size: 1.1rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-contacts p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .candle {
    margin-top: 60px;
  }

  .vision-button {
    top: 10px;
    right: 10px;
    font-size: 14px;
  }
}
@media (max-width: 576px) {
  .candle-section {
    margin-top: 120px; /* отступ, чтобы не заезжала под шапку */
  }
}
