/* Malinardi: мобильная версия. Действует только на экранах до 767px, компьютерная версия не меняется. */
@media (max-width: 767px) {
  html, body { overflow-x: clip; -webkit-text-size-adjust: 100%; }
  body { min-width: 0 !important; }
  img { max-width: 100%; height: auto; }

  /* Каркас */
  #wrapper, #header, #footer, .footer, #footer .wrapper-footer, #line-top .wrapper,
  #head, .topmenu_block, #middle, div.sect_main, div.newproducts, .content_box,
  #subscr1, .main_slider .flexslider { min-width: 0 !important; width: auto !important; max-width: 100% !important; }
  #middle { padding: 12px 12px 24px !important; box-sizing: border-box; height: auto; }
  #wrapper { height: auto !important; }
  #footer { margin: 0 !important; height: auto !important; }
  #middle > table, #middle > table > tbody, #middle > table > tbody > tr,
  #middle > table > tbody > tr > td { display: block; width: 100% !important; padding: 0 !important; box-sizing: border-box; }

  /* Верхняя строка: регистрация / вход */
  #line-top .wrapper { text-align: center; padding: 0 8px; }
  #line-top ul.personal { width: auto !important; }

  /* Шапка */
  #head { height: auto !important; padding: 10px 12px 6px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  #head .left_header { display: none; }
  #head .logo { position: static !important; margin: 0 !important; width: 90px !important; height: auto !important; order: 1; }
  #head .logo a { display: block; height: 80px !important; width: 90px !important; background-size: contain !important; background-position: center !important; }
  #head .logo img { width: 90px; }
  #head .right_header { position: static !important; width: auto !important; order: 2; text-align: right; flex: 1; padding-left: 10px; }
  #head .right_header table { width: auto !important; margin-left: auto; }
  #head .right_header table td { padding: 1px 0 1px 4px; font-size: 13px; }
  #head .callBack { margin-top: 4px; }
  #head > .clear { display: none; }

  /* Меню: кнопка-гамбургер */
  .main_menu { position: relative; }
  .topmenu_block { display: flex; align-items: center; flex-wrap: wrap; padding: 0 12px; box-sizing: border-box; min-height: 44px; }
  .mm-toggle { display: inline-flex !important; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid #ccc; background: #fff; font: 14px Arial, sans-serif; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; color: #242424; }
  .mm-toggle span { display: block; width: 18px; height: 2px; background: #242424; box-shadow: 0 6px 0 #242424, 0 -6px 0 #242424; }
  ul#hmenu { display: none; order: 3; width: 100% !important; float: none !important; margin: 6px 0 0 !important; height: auto !important; }
  .mm-open ul#hmenu { display: block; }
  ul#hmenu > li { float: none !important; display: block !important; width: auto !important; border-top: 1px solid #eee; margin: 0 !important; }
  ul#hmenu > li > a { display: block !important; padding: 12px 4px !important; font-size: 15px !important; }
  ul#hmenu ul { display: none !important; }
  .menu-clear-left { display: none; }
  .topmenu_block ul.shop-navigation { position: static !important; width: auto !important; flex: 1; margin-left: 10px; padding: 0 !important; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
  .shop-navigation > li { float: none !important; display: block !important; margin: 0 !important; padding: 0 4px !important; border: 0 !important; position: static !important; }
  .shop-navigation .search { flex: 1; min-width: 0; }
  .shop-navigation .search form { display: flex; align-items: center; }
  .shop-navigation .search input.q { width: 100% !important; min-width: 0; font-size: 16px !important; text-align: left !important; }
  .shop-navigation .prods-block { position: absolute !important; left: 8px !important; right: 8px !important; width: auto !important; top: 100% !important; z-index: 1000; }
  .pm_content td, .pm_content th { word-wrap: break-word; overflow-wrap: anywhere; box-sizing: border-box; }
  .pm_content td.title, #middle td.title { padding-left: 0 !important; padding-right: 0 !important; }

  /* Главная: слайдер и баннеры */
  .main_slider, .main_slider .flexslider, .main_slider .flex-viewport { height: auto !important; }
  .main_slider .flexslider .slides img { width: 100% !important; height: auto !important; }
  .banners { height: auto !important; padding: 0 12px; box-sizing: border-box; }
  .banners .banner-item { display: block !important; width: 100% !important; margin: 0 0 10px !important; }
  .banners .banner-item img { width: 100%; height: auto; }
  div.sect_main { margin-bottom: 12px !important; }
  #left_sign, #right_sign { display: none; }
  .mc-btn { display: block !important; margin: 12px 12px 14px; padding: 15px 10px; background: #242424; color: #fff !important; text-align: center; text-transform: uppercase; font: 15px Arial, sans-serif; letter-spacing: 1px; text-decoration: none !important; }

  /* Хлебные крошки и заголовки */
  .breadcrumbs_block, .breadcrumbs { width: auto !important; height: auto !important; min-height: 0 !important; padding: 0 12px; box-sizing: border-box; font-size: 12px; line-height: 1.6 !important; }
  .breadcrumbs_block { padding: 8px 12px !important; }
  .ar_for_detail { margin: 6px 0 10px !important; }
  h1, #pagetitle { font-size: 20px !important; line-height: 1.25 !important; height: auto !important; }
  .pm_content table, .pm_content p, .pm_content div { max-width: 100%; }
  .pm_content table { width: 100% !important; }

  /* Каталог: фильтр сворачивается, товары в две колонки */
  td.left_block { margin-bottom: 12px; }
  .mf-toggle { display: block !important; width: 100%; height: 42px; border: 1px solid #ccc; background: #f5f5f5; font: 14px Arial, sans-serif; text-transform: uppercase; cursor: pointer; color: #242424; }
  td.left_block form.smartfilter { display: none; margin-top: 8px; }
  td.left_block.mf-open form.smartfilter { display: block; }
  td.left_block .filtren, td.left_block ul.lsnn { width: auto !important; }
  div.sort { width: auto !important; height: auto !important; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 8px 0 !important; }
  div.sort .sorttext, div.sort select { position: static !important; float: none !important; }
  div.catalog_section { display: flex; flex-wrap: wrap; justify-content: space-between; }
  div.catalog_section .dataItem { float: none !important; width: calc(50% - 5px) !important; margin: 0 0 18px !important; height: auto !important; }
  div.catalog_section .dataItem .item_img { width: 100% !important; height: auto !important; }
  div.catalog_section .dataItem .item_img img { width: 100% !important; height: auto !important; display: block !important; }
  div.catalog_section .dataItem .item_img .submit { display: none !important; }
  div.catalog_section .dataItem .prod_data, div.catalog_section .dataItem .prod_data > div { width: auto !important; }
  div.catalog_section .dataItem .item_info_name { font-size: 13px; }
  div.catalog_section .dataItem .request-button { width: 100% !important; height: auto !important; line-height: normal !important; text-align: center; margin-top: 6px; }
  div.catalog_section .dataItem .request-button span { display: inline-block !important; line-height: 1.2 !important; white-space: nowrap; padding: 10px 12px !important; font-size: 13px !important; }
  div.sort { justify-content: space-between; }
  td.left_block > h2:empty, .pm_content > h1:empty { display: none; }
  .modern-page-navigation { width: 100%; text-align: center; line-height: 2.4; }
  .modern-page-navigation a, .modern-page-navigation span { padding: 4px 6px; }

  /* Карточка товара: фото на всю ширину, описание под ним */
  #insideContainer, #container, #item_photo, .item_description, .item_block, .info_desc, .item_prop,
  .set_bayparams, div.bay_params, .catalog-element-tabs, .moorephoto_text { float: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; }
  .ar_for_detail { width: 100% !important; font-size: 13px; }
  #item_photo { height: auto !important; margin-bottom: 12px !important; }
  #item_photo a#pzoom, #item_photo a#pzoom img { width: 100% !important; height: auto !important; display: block !important; }
  .MagicZoomBigImageCont, .MagicZoomPup, .MagicZoomHeader, .MagicZoomMedium, .MagicThumb-expanded-cont { display: none !important; }
  .item_description { padding: 0 !important; }
  .item_block .clear { display: none; }
  div.bay_params .col-left, div.bay_params .col-right { display: block !important; width: 100% !important; }
  #colorpicker { width: 100% !important; }
  .set_sizes label { line-height: 40px !important; min-width: 44px !important; font-size: 16px !important; }
  #carousel.pv-carousel { width: 100% !important; margin: 10px 0 0 !important; position: relative; }
  #carousel #scroller-prev, #carousel #scroller-next { display: none !important; }
  #carousel #scrollImage { width: 100% !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; margin: 0 !important; left: 0 !important; }
  #carousel #scrollImage ul { width: max-content !important; left: 0 !important; display: flex; }
  #carousel #scrollImage li { float: none !important; }
  .advantages { width: 100% !important; }

  /* Формы, корзина, личный кабинет */
  input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea, select { max-width: 100%; box-sizing: border-box; font-size: 16px; }
  .bx_ordercart, .bx_order_make, #basket_items, .bx-auth, .bx-auth-reg, .registration_form { width: auto !important; max-width: 100%; overflow-x: auto; }
  #basket_items_list, .bx_ordercart_order_table_container { overflow-x: auto; }

  /* Подписка и подвал */
  #subscr1 { height: auto !important; padding: 20px 12px !important; font-size: 18px !important; text-align: center; box-sizing: border-box; }
  #subscr1 .subscribe-form, #subscr1 form, #subscr1 table, #subscr1 tbody, #subscr1 tr, #subscr1 td { display: block; width: 100% !important; text-align: center; }
  #subscr1 td { padding: 0 !important; box-sizing: border-box; }
  iframe, video, embed, object { max-width: 100% !important; }
  #subscr1 input[type="text"], #subscr1 input[type="submit"] { width: 100% !important; margin: 6px 0 0 !important; box-sizing: border-box; }
  .footer { min-height: 0 !important; padding: 0 12px; box-sizing: border-box; }
  table.bottom_tab, table.bottom_tab tbody, table.bottom_tab tr { display: block; width: 100% !important; }
  table.bottom_tab tr:first-child th { display: none; }
  table.bottom_tab td.bottom_contacts { border-bottom: 1px solid #e5e5e5; margin-bottom: 14px; }
  table.bottom_tab td { display: block; width: 100% !important; padding: 0 0 14px !important; box-sizing: border-box; }
  #footer .wrapper-footer { padding: 14px 12px !important; box-sizing: border-box; }
  #footer .site { width: auto !important; }
  #footer .developer, #footer .counter { position: static !important; padding: 0 !important; background: none !important; width: auto !important; height: auto !important; }

  /* Всплывающие окна */
  .jqmWindow, .modal, .dspopup-modal { width: 92% !important; max-width: 92% !important; left: 4% !important; margin-left: 0 !important; box-sizing: border-box; }
}

/* 03.12.2026 (Claude): стрелки листания фото в карточке товара (все ширины экрана) */
.mg-box { position: relative; }
.mg-arr { position: absolute; z-index: 50; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
.mg-arr:hover { background: #fff; }
.mg-arr:after { content: ''; position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; border: solid #242424; border-width: 0 2px 2px 0; }
.mg-prev:after { transform: translate(-30%,-50%) rotate(135deg); }
.mg-next:after { transform: translate(-70%,-50%) rotate(-45deg); }
.mg-one .mg-arr { display: none; }
/* Меню: пункт «Статьи» — уменьшить отступы, чтобы «Контакты» не налезали на поиск */
@media (min-width: 768px) { #hmenu > li { margin-right: 20px !important; } }
/* Список статей и новостей: картинка не во всю ширину */
.news-item__img img { max-width: 200px; height: auto; }
