/* Service pick — MAX / Telegram */

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 3.5rem 1.5rem 1.5rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease), visibility 0.32s;
}

.service-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(8px);
}

.service-modal__shell {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  transform: translateY(12px);
  transition: transform 0.35s var(--ease);
}

.service-modal.is-open .service-modal__shell {
  transform: translateY(0);
}

.service-modal__dialog {
  width: 100%;
  padding: 0 !important;
  overflow: hidden;
}

.service-modal__media {
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0;
  background: linear-gradient(
    165deg,
    rgba(32, 40, 68, 0.55) 0%,
    rgba(8, 12, 24, 0.85) 100%
  );
  border-bottom: 1px solid var(--border);
}

.service-modal__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-modal__body {
  padding: 1.35rem 1.5rem 1.55rem;
}

.service-modal__head {
  margin: 0 0 1rem;
  text-align: center;
}

.service-modal__eyebrow {
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--hero-eyebrow, var(--accent-secondary));
}

.service-modal__head .section__title {
  margin-bottom: 0;
}

.service-modal__pick {
  margin: 0 0 1.35rem;
  padding: 1.15rem 1.25rem 1.2rem;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 106, 0.38);
  background: linear-gradient(
    165deg,
    rgba(212, 175, 106, 0.14) 0%,
    rgba(168, 192, 232, 0.06) 48%,
    rgba(255, 255, 255, 0.03) 100%
  );
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.service-modal__pick-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.5vw, 1.95rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text-bright);
  text-shadow: 0 1px 28px rgba(0, 0, 0, 0.35);
}

.service-modal__pick-price {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
}

.service-modal__actions {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.service-modal__actions .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.service-modal__close {
  position: absolute;
  top: 0;
  left: calc(100% + 0.65rem);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: rgba(12, 16, 28, 0.92);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.service-modal__close:hover {
  color: var(--text-bright);
  background: rgba(28, 34, 52, 0.98);
  border-color: rgba(212, 175, 106, 0.35);
  transform: scale(1.04);
}

@media (max-width: 560px) {
  .service-modal {
    padding: 1rem 3rem 1rem 1rem;
  }

  .service-modal__shell {
    width: 100%;
  }

  .service-modal__close {
    left: auto;
    right: -2.35rem;
  }
}

body.modal-open {
  overflow: hidden;
}
