/**
 * Стили страницы "Цены"
 */

.section-prices {
    padding: 60px 0;
}

.page-title {
    font-size: 30px;
    font-weight: 400;
    color: #383E4B;
    margin-bottom: 60px;
    text-align: center;
}

/* ========================================
   Базовые стили фильтров (поиск, кнопки)
   ======================================== */

.doctors-filters-section {
    margin: 50px 0 0;
}

.doctors-filters-wrapper {
    max-width: 1029px;
    margin: 0 auto;
}

.doctors-search {
    position: relative;
    margin-bottom: 30px;
}

.doctors-search-input {
    width: 100%;
    padding: 30px 40px;
    border: 1px solid #E0E0E0;
    border-radius: 50px;
    font-size: 16px;
    color: #383E4B;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.doctors-search-input:focus {
    border-color: #999999;
}

.doctors-search-input::placeholder {
    color: #999999;
}

.search-clear,
.search-submit {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.search-clear:hover,
.search-submit:hover {
    opacity: 0.7;
}

.search-clear {
    right: 60px;
}

.search-submit {
    right: 20px;
}

/* Горизонтальная раскладка фильтров на странице цен */
.prices-filters-section .doctors-filters-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.prices-filters-section .doctors-search {
    margin-bottom: 0;
}

.prices-filters-section .doctors-search-input {
    padding-right: 80px;
}

.prices-filters-section .search-clear {
    right: 40px;
}

.prices-filters-section .search-submit {
    right: 15px;
}

/* Текст disclaimer внизу фильтров */
.prices-disclaimer {
    font-size: 14px;
    line-height: 1.5;
    color: #383E4B;
    opacity: 0.8;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 0;
}

/* Таблица цен */
.section-prices-table {
    padding: 60px 0;
}

.prices-table-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

/* Кастомный выпадающий список категорий с поиском */
.prices-group-search {
    position: relative;
}

.prices-group-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prices-group-dropdown li {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #383E4B;
    transition: background-color 0.15s;
}

.prices-group-dropdown li:hover {
    background-color: #F5F5F5;
}

.prices-group-dropdown li.hidden {
    display: none;
}

/* ========================================
   Общие стили таблиц цен
   ======================================== */

/* Базовые стили таблицы */
.prices-table {
    width: 100%;
}

.prices-table thead th {
    font-weight: 400;
    text-align: left;
}


.prices-table tbody td {
    color: #383E4B;
}

.prices-group {
    margin-top:50px;
}
.service-prices {
    margin-bottom: 50px;
}
.page-template-page-prices .section-callback {
    margin-bottom: 270px;
}

/* Модификатор: Классическая таблица (для страниц услуг) */
.prices-table-classic {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.prices-table-classic thead th {
    padding: 0 25px 15px 25px;
    color: #383E4B;
    font-size: 17px;
}

.prices-table-classic thead th:first-child {
    padding-left: 25px;
}

.prices-table-classic thead th:last-child {
    padding-right: 65px;
}

.prices-table-classic tbody tr td {
    padding-top: 30px;
    padding-bottom: 30px;
}

.prices-table-classic tbody td {
    font-size: 17px;
    vertical-align: middle;
    color: #383E4B;
    background-color: #FFFFFF;
    padding-left: 25px;
    padding-right: 25px;
}

.prices-table-classic tbody td:first-child {
    padding-left: 25px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.prices-table-classic tbody td:last-child {
    padding-right: 65px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.prices-table-classic tbody tr:nth-child(even) td {
    background: rgba(232, 220, 204, 0.2);
}

/* Модификатор: Современная таблица (для страницы цен) */
.prices-table-modern {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.prices-table-modern thead th {
    font-size: 17px;
    color: #383E4B;
    line-height: 1.5;
    padding: 0 0 15px 0;
}

.prices-table-modern thead th:first-child {
    padding-left: 25px;
}

.prices-table-modern thead th:last-child {
    padding-right: 25px;
}

.prices-table-modern tbody tr {
    height: 74px;
}

.prices-table-modern tbody td {
    font-size: 17px;
    line-height: 1.5;
    padding: 0 15px;
    vertical-align: middle;
    background-color: #FFFFFF;
}

.prices-table-modern tbody tr.row-accent td {
    background-color: rgba(232, 220, 204, 0.2);
}

.prices-table-modern tbody td:first-child {
    padding-left: 25px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.prices-table-modern tbody td:last-child {
    padding-right: 25px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Специфичные стили для колонок современной таблицы */
.prices-table-modern .cell-article {
    width: 120px;
}

.prices-table-modern .cell-name {
    width: auto;
}

.prices-table-modern .cell-price {
    font-size: 18px;
    width: 150px;
}

/* Адаптивные стили для таблиц */
@media (max-width: 1000px) {
    .prices-table-modern thead th,
    .prices-table-modern tbody td {
        font-size: 15px;
    }

    .prices-table-modern .cell-price {
        font-size: 16px;
    }

    .prices-table-modern tbody tr {
        height: 60px;
    }
}

@media (max-width: 600px) {
    /* Горизонтальный скролл для современной таблицы на мобильных */
    .prices-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .prices-table-modern {
        min-width: 600px;
    }

    .prices-table-modern thead th,
    .prices-table-modern tbody td {
        font-size: 14px;
        padding: 0 10px;
    }

    .prices-table-modern thead th:first-child,
    .prices-table-modern tbody td:first-child {
        padding-left: 15px;
    }

    .prices-table-modern thead th:last-child,
    .prices-table-modern tbody td:last-child {
        padding-right: 15px;
    }

    .prices-table-modern .cell-price {
        font-size: 15px;
    }

    .prices-table-modern tbody tr {
        height: 50px;
    }
}

@media (max-width: 1000px) {
    .section-prices {
        padding: 40px 0;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    /* Фильтры - 1 колонка */
    .prices-filters-section .doctors-filters-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .prices-filters-section .doctors-search-input {
        padding: 15px 70px 15px 20px;
        font-size: 14px;
    }

    .prices-disclaimer {
        font-size: 13px;
        margin-top: 20px;
    }

    /* Классическая таблица - горизонтальный скролл */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .prices-table-classic {
        min-width: 600px;
    }

    .prices-table-classic thead th {
        font-size: 14px;
        padding: 0 15px 10px;
    }

    .prices-table-classic thead th:last-child {
        padding-right: 25px;
    }

    .prices-table-classic tbody td {
        font-size: 14px;
        padding: 15px;
    }

    .prices-table-classic tbody td:last-child {
        padding-right: 25px;
    }

    .prices-group-title {
        font-size: 22px;
    }

    /* Callback */
    .page-template-page-prices .section-callback {
        margin-bottom: 60px;
    }

    .section-prices-table {
        padding: 40px 0;
    }
    .service-prices {
        margin: 35px 0;
    }
}
