.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    align-items: stretch; /* 👈 выравнивание по верхнему краю */
  }
.gallery-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Убедимся, что контент начинается строго сверху */
  padding: 0;
  margin: 0;
}
.gallery-card2 {
  display: flex;
  flex-direction: column;
  border: 3px solid #cf0d0d;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Убедимся, что контент начинается строго сверху */
  padding: 0;
  margin: 0;
}

.gallery-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  /* Гарантируем выравнивание по верху даже при object-fit */
  object-position: top;
border-radius: 10px;

}
  .gallery-card2 img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  /* Гарантируем выравнивание по верху даже при object-fit */
  object-position: top;
}

  .card-content {
    padding: 12px;
  }

  .card-title-main {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 4px 0;
    color: #222;
 
  }

  .card-title-sub {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
    
    text-transform: uppercase;
  }
  .gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }
/* Hover-эффекты при наведении на карточку */
.gallery-card:hover .card-title-main {
  color: #f52308; /* или любой акцентный цвет */
}

.gallery-card:hover .card-title-sub {
  color: #181117; /* чуть темнее или в тон */
}
  .card-description {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    font-family: 'Roboto Condensed', sans-serif;
  }

  /* Адаптивность */
  @media (max-width: 992px) {
    .gallery-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (max-width: 768px) {
    .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 480px) {
    .gallery-grid {
      grid-template-columns: 1fr;
    }
  }
@media (max-width: 768px) {
            .logo img {
                height: 50px;
            }
            .logo {
                margin-bottom: 0rem;
            }

        }