/* Universal price list block: used on direction pages and the main prices page. */

.prices-page {
    width: 100%;
    margin-top: 80px;
}

.prices-page__title {
    margin: 0;
    max-width: 980px;
    color: #111122;
    font: 700 56px/1.2 'Inter', sans-serif;
}

.prices-search {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 32px;
}

.prices-search__input-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
}

.prices-search__input {
    width: 100%;
    height: 52px;
    padding: 14px 14px 14px 54px;
    border: 1px solid rgba(35, 113, 109, .25);
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
    color: #111122;
    background: transparent;
    font: 400 18px/1 'Inter', sans-serif;
}

.prices-search__input:focus {
    border-color: #23716d;
    box-shadow: 0 0 0 1px rgba(35, 113, 109, .08);
}

.prices-search__input::placeholder {
    color: rgba(17, 17, 34, .25);
}

.prices-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 2;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    pointer-events: none;
}

.prices-search__reset {
    display: none;
    width: 150px;
    height: 52px;
    flex: 0 0 150px;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 1px solid #23716d;
    border-radius: 12px;
    color: #111122;
    background: transparent;
    font: 400 18px/1 'Inter', sans-serif;
    cursor: pointer;
}

.prices-search__reset.is-visible {
    display: flex;
}

.prices-search__reset:hover {
    color: #fff;
    background: #23716d;
}

.prices-search__direction {
    position: relative;
    width: 365px;
    height: 52px;
    flex: 0 0 365px;
}

.prices-search__direction-button {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border: 1px solid rgba(35, 113, 109, .25);
    border-radius: 12px;
    color: rgba(17, 17, 34, .7);
    background: transparent;
    font: 400 18px/1 'Inter', sans-serif;
    text-align: left;
    cursor: pointer;
}

.prices-search__direction-arrow {
    flex-shrink: 0;
    transition: transform .2s ease;
}

.prices-search__direction-arrow img {
    display: block;
    width: 18px;
    height: auto;
}

.prices-search__direction.is-open .prices-search__direction-button {
    border-color: #23716d;
}

.prices-search__direction.is-open .prices-search__direction-arrow {
    transform: rotate(180deg);
}

.prices-search__direction-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    padding: 8px;
    border: 1px solid rgba(35, 113, 109, .15);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(17, 17, 34, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.prices-search__direction.is-open .prices-search__direction-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.prices-search__direction-option {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    color: #111122;
    background: transparent;
    font: 400 16px/1.4 'Inter', sans-serif;
    text-align: left;
    cursor: pointer;
}

.prices-search__direction-option:hover,
.prices-search__direction-option.is-active {
    color: #23716d;
    background: rgba(35, 113, 109, .08);
}

.prices-categories {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 32px;
}

.prices-category {
    overflow: hidden;
}

.prices-category__header {
    width: 100%;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border: 0;
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(139deg, #23716d 6.7%, #1b5349 91.1%);
    font: 600 32px/1.5 'Inter', sans-serif;
    text-align: left;
    cursor: pointer;
}

.prices-category__arrow {
    flex-shrink: 0;
    transition: transform .25s ease;
}

.prices-category__arrow img {
    display: block;
    width: 24px;
    height: auto;
}

.prices-category.is-open .prices-category__arrow {
    transform: rotate(180deg);
}

.prices-category__body {
    display: block;
    overflow: hidden;
    margin-top: 18px;
    border-radius: 32px;
    background: #fff;
}

.prices-category__body[hidden] {
    display: none;
}

.prices-services {
    width: 100%;
}

.prices-service {
    display: flex;
    align-items: center;
    min-height: 86px;
}

.prices-service:nth-child(even) {
    background: rgba(35, 113, 109, .05);
}

.prices-service__name {
    flex: 1 1 auto;
    min-width: 0;
    padding: 24px;
    color: #111122;
    font: 500 24px/1.5 'Inter', sans-serif;
}

.prices-service__price {
    width: 180px;
    flex: 0 0 180px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: #111122;
}

.prices-service__price strong {
    color: #23716d;
    font: 600 28px/1.5 'Inter', sans-serif;
}

.prices-service__price small {
    font: 400 16px/1.5 'Inter', sans-serif;
}

.prices-results {
    display: none;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
}

.prices-results.is-visible {
    display: block;
}

.prices-results .prices-service {
    min-height: 86px;
}

.prices-empty {
    display: none;
    width: 100%;
    margin-top: 60px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.prices-empty.is-visible {
    display: flex;
}

.prices-empty__icon img {
    display: block;
    width: 40px;
    height: 40px;
}

.prices-empty__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.prices-empty__title {
    color: #111122;
    font: 500 24px/1.2 'Inter', sans-serif;
}

.prices-empty__text {
    max-width: 421px;
    color: #111122;
    font: 400 18px/1.5 'Inter', sans-serif;
}

@media (max-width: 1199px) {
    .prices-search__direction {
        width: 260px;
        flex-basis: 260px;
    }

    .prices-page__title {
        font-size: 46px;
    }
}

@media (max-width: 767px) {
    .prices-page {
        margin-top: 48px;
    }

    .prices-page__title {
        font-size: 32px;
        line-height: 1.2;
    }

    .prices-search {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 20px;
    }

    .prices-search__input-wrap {
        width: 100%;
        flex-basis: 100%;
    }

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

    .prices-search__reset {
        width: calc(50% - 4px);
        flex: 1 1 calc(50% - 4px);
    }

    .prices-search__direction {
        width: 100%;
        flex: 1 1 100%;
    }

    .prices-search:not(.has-search) .prices-search__direction {
        width: 100%;
        flex-basis: 100%;
    }

    .prices-categories {
        gap: 12px;
        margin-top: 20px;
    }

    .prices-category__header {
        height: 56px;
        padding: 16px;
        border-radius: 16px;
        font-size: 18px;
    }

    .prices-category__arrow img {
        width: 18px;
    }

    .prices-category__body {
        margin-top: 8px;
        border-radius: 16px;
    }

    .prices-service {
        min-height: 56px;
    }

    .prices-service__name {
        padding: 14px 12px;
        font-size: 16px;
        line-height: 1.4;
    }

    .prices-service__price {
        width: 105px;
        flex-basis: 105px;
        gap: 4px;
        padding: 14px 8px;
        justify-content: flex-end;
    }

    .prices-service__price strong {
        font-size: 16px;
    }

    .prices-service__price small {
        font-size: 10px;
    }

    .prices-results {
        margin-top: 8px;
        border-radius: 16px;
    }

    .prices-empty {
        margin-top: 40px;
    }

    .prices-empty__title {
        font-size: 18px;
        line-height: 1.2;
    }

    .prices-empty__text {
        width: 100%;
        padding: 0 15px;
        font-size: 16px;
    }
}

/* Поиск на странице цены: порядок и состояния как в prices.php/prices.js. */
.prices-search__reset {
    box-sizing: border-box;
}

.prices-search__direction {
    box-sizing: border-box;
}
