/* Прайс-лист Estellika */

.prices-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 150px 15px 40px;
}

/* Поиск */
.prices-search {
    position: relative;
    margin-bottom: 16px;
}

.prices-search input {
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 16px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 8px !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
}

.prices-search input:focus {
    border-color: #76B3CC;
}

.prices-search-clear {
    display: none;
    position: absolute;
    right: 12px;
    top: 24px;
    transform: translateY(-50%);
    font-size: 22px;
    color: #4F4F4F;
    cursor: pointer;
    line-height: 1;
}

.prices-search-clear:hover {
    color: #001E2F;
}

.prices-search-count {
    margin-top: 20px;
    font-size: 14px;
    color: #4F4F4F;
}

/* Навигация по разделам */
.prices-nav {
    background: #fff;
    padding: 0;
    margin-top: 15px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prices-nav a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #d0d0d0 !important;
    border-radius: 20px;
    text-decoration: none;
    color: #001E2F;
    font-size: 15px;
    transition: all 0.2s;
}

.prices-nav a:hover {
    background: #2C404E;
    color: #fff;
    border-color: #2C404E !important;
}

/* Аккордеон (details/summary) */
.prices-section {
    margin-bottom: 16px;
    border: 1px solid #E4E4E4 !important;
    border-radius: 8px;
    overflow: hidden;
}

.prices-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f8f8f8;
    cursor: pointer;
    list-style: none;
    user-select: none;
    gap: 12px;
}

.prices-section summary::-webkit-details-marker {
    display: none;
}

.prices-section summary h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #001E2F;
    padding-bottom: 0 !important;
    flex: 1;
}

.prices-section-count {
    font-size: 14px;
    color: #4F4F4F;
    white-space: nowrap;
}

/* Подкатегория (раскрывающаяся) */
.prices-subcategory {
    margin-top: 20px;
    background: #fafbfc;
    border: 1px solid #e8edf1 !important;
    border-radius: 8px;
    overflow: hidden;
}

.prices-subcategory summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    user-select: none;
    padding: 12px 16px;
}

.prices-subcategory summary::-webkit-details-marker {
    display: none;
}

.prices-subcategory summary::marker {
    display: none;
    content: '';
}

.prices-subcategory summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: #4F4F4F;
    flex-shrink: 0;
    margin-left: 8px;
}

.prices-subcategory[open] summary::after {
    content: '-';
}

.prices-subcategory[open] {
    padding-bottom: 16px;
}

.prices-subcategory-label {
    font-size: 16px;
    font-weight: 600;
    color: #002857;
    padding: 0;
    margin-bottom: 0;
}

.prices-subcategory .prices-table {
    margin-left: 16px;
    margin-right: 16px;
    width: calc(100% - 32px);
}

.prices-subcategory .prices-show-all {
    margin-left: auto;
    margin-right: auto;
}

.prices-subcategory-label--nested {
    margin-top: 16px;
    margin-left: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #002857;
    display: inline-block;
    background: #dde4ea;
    padding: 5px 14px;
    border-radius: 4px;
}

.prices-section > summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: #4F4F4F;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 4px;
}

.prices-section[open] summary::after {
    content: '-';
}

.prices-section summary:hover {
    background: #f0f0f0;
}

.prices-section-content {
    padding: 0 20px 20px;
}

/* Превью услуг (первые 5) */
.prices-preview {
    padding-top: 8px;
}

.prices-preview-item {
    display: flex;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0 !important;
    gap: 8px;
}

.prices-preview-item:last-child {
    border-bottom: none;
}

.prices-preview-name {
    font-size: 16px;
    color: #001E2F;
    max-width: 80%;
    flex-shrink: 0;
}

.prices-preview-dots {
    flex: 1;
    border-bottom: 1px dotted #ccc;
    min-width: 20px;
    margin-bottom: 4px;
}

.prices-preview-price {
    font-size: 16px;
    font-weight: 600;
    color: #002857;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Кнопка "Показать все" */
.prices-show-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none !important;
    margin-top: 12px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 20px;
    border-radius: 4px;
    background: #2C404E;
    border: none !important;
    color: #FFFFFF;
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    cursor: pointer;
    transition: background 0.2s;
}

.prices-show-all:hover {
    background: #002433;
    border: none !important;
    color: #FFFFFF;
}

.prices-show-all-arrow {
    transition: transform 0.3s;
}

.prices-show-all.active .prices-show-all-arrow {
    transform: rotate(180deg);
}

/* Полный список */
.prices-full {
    display: none;
    margin-top: 16px;
}

.prices-full--visible {
    display: block;
}

/* Таблица */
.prices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.prices-table thead th {
    text-align: left;
    padding: 12px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #4F4F4F;
    border-bottom: 2px solid #E4E4E4;
    white-space: nowrap;
}

.prices-table thead th:not(:first-child) {
    text-align: right;
    min-width: 100px;
}

.prices-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.prices-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.prices-table tbody tr:hover {
    background: #f5f5f5;
}

.prices-table tbody td {
    padding: 10px 12px;
    font-size: 16px;
    color: #001E2F;
}

.prices-table tbody td:not(:first-child) {
    text-align: right;
    white-space: nowrap;
    font-weight: 500;
}

.prices-table .price-free {
    color: #2e7d32;
    font-weight: 600;
}

/* Кнопка "Наверх" */
.prices-scroll-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 10px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #2C404E;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s, background 0.2s;
}

.prices-scroll-top:hover {
    background: #002857;
}

.prices-scroll-top.visible {
    display: block;
}

/* Мобильная адаптация */
@media (max-width: 767px) {
    .prices-page {
        padding-left: 0;
        padding-right: 0;
    }
    .gutter .port {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .prices-section-content h3 {
        padding-left: 0;
    }

    .prices-nav {
        gap: 6px;
        padding: 10px 0;
    }

    .prices-nav a {
        font-size: 14px;
        padding: 6px 12px;
    }

    .prices-subcategory {
        margin-top: 16px;
    }
    .prices-subcategory summary {
        padding: 10px 12px;
    }
    .prices-subcategory .prices-table {
        margin-left: 10px;
        margin-right: 10px;
        width: calc(100% - 20px);
    }
    .prices-subcategory .prices-show-all {
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 20px);
    }

    .prices-section summary {
        padding: 12px 16px;
    }

    .prices-section summary h2 {
        font-size: 16px;
    }

    .prices-preview-name {
        font-size: 15px;
    }

    .prices-preview-price {
        font-size: 15px;
    }

    .prices-section-content {
        padding: 0 12px 16px;
    }

    .prices-table thead {
        display: none;
    }

    .prices-table tbody tr {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .prices-table tbody tr:nth-child(even) {
        background: none;
    }

    .prices-table tbody td {
        display: block;
        text-align: left;
        padding: 3px 0;
        font-size: 15px;
    }

    .prices-table tbody td:first-child {
        font-weight: 600;
        padding-bottom: 4px;
        font-size: 16px;
    }

    .prices-table tbody td:not(:first-child) {
        text-align: left;
    }

    .prices-table tbody td:not(:first-child)::before {
        content: attr(data-label) ": ";
        color: #4F4F4F;
        font-weight: 400;
        font-size: 13px;
    }
}