.category-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 20px;
  font-weight: 500;
  border-radius: 8px;
  padding: 16px;
  width: 90vw;
  user-select: none;
  text-decoration: none;
  background-color: white;
  color: rgb(77, 57, 57);
  box-shadow: 2px 2px 2px rgba(215, 224, 99, 0.835);
}

/* ---- Карточка сервиса ---- */
.service-container {
  display: flex;
  flex-direction: column;
  /* position: relative; */
  z-index: 0;
  width: 90vw;
  min-height: fit-content;
  background-color: #fffaeb;
  border: 1px solid #fffaeb;
  border-radius: 8px;
  box-shadow: 2px 2px 2px rgba(215, 224, 99, 0.835);
}

.service-title {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 24px;
  padding: 16px 16px;
  margin: 0;
}

.service-description {
  min-height: 40%;
  background-color: rgb(252, 252, 252);
  padding: 16px;
}

.service-id {
  padding: 4px 8px;
  text-align: right;
  color: gray;
}

.service-duration {
  font-size: 18px;
  font-weight: 600;
  color: #8b8a8a;
  padding: 8px 16px;
}

.service-price {
  font-size: 24px;
  font-weight: 700;
  padding: 0 16px;
}

.service-btn-block {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-self: center;
  /* position: absolute; */
  bottom: 0;
  width: 100%;
  padding: 8px 0;
  /* border: 1px solid red; */
}

.service-btn {
  font-family: Montserrat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 45%;
  height: 44px;
  border-radius: 4px;
  border: transparent;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.service-book {
  color: #461011;
  background-color: #f1c78b;
  text-decoration: none;
}

.service-details {
  color: #461011;
  font-weight: 500;
  background-color: #c1f8fc;
}

@media (hover: hover) {
  .service-book:hover {
    background-color: #f2bc70;
  }
  .service-details:hover {
    background-color: #abf4f9;
  }
}

@media (min-width: 769px) {
  .category-card {
    justify-content: center;
    text-align: center;
    padding: 16px;
    font-size: 20px;
    font-weight: 400;
    width: clamp(200px, 30vw, 300px);
  }
  /* ---- Карточка сервиса ---- */
  .service-container {
    position: relative;
    min-height: 0;
    height: 20%;
    width: 340px;
    height: 460px;
  }
  .service-top {
    display: flex;
    flex-direction: column;
    height: 60%;
  }
  .service-title {
    padding: 16px 16px;
    min-height: 20%;
    height: min-content;
  }
  .service-description {
    min-height: 0;
    flex: 1;
  }
  .service-btn-block {
    position: absolute;
  }
}
