body.price-modal-open {
  overflow: hidden;
}

.price-modal[hidden],
.price-category[hidden],
.price-table tr[hidden],
.price-modal__chip[hidden] {
  display: none !important;
}

.price-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 32px);
}

.price-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(45, 31, 65, 0.66);
  backdrop-filter: blur(8px);
}

.price-modal__dialog {
  position: relative;
  display: flex;
  width: min(1180px, 100%);
  max-height: min(92vh, 1000px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(159, 126, 198, 0.2);
  border-radius: clamp(24px, 2vw, 36px);
  background: #fbf9fd;
  box-shadow: 0 30px 90px rgba(50, 33, 71, 0.34);
  color: #3d2d56;
}

.price-modal__header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 0 0 auto;
  padding: clamp(26px, 3vw, 48px) clamp(24px, 4vw, 58px) clamp(22px, 2.4vw, 36px);
  background: linear-gradient(135deg, #9f7ec6 0%, #8d62b7 100%);
  color: #fff;
}

.price-modal__paw {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: clamp(58px, 8vw, 122px);
  width: clamp(190px, 22vw, 320px);
  color: rgba(255, 255, 255, 0.28);
  filter: drop-shadow(0 12px 18px rgba(62, 38, 90, 0.12));
  opacity: 0.88;
  transform: translateY(-47%) rotate(-17deg) scale(0.96);
  transform-origin: center;
  animation: price-paw-pulse 2.5s ease-in-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
}

.price-modal__header > :not(.price-modal__paw):not(.price-modal__close) {
  position: relative;
  z-index: 1;
}

@keyframes price-paw-pulse {
  0%, 100% {
    opacity: 0.68;
    transform: translateY(-47%) rotate(-17deg) scale(0.94);
  }
  45% {
    opacity: 1;
    transform: translateY(-53%) rotate(-11deg) scale(1.08);
  }
  70% {
    opacity: 0.84;
    transform: translateY(-50%) rotate(-14deg) scale(1.01);
  }
}

.price-modal__eyebrow {
  margin: 0 0 8px;
  color: #f8dfe6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-modal__header h2 {
  max-width: 850px;
  margin: 0;
  font-family: "Oswald Local", "Arial Narrow", sans-serif;
  font-size: clamp(38px, 4vw, 68px);
  font-weight: 600;
  line-height: 0.98;
  text-transform: uppercase;
}

.price-modal__subtitle {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15px, 1.4vw, 20px);
}

.price-modal__close {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.price-modal__toolbar {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px 24px;
  padding: 20px clamp(20px, 4vw, 58px);
  background: #fbf9fd;
}

.price-modal__search {
  position: relative;
  display: block;
}

.price-modal__search span {
  position: absolute;
  top: 50%;
  left: 18px;
  color: #8d62b7;
  font-size: 19px;
  transform: translateY(-50%);
  pointer-events: none;
}

.price-modal__search input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px 0 50px;
  border: 1px solid rgba(141, 98, 183, 0.28);
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: #3d2d56;
  font: inherit;
}

.price-modal__search input:focus {
  border-color: #8d62b7;
  box-shadow: 0 0 0 4px rgba(141, 98, 183, 0.12);
}

.price-modal__results {
  align-self: center;
  color: #715e88;
  font-size: 14px;
  white-space: nowrap;
}

.price-modal__content {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: clamp(210px, 23vw, 270px) minmax(0, 1fr);
  min-height: 0;
  border-top: 1px solid rgba(141, 98, 183, 0.12);
  background: #fbf9fd;
}

.price-modal__sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 22px 14px 30px clamp(18px, 2.6vw, 38px);
  border-right: 1px solid rgba(141, 98, 183, 0.16);
  background: #f6f1fa;
}

.price-modal__sidebar > p {
  margin: 0 8px 14px 0;
  color: #3d2d56;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-modal__categories {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 8px 4px 0;
  scrollbar-color: rgba(141, 98, 183, 0.58) rgba(141, 98, 183, 0.1);
  scrollbar-width: thin;
}

.price-modal__chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(141, 98, 183, 0.22);
  border-radius: 13px;
  background: #fff;
  color: #5b426f;
  font: 600 13px/1.1 inherit;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.price-modal__chip:hover,
.price-modal__chip:focus-visible,
.price-modal__chip[aria-current="true"] {
  background: #8d62b7;
  color: #fff;
  transform: translateY(-1px);
}

.price-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 22px clamp(20px, 4vw, 58px) 40px;
  scroll-behavior: smooth;
}

.price-category {
  scroll-margin-top: 18px;
}

.price-category + .price-category {
  margin-top: 32px;
}

.price-category__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.price-category__heading h3 {
  margin: 0;
  color: #3d2d56;
  font-family: "Oswald Local", "Arial Narrow", sans-serif;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 600;
  line-height: 1.06;
  text-transform: uppercase;
}

.price-category__heading span {
  flex: 0 0 auto;
  color: #8d799c;
  font-size: 13px;
}

.price-category__table-wrap {
  overflow: hidden;
  border: 1px solid rgba(141, 98, 183, 0.16);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(61, 45, 86, 0.06);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.price-table th,
.price-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #efeaf3;
  text-align: left;
  vertical-align: middle;
}

.price-table th {
  background: #f2edf7;
  color: #715e88;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-table th:first-child { width: 51%; }
.price-table th:nth-child(2) { width: 18%; }
.price-table th:nth-child(3) { width: 16%; }
.price-table th:nth-child(4) { width: 15%; }

.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table tbody tr:nth-child(even) {
  background: #fdfbfd;
}

.price-table__service {
  color: #3d2d56;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.price-table__unit,
.price-table__term {
  color: #7d6c8e;
  font-size: 13px;
  line-height: 1.35;
}

.price-table__price {
  color: #8d62b7;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.price-modal__notes {
  margin: 34px 0 0;
  padding: 24px 28px 24px 48px;
  border-radius: 20px;
  background: #f2edf7;
  color: #6d587f;
  font-size: 13px;
  line-height: 1.5;
}

.price-modal__notes li + li {
  margin-top: 8px;
}

.price-modal__booking {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  border-radius: 999px;
  background: #ff9fa4;
  color: #fff;
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: filter 180ms ease, transform 180ms ease;
}

.price-modal__booking:hover,
.price-modal__booking:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .price-modal {
    padding: 0;
  }

  .price-modal__dialog {
    width: 100%;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .price-modal__header {
    padding: 28px 62px 22px 20px;
  }

  .price-modal__paw {
    right: -32px;
    width: 190px;
  }

  .price-modal__close {
    top: 16px;
    right: 14px;
    width: 42px;
  }

  .price-modal__toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .price-modal__results {
    justify-self: start;
  }

  .price-modal__content {
    display: flex;
    flex-direction: column;
  }

  .price-modal__sidebar {
    flex: 0 0 auto;
    max-height: 188px;
    padding: 12px 12px 10px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(141, 98, 183, 0.16);
  }

  .price-modal__sidebar > p {
    margin-bottom: 8px;
  }

  .price-modal__categories {
    gap: 6px;
  }

  .price-modal__chip {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .price-modal__body {
    flex: 1 1 auto;
    padding: 18px 12px 28px;
  }

  .price-category__heading {
    align-items: start;
    padding-inline: 4px;
  }

  .price-category__heading span {
    margin-top: 5px;
  }

  .price-category__table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .price-table,
  .price-table tbody {
    display: block;
  }

  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .price-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    padding: 16px;
    border: 1px solid rgba(141, 98, 183, 0.14);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(61, 45, 86, 0.06);
  }

  .price-table tr + tr {
    margin-top: 10px;
  }

  .price-table th,
  .price-table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .price-table__service {
    grid-column: 1 / -1;
    font-size: 14px;
  }

  .price-table__unit,
  .price-table__term {
    font-size: 12px;
  }

  .price-table__price {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
    font-size: 15px;
    text-align: right;
  }

  .price-table__unit::before,
  .price-table__term::before {
    display: block;
    color: #a08dad;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .price-modal__notes {
    padding: 20px 20px 20px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-modal__paw,
  .price-modal__body,
  .price-modal__chip,
  .price-modal__booking {
    animation: none;
    scroll-behavior: auto;
    transition: none;
  }
}
