.our-services {
  font-family: "Roboto", sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em;
  background-color: #fff;
}
.our-services .grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
}
.our-services .card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 1.5em;
  box-sizing: border-box;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 190px; /* или cover / contain, по желанию */
}
.our-services .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.our-services .card h3 {
  font-size: 1.1em;
  margin: 0 0 0.5em 0;
  line-height: 1.2em;
  max-height: 3.6em; /* 3 lines approx */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: #2f90c7;
}
.our-services .price {
  position: absolute;
  bottom: 0.75em;
  left: 1.5em;
  font-weight: 700;
  font-size: 1em;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.2em 0.5em;
  border-radius: 4px;
}

.our-services .explanation {
  position: absolute;
  bottom: -120px; /* скрыта снизу */
  left: 0;
  width: 100%;
  padding: 1em;
  box-sizing: border-box;
  border-top: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  font-size: 0.9em;
  line-height: 1.2em;
  height: 120px;
  overflow: hidden;
  border-radius: 1em 1em 0 0;
  transition: bottom 0.3s ease;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}
.our-services .card:hover .explanation {
  bottom: 0;
}
.our-services h2 {
  font-size: 2em;
  margin-bottom: 1em;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  color: #333;
}

.our-services .card a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

@media (max-width: 425px) {
  .our-services .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .our-services .card {
    background-size: 150px; /* или cover / contain, по желанию */
  }
}