/* Страница «Цены» — /local/templates/main/css/prices.css */

.prices-intro {
  max-width: 900px;
  margin: 0 0 30px 0;
  color: #555;
}

/* Навигация по направлениям */
.prices-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 40px 0;
}

.prices-nav__item {
  padding: 8px 18px;
  font-size: 14px;
  line-height: 18px;
  color: #333;
  border: 1px solid #D9D9D9;
  border-radius: 32px;
  transition: 0.3s ease-in-out;
}

.prices-nav__item:hover {
  color: #C61954;
  border-color: #C61954;
}

/* Направление (аккордеон на <details>) */
.prices-list {
  border-top: 1px solid #EAEAEA;
}

.prices-dir {
  border-bottom: 1px solid #EAEAEA;
  scroll-margin-top: 20px;
}

.prices-dir__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}

.prices-dir__head::-webkit-details-marker {
  display: none;
}

.prices-dir__name {
  font-size: 20px;
  line-height: 26px;
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease-in-out;
}

.prices-dir__head:hover .prices-dir__name {
  color: #C61954;
}

.prices-dir__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.prices-dir__count {
  font-size: 14px;
  color: #999;
  white-space: nowrap;
}

.prices-dir__price {
  font-size: 18px;
  font-weight: 600;
  color: #C61954;
  white-space: nowrap;
}

.prices-dir__chevron {
  transition: transform 0.3s ease-in-out;
}

.prices-dir[open] .prices-dir__chevron {
  transform: rotate(180deg);
}

.prices-dir__body {
  padding: 0 0 30px 0;
}

/* Группа внутри направления */
.prices-group + .prices-group {
  margin-top: 24px;
}

.prices-group__name {
  margin: 0 0 8px 0;
  font-weight: 600;
  font-size: 16px;
}

.prices-group__name a {
  color: #333;
}

.prices-group__name a:hover {
  color: #C61954;
  text-decoration: underline;
}

/* Строки услуг */
.prices-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
}

.prices-row:nth-child(odd) {
  background: #F7F7F7;
}

.prices-row__name {
  color: #333;
}

.prices-row__name:hover {
  color: #C61954;
  text-decoration: underline;
}

.prices-row__price {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
}

.prices-dir__all {
  margin-top: 20px;
}

/* Примечание и кнопка */
.prices-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 40px 0 80px 0;
  padding: 30px;
  background: #F7F7F7;
  border-radius: 4px;
}

.prices-note p {
  margin: 0;
  color: #555;
}

.prices-note .btn {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .prices-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 0 24px 0;
    padding-bottom: 6px;
  }

  .prices-nav__item {
    white-space: nowrap;
  }

  .prices-dir__head {
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0;
  }

  .prices-dir__name {
    font-size: 17px;
    line-height: 22px;
    width: 100%;
  }

  .prices-dir__meta {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .prices-dir__price {
    font-size: 16px;
  }

  .prices-row {
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
  }

  .prices-note {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    margin: 30px 0 50px 0;
  }
}


/* === Поиск по прайсу — добавить в конец prices.css === */

.prices-search {
  position: relative;
  max-width: 631px;
  margin: 0 0 24px 0;
}

.prices-search__input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 46px 0 18px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  color: #333;
  border: 1px solid #D9D9D9;
  border-radius: 4px;
  transition: border-color 0.3s ease-in-out;
}

.prices-search__input:focus {
  border-color: #C61954;
}

.prices-search__input::placeholder {
  color: #999;
}

.prices-search__clear {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.prices-search__clear::before,
.prices-search__clear::after {
  content: "";
  position: absolute;
  left: calc(50% - 7px);
  top: calc(50% - 1px);
  width: 14px;
  height: 2px;
  background: #999;
}

.prices-search__clear::before { transform: rotate(45deg); }
.prices-search__clear::after { transform: rotate(-45deg); }

.prices-search__clear:hover::before,
.prices-search__clear:hover::after {
  background: #C61954;
}

.prices-list mark {
  padding: 0 1px;
  color: inherit;
  background: rgba(198, 25, 84, 0.15);
  border-radius: 2px;
}

/* Во время поиска навигация и ссылки «Все услуги…» не нужны */
.prices-searching .prices-nav,
.prices-searching .prices-dir__all {
  display: none;
}

.prices-empty {
  padding: 30px 0;
  color: #555;
}

.prices-list [hidden],
.prices-empty[hidden],
.prices-search__clear[hidden] {
  display: none !important;
}
.prices-pdf {
  margin: 0 0 30px 0;
}
