/* =========================================================================
   Прайс-лист (/czenyi/) — таблица услуг, фильтр, пагинация
   Использует CSS-переменные темы сайта (7sky.css): --green, --text и т.д.
   ========================================================================= */

.price-list {
    margin-top: 8px;
}

/* --- фильтр ------------------------------------------------------------ */

.price-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-end;
    background: var(--green-light, #e9f5ea);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 14px;
}

.price-filter__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-filter__field--category {
    flex: 1 1 280px;
    min-width: 220px;
}

.price-filter__field--search {
    flex: 1 1 260px;
    min-width: 200px;
}

.price-filter__field--submit {
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.price-filter__label {
    font-size: 13px;
    color: var(--text-light, #a9b7c7);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.price-filter__select,
.price-filter__input {
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid #d5e3d6;
    border-radius: 12px;
    background: var(--white, #fff);
    color: var(--text, #2a2a2a);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
}

.price-filter__select:focus,
.price-filter__input:focus {
    border-color: var(--green, #54a756);
}

.price-filter__btn {
    height: 48px;
    padding: 0 26px;
    border: none;
    border-radius: 999px;
    background: var(--green, #54a756);
    color: var(--white, #fff);
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.price-filter__btn:hover {
    background: var(--green-dark, #459148);
}

.price-filter__reset {
    font-size: 14px;
    color: var(--green, #54a756);
    text-decoration: underline;
}

.price-filter__reset:hover {
    color: var(--green-dark, #459148);
}

/* --- счётчик найденного ------------------------------------------------ */

.price-total {
    font-size: 14px;
    color: var(--text-gray, #2c2c2c);
    margin: 0 0 12px;
}

.price-total strong {
    color: var(--green, #54a756);
}

/* --- интро: дата обновления прайса, название клиники и адрес -------------- */

.content .price-meta,
.price-meta {
    font-size: 13px;
    color: var(--text-light, #a9b7c7);
    margin: 0 0 4px;
}

.price-clinic {
    font-size: 16px;
    font-weight: 600;
    color: var(--text, #2a2a2a);
    margin: 14px 0 2px;
}

/* --- таблица ------------------------------------------------------------ */

.price-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.price-table th {
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-light, #a9b7c7);
    background: var(--bg-lighter, #f2f9ff);
    padding: 12px 14px;
    white-space: nowrap;
}

.price-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #eef1f4;
    vertical-align: top;
}

.price-table tbody tr:nth-child(even) {
    background: var(--bg-light, #fafafa);
}

.price-table tbody tr:hover {
    background: var(--green-light, #e9f5ea);
}

.price-table__category {
    width: 26%;
}

.price-table__code {
    width: 90px;
    white-space: nowrap;
    color: var(--text-light, #a9b7c7);
    font-variant-numeric: tabular-nums;
}

.price-table__mz {
    width: 110px;
    white-space: nowrap;
    color: var(--text-light, #a9b7c7);
    font-variant-numeric: tabular-nums;
}

.price-table__price {
    width: 120px;
    text-align: right;
    font-weight: 600;
    color: var(--green, #54a756);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.price-table th.price-table__price {
    text-align: right;
    color: var(--text-light, #a9b7c7);
}

.price-row__name {
    min-width: 240px;
}

/* --- пустой результат --------------------------------------------------- */

.price-empty {
    padding: 28px 20px;
    text-align: center;
    background: var(--bg-light, #fafafa);
    border-radius: 16px;
    color: var(--text-gray, #2c2c2c);
}

.price-empty p {
    margin: 0 0 10px;
}

/* --- пагинация ---------------------------------------------------------- */

.price-pages-wrap {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.price-pages {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.price-pages__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--bg-lighter, #f2f9ff);
    color: var(--text, #2a2a2a);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.price-pages__link:hover {
    background: var(--green-light, #e9f5ea);
    color: var(--green-dark, #459148);
}

.price-pages__link--active,
.price-pages__link--active:hover {
    background: var(--green, #54a756);
    color: var(--white, #fff);
    cursor: default;
}

.price-pages__link--edge {
    font-size: 17px;
}

.price-pages__dots {
    display: inline-flex;
    align-items: center;
    min-width: 28px;
    height: 40px;
    justify-content: center;
    color: var(--text-light, #a9b7c7);
}

/* --- мобильная версия ---------------------------------------------------- */

@media (max-width: 760px) {
    .price-table__category,
    .price-row__category,
    .price-table__mz,
    .price-row__mz {
        display: none;
    }

    .price-table {
        font-size: 14px;
    }

    .price-table th {
        padding: 10px;
    }

    .price-table td {
        padding: 10px;
    }

    .price-table__code {
        width: 70px;
    }

    .price-filter__field--submit {
        width: 100%;
    }

    .price-filter__btn {
        flex: 1;
    }
}
