/* Catalog section and product pages. The markup follows the theme, these rules supply
   what the theme expects from its page wrappers plus the section filter. */
.catalog-page.cat-wrap { max-width: 1312px; margin: 0 auto; padding: 0 0 100px; }
.catalog-page.cat-wrap h1 { margin-top: 16px; }
.catalog-page .catalog-content { padding-top: 20px; }
.catalog-page .catalog-empty { padding: 30px 0; }

/* product tiles: rows are levelled by card height only (as the theme does) - the title takes
   its own height and status and price follow it directly */
.catalog-page .catalog.item-views.table .row.items.flexbox .title { min-height: 0; }
.catalog-page .catalog.item-views.table .row.items.flexbox .arts { min-height: 0; }
.catalog-page .catalog.item-views.table .row.items.flexbox .text .cont { flex: 0 0 auto; }
.catalog-page .catalog.item-views.table .row.items.flexbox .foot { margin-top: 0; }
.catalog-page .catalog.item-views.table .row.items.flexbox > [class*="col-"] { margin-bottom: 32px; }

/* product page: the theme keeps slides transparent until its own script reveals them */
.catalog-page .detail .galery .flexslider.top-bigs .slides > li { opacity: 1; }

@media (min-width: 992px) {
    .catalog-page .content-md > .right_block.catalog_page { width: 100%; }
    .catalog-page .content-md > .right_block.narrow_Y.catalog_page .section-content-wrapper { width: 75%; }
    .catalog-page .right_block.catalog_page .main-catalog-wrapper .left_block { margin-top: 0; }
}
@media (max-width: 991px) {
    .catalog-page .right_block .main-catalog-wrapper { display: block; }
}

/* phones and tablets: no sidebar; the filter opens as a side panel from the button next to the sorting */
@media (max-width: 991px) {
    .catalog-page.cat-wrap { padding-left: 16px; padding-right: 16px; }
    .catalog-page .left_block { float: none; width: auto; margin: 0; padding: 0; }
    .catalog-page .left_block .sidebar,
    .catalog-page .left_block .sidearea .banner,
    .catalog-page .left_block .sidearea .include { display: none; }
    .catalog-page .left_block .bx_filter { display: none; }
    .catalog-page.filter-open .left_block .bx_filter { display: block; position: fixed; top: 0; bottom: 0; left: 0; z-index: 3001; width: 300px; max-width: 86vw; margin: 0; overflow-y: auto; background: #fff; box-shadow: 0 0 30px rgba(0, 0, 0, .25); }
    .catalog-filter-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 3000; background: rgba(0, 0, 0, .45); }
    .catalog-page .filter-action { cursor: pointer; }
}

/* product page: enlarged photo over the page */
.cat-lb { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 30px 70px; background: rgba(0, 0, 0, .8); cursor: zoom-out; }
.cat-lb img { max-width: 100%; max-height: 100%; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); cursor: default; }
.cat-lb-close, .cat-lb-nav { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 32px; line-height: 44px; text-align: center; padding: 0; cursor: pointer; }
.cat-lb-close:hover, .cat-lb-nav:hover { background: rgba(255, 255, 255, .3); }
.cat-lb-close { top: 16px; right: 16px; }
.cat-lb-nav { top: 50%; margin-top: -24px; }
.cat-lb-prev { left: 12px; }
.cat-lb-next { right: 12px; }
.catalog-page .detail .galery a { cursor: zoom-in; }
@media (max-width: 767px) {
    .cat-lb { padding: 60px 8px 20px; }
}

/* review pages (/landings/): banner sits right under the header row */
.landing-banner { margin-top: 6px; }
.landing-page.with-banner .catalog-content { padding-top: 0; }

/* article and news tiles: pictures carry width/height attributes (to reserve space) and scale by width */
.content-page .banners-small.blog .item .image img,
.content-page .news2 .item .image img,
.content-page .item-views.list .item .image img,
.content-page .detailimage img { height: auto; }

/* list markers in page texts: the theme draws them only inside its own page wrapper */
.catalog-page .content ul li::before,
.catalog-page .text_after_items ul li::before,
.catalog-page .text_before_items ul li::before,
.catalog-page .landing_detail ul li::before,
.catalog-page .previewtext ul li::before,
.catalog-page .introtext ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 3px; height: 3px; background: #222; }

/* articles grid: tiles of one row share the height of the tallest (the theme does this with a script) */
.content-page .banners-small.blog .items.flexbox > .s_3 { display: flex; }
.content-page .banners-small.blog .items.flexbox > .s_3 > .item { width: 100%; }

/* static pages taken over from the previous site */
.content-page .static-text img { max-width: 100%; height: auto; }
.content-page .static-text table img { max-width: none; }
.content-page .contacts-map { display: block; position: relative; z-index: 0; width: 100%; height: 500px; border: 0; background: #f2f3f5; }
.content-page .contacts-map .contacts-map-link { display: flex; align-items: center; justify-content: center; height: 100%; }
.content-page .contacts { padding: 0 !important; margin: 0 !important; }
.content-page .contacts > .row { margin-left: 0 !important; margin-right: 0 !important; }
.content-page .contacts-form h4 { display: inline-block; margin: 0 0 22px; padding-bottom: 4px; font-size: 24px; line-height: 30px; }
.content-page .catalog-content > hr { margin: 65px 0 50px; }
.content-page .contacts-form > .col-md-8 { padding-top: 59px; }
.content-page .contacts-question .form-control { height: 49px; margin-bottom: 33px; }
.content-page .contacts-question textarea.form-control { height: 295px; resize: vertical; }
.content-page .contacts-question .required-star { color: #e02222; }
.content-page .contacts-consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13px; margin: 0 0 28px; }
.content-page .contacts-consent input { margin-top: 4px; }
.content-page .contacts-submit { display: flex; align-items: center; gap: 24px; }
.content-page .contacts-note { color: #999; font-size: 13px; }

/* page blocks that share a class name with the fixed side widget of the layout stay visible on phones */
.catalog-page .fixed_wrapper { display: block !important; }

/* contacts: title and address block are indented from the page edge on phones and tablets */
@media (max-width: 991px) {
    .contacts-page .breadcrumbs-wrap,
    .catalog-page.contacts-page.cat-wrap h1 { margin-left: 16px; margin-right: 16px; }
    .content-page.contacts-page .contacts > .row.border { margin-left: 16px !important; margin-right: 16px !important; }
}

/* phones: less space under the page title; lists that carry a feed icon next to the title sit 8px lower */
@media (max-width: 767px) {
    .catalog-page .catalog-content { padding-top: 4px; }
    .landing-page.with-banner .catalog-content { padding-top: 0; }
    .content-page .ajax_load > .banners-small.blog { margin-top: 8px; }
    .blog-page .ajax_load > .bottom_nav { padding-top: 18px; }
    .content-page .contacts-consent { margin-bottom: 17px; }
    .content-page .right_block > .head-block.top { margin-top: 4px; }
}

/* phones: pictures of list rows take the whole row */
@media (max-width: 530px) {
    .catalog-page .list-type-block.item-views.wide_img .item > .image img { width: 100%; height: auto; }
}

/* news page: the picture standing above the text runs from edge to edge on phones and tablets */
@media (max-width: 991px) {
    .content-page .detailimage.image-head { margin-left: -16px; margin-right: -16px; }
}

/* news and article pages: tiles of linked news scale their picture by width; the linked products
   block keeps the bottom margin of the text above it */
.content-page .news_block .item .image img { height: auto; }
@media (min-width: 992px) {
    .content-page .detail + .detail .goods-block > hr { margin-top: 71px; }
}

/* carousels: the slider script sizes a slide without its side padding */
.content-page [data-carousel] .slides > li { box-sizing: content-box; }
