/* Popup pre sekciu Služby */
.service-card {
  color: inherit;
}

.service-more-button {
  width: fit-content;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--orange);
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.service-more-button strong {
  font-size: 27px;
  line-height: 1;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.service-card:hover .service-more-button strong {
  transform: translateX(5px);
}

.services-modal-open {
  overflow: hidden;
}

.services-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.services-modal.is-open {
  display: flex;
}

.services-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(4px);
}

.services-modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  overflow: auto;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.services-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.services-modal-close:hover {
  background: var(--orange);
  color: var(--white);
  transform: scale(1.04);
}

.services-modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 44%) 1fr;
}

.services-modal-image-wrap {
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 54px 32px 38px;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.services-modal-image {
  width: 100%;
  max-height: 410px;
  object-fit: contain;
}

.services-modal-content {
  padding: 62px 46px 46px;
  display: flex;
  flex-direction: column;
}

.services-modal-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px 9px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.services-modal-title {
  color: var(--black);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 900;
  margin-bottom: 22px;
}

.services-modal-description {
  color: #51413d;
  font-size: 18px;
  line-height: 1.65;
  white-space: pre-line;
  margin-bottom: 30px;
}

.services-modal-contact {
  width: fit-content;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.services-modal-contact:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.services-modal-contact span {
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 760px) {
  .services-modal {
    padding: 16px;
  }

  .services-modal-panel {
    max-height: calc(100vh - 32px);
    border-radius: 14px;
  }

  .services-modal-grid {
    grid-template-columns: 1fr;
  }

  .services-modal-image-wrap {
    min-height: 230px;
    padding: 56px 24px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .services-modal-image {
    max-height: 220px;
  }

  .services-modal-content {
    padding: 28px 24px 30px;
  }

  .services-modal-description {
    font-size: 16px;
  }

  .services-modal-contact {
    width: 100%;
    justify-content: center;
  }

  .service-more-button {
    font-size: 16px;
  }
}
