/* ===== Страницы «Все услуги» и «Цены» ===== */

/* --- Фильтр услуг --- */
.usl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 20px 0 26px;
}

.usl-filter {
  appearance: none;
  border: 1px solid #d5e4e6;
  background: #f4f9f9;
  color: #15333a;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}

.usl-filter:hover {
  border-color: #0f5257;
}

.usl-filter.is-active {
  background: #0f5257;
  border-color: #0f5257;
  color: #fff;
}

/* --- Сетка карточек услуг --- */
.usl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 0 10px;
}

.usl-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #278e8e;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .18s, transform .18s;
}

.usl-card:hover {
  box-shadow: 0 10px 26px rgba(15, 82, 87, .13);
  transform: translateY(-2px);
}

.usl-card.is-hidden {
  display: none;
}

.usl-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef4f4;
}

.usl-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.usl-card:hover .usl-card-media img {
  transform: scale(1.04);
}

.usl-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 82, 87, .92);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.usl-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 18px;
}

.usl-card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
  color: #15333a;
}

.usl-card-title a {
  color: inherit;
  text-decoration: none;
}

.usl-card-title a:hover {
  color: #0f5257;
}

.usl-card-text {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #1e5a62;
}

.usl-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.usl-card-price {
  font-size: 15px;
  font-weight: 700;
  color: #0f5257;
  white-space: nowrap;
}

.usl-card-order {
  display: inline-block;
  background: #0f5257;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .18s;
}

.usl-card-order:hover {
  background: #0b3f43;
}

.usl-empty {
  display: none;
  text-align: center;
  padding: 30px 10px;
  color: #1e5a62;
  font-size: 16px;
}

.usl-empty.is-visible {
  display: block;
}

/* --- Кнопка «Показать ещё» --- */
.usl-more-wrap {
  text-align: center;
  margin: 4px 0 26px;
}

.usl-more {
  appearance: none;
  border: 0;
  background: #0f5257;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .18s;
}

.usl-more:hover {
  background: #0b3f43;
}

.usl-more.is-hidden {
  display: none;
}

/* --- CTA --- */
.usl-cta {
  margin: 26px 0 6px;
  padding: 26px 22px;
  text-align: center;
  background: #f4f9f9;
  border: 1px solid #278e8e;
  border-radius: 12px;
}

.usl-cta h2 {
  margin: 0 0 8px;
  color: #0f5257;
  font-size: 22px;
}

.usl-cta p {
  margin: 0 0 16px;
  color: #1e5a62;
}

.usl-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.usl-cta-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 6px;
}

.usl-cta-btn--main {
  background: #0f5257;
  color: #fff;
}

.usl-cta-btn--main:hover {
  background: #0b3f43;
}

.usl-cta-btn--ghost {
  background: #fff;
  color: #0f5257;
  border: 1px solid #0f5257;
}

/* --- Таблицы цен --- */
.ceny-block {
  margin: 0 0 30px;
}

.ceny-block.is-hidden {
  display: none;
}

.ceny-block h2 {
  margin: 0 0 14px;
  color: #0f5257;
  font-size: 22px;
}

.ceny-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #6f8282;
  border-left: 2px solid #0f5257;
  border-right: 2px solid #0f5257;
  border-radius: 12px;
  clip-path: inset(0 round 12px);
  filter: drop-shadow(0 2px 8px rgba(15, 82, 87, .07));
}

.ceny-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  background: #fff;
}

@media (min-width: 721px) {
  .ceny-table thead th:first-child {
    border-top-left-radius: 6px 8px;
  }

  .ceny-table thead th:last-child {
    border-top-right-radius: 6px 8px;
  }

  .ceny-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 6px 8px;
  }

  .ceny-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 6px 8px;
  }
}

.entry-content .ceny-table {
  margin: 0 !important;
}

.ceny-table caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: #1e5a62;
  padding: 0 0 8px;
}

.ceny-table th,
.ceny-table td {
  padding: 12px 16px;
  text-align: left;
  border: none;
  border-bottom: 1px solid rgba(15, 82, 87, .18);
  vertical-align: top;
}

.entry-content .ceny-table th,
.entry-content .ceny-table td {
  border: none;
  border-bottom: 1px solid rgba(15, 82, 87, .18);
}

.entry-content .ceny-table thead th {
  border: none;
}

.entry-content .ceny-table tbody tr:last-child td {
  border-bottom: none;
}

.ceny-table thead th {
  background: #0f5257;
  color: #fff;
  font-weight: 600;
  border-bottom: none;
}

.ceny-table td:last-child {
  white-space: nowrap;
  font-weight: 700;
  color: #0f5257;
}

.ceny-notes {
  margin: 0 0 26px;
  padding: 16px 18px;
  background: #eef4f4;
  border: 1px solid #cfe0e1;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #15333a;
}

.ceny-notes strong {
  color: #0f5257;
}

.ceny-notes ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

@media (max-width: 1100px) {
  .usl-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .usl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .ceny-table thead {
    display: none;
  }

  .ceny-table-wrap {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    clip-path: none;
    filter: none;
    overflow: visible;
  }

  .ceny-table {
    border-collapse: separate;
  }

  .ceny-table,
  .ceny-table tbody,
  .ceny-table tr,
  .ceny-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .ceny-table tbody {
    background: #fff;
    border-top: 1px solid #6f8282;
    border-right: 2px solid #0f5257;
    border-left: 3px solid #0f5257;
    border-bottom: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 82, 87, .07);
  }

  .entry-content .ceny-table tr {
    background: transparent !important;
    border: none;
    border-top: 2px solid rgba(15, 82, 87, .35);
    margin: 0;
    padding: 0;
  }

  .entry-content .ceny-table tr:first-child {
    border-top: none;
  }

  .entry-content .ceny-table td {
    border: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 8px 16px;
    text-align: right;
    color: #15333a;
    overflow-wrap: anywhere;
  }

  .entry-content .ceny-table td:first-child {
    padding-top: 12px;
    font-weight: 600;
  }

  .entry-content .ceny-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #0f5257;
    text-align: left;
  }

  .entry-content .ceny-table td:last-child {
    padding-bottom: 12px;
    white-space: normal;
    color: #0f5257;
    font-weight: 700;
  }
}

@media (max-width: 520px) {
  .usl-grid {
    grid-template-columns: 1fr;
  }

  .usl-filter {
    font-size: 13px;
    padding: 9px 13px;
  }
}
