

/* Start:/local/components/lubdoctor/prices.list/templates/.default/style.css?176493338618132*/
/* ===== PRICES LIST (scoped) ===== */
.pricing-section {
    --ld-primary: #17a2b8;
    --ld-primary-dark: #138496;
    --ld-accent: #20c997;
    --ld-text: #333;
    --ld-muted: #6c757d;
    --ld-border: #e9ecef;
    --ld-bg: #fff;
    --ld-shadow: 0 4px 20px rgba(0,0,0,.08);
    color: var(--ld-text);
}
.pricing-section *, .pricing-section *::before, .pricing-section *::after { box-sizing: border-box; }

/* контейнер (страховка, если нет общего .container) */
.pricing-section .container,
.pricing-section .container-fluid { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Заголовок страницы */
.pricing-section .page-title{
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--ld-text);
    margin: 0 0 30px;
}

/* ===== Панель поиска и действий ===== */
.pricing-section .pricing-controls{
    background: var(--ld-bg);
    border-radius: 15px;
    box-shadow: var(--ld-shadow);
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 24px;
    flex-wrap: wrap;
}

/* --- Поиск (новая версия) --- */
.pricing-section .pricing-search{
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 760px;
    min-height: 56px;
    background: #fff;
    border: 2px solid var(--ld-primary);
    border-radius: 999px;
    box-shadow: var(--ld-shadow);
    padding: 0 14px 0 54px; /* место под иконку слева */
    cursor: text;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.pricing-section .pricing-search:focus-within{
    border-color: var(--ld-accent);
    box-shadow: 0 0 0 4px rgba(23,162,184,.08);
}
.pricing-section .pricing-search__icon{
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    color: #fff;
    background: var(--ld-primary);
    border-radius: 50%;
}
.pricing-section .pricing-search__input{
    flex: 1 1 auto;
    height: 56px;
    border: 0; outline: 0; background: transparent;
    font-size: 16px; line-height: 1;
    color: var(--ld-text);
}
.pricing-section .pricing-search__input::placeholder{ color:#9aa4ab; }
.pricing-section .pricing-search__reset{
    border: 0; background: transparent; color:#9aa4ab;
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 22px; line-height: 1; cursor: pointer;
}
.pricing-section .pricing-search__reset:hover{ color:#333; background:#f2f4f7; }

/* --- Кнопки действий --- */
.pricing-section .filter-actions{ display: flex; align-items: center; gap: 12px; }
.pricing-section .action-btn,
.pricing-section .reset-btn{
    appearance: none;
    border: 0;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease;
}
.pricing-section .action-btn{ background: var(--ld-primary); color: #fff; }
.pricing-section .action-btn:hover{ background: var(--ld-primary-dark); transform: translateY(-1px); }
.pricing-section .reset-btn{ background: #6c757d; color:#fff; }
.pricing-section .reset-btn:hover{ background: #5a6268; }

/* ===== Список категорий ===== */
.pricing-section .pricing-grid{ display: flex; flex-direction: column; gap: 20px; }

/* Категория */
.pricing-section .pricing-category{
    background: var(--ld-bg);
    border-radius: 15px;
    box-shadow: var(--ld-shadow);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pricing-section .pricing-category:hover{ transform: translateY(-1px); }

.pricing-section .category-header{
    background: linear-gradient(135deg, var(--ld-primary) 0%, var(--ld-accent) 100%);
    color: #fff;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}
.pricing-section .category-header::before{
    content:'';
    position: absolute; inset: 0 100% 0 -100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    transition: left .5s ease; left: -100%;
}
.pricing-section .category-header:hover::before{ left: 100%; }

.pricing-section .category-title{ margin:0; font-size:20px; font-weight:600; }
.pricing-section .category-info{ display:flex; align-items:center; gap:16px; }
.pricing-section .service-count{
    background: rgba(255,255,255,.25);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 13px; font-weight: 500;
}
.pricing-section .expand-icon{ width:22px; height:22px; transition: transform .25s ease; }
.pricing-section .pricing-category.expanded .expand-icon{ transform: rotate(180deg); }

/* Контент категории (аккордеон) */
.pricing-section .category-content{
    max-height: 0; overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.pricing-section .pricing-category.expanded .category-content{ max-height: 2000px; }

/* Таблица услуг */
.pricing-section .services-table{ width:100%; border-collapse: collapse; }
.pricing-section .service-row{ border-bottom:1px solid var(--ld-border); transition: background-color .15s ease; }
.pricing-section .service-row:hover{ background:#f8f9fa; }
.pricing-section .service-row:last-child{ border-bottom:none; }

.pricing-section .service-code{
    width:120px; vertical-align: top;
    padding:14px 18px;
    font-size:14px; color:var(--ld-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.pricing-section .service-name{
    padding:14px 18px;
    font-size:15px; line-height:1.5; color:var(--ld-text);
}
.pricing-section .service-price{
    width:120px; white-space: nowrap; text-align:right;
    padding:14px 18px;
    font-size:16px; font-weight:700; color:var(--ld-primary);
}
.pricing-section .service-price::after{
    content:' ₽';
    font-size:14px; font-weight:600; color:var(--ld-muted);
}

/* Подсветка найденного */
.pricing-section .highlight{
    background:#fff3cd;
    padding:2px 4px; border-radius:3px; font-weight:600;
}

/* Нет результатов */
.pricing-section .no-results{
    background:#fff;
    border-radius:15px;
    box-shadow: var(--ld-shadow);
    color: var(--ld-muted);
    text-align:center;
    padding:60px 20px;
}
.pricing-section .no-results h3{ margin:0 0 8px; font-size:24px; color:#495057; }
.pricing-section .no-results p{ font-size:16px; }

/* ===== Адаптив ===== */
/* ===== Адаптив: планшет остаётся как был ===== */
@media (max-width: 768px){
    .pricing-section .pricing-controls{ flex-direction: column; align-items: stretch; }
    .pricing-section .filter-actions{ justify-content:center; flex-wrap: wrap; }
    .pricing-section .category-title{ font-size:18px; }
}

/* ===== Мобилка ≤ 480px ===== */
@media (max-width: 480px){
    /* общий ритм и безопасные отступы */
    .pricing-section .container,
    .pricing-section .container-fluid{ padding: 0 16px; }
    .pricing-section .page-title{ font-size: 28px; margin-bottom: 16px; }

    /* панель — в столбик, без переполнений */
    .pricing-section .pricing-controls{
        padding: 16px;
        gap: 12px;
    }
    .pricing-section .pricing-search{
        min-height: 50px;
        padding-left: 50px;
        max-width: 100%;
    }
    .pricing-section .pricing-search__input{ height: 50px; font-size: 15px; }
    .pricing-section .pricing-search__icon{ width: 30px; height: 30px; }
    .pricing-section .filter-actions{ width: 100%; gap: 10px; justify-content: center; }
    .pricing-section .action-btn,
    .pricing-section .reset-btn{ padding: 10px 14px; }

    .pricing-section .category-header{
        padding: 14px 16px;
    }
    .pricing-section .category-title{ font-size: 16px; }
    .pricing-section .category-info{ gap: 10px; }

    /* ===== Таблица → компактная карточка на ряд =====
       уходим от table-скролла и верстаем строку как grid */
    .pricing-section .services-table{
        display: block;               /* ломаем таблицу в блоковую раскладку */
        font-size: 14px;
        width: 100%;
    }
    .pricing-section .service-row{
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
      "name price"
      "code price";
        gap: 6px 10px;
        padding: 12px 14px;
        border-bottom: 1px solid var(--ld-border);
        background: #fff;
    }
    /* убираем стандартные паддинги ячеек */
    .pricing-section .service-row > *{ padding: 0 !important; }

    .pricing-section .service-name{
        grid-area: name;
        font-size: 14px;
        line-height: 1.45;
        color: var(--ld-text);
    }
    .pricing-section .service-code{
        grid-area: code;
        width: auto;                  /* больше не фиксируем ширину */
        font-size: 12px;
        color: var(--ld-muted);
        opacity: .9;
    }
    .pricing-section .service-price{
        grid-area: price;
        align-self: center;
        justify-self: end;
        width: auto;                  /* больше не фиксируем ширину */
        font-size: 15px;
        padding-left: 8px;
    }
    .pricing-section .service-price::after{
        font-size: 13px;
    }

    /* последний ряд — без нижней линии */
    .pricing-section .service-row:last-child{ border-bottom: none; }

    /* «нет результатов» — чуть компактнее */
    .pricing-section .no-results{ padding: 36px 14px; }
    .pricing-section .no-results h3{ font-size: 20px; }
    .pricing-section .no-results p{ font-size: 14px; }
}
/* ===== узкие экраны ≤ 420px ===== */
@media (max-width:419.98px){
    /* почти как в 480, только компактнее */
    .pricing-section .category-header{ padding:12px 5px; }
    .pricing-section .category-title{
        font-size:12px;          /* читаемо */
        white-space:normal;      /* перенос строк разрешён */
    }
    .pricing-section .category-info{ gap:8px; }
    .pricing-section .service-count{
        font-size:12px;          /* не мельчим слишком сильно */
        padding:3px 8px;
        white-space:normal;      /* перенос разрешён */
        line-height:1.3;
    }
    .pricing-section .expand-icon{ width:18px; height:18px; }
}

/* ===== очень узкие ≤ 360px ===== */
@media (max-width:359.98px){
    .pricing-section .category-header{ padding:10px 4px; }
    .pricing-section .category-title{
        font-size:10px;
        white-space:normal;
    }
    .pricing-section .service-count{
        font-size:11px;
        padding:2px 6px;
        white-space:normal;
        line-height:1.2;
    }
    .pricing-section .expand-icon{ width:16px; height:16px; }
}

/* ===== Мобилка ≤ 480px ===== */
@media (max-width: 480px){
    /* общий ритм и безопасные отступы */
    .pricing-section .container,
    .pricing-section .container-fluid{ padding: 0 16px; }
    .pricing-section .page-title{ font-size: 28px; margin-bottom: 16px; }

    /* панель — в столбик, без переполнений */
    .pricing-section .pricing-controls{
        padding: 16px;
        gap: 12px;
    }
    .pricing-section .pricing-search{
        min-height: 50px;
        padding-left: 50px;
        max-width: 100%;
    }
    .pricing-section .pricing-search__input{ height: 50px; font-size: 15px; }
    .pricing-section .pricing-search__icon{ width: 30px; height: 30px; }
    .pricing-section .filter-actions{ width: 100%; gap: 10px; justify-content: center; }
    .pricing-section .action-btn,
    .pricing-section .reset-btn{ padding: 10px 14px; }

    /* фикс шапки категории */
    .pricing-section .category-header{
        display:flex;
        align-items:center;
        justify-content:flex-start;
        gap:8px;
        padding:14px 16px;
    }
    .pricing-section .category-title{
        flex:1 1 auto;
        min-width:0;
        white-space:normal;        /* перенос разрешён */
        overflow-wrap:anywhere;    /* длинные слова ломаются */
    }
    .pricing-section .category-info{
        margin-left:auto;
        display:flex;
        align-items:center;
        gap:8px;
        flex:0 0 auto;
    }
    .pricing-section .service-count{
        white-space:nowrap; /* всегда в одну строку */
        flex:0 0 auto;
        padding:3px 8px;
    }
    .pricing-section .expand-icon{
        flex:0 0 auto;
    }

    /* ===== Таблица → компактная карточка на ряд ===== */
    .pricing-section .services-table{
        display: block;
        font-size: 14px;
        width: 100%;
    }
    .pricing-section .service-row{
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
      "name price"
      "code price";
        gap: 6px 10px;
        padding: 12px 14px;
        border-bottom: 1px solid var(--ld-border);
        background: #fff;
    }
    .pricing-section .service-row > *{ padding: 0 !important; }

    .pricing-section .service-name{
        grid-area: name;
        font-size: 14px;
        line-height: 1.45;
        color: var(--ld-text);
    }
    .pricing-section .service-code{
        grid-area: code;
        width: auto;
        font-size: 12px;
        color: var(--ld-muted);
        opacity: .9;
    }
    .pricing-section .service-price{
        grid-area: price;
        align-self: center;
        justify-self: end;
        width: auto;
        font-size: 15px;
        padding-left: 8px;
    }
    .pricing-section .service-price::after{
        font-size: 13px;
    }

    .pricing-section .service-row:last-child{ border-bottom: none; }

    .pricing-section .no-results{ padding: 36px 14px; }
    .pricing-section .no-results h3{ font-size: 20px; }
    .pricing-section .no-results p{ font-size: 14px; }
}


/* ==== ФИКСЫ ДЛЯ ОЧЕНЬ УЗКИХ ЭКРАНОВ ==== */

/* ≤420px */
@media (max-width:419.98px){

    /* убираем «блик» и любое переполнение шапки */
    .pricing-section .category-header{
        display: grid !important;
        grid-template-columns: 1fr min-content; /* заголовок | стрелка */
        align-items: center;
        column-gap: 6px;
        padding: 12px 10px;          /* ужимаем справа/слева */
        overflow: hidden;            /* чтобы ничего не вылазило */
    }
    .pricing-section .category-header::before{ display:none !important; }

    /* заголовок — максимальный перенос */
    .pricing-section .category-title{
        margin:0 !important;
        min-width:0 !important;
        max-width:100% !important;
        flex:1 1 auto;
        white-space:normal !important;
        overflow-wrap:anywhere !important; /* ломаем даже по буквам при необходимости */
        word-break:break-word !important;  /* fallback */
    }


    /* если внутри есть элементы с nowrap — выключаем его */
    .pricing-section .category-title *{
        white-space:normal !important;
        overflow-wrap:anywhere !important;
        word-break:break-word !important;
    }

    /* счётчик скрываем полностью, оставляем только стрелку */
    .pricing-section .service-count{ display:none !important; }

    /* стрелка всегда справа, без лишних зазоров */
    .pricing-section .category-info{
        justify-self:end;
        display:inline-flex;
        align-items:center;
        gap:4px;
        min-width:0;
    }
    .pricing-section .expand-icon{ width:18px; height:18px; }

    .pricing-section .service-name{
        grid-area: name;
        font-size: 12px;
        line-height: 1.45;
        color: var(--ld-text);
        white-space:normal !important;
        overflow-wrap:anywhere !important; /* ломаем даже по буквам при необходимости */
    }


}

/* ≤360px — ещё компактнее отступы, перенос остаётся таким же агрессивным */
@media (max-width:359.98px){
    .pricing-section .category-header{
        padding:10px 8px;
        column-gap:4px;
    }
    .pricing-section .category-info{ gap:0px; }
    .pricing-section .expand-icon{ width:16px; height:16px; }
    .pricing-section .service-count{ display:none !important; }
    .pricing-section .service-name{
        grid-area: name;
        font-size: 10px;
        line-height: 1.45;
        color: var(--ld-text);
        white-space:normal !important;
        overflow-wrap:anywhere !important; /* ломаем даже по буквам при необходимости */

    }
    .pricing-section .category-title{
        margin:0 !important;


        flex:1 1 auto;
        white-space:normal !important;
        overflow-wrap:anywhere !important; /* ломаем даже по буквам при необходимости */
        word-break:break-word !important;  /* fallback */
    }
    .pricing-section .pricing-category {min-width:0;max-width:95% !important;}

}
@media (max-width:340px){.pricing-section .pricing-category {min-width:0;max-width:90% !important;}}
@media (max-width:320px){.pricing-section .pricing-category {min-width:0;max-width:85% !important;}}

/* End */
/* /local/components/lubdoctor/prices.list/templates/.default/style.css?176493338618132 */
