/* Price page — all classes use pr- prefix */

.pr-page {
  --pr-text: #2b2f33;
  --pr-text-soft: #8a9199;
  --pr-text-muted: #a0a6ad;
  --pr-line: #eceff2;
  --pr-bg: #ffffff;
  --pr-btn: #0096A7;
  --pr-btn-hover: #087b87;
  --pr-badge-bg: #f3f6f8;
  --pr-badge-text: #3d454d;
  --pr-badge-active: #0096A7;
  --pr-focus: rgba(7, 148, 195, 0.35);
  --pr-radius: 999px;
  --pr-max: 1100px;
  --pr-font: "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;

  box-sizing: border-box;
  color: var(--pr-text);
  font-family: var(--pr-font);
  font-size: 16px;
  line-height: 1.45;
  background: var(--pr-bg);
  position: relative;
}

.pr-page *,
.pr-page *::before,
.pr-page *::after {
  box-sizing: border-box;
}

.pr-container {
  max-width: var(--pr-max);
  margin: 0 auto;
  padding: 24px 0 80px;
}

.pr-header {
  margin-bottom: 28px;
}

.pr-title {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pr-text);
  line-height: 1.2;
}

.pr-lead {
  margin: 0;
  max-width: 52em;
  color: var(--pr-text-soft);
  font-size: 15px;
}

.pr-toolbar {
  margin-bottom: 20px;
}

.pr-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border: 1px solid var(--pr-line);
  border-radius: 12px;
  background: #fafbfc;
}

.pr-search__icon {
  display: inline-flex;
  color: var(--pr-text-muted);
  flex-shrink: 0;
}

.pr-search__input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--pr-text);
}

.pr-search__input::placeholder {
  color: var(--pr-text-muted);
}

.pr-search__meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--pr-text-soft);
}

.pr-nav {
  margin-bottom: 36px;
  padding-bottom: 8px;
}

.pr-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pr-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--pr-radius);
  background: var(--pr-badge-bg);
  color: var(--pr-badge-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pr-badge:hover,
.pr-badge:focus-visible {
  background: rgba(7, 148, 195, 0.12);
  color: var(--pr-badge-active);
  outline: none;
}

.pr-badge:focus-visible {
  box-shadow: 0 0 0 3px var(--pr-focus);
}

.pr-section {
  margin-bottom: 48px;
  scroll-margin-top: 24px;
}

.pr-section.pr-is-hidden {
  display: none;
}

.pr-category {
  margin: 0 0 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pr-line);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--pr-text);
}

.pr-subsection {
  margin: 28px 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--pr-text);
}

.pr-table-wrap {
  width: 100%;
  overflow-x: visible;
}

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

.pr-th {
  padding: 14px 12px 12px 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--pr-text-muted);
  text-align: left;
  border-bottom: 1px solid var(--pr-line);
  vertical-align: bottom;
}

.pr-th--code {
  width: 18%;
}

.pr-th--service {
  width: 46%;
}

.pr-th--price {
  width: 18%;
  text-align: right;
  padding-right: 16px;
}

.pr-th--action {
  width: 18%;
  text-align: right;
  padding-right: 0;
}

.pr-row {
  border-bottom: 1px solid var(--pr-line);
}

.pr-row.pr-is-hidden {
  display: none;
}

.pr-code,
.pr-service,
.pr-price,
.pr-action {
  padding: 22px 12px 22px 0;
  vertical-align: middle;
}

.pr-code {
  font-size: 13px;
  color: var(--pr-text-soft);
  word-break: break-word;
}

.pr-service {
  font-size: 15px;
  font-weight: 500;
  color: var(--pr-text);
}

.pr-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--pr-text);
  text-align: right;
  white-space: nowrap;
  padding-right: 16px;
}

.pr-action {
  text-align: right;
  padding-right: 0;
}

.pr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--pr-radius);
  background: var(--pr-btn);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.pr-btn:hover {
  background: var(--pr-btn-hover);
}

.pr-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--pr-focus);
}

.pr-btn:active {
  transform: scale(0.98);
}

.pr-empty {
  margin: 40px 0;
  padding: 24px;
  text-align: center;
  color: var(--pr-text-soft);
  border: 1px dashed var(--pr-line);
  border-radius: 12px;
}

.pr-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: #9aa3ab;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 40, 50, 0.18);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.pr-top:hover {
  background: #7f8992;
}

.pr-top:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--pr-focus);
}

.pr-modal[hidden],
.pr-top[hidden],
.pr-search__meta[hidden],
.pr-empty[hidden] {
  display: none !important;
}

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

.pr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 36, 0.45);
}

.pr-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 28px 24px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 28, 36, 0.22);
}

.pr-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--pr-text-soft);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

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

.pr-modal__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.pr-modal__service {
  margin: 0 0 16px;
  color: var(--pr-text-soft);
  font-size: 14px;
}

.pr-modal__body {
  margin: 0;
  color: var(--pr-text);
  font-size: 15px;
}

.pr-modal__body p {
  margin: 0;
}

.pr-page.pr-is-modal-open {
  overflow: hidden;
}

/* Mobile: card-like rows */
@media (max-width: 760px) {
  .pr-container {
    padding: 16px 14px 72px;
  }

  .pr-title {
    font-size: 26px;
  }

  .pr-category {
    font-size: 22px;
  }

  .pr-search {
    max-width: none;
  }

  .pr-table thead {
    display: none;
  }

  .pr-table,
  .pr-table tbody,
  .pr-row,
  .pr-code,
  .pr-service,
  .pr-price,
  .pr-action {
    display: block;
    width: 100%;
  }

  .pr-row {
    padding: 16px 0;
  }

  .pr-row.pr-is-hidden {
    display: none;
  }

  .pr-code,
  .pr-service,
  .pr-price,
  .pr-action {
    padding: 0;
    text-align: left;
  }

  .pr-code {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .pr-service {
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 500;
  }

  .pr-price {
    display: inline-block;
    margin-bottom: 12px;
    padding-right: 0;
    font-size: 18px;
  }

  .pr-action {
    text-align: left;
  }

  .pr-btn {
    width: 100%;
    min-height: 44px;
  }

  .pr-th--price,
  .pr-th--action,
  .pr-price,
  .pr-action {
    text-align: left;
  }
}

@media (min-width: 761px) and (max-width: 920px) {
  .pr-th--code,
  .pr-code {
    width: 22%;
  }

  .pr-th--service,
  .pr-service {
    width: 40%;
  }

  .pr-btn {
    padding: 10px 16px;
  }
}
