.medical-units-section {
  position: relative;
  z-index: 5;
  isolation: isolate;
  padding: 70px 0 100px;
  margin-bottom: 0;
  background: #f4f8fc;
}

.about-section--home {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-top: 90px;
}

.about-section--home .images-column {
  margin-top: 0;
  margin-bottom: 30px;
}

.about-section--home .images-column .inner-column {
  overflow: visible;
  margin-right: 0;
  padding-bottom: 0;
}

.medical-units-search-panel {
  height: 100%;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(19, 112, 181, 0.08);
  padding: 34px 30px;
}

.medical-units-search-panel h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  color: #25304c;
}

.medical-units-search-panel p {
  margin: 0 0 28px;
}

.medical-units-field {
  margin-bottom: 16px;
}

.medical-units-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 14px;
  background: #edf5fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231370b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 18px center;
  color: #25304c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 18px 48px 18px 20px;
  box-shadow: inset 0 0 0 1px rgba(19, 112, 181, 0.08);
}

.medical-units-select:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(19, 112, 181, 0.35);
}

.medical-units-submit {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  background: #1370b5;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 20px;
  transition: all 0.25s ease;
}

.medical-units-submit:hover {
  background: #0f5f9a;
}

.medical-units-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  height: 100%;
}

.medical-unit-card {
  position: relative;
  display: block;
  min-height: 150px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #dbeafe;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.medical-unit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 35%, rgba(15, 23, 42, 0.72) 100%);
}

.medical-unit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.medical-unit-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px 14px 16px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

@media (min-width: 992px) {
  .medical-units-section {
    padding-bottom: 120px;
  }

  .about-section--home {
    padding-top: 100px;
  }

  .about-section--home .images-column .inner-column {
    min-height: 0;
  }
}

@media (max-width: 1199.98px) {
  .medical-units-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .medical-units-section {
    padding: 50px 0 70px;
  }

  .medical-units-search-panel {
    margin-bottom: 24px;
  }

  .medical-units-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .medical-units-search-panel {
    padding: 26px 20px;
  }

  .medical-units-search-panel h2 {
    font-size: 28px;
  }

  .medical-units-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .medical-unit-card {
    min-height: 130px;
  }

  .medical-unit-card__label {
    font-size: 13px;
    padding: 14px 10px 12px;
  }
}
