/* ============================================
   PRICE LIST STYLES - Header Section
   ============================================ */

/* Основной контейнер прайс-листа */
.price-list-section {
    padding: 60px 0 60px;
    position: relative;
    overflow: hidden;
}

.price-list-section-background {
    content: '';
    position: absolute;
    width: 100%;
    height: 80%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(67, 218, 239, 0.15) 0%, rgba(67, 218, 239, 0.05) 40%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
    top: -30%;
    right: -30%;
    transform: none;
}

.price-list-section::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 120%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(67, 218, 239, 0.15) 0%, rgba(67, 218, 239, 0.05) 40%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
    bottom: -40%;
    left: -50%;
    transform: none;
}

.price-list__glow-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160%;
    height: 140%;
    background: radial-gradient(circle at center, rgba(67, 218, 239, 0.12) 0%, rgba(67, 218, 239, 0.06) 25%, rgba(67, 218, 239, 0.02) 50%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.75;
    pointer-events: none;
}

.price-list-section>.container {
    position: relative;
    z-index: 1;
}

.price-list__wrapper {
    max-width: 100%;
}

/* ============================================
   HEADER SECTION - Шапка с поиском и табами
   ============================================ */
.price-list__header-section {
    margin-bottom: 32px;
    padding: 20px 24px;
    border-radius: 20px;
    background: #fff;
}

.price-list__header-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Верхняя секция: заголовок + счетчик + табы */
.price-list__top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.price-list__top h1 {
    font-size: 30px;
    margin: 0;
    color: #000;
}

.price-list__total-count {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: end;
    font-size: 14px;
    font-weight: 400;
    color: #AEAEB2;
}

/* Табы филиалов */
.price-list__filials-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-list__filials-wrapper .tabs {
    height: 32px;
    border-radius: 7.91px;
}

.price-list__filials-wrapper .tabs__list {
    gap: 6.6px;
}

.price-list__filials-wrapper .tabs__list .tabs__item a {
    padding: 2.64px 10.55px;
    border-radius: 7.91px;
    font-size: 12px;
    font-weight: 600;
}

/* Секция поиска */
.price-list__search-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-list__search-form {
    width: 100%;
}

.price-list__search-wrapper {
    position: relative;
    z-index: 1000;
    align-items: center;
    display: flex;
    gap: 8px;
    width: 100%;
}

.price-list__search-wrapper .price-list__search-input-wrapper {
    flex: 1;
}

/* Стили поля ввода */
.price-list__search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #D2D2D2;
    border-radius: 10px;
    padding: 0 15px;
    box-shadow: 0px 1px 1px 1px rgba(0, 0, 0, 0.08) inset;
}

.price-list__search-input-wrapper:focus-within {
    border-color: #00AECB;
}

.price-list__search-icon {
    margin-right: 12px;
    flex-shrink: 0;
}

.price-list__search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 14px;
    color: #333333;
    background: transparent;
}

.price-list__search-input::placeholder {
    color: #999999;
}

/* Кнопка сброса */
.price-list__search-reset-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #AEAEB2;
    font-weight: 400;
    font-size: 14px;
    flex-shrink: 0;
}

.price-list__search-reset-btn svg {
    flex-shrink: 0;
}

/* Выпадающий список результатов поиска */
.price-list__search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #FFFFFF;
    border: 1px solid #F9F9F9;
    border-radius: 10px;
    max-height: 500px;
    padding: 20px 0;
    overflow-y: auto;
    z-index: 33;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    scrollbar-width: thin;
    scrollbar-color: #F0F0F0 #FFFFFF;
}

/* Scrollbar styles for Firefox */
.price-list__search-results {
    scrollbar-width: thin;
    scrollbar-color: #F0F0F0 #FFFFFF;
}

/* Scrollbar styles for Chrome, Edge, Safari */
.price-list__search-results::-webkit-scrollbar {
    width: 2px;
    background: #FFFFFF;
    border-radius: 9em !important;
}

.price-list__search-results::-webkit-scrollbar-thumb {
    background: #F0F0F0;
    border-radius: 9em !important;
}

.price-list__search-results::-webkit-scrollbar-track {
    background: #FFFFFF;
    border-radius: 9em !important;
}

.price-list__search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-list__search-result-item {
    transition: background-color 0.2s;
}

.price-list__search-result-item:hover {
    background-color: #F8F8F8;
}

.price-list__search-result-link {
    display: block;
    padding: 10px 25px;
    text-decoration: none;
    color: inherit;
}

.price-list__search-result-link:hover,
.price-list__search-result-link:focus {
    text-decoration: none;
    color: inherit;
}

.price-list__search-result-code {
    font-size: 14px;
    color: #969694;
    font-weight: 400;
    margin-bottom: 4px;
}

.price-list__search-result-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.price-list__search-result-name {
    flex: 1;
    font-size: 14px;
    color: #292929;
}

.price-list__search-result-price {
    font-size: 14px;
    color: #00AECB;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.price-list__search-result-name .highlight {
    background-color: #00AECB1F;
    color: #00AECB;
    border-radius: 2px;
}

.price-list__search-results-empty {
    padding: 20px;
    text-align: center;
    color: #999999;
    font-size: 14px;
}

/* ============================================
   PRICE LIST BODY - Основной список
   ============================================ */
.price-list__body {
    margin-top: 24px;
}

.price-list__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-list__item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    padding: 32px 24px;
}

/* ============================================
   DIRECTION HEADER - Заголовок направления (h2)
   ============================================ */
.price-list-entry__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    transition: .2s ease-in-out;
    border-bottom: 2px solid transparent;
    padding-bottom: 0px;
}

.price-list__item.active .price-list-entry__header {
    border-bottom: 2px solid #E8E8E8;
    padding-bottom: 10px;
}

.price-list-entry__title {
    margin: 0;
}

.price-list-entry__title a,
.price-list-entry__title span {
    color: #292929;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    text-wrap: wrap;
}

.price-list-entry__title a:hover {
    color: #00AECB;
}

/* Список услуг внутри направления */
.price-list-entry__list {
    list-style: none;
    display: none;
    padding: 0;
    margin: 0;
}

.price-list__item.active .price-list-entry__list {
    display: grid;
}

/* ============================================
   SERVICE ITEM - Подкатегория (услуга h3)
   ============================================ */
.price-list-entry__item:last-child {
    border-bottom: none;
}

/* Заголовок услуги (h3) */
.price-list-entry__subtitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    border-bottom: 1px solid #E8E8E8;
    padding: 12px 0;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    gap: 12px;
    min-width: 0;
}

.price-list-entry__list .price-list-entry__item:last-child .price-list-entry__subtitle {
    border-bottom: none;
}

.price-list-entry__subtitle a {
    font-size: 16px;
    font-weight: 600;
    color: #474747;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
}

.price-list-entry__subtitle a .name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.price-list-entry__subtitle a .count-uslug {
    flex-shrink: 0;
}

.price-list-entry__subtitle a .count-uslug {
    color: #00AECB;
}

.price-list-entry__subtitle a:hover {
    color: #00AECB;
}

/* Кнопка раскрытия услуги */
.price-list-entry__show-button__on-price-page,
.price-list-entry__header__show-button {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 0;
    background: #fafafa;
}

.price-list-entry__show-button__on-price-page::after,
.price-list-entry__header__show-button::after {
    content: '';
    display: block;
    width: 14px;
    height: 9px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.53711L7 7.53711L13 1.53711' stroke='%2300AECB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    transition: transform 0.3s ease;
}

/* Стрелка в активном состоянии — синяя, повёрнутая вверх */
.price-list-entry__item.active .price-list-entry__show-button__on-price-page::after {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNCcgaGVpZ2h0PSc5JyB2aWV3Qm94PScwIDAgMTQgOScgZmlsbD0nbm9uZSc+PHBhdGggZD0nTTEgNy41MzcxMUw3IDEuNTM3MTFMMTMgNy41MzcxMScgc3Ryb2tlPScjRDJEMkQyJyBzdHJva2Utd2lkdGg9JzInIHN0cm9rZS1saW5lY2FwPSdyb3VuZCcgc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcvPjwvc3ZnPg==');
}

.price-list__item.active .price-list-entry__header__show-button {
    display: none;
}

.price-list-section .container>.row {
    margin-left: 0;
    margin-right: 0;
}

/* Тело услуги */
.price-list-entry__body {
    display: block;
    max-height: 0;
    overflow-y: hidden;
    transition: max-height 0.3s ease;
}

.price-list-entry__item.active .price-list-entry__body {
    max-height: 350px;
    overflow: visible;
    overflow-y: auto;
}

/* --- FULLY CUSTOM GRAY SCROLLBAR FOR .price-list-entry__item.active .price-list-entry__body --- */

/* For Webkit browsers */
.price-list-entry__item.active .price-list-entry__body::-webkit-scrollbar {
    width: 7px;
    height: 7px;
    background: transparent;
}

.price-list-entry__item.active .price-list-entry__body::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 7px;
    min-height: 30px;
    border: 2px solid #fafafa;
}

.price-list-entry__item.active .price-list-entry__body::-webkit-scrollbar-track {
    background: #fafafa;
    border-radius: 7px;
}

.price-list-entry__item.active .price-list-entry__body::-webkit-scrollbar-corner {
    background: #fafafa;
}

.price-list-entry__item.active .price-list-entry__body::-webkit-scrollbar-button:single-button {
    display: none;
}

/* Hide all scrollbar buttons (arrows) completely */
.price-list-entry__item.active .price-list-entry__body::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

/* For Firefox */
.price-list-entry__item.active .price-list-entry__body {
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 #fafafa;
}





/* Таблица с ценами */
.price-list-entry__body table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    table-layout: fixed;
}

.price-list-entry__body table thead {
    display: none;
}

.price-list-entry__body table tr td {
    font-size: 14px;
    color: #000;
    vertical-align: middle;
}


.price-list-entry__body table tr:not(:last-child) td {
    padding-bottom: 16px;
}

.price-list-entry__body table tr td:last-child {
    color: #00AECB;
    font-size: 16px;
    padding-right: 15px;
}



/* Код услуги */
.price-list-entry__body table td:first-child {
    width: 150px;
    font-size: 14px;
    color: #969694;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 5px;
}

/* Название услуги — обрезка троеточием */
.price-list-entry__body table td:nth-child(2) {
    color: #000;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Цена */
.price-list-entry__body table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #000;
    white-space: nowrap;
    width: 110px;
}

/* ============================================
   MOBILE/TABLET ACCORDION
   ============================================ */
@media (max-width: 991px) {
    .price-list-entry {
        gap: 0;
    }

    .price-list__item.active .price-list-entry {
        gap: 16px;
    }


}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .price-list-section {
        padding: 20px 0 40px;
    }

    .price-list__total-count {
        display: none;
    }

    .price-list__top {
        flex-direction: column;
        align-items: center;
    }

    .price-list__item {
        padding: 15px 30px;
    }

    .price-list__top {
        justify-content: start;
        flex-wrap: wrap;
    }

    .price-list__top h1 {
        font-size: 28px;
    }

    .price-list__filials-wrapper {
        width: 100%;
    }

    .price-list__filials-wrapper .tabs {
        width: 100%;
    }

    .price-list__filials-wrapper .tabs__item {
        width: 100%;
    }

    .price-list__filials-wrapper .tabs__list .tabs__item a {
        padding: 0 10px;
    }

    .price-list__search-wrapper {
        max-width: 100%;
    }

    .price-list__search-input-wrapper {
        height: 36px;
    }

    .price-list-section .container {
        width: 100%;
        max-width: unset;
        padding: 0;
    }

    .price-list-entry__title {
        font-size: 18px;
    }

    .price-list-entry__subtitle a {
        font-size: 15px;
    }

    .price-list-entry__body tbody tr {
        display: flex;
        flex-direction: column;
        padding-bottom: 16px !important;
        padding-top: 16px !important;
        border-bottom: 1px solid #F8F8F8;
    }

    .price-list-entry__body tbody tr:first-child {
        padding-top: 0 !important;
    }

    .price-list-entry__body tbody tr:last-child {
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }

    .price-list-entry__body table td {
        padding: 0 !important;
        text-align: start !important;
    }

    .price-list-entry__title a,
    .price-list-entry__title span {
        font-size: 16px;
    }

    .price-list-entry__body table td:not(:last-child) {
        padding-bottom: 12px !important;
    }

    .price-list__search-results {
        max-height: 350px;
    }
}

@media (max-width: 480px) {
    .price-list__top h1 {
        font-size: 24px;
    }

    .price-list-entry__title {
        font-size: 16px;
    }

    .price-list-entry__subtitle a {
        font-size: 14px;
    }
}

/* ============================================
   HIDDEN/FILTERED STATES
   ============================================ */
.price-list__item.hidden,
.price-list-entry__item.hidden {
    display: none;
}

.price-list-entry__item {
    gap: 0;
    margin-bottom: 24px;
}

.price-list-entry__item:last-child {
    margin-bottom: 0;
}

.price-list-entry__item.active {
    gap: 16px;
}

.price-list__empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7C7C7C;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E5E5EA;
}

.price-list__empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #000;
    font-weight: 600;
}

.price-list__empty-state p {
    font-size: 15px;
    color: #7C7C7C;
}

/* ============================================
   CONSULTATION CTA (баннер с страницы МРТ)
   ============================================ */
.price-list__item--consult-banner {
    background: transparent;
    padding: 0;
    overflow: visible;
}

.price-list-consult {
    position: relative;
    overflow: hidden;
    padding: 4rem 3rem;
    z-index: 9;
    border-radius: 20px;
    background: linear-gradient(327deg, #4FC6DC 0%, #EBF7FF 100%);
}

.price-list-consult .price-list-consult__img {
    right: 0;
    position: absolute;
    bottom: 0;
    top: 0;
}

.price-list-consult .price-list-consult__img img {
    height: 100%;
}

.price-list-consult h2 {
    max-width: 354px;
    font-size: 26.73px;
    font-weight: 600;
    margin-bottom: 22px;
}

.price-list-consult a {
    font-weight: 500;
}

.price-list-consult .price-list-consult__mobile {
    display: none;
}

.directions-feedback.price-list .directions-form__form {
    width: 568px;
}

.price-list-consult .price-list-consult__desktop {
    display: block;
}

@media (max-width: 1200px) {
    .price-list-consult {
        background: linear-gradient(271.77deg, #C6F1F8 -2.8%, #CFEAFC 95%) !important;
    }
}

@media (max-width: 768px) {

    .price-list-section::before,
    .price-list-section::after,
    .price-list__glow-center,
    .price-list-section-background {
        display: none;
    }

    body {
        background: #E6F5FF;
    }

    .directions-feedback.price-list .directions-form__form {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .price-list-consult {
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    .price-list-consult h2 {
        font-size: 20px;
    }

    .price-list-consult .price-list-consult__img {
        right: -100px !important;
    }
}

@media (max-width: 576px) {
    .price-list-consult h2 {
        max-width: 206px;
        font-size: 16px;
    }

    .price-list-consult .price-list-consult__img {
        right: -65px !important;
    }

    .price-list-consult {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
        padding-left: 20px !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    .price-list-consult .price-list-consult__mobile {
        display: block !important;
    }

    .price-list-consult .price-list-consult__desktop {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .price-list-consult .price-list-consult__img {
        right: 0 !important;
    }
}
