/* Цена и кнопка «Получить услугу» */

.services-card-price,
.service-page-price {
  font-weight: 400;
  font-size: 0.95rem;
  color: #FDBD30;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
}

.services-card-price--content {
  display: none;
}

.services-card-price--inline {
  display: none;
}

.services-card.is-expanded .services-card-price--inline {
  display: block;
}

.services-card-order-group {
  display: none;
  align-items: center;
  gap: 0.85rem;
}

.services-card.is-expanded .services-card-order-group {
  display: flex;
}

.services-read-more {
  margin-top: 0.35rem;
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  color: #FDBD30;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  animation: read-more-pulse 1.6s ease-in-out infinite;
}

.services-read-more:link,
.services-read-more:visited {
  color: #FDBD30;
}

.services-read-more:hover {
  color: #FDBD30;
  text-decoration: underline;
}

@keyframes read-more-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.services-card[data-service-id].is-expanded .services-read-more {
  display: none;
}

.services-order-btn,
.service-page-order-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid #FDBD30;
  background: transparent;
  color: #FDBD30;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.services-card.is-expanded .services-order-btn {
  display: inline-flex;
}

.service-page-order-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.service-page-order-btn {
  display: inline-flex;
  margin-top: 0;
}

.services-order-btn:hover,
.service-page-order-btn:hover {
  background: #FDBD30;
  color: #000;
}

/* Модальное окно заявки на услугу */

.service-order-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-order-backdrop.is-open {
  display: flex;
}

.service-order-dialog {
  width: min(480px, 90vw);
  background: rgba(36, 37, 45, 1);
  border-radius: 14px;
  border: 1px solid rgba(68, 69, 80, 1);
  padding: 1.2rem 1.4rem 1.3rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  color: rgba(211, 211, 213, 1);
}

.service-order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.service-order-title {
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  margin: 0 0 0.1rem;
}

.service-order-subtitle {
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(179, 179, 184, 1);
  margin: 0;
}

.service-order-close {
  border: none;
  background: transparent;
  color: rgba(179, 179, 184, 1);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.service-order-meta {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(68, 69, 80, 1);
  background: rgba(30, 31, 38, 1);
}

.service-order-meta-label {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(140, 140, 148, 1);
  margin: 0 0 0.2rem;
}

.service-order-meta-name {
  font-size: 0.9rem;
  font-weight: 400;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.service-order-meta-price {
  font-size: 0.9rem;
  font-weight: 400;
  color: #FDBD30;
  margin: 0;
}

.service-order-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.service-order-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(68, 69, 80, 1);
  background: rgba(36, 37, 45, 1);
  padding: 0.6rem 0.9rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: rgba(211, 211, 213, 1);
  outline: none;
}

.service-order-input::placeholder {
  color: rgba(120, 120, 130, 1);
}

.service-order-footer {
  display: flex;
  justify-content: flex-end;
}

.service-order-submit {
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  background: #FDBD30;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.service-order-submit:hover {
  filter: brightness(1.05);
}

/* Уведомление об успешной отправке */

.service-order-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(1rem);
  z-index: 60;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(253, 189, 48, 0.45);
  background: rgba(36, 37, 45, 0.98);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-order-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
