/* ===== Портфолио: обновлённый вид ===== */

/* --- Карточки работ в разделах --- */
body .works-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin: 24px 0 0; padding: 0; list-style: none; }
body .works-list__item { width: auto !important; margin: 0 !important; }
body .works-list__link { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #eceef1; border-radius: 8px; overflow: hidden; color: #1f2933; font-size: inherit !important; text-decoration: none !important; box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: box-shadow .2s, transform .2s; }
body .works-list__link:hover { color: #327bb0; box-shadow: 0 8px 24px rgba(16,24,40,.08); transform: translateY(-2px); }
body .works-list__img-block { height: auto; aspect-ratio: 4 / 3; border: 0; border-radius: 0; background: #f3f4f6; overflow: hidden; }
body .works-list__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
body .works-list__link:hover .works-list__img { transform: scale(1.03); }
body .works-list__text { margin: 0; padding: 12px 14px 14px; font-size: 15px !important; font-weight: 600; line-height: 1.35; text-align: left; }

/* --- Работы по маркам --- */
body .portfolio-by-brands > [class*="col"] { margin-bottom: 16px; }
body .portfolio-by-brand { height: 100%; margin: 0; background: #fff; border: 1px solid #eceef1; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: box-shadow .2s, transform .2s; }
body .portfolio-by-brand:hover { box-shadow: 0 8px 24px rgba(16,24,40,.08); transform: translateY(-2px); }
body .portfolio-by-brand__preview { margin: 0; aspect-ratio: 4 / 3; background: #f3f4f6; overflow: hidden; }
body .portfolio-by-brand__preview a { display: block; height: 100%; }
body .portfolio-by-brand__preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
body .portfolio-by-brand__body { padding: 10px 12px 12px; }
body .portfolio-by-brand__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
body .portfolio-by-brand__title a { color: #1f2933; text-decoration: none !important; }
body .portfolio-by-brand:hover .portfolio-by-brand__title a { color: #327bb0; }

/* --- Работы по типам --- */
body .portfolio-by-type.card { height: 100%; background: #fff; border: 1px solid #eceef1; border-radius: 8px; box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: box-shadow .2s, transform .2s; }
body .portfolio-by-type.card:hover { box-shadow: 0 8px 24px rgba(16,24,40,.08); transform: translateY(-2px); }
body .portfolio-by-type.card .card-body { padding: 28px 16px 24px; }
body .portfolio-by-type__preview { margin-bottom: 20px; }
body .portfolio-by-type__title { font-size: 16px; font-weight: 600; line-height: 1.35; }
body .portfolio-by-type__title a { color: #1f2933; text-decoration: none !important; }

/* --- Переключатель разделов (как на странице прайс-листа) --- */
body .works-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0; padding: 20px 0; list-style: none; background: #f6f6f6; box-shadow: 0 0 0 100vmax #f6f6f6; clip-path: inset(0 -100vmax); }
body .works-menu__item { margin: 0; padding: 0; background: transparent; border: 1px solid #dedede; border-radius: 30px; transition: background .2s; }
body .works-menu__link { display: block; padding: 12px 30px; font-size: 18px; line-height: 1.2; color: #333; text-decoration: none !important; }
body .works-menu__item:hover,
body .works-menu__item--active { background: #e6e6e6; border-color: #dedede; }
body .works-menu__item:hover .works-menu__link,
body .works-menu__item--active .works-menu__link { color: #333; }
@media (max-width: 575px) {
    body .works-menu { gap: 8px; padding: 14px 0; }
    body .works-menu__link { padding: 9px 18px; font-size: 15px; }
}
/* --- Фильтр --- */
body .bx_filter_select_block { height: 40px; padding: 9px 32px 9px 12px; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; transition: border-color .2s; }
body .bx_filter_select_block:hover { border-color: #327bb0; }
body .bx_filter_select_text { font-size: 15px; color: #1f2933; }
body .bx_filter_select_arrow { top: 16px; right: 14px; }
body .bx_filter_select_popup { border-radius: 8px; overflow: hidden; }

/* --- Страница работы --- */
body .work-cart { border: 1px solid #eceef1; border-radius: 8px; }
body .work-cart__product { text-decoration: none !important; }
body .work-cart__btn { display: inline-block; background: #327bb0; border-radius: 8px; text-decoration: none !important; transition: background .2s; }
body .work-cart__btn:hover { background: #2b6c9c; color: #fff; }
body .work-cart__sum .fa-info { border-color: #327bb0; color: #327bb0; }
body .work-cart__sum .tooltip { border-color: #327bb0; }

/* --- Телефон: плитки в две колонки --- */
@media (max-width: 575px) {
    body .works-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    body .works-list__text { padding: 10px; font-size: 14px !important; }
}

/* --- Фильтр: одинаковая высота полей и кнопок --- */
body .bx_filter_select_block { display: flex !important; align-items: center; box-sizing: border-box !important; height: 44px !important; padding: 0 36px 0 14px !important; }
body .bx_filter_select_arrow { top: 50% !important; transform: translateY(-50%); }
body .bx_filter input[type="submit"],
body .bx_filter input[type="button"],
body .bx_filter button,
body .bx_filter .bx_filter_search_button,
body .bx_filter .bx_filter_search_reset {
    box-sizing: border-box !important; height: 44px !important; margin-top: 0 !important; padding: 0 24px !important;
    border: 0 !important; border-radius: 8px !important; background: #327bb0 !important; color: #fff !important;
    font-size: 15px !important; line-height: 44px !important; vertical-align: top; cursor: pointer; transition: background .2s;
}
body .bx_filter input[type="submit"]:hover,
body .bx_filter input[type="button"]:hover,
body .bx_filter button:hover,
body .bx_filter .bx_filter_search_button:hover,
body .bx_filter .bx_filter_search_reset:hover { background: #2b6c9c !important; }
/* --- конец блока фильтра --- */

