.review-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.review-modal[hidden],
.service-modal[hidden] {
  display: none !important;
}

.review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 28, 33, 0.55);
}

.review-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 32px 28px 28px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-booking);
}

.review-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.review-modal__close:hover {
  color: var(--color-text);
}

.review-modal__header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-right: 28px;
}

.review-modal__text {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: #000;
  white-space: pre-wrap;
}

/* Service modal */

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.service-modal[hidden] {
  display: none !important;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 28, 33, 0.55);
}

.service-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: var(--shadow-booking);
}

.service-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.service-modal__close:hover {
  color: var(--color-text);
}

.service-modal__card {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 520px;
}

.service-modal__card[hidden] {
  display: none;
}

.service-modal__media {
  min-height: 100%;
  overflow: hidden;
  border-radius: 20px 0 0 20px;
  background: var(--color-bg-soft);
}

.service-modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-modal__body {
  display: flex;
  flex-direction: column;
  padding: 36px 44px 36px 36px;
}

.service-modal__title {
  margin: 0 0 24px;
  padding-right: 36px;
  font-weight: 600;
  font-size: 26px;
  line-height: 32px;
  color: var(--color-primary);
}

.service-modal__label {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.1667em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.service-modal__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.service-modal__list li {
  position: relative;
  padding-left: 14px;
  font-size: 15px;
  line-height: 20px;
  color: var(--color-text-muted);
}

.service-modal__list li::before {
  content: "–";
  position: absolute;
  left: 0;
}

.service-modal__list--dots li {
  padding-left: 18px;
}

.service-modal__list--dots li::before {
  content: "";
  top: 8px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}

.service-modal__body .button {
  margin-top: auto;
  align-self: flex-start;
  min-width: 177px;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.0437em;
}

@media (max-width: 768px) {
  .service-modal {
    padding: 12px;
    align-items: flex-start;

  }

  .service-modal__dialog {
    max-height: 92vh;

  }

  .service-modal__card {
    grid-template-columns: 1fr;
    min-height: 0;

  }

  .service-modal__media {
    height: 240px;
    min-height: 240px;
    border-radius: 20px 20px 0 0;

  }

  .service-modal__body {
    padding: 24px 20px 28px;

  }

  .service-modal__title {
    font-size: 22px;
    line-height: 28px;

  }
}
