/* Small layout fixes on top of the theme (linked from template/template/2/Footer.html). */

/* "Рекомендуем посмотреть" on product pages: owl arrows sat on the cards edges over the text.
   Move them to the heading row, top right. */
section.analog_for_name .catalog-items.owl-carousel { overflow: visible !important; clip-path: inset(-80px 0 0 0); position: relative; z-index: 3; }
section.analog_for_name > * .h2, section.analog_for_name .h2 { padding-right: 100px; }
section.analog_for_name .catalog-items.owl-carousel .owl-nav .owl-prev,
section.analog_for_name .catalog-items.owl-carousel .owl-nav .owl-next {
  top: -66px !important; bottom: auto !important; margin: 0 !important; transform: none !important;
}
section.analog_for_name .catalog-items.owl-carousel .owl-nav .owl-prev { left: auto !important; right: 42px !important; }
section.analog_for_name .catalog-items.owl-carousel .owl-nav .owl-next { left: auto !important; right: 0 !important; }

/* Homepage: reserve image boxes so the blocks below do not jump while images load (CLS). */
#block99 .slider-img img { display: block; width: 100%; height: auto; aspect-ratio: 799 / 430; }
.logo-img img[src*="Logo_Avtoera"] { aspect-ratio: 160 / 194; }

/* Left fixed bar (zone28): "Каталог техники" is a plain link to /catalog/, no drop-down (block 95 body hidden;
   the link is added by /js/catalog-menu.js). */
#block95 .menu-button-body { display: none !important; }
#block95 .menu-button-head { position: relative; cursor: pointer; }
#block95 a.cm-sidelink { position: absolute; inset: 0; z-index: 2; }

/* Category pages (level 2 of /catalog/): model subsections have no pictures, so instead of big "no photo" tiles
   show them as a row of compact buttons above the products. /catalog/ itself (level 1) keeps its picture tiles. */
body.subdiv-catalog.level2 .subdivision-top .subdivision-items {
  display: flex !important; flex-wrap: wrap; gap: 8px; margin: 0 0 22px !important; padding: 0 !important;
}
body.subdiv-catalog.level2 .subdivision-top .subdivision-items > li.sub {
  width: auto !important; min-height: 0 !important; height: auto !important; margin: 0 !important; padding: 0 !important;
  float: none !important; flex: 0 0 auto; background: none !important; box-shadow: none !important;
}
body.subdiv-catalog.level2 .subdivision-top .subdivision-items > li.sub .wrapper {
  height: auto !important; min-height: 0 !important; padding: 0 !important; background: none !important; display: block;
}
body.subdiv-catalog.level2 .subdivision-top .subdivision-items .sub-img-wrapper,
body.subdiv-catalog.level2 .subdivision-top .subdivision-items .wrapper::before,
body.subdiv-catalog.level2 .subdivision-top .subdivision-items .wrapper::after { display: none !important; }
body.subdiv-catalog.level2 .subdivision-top .subdivision-items .name { position: static !important; margin: 0 !important; padding: 0 !important; }
body.subdiv-catalog.level2 .subdivision-top .subdivision-items .name a {
  display: block; padding: 8px 14px !important; border: 1px solid #e3e3e8; border-radius: 8px; background: #fff;
  font-size: 14px !important; font-weight: 500 !important; line-height: 1.25 !important; text-transform: none !important;
  color: #1d1d22 !important; text-decoration: none; white-space: nowrap;
}
body.subdiv-catalog.level2 .subdivision-top .subdivision-items .name a:hover { border-color: #e40612; color: #e40612 !important; }
body.subdiv-catalog.level2 .subdivision-top .subdivision-items .name a::after,
body.subdiv-catalog.level2 .subdivision-top .subdivision-items .name a::before { display: none !important; }
body.subdiv-catalog.level2 .subdivision-top .subdivision-items > li.sub .wrapper,
body.subdiv-catalog.level2 .subdivision-top .subdivision-items > li.sub .name { display: contents !important; }
body.subdiv-catalog.level2 .subdivision-top .subdivision-items .name a {
  position: static !important; height: auto !important; min-height: 0 !important; width: auto !important; overflow: visible !important;
  font-family: Montserrat, sans-serif !important;
}
body.subdiv-catalog.level2 .subdivision-top .subdivision-items .name a span {
  display: inline !important; margin: 0 !important; padding: 0 !important; font: inherit !important; line-height: 1.25 !important;
}

/* Category pages: the left accordion of categories (block 8) repeated the header catalog menu and pushed the filter
   (block 81) below the fold. Where the filter is present, show the filter at the top instead. */
@media screen and (min-width: 780px) {
  body:has(#block81 .sfv2) #block8 { display: none !important; }
}
@media screen and (max-width: 779px) {
  body.subdiv-catalog.level2 .subdivision-top .subdivision-items {
    flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 6px;
    margin: 0 !important; padding: 4px 15px 10px !important; scrollbar-width: none;
  }
  body.subdiv-catalog.level2 .subdivision-top .subdivision-items::-webkit-scrollbar { display: none; }
  body.subdiv-catalog.level2 .subdivision-top .subdivision-items .name a { padding: 7px 12px !important; font-size: 13px !important; }
}

/* Header catalog button (block 75) and the top menu (block 2): width follows the content instead of the theme grid
   columns, so the longer title "Каталог техники" fits without pushing "Заказать звонок" to a second row. */
@media screen and (min-width: 1000px) {
  #block75, #block2 { width: auto !important; }
  #block75 .menu-button-head span { white-space: nowrap; }
  /* Comparison / favourites icons (blocks 91, 65) sit next to "Заказать звонок" on the right, not glued to the menu. */
  .container:has(> #block75):has(> #block98) { display: flex; align-items: flex-start; }
  #block75 ~ #block91 { margin-left: auto !important; }
}

/* Category hero (template/template/2/cat_hero.php): text left, picture right, on level-1 catalog categories.
   The theme title section stays empty (.zone-title--hero) and only holds the mobile filter button. */
.zone-title--hero:not(.mobile-filter-have) { display: none; }
.zone-title--hero.mobile-filter-have { padding: 0 !important; margin: 0 0 10px !important; }
.cat-hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: 24px 32px;
  margin: 6px 0 34px; padding: 40px 28px 40px 44px; border-radius: 16px; overflow: hidden; position: relative;
  background: linear-gradient(100deg, #f5f5f7 0%, #f5f5f7 55%, #ececf0 100%);
  font-family: Montserrat, sans-serif; color: #1d1d22;
}
.cat-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 46%; height: calc(100% + 120px);
  background: #e40612; transform: skewX(-12deg); opacity: .08; pointer-events: none;
}
.cat-hero__title {
  margin: 0 0 16px !important; font-family: Unbounded, sans-serif !important; font-size: 34px !important;
  line-height: 1.15 !important; font-weight: 600 !important; text-transform: uppercase; color: #1d1d22 !important;
}
.cat-hero__lead { margin: 0 0 22px; font-size: 16px; line-height: 1.55; color: #4a4a52; max-width: 560px; }
.cat-hero__lead p { margin: 0 !important; font: inherit !important; color: inherit !important; }
.cat-hero__perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 600px; margin: 0 0 26px !important; padding: 0 !important; list-style: none; }
.cat-hero__perks li {
  display: flex; flex-direction: column; gap: 2px; margin: 0 !important; padding: 9px 12px 9px 14px !important;
  background: #fff; border-radius: 10px; border-left: 3px solid #e40612; box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.cat-hero__perks li::before { display: none !important; }
.cat-hero__perks b { font-size: 13.5px; font-weight: 700; }
.cat-hero__perks span { font-size: 12.5px; color: #77777f; }
.cat-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.cat-hero__cta {
  display: inline-block; padding: 15px 26px; border-radius: 10px; background: #e40612; color: #fff !important;
  font-size: 15px; font-weight: 600; text-decoration: none !important; box-shadow: 0 8px 20px rgba(228, 6, 18, .25);
}
.cat-hero__cta:hover { background: #c10510; }
.cat-hero__phone { font-size: 18px; font-weight: 700; color: #1d1d22 !important; text-decoration: none !important; }
.cat-hero__media { position: relative; z-index: 1; }
.cat-hero__media img { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 3 / 2; margin: -10px 0 -20px; }
.cat-hero__count {
  position: absolute; left: 6%; bottom: 4%; padding: 10px 14px; border-radius: 10px; background: #17171c; color: #fff;
  font-size: 12.5px; line-height: 1.3;
}
.cat-hero__count b { font-size: 20px; }
@media (max-width: 1279px) { .cat-hero__title { font-size: 28px !important; } .cat-hero { padding-left: 32px; } }
@media (max-width: 779px) {
  .cat-hero { grid-template-columns: 1fr; margin: 0 15px 20px; padding: 14px 18px 18px; gap: 0; }
  .cat-hero::after { display: none; }
  .cat-hero__title { font-size: 22px !important; margin-bottom: 4px !important; }
  .cat-hero__media { order: -1; margin: 0 -10px 6px; max-width: 330px; justify-self: center; }
  .cat-hero__text { display: contents; }
  .cat-hero__media img { width: 100%; margin: 0; }
  .cat-hero__count { left: auto; right: 8px; bottom: 6px; padding: 7px 10px; }
  .cat-hero__count b { font-size: 16px; }
  .cat-hero__title { padding: 0 !important; }
  .cat-hero__lead { font-size: 14px; line-height: 1.45; margin: 8px 0 14px; display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden; }
  .cat-hero__perks { display: flex; max-width: none; flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin: 0 -18px 16px !important; padding: 0 18px 4px !important;
    scrollbar-width: none; }
  .cat-hero__perks li { flex: 0 0 auto; }
  .cat-hero__phone { display: none; }
  .cat-hero__perks li { padding: 7px 10px 7px 12px !important; }
  .cat-hero__cta { width: 100%; text-align: center; }
}
.cat-hero--noimg { grid-template-columns: minmax(0, 1fr); padding-right: 44px; }
.cat-hero--noimg .cat-hero__lead { max-width: 760px; }
@media (max-width: 779px) { .cat-hero--noimg { padding-right: 18px; } .cat-hero__lead p { display: inline; } }

/* Key characteristics (params marked "preview" in settings): compact "name — value" rows on listing cards
   and under the vendor on the product page (class2001::keySpecsHtml). */
.catalog-item .cart-params-all { margin: 6px 0 0 !important; padding: 0 0 44px !important; }
.catalog-item .cart-param-item-preview {
  display: flex !important; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 !important;
  padding: 3px 0 !important; border-bottom: 1px dashed #e6e6ea; font-size: 12.5px !important; line-height: 1.3 !important;
}
.catalog-item .cart-param-item-preview .cartp-name {
  display: block !important; min-width: 0; color: #8d8d96 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.catalog-item .cart-param-item-preview .cartp-value {
  display: block !important; flex: 0 0 auto; font-weight: 600; color: #1d1d22 !important; text-align: right; white-space: nowrap;
}
.key-specs { display: block !important; max-width: 520px; margin: 14px 0 6px !important; padding: 0 !important; }
.key-specs .key-spec {
  display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #e3e3e8;
  font-size: 14px; line-height: 1.35;
}
.key-specs .key-spec__name { color: #77777f; }
.key-specs .key-spec__name::after { content: ""; }
.key-specs .key-spec__value { margin-left: auto; font-weight: 600; color: #1d1d22; text-align: right; }
/* short labels on narrow listing cards (full names stay on the product page) */
.catalog-item .cart-param-item-preview .cartp-name { font-size: 0 !important; }
.catalog-item .cart-param-item-preview .cartp-name::before { font-size: 12.5px; }
.catalog-item .cart-param-param_bazovaya_model_shassi_tyagacha .cartp-name::before { content: "Шасси"; }
.catalog-item .cart-param-param_kolesnaya_formula .cartp-name::before { content: "Формула"; }
.catalog-item .cart-param-param_moshchn_dvig_l_s .cartp-name::before { content: "Мощность, л.с."; }
.catalog-item .cart-param-param_model_kp .cartp-name::before { content: "КПП"; }
.catalog-item .cart-param-param_gruzopodemnost_t .cartp-name::before { content: "Г/п, т"; }
.catalog-item .cart-param-param_nagruzka_ssu_t .cartp-name::before { content: "Нагрузка на ССУ, т"; }
.catalog-item .cart-param-param_obem_platformy_m3 .cartp-name::before { content: "Объём, м³"; }
.catalog-item .cart-param-param_montazhnaya_dlina_ramy_mm .cartp-name::before { content: "Рама, мм"; }
@media (max-width: 779px) {
  .catalog-item .cart-params-all { padding-bottom: 6px !important; }
  .catalog-item .cart-param-item-preview .cartp-name::before { font-size: 12px; }
  .catalog-item .cart-param-param_moshchn_dvig_l_s .cartp-name::before { content: "л.с."; }
  .catalog-item .cart-param-param_nagruzka_ssu_t .cartp-name::before { content: "ССУ, т"; }
}

/* Listing card v3 (mockup): 3 per row, large photo, icon rows with dashed lines, big price, button + compare + favourite. */
@media (min-width: 780px) {
  .catalog-items[class*="count-catalog"]:not(.owl-carousel) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .catalog-items[class*="count-catalog"]:not(.owl-carousel)::before, .catalog-items[class*="count-catalog"]:not(.owl-carousel)::after { display: none !important; }
  .catalog-items[class*="count-catalog"]:not(.owl-carousel) > * { grid-column: 1 / -1; }
  .catalog-items[class*="count-catalog"]:not(.owl-carousel) > .catalog-item.obj { grid-column: auto; width: auto !important; margin: 0 !important; float: none !important; }
}
@media (min-width: 780px) and (max-width: 1099px) { .catalog-items[class*="count-catalog"]:not(.owl-carousel) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.catalog-item.obj {
  display: flex !important; flex-direction: column; padding: 14px !important; background: #fff !important;
  border: 1px solid #e6e6ea !important; border-radius: 12px !important; box-shadow: none !important; transition: border-color .2s, box-shadow .2s;
}
.catalog-item.obj:hover { border-color: #e40612 !important; box-shadow: 0 10px 28px rgba(20,20,30,.08) !important; }

/* photo */
.catalog-item.obj .image-default {
  margin: 0 !important; padding: 0 !important; height: auto !important; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  background: #f1f1f4; display: flex !important; align-items: center; justify-content: center; position: relative;
}
.catalog-item.obj .image-default a { display: flex !important; width: 100%; height: 100%; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.catalog-item.obj .image-default img:not(.nophoto) { width: 100%; height: 100%; object-fit: cover; }
.catalog-item.obj .image-default:has(img.nophoto) img { opacity: 0; position: absolute; }
.catalog-item.obj .image-default:has(img.nophoto) a::before {
  content: ""; width: 42%; aspect-ratio: 2 / 1; opacity: .5;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cg fill='%23b9b9c2'%3E%3Cpath d='M4 14h62v30H4z'/%3E%3Cpath d='M70 22h22l12 12v10H70z'/%3E%3Ccircle cx='20' cy='48' r='8'/%3E%3Ccircle cx='40' cy='48' r='8'/%3E%3Ccircle cx='90' cy='48' r='8'/%3E%3C/g%3E%3Cg fill='%23f1f1f4'%3E%3Ccircle cx='20' cy='48' r='3'/%3E%3Ccircle cx='40' cy='48' r='3'/%3E%3Ccircle cx='90' cy='48' r='3'/%3E%3Cpath d='M76 26h14l8 8H76z'/%3E%3C/g%3E%3C/svg%3E");
}
.catalog-item.obj .image-default:has(img.nophoto) a::after { content: "Фото скоро"; font: 500 13px Montserrat, sans-serif; color: #a0a0aa; }

/* stock label on the photo, like a ribbon */
.catalog-item.obj .blk_stock { position: absolute !important; top: 26px; left: 14px; z-index: 3; margin: 0 !important; }
.catalog-item.obj .blk_stock .instock {
  display: inline-flex !important; align-items: center; gap: 4px; padding: 7px 14px !important; border-radius: 0 8px 8px 0;
  background: #2e9c4a !important; color: #fff !important; font-size: 13px !important; font-weight: 600;
}
.catalog-item.obj .blk_stock .instock::before, .catalog-item.obj .blk_stock .instock svg { filter: brightness(0) invert(1); }

/* text block grows so prices and buttons line up across the row */
.catalog-item.obj .blk_info { display: flex !important; flex-direction: column; flex: 1 1 auto; padding: 16px 0 0 !important; width: auto !important; }
.catalog-item.obj .blk_first { display: flex !important; flex-direction: column; flex: 1 1 auto; height: auto !important; width: 100% !important; }
.catalog-item.obj .blk_second { height: auto !important; }
.catalog-item.obj .blk_name a {
  font-size: 18px !important; line-height: 1.3 !important; font-weight: 700 !important; color: #1d1d22 !important;
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.catalog-item.obj .blk_name a:hover { color: #e40612 !important; }
.catalog-item.obj .blk_art { display: none !important; }

/* spec rows: icon + short label left, value right, dashed separators */
.catalog-item.obj .cart-params-all { display: block !important; margin: 12px 0 0 !important; padding: 0 !important; }
.catalog-item.obj .cart-param-item-preview {
  display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 9px 0 !important;
  border: 0 !important; border-bottom: 1px dashed #dcdce2 !important; background: none !important; font-size: 15px !important;
}
.catalog-item.obj .cart-param-item-preview::before { content: ""; flex: 0 0 22px; height: 22px; background: center / contain no-repeat; }
.catalog-item.obj .cart-param-item-preview .cartp-name { flex: 0 0 auto; width: auto !important; overflow: visible !important; }
.catalog-item.obj .cart-param-item-preview .cartp-name::before { font-size: 14px !important; color: #8d8d96; }
.catalog-item.obj .cart-param-item-preview .cartp-value {
  flex: 1 1 auto; width: auto !important; min-width: 0; margin-left: auto; text-align: right !important;
  font-size: 15px !important; font-weight: 600 !important; color: #1d1d22 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.catalog-item.obj .cart-param-param_moshchn_dvig_l_s .cartp-name::before { content: "Мощность"; }
.catalog-item.obj .cart-param-param_moshchn_dvig_l_s .cartp-value::after { content: " л.с."; }

/* price at the bottom of the text block */
.catalog-item.obj .blk_priceblock { position: static !important; margin: auto 0 0 !important; padding: 18px 0 0 !important; }
.catalog-item.obj .blk_price { font-size: 26px !important; font-weight: 800 !important; letter-spacing: -.01em; color: #e40612 !important; white-space: nowrap; }

/* button row: order button + compare + favourite */
.catalog-item.obj .blk_third { height: auto !important; padding: 14px 92px 0 0 !important; }
.catalog-item.obj .blk_third .block_incard { width: 100% !important; float: none !important; }
.catalog-item.obj .blk_third .cart-btn a {
  display: flex !important; align-items: center; justify-content: center; width: 100% !important; height: 48px; padding: 0 !important;
  border-radius: 8px !important; font-size: 15px !important; font-weight: 600 !important;
}
.catalog-item.obj .flags {
  top: auto !important; left: auto !important; right: 14px !important; bottom: 14px !important; display: flex; gap: 4px; z-index: 3;
  background: none !important; box-shadow: none !important; padding: 0 !important;
}
.catalog-item.obj .flags > * { width: 42px; height: 48px; display: flex !important; align-items: center; justify-content: center; margin: 0 !important; }

@media (max-width: 779px) {
  .catalog-items[class*="count-catalog"]:not(.owl-carousel) { display: block !important; }
  .catalog-items[class*="count-catalog"]:not(.owl-carousel) > .catalog-item.obj { width: auto !important; float: none !important; margin: 0 0 16px !important; height: auto !important; }
  .catalog-item.obj .image-default { aspect-ratio: 16 / 10; }
  .catalog-item.obj .blk_name a { font-size: 17px !important; }
  .catalog-item.obj .cart-param-item-preview { padding: 8px 0 !important; }
  .catalog-item.obj .blk_price { font-size: 24px !important; }
}
.catalog-item.obj .cart-param-param_bazovaya_model_shassi_tyagacha::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h11v9H2zM13 9h4l3 3v3h-7z'/%3E%3Ccircle cx='6' cy='17' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E"); }
.catalog-item.obj .cart-param-param_kolesnaya_formula::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='5' r='2'/%3E%3Ccircle cx='19' cy='5' r='2'/%3E%3Ccircle cx='5' cy='19' r='2'/%3E%3Ccircle cx='19' cy='19' r='2'/%3E%3Cpath d='M7 5h10M7 19h10M12 5v14'/%3E%3C/svg%3E"); }
.catalog-item.obj .cart-param-param_moshchn_dvig_l_s::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h3V7h6l2 2h3v3h2v4h-2v2h-5l-2 2H7v-4H4z'/%3E%3Cpath d='M12 10l-2 3h3l-2 3'/%3E%3C/svg%3E"); }
.catalog-item.obj .cart-param-param_model_kp::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4v16M12 4v16M18 4v8M6 12h12'/%3E%3Ccircle cx='6' cy='4' r='1.2'/%3E%3Ccircle cx='12' cy='4' r='1.2'/%3E%3Ccircle cx='18' cy='4' r='1.2'/%3E%3C/svg%3E"); }
.catalog-item.obj .cart-param-param_gruzopodemnost_t::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9h12l2 11H4z'/%3E%3Ccircle cx='12' cy='6' r='2.5'/%3E%3C/svg%3E"); }
.catalog-item.obj .cart-param-param_nagruzka_ssu_t::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M12 4v5'/%3E%3C/svg%3E"); }
.catalog-item.obj .cart-param-param_obem_platformy_m3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9zM12 12l8-4.5M12 12L4 7.5M12 12v9'/%3E%3C/svg%3E"); }
.catalog-item.obj .cart-param-param_montazhnaya_dlina_ramy_mm::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9h20v6H2zM6 9v3M10 9v3M14 9v3M18 9v3'/%3E%3C/svg%3E"); }
.catalog-item.obj .blk_first > * { order: 1; }
.catalog-item.obj .blk_first > .blk_priceblock { order: 10; }
.catalog-item.obj, .catalog-item.obj .blk_info { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }
.catalog-item.obj .blk_third .block_incard, .catalog-item.obj .blk_third .cart-btn { position: static !important; top: auto !important; bottom: auto !important; left: auto !important; right: auto !important; width: 100% !important; margin: 0 !important; }
.catalog-item.obj .blk_third .block_incard, .catalog-item.obj .blk_third .cart-btn { display: block !important; max-width: none !important; }
.catalog-item.obj .image-default a { text-decoration: none !important; }
/* narrow carousel cards on phones (two per screen): smaller type, icons without labels, button without compare/favourite */
@media (max-width: 779px) {
  .owl-carousel .catalog-item.obj { padding: 8px !important; }
  .owl-carousel .catalog-item.obj .blk_stock { top: 16px; left: 8px; }
  .owl-carousel .catalog-item.obj .blk_stock .instock { font-size: 11px !important; padding: 4px 8px !important; }
  .owl-carousel .catalog-item.obj .blk_info { padding-top: 10px !important; }
  .owl-carousel .catalog-item.obj .blk_name a { font-size: 14px !important; }
  .owl-carousel .catalog-item.obj .cart-param-item-preview { gap: 6px; padding: 6px 0 !important; }
  .owl-carousel .catalog-item.obj .cart-param-item-preview::before { flex-basis: 16px; height: 16px; }
  .owl-carousel .catalog-item.obj .cart-param-item-preview .cartp-name { display: none !important; }
  .owl-carousel .catalog-item.obj .cart-param-item-preview .cartp-value { font-size: 13px !important; text-align: left !important; margin-left: 0; }
  .owl-carousel .catalog-item.obj .blk_price { font-size: 17px !important; }
  .owl-carousel .catalog-item.obj .blk_priceblock { padding-top: 10px !important; }
  .owl-carousel .catalog-item.obj .blk_third { padding: 10px 0 0 !important; }
  .owl-carousel .catalog-item.obj .blk_third .cart-btn a { height: 40px; font-size: 13px !important; }
  .owl-carousel .catalog-item.obj .flags { display: none !important; }
}

/* Timed callback popup (js/callback-popup.js) */
.ae-cb {
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(20, 20, 26, 0); transition: background .3s; font-family: Montserrat, sans-serif;
}
.ae-cb.is-open { background: rgba(20, 20, 26, .55); }
.ae-cb__card {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; padding: 36px 40px 26px;
  background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); color: #1d1d22;
  transform: translateY(24px) scale(.97); opacity: 0; transition: transform .3s, opacity .3s;
}
.ae-cb.is-open .ae-cb__card { transform: none; opacity: 1; }
.ae-cb__close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f2f2f5; cursor: pointer;
}
.ae-cb__close::before, .ae-cb__close::after {
  content: ""; position: absolute; left: 11px; top: 18px; width: 16px; height: 2px; background: #1d1d22; transform: rotate(45deg);
}
.ae-cb__close::after { transform: rotate(-45deg); }
.ae-cb__close:hover { background: #e7e7ec; }
.ae-cb__title { margin: 0 30px 12px 0; font-size: 26px; line-height: 1.25; font-weight: 800; }
.ae-cb__title mark { padding: 0 6px; border-radius: 4px; background: #e40612; color: #fff; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ae-cb__lead { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: #55555e; }
.ae-cb__form form { margin: 0 !important; }
.ae-cb__form .userline { margin: 0 0 12px !important; padding: 0 !important; width: 100% !important; float: none !important; }
.ae-cb__form .field-title { display: block; margin: 0 0 6px !important; font-size: 13px !important; color: #77777f !important; }
.ae-cb__form .field-title .red { display: inline; color: #e40612; }
.ae-cb__form input[type="text"], .ae-cb__form input[type="tel"] {
  width: 100% !important; height: 50px !important; padding: 0 16px !important; border: 1px solid #dcdce2 !important; border-radius: 10px !important;
  background: #fff !important; font-size: 17px !important; color: #1d1d22 !important; box-shadow: none !important;
}
.ae-cb__form input[type="text"]:focus, .ae-cb__form input[type="tel"]:focus { border-color: #e40612 !important; outline: none; }
.ae-cb__form .soglas_main_container { gap: 6px !important; margin: 4px 0 16px; }
.ae-cb__form .politika label { font-size: 12px !important; line-height: 1.4; color: #77777f; }
.ae-cb__form .politika a { color: #55555e; text-decoration: underline; }
.ae-cb__form .modal_button_main { margin: 0 !important; text-align: left; }
.ae-cb__form .btn-strt { display: block; width: 100%; margin: 0 !important; }
.ae-cb__form .btn-strt input[type="submit"] {
  width: 100% !important; height: 54px !important; border: 0 !important; border-radius: 10px !important; background: #e40612 !important;
  color: #fff !important; font-size: 17px !important; font-weight: 700 !important; cursor: pointer; box-shadow: 0 8px 20px rgba(228, 6, 18, .25);
}
.ae-cb__form .btn-strt.no_soglas input[type="submit"] { background: #f08b90 !important; box-shadow: none; cursor: default; }
.ae-cb__form .result { margin: 0 0 10px; }
.ae-cb__form .result .okText { font-size: 16px; font-weight: 600; color: #2e9c4a; text-align: center; }
.ae-cb__never {
  display: block; margin: 14px auto 0; padding: 0; border: 0; background: none; font: 13px Montserrat, sans-serif; color: #9a9aa3;
  text-decoration: underline; cursor: pointer;
}
@media (max-width: 779px) {
  .ae-cb { align-items: flex-end; padding: 0; }
  .ae-cb__card { max-width: none; max-height: 92vh; padding: 26px 18px 18px; border-radius: 18px 18px 0 0; transform: translateY(100%); }
  .ae-cb__title { font-size: 21px; }
  .ae-cb__lead { font-size: 14px; margin-bottom: 14px; }
}
.ae-cb__form .soglas_main_container { display: flex !important; flex-direction: column !important; }
.ae-cb__form .soglas_main, .ae-cb__form .soglas_main2 { display: block !important; }
.ae-cb__form .politika { display: flex !important; gap: 8px; align-items: flex-start; width: auto !important; }
.ae-cb__form .politika input { flex: 0 0 auto; margin: 2px 0 0 !important; }

/* 2026-12-05: pagination only below the list; the copy above the products is hidden (it pushed cards down) */
.zone-content > .pagination:has(+ .catalog-items) { display: none !important; }

/* 2026-12-05: compact pagination "1 2 3 →": no "из N" duplicate, next page as an arrow next to the numbers */
.zone-content > .pagination { display: flex !important; align-items: center; flex-wrap: wrap; gap: 8px; }
.zone-content > .pagination .pgn-line { display: flex !important; align-items: center; flex-wrap: wrap; gap: 8px; float: none !important; margin: 0 !important; }
.zone-content > .pagination .pag_text, .zone-content > .pagination .pag_text + a { display: none !important; }
.zone-content > .pagination .lnkpage { margin: 0 !important; }
.zone-content > .pagination .next_page { float: none !important; margin: 0 !important; position: static !important; }
.zone-content > .pagination .next_page a, .zone-content > .pagination .pag_prev {
  display: inline-flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 !important; padding: 0 !important;
  border: 1px solid #e0e0e6; border-radius: 6px; background: #fff; font-size: 0 !important; color: #1d1d22 !important; text-decoration: none !important;
}
.zone-content > .pagination .next_page a::before, .zone-content > .pagination .pag_prev::before { display: none !important; }
.zone-content > .pagination .next_page a::after { content: "→"; font-size: 20px; line-height: 1; }
.zone-content > .pagination .pag_prev::after { content: "←"; font-size: 20px; line-height: 1; }
.zone-content > .pagination .next_page a:hover, .zone-content > .pagination .pag_prev:hover { border-color: #e40612; color: #e40612 !important; }
.zone-content > .pagination .next_page { display: block !important; }
@media (max-width: 779px) {
  .zone-content > .pagination, .zone-content > .pagination .pgn-line { gap: 5px; flex-wrap: nowrap; }
  .zone-content > .pagination .next_page a, .zone-content > .pagination .pag_prev { width: 34px; height: 34px; }
}
@media (max-width: 779px) { .zone-content > .pagination, .zone-content > .pagination .pgn-line { gap: 3px; } .zone-content > .pagination .lnkpage { padding-left: 0 !important; padding-right: 0 !important; min-width: 30px; text-align: center; } }
@media (max-width: 779px) { .zone-content > .pagination .pag_prev { display: none !important; } }

/* 2026-12-05: narrow cards (homepage carousels on laptop screens): "Оформить заказ" did not fit next to the
   compare/favourite icons and ran under them. Under 240px of inner width the button takes the full width and the icons sit on the photo, top right. */
.catalog-item.obj { container-type: inline-size; }
@container (max-width: 240px) {
  .catalog-item.obj .blk_third { padding-right: 0 !important; }
  .catalog-item.obj .flags { top: 10px !important; right: 10px !important; bottom: auto !important; gap: 6px; }
  .catalog-item.obj .flags > * { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
  .catalog-item.obj .blk_third .cart-btn a { height: 44px; font-size: 14px !important; }
}
/* 2026-12-05: theme min-height (19.5-21.5vw) on the card text block left a big gap in carousels without specs ("Рекомендуем посмотреть") */
.catalog-items .catalog-item.obj .blk_first { min-height: 0 !important; }

/* 2026-12-05: article (model code) under the name: the name is clamped to 2 lines and its model code was cut off,
   so cards of different modifications looked identical */
.catalog-item.obj .blk_first > .blk_art:not(.blk_vendor):not(.blk_art2) {
  display: block !important; margin: 6px 0 0 !important; font-size: 14px !important; line-height: 1.3; color: #77777f !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.catalog-item.obj .blk_art .art_title { color: #9a9aa3 !important; font-weight: 400 !important; }
.catalog-item.obj .blk_art .art_value { color: #1d1d22 !important; font-weight: 600 !important; }
@container (max-width: 240px) { .catalog-item.obj .blk_first > .blk_art { font-size: 12.5px !important; } }
@container (max-width: 240px) { .catalog-item.obj .blk_first > .blk_art .art_title { display: none !important; } .catalog-item.obj .blk_first > .blk_art { font-size: 13px !important; } }

/* 2026-12-05: crane model and reach are in the product name on list cards; on the product page they stay in the key specs */
.catalog-item.obj .cart-param-item-preview.cart-param-param_model_kmu, .catalog-item.obj .cart-param-item-preview.cart-param-param_vylet_strely_m { display: none !important; }
.key-specs .cart-param-param_model_kmu .key-spec__value { font-weight: 700; }
/* 2026-12-05: names now end with the crane model (the main difference between modifications): allow 3 lines instead of 2 */
.catalog-item.obj .blk_name a { -webkit-line-clamp: 3 !important; line-clamp: 3; }

/* 2026-12-05: compare / favourite feedback (js/card-actions.js). The theme saved the item but nothing changed on screen. */
.favorit-flag input:checked + label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e40612' d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 2.9 4.5 6.6 4.1c2.1-.2 3.9.9 5.4 2.8 1.5-1.9 3.3-3 5.4-2.8 3.7.4 5.7 4.3 4.2 7.7C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") !important;
}
.comparison.active .comparison-add .icons::before {
  background: #e40612 !important;
  -webkit-mask: url("/a/autoera/files/userfiles/images/comparison.svg") center / contain no-repeat;
  mask: url("/a/autoera/files/userfiles/images/comparison.svg") center / contain no-repeat;
}
.catalog-item.obj .flags > *:hover { opacity: .75; cursor: pointer; }
/* the theme's own "Перейти в сравнение" hover note is replaced by the notice below */
.catalog-item.obj .comparison-info { display: none !important; }

.ae-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100001; display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 12px; background: #1d1d22; color: #fff;
  font: 500 15px/1.35 Montserrat, sans-serif; box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.ae-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ae-toast a { color: #ff6b73; font-weight: 700; text-decoration: underline; white-space: nowrap; }
@media (max-width: 779px) { .ae-toast { bottom: 84px; font-size: 14px; } }

/* counters on the header / side-panel links (the theme hid them) */
#link-comparison, #link-favorite { position: relative; }
#link-comparison.ae-has-count::after, #link-favorite.ae-has-count::after {
  content: attr(data-ae-count); position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #e40612; color: #fff; font: 700 11px/18px Montserrat, sans-serif; text-align: center;
  box-sizing: border-box; pointer-events: none;
}

/* Carousels before the slider script starts: lay the cards out in one row like the finished slider,
   instead of a tall single column that then collapses (2026-12-05). Column counts follow data-sizeitem. */
.catalog-items.owl-carousel:not(.owl-loaded) { display: flex !important; flex-wrap: nowrap !important; gap: 1px; overflow: hidden !important; --ae-n: 2; }
.catalog-items.owl-carousel:not(.owl-loaded) > * { flex: 0 0 calc((100% - (var(--ae-n) - 1) * 1px) / var(--ae-n)) !important; width: auto !important; max-width: none !important; margin: 0 !important; float: none !important; }
.catalog-items.owl-carousel:not(.owl-loaded) > :not(.catalog-item) { display: none !important; }
@media (min-width: 650px) { .catalog-items.owl-carousel[data-sizeitem^="1700:5"]:not(.owl-loaded) { --ae-n: 3; } .catalog-items.owl-carousel[data-sizeitem^="1279:4"]:not(.owl-loaded) { --ae-n: 2; } }
@media (min-width: 780px) { .catalog-items.owl-carousel[data-sizeitem^="1700:5"]:not(.owl-loaded) { --ae-n: 4; } .catalog-items.owl-carousel[data-sizeitem^="1279:4"]:not(.owl-loaded) { --ae-n: 3; } }
@media (min-width: 1279px) { .catalog-items.owl-carousel[data-sizeitem^="1700:5"]:not(.owl-loaded) { --ae-n: 5; } .catalog-items.owl-carousel[data-sizeitem^="1279:4"]:not(.owl-loaded) { --ae-n: 4; } }
@media (max-width: 649px) { .catalog-items.owl-carousel[data-sizeitem^="1279:4"]:not(.owl-loaded) { --ae-n: 1; } }

/* Cards in a row line up: equal height, price and button pinned to the bottom whatever the name length (2026-12-05) */
.catalog-items.owl-carousel .owl-stage { display: flex !important; }
.catalog-items.owl-carousel .owl-item { display: flex !important; float: none !important; }
.catalog-items.owl-carousel .owl-item > .catalog-item.obj { width: 100% !important; height: auto !important; }
.catalog-items .catalog-item.obj .blk_info { flex: 1 1 auto; }
.catalog-items .catalog-item.obj .blk_first { flex: 1 1 auto; }
.catalog-items .catalog-item.obj .blk_first > .blk_priceblock { margin-top: auto !important; }
.catalog-items .catalog-item.obj .blk_name a { min-height: 2.6em; min-height: 2lh; }

/* Каталог КМУ: brand tiles show the maker's logo whole on white, under the title (2026-12-05) */
.subdiv-kmu .subdivision-items .sub .sub-img-wrapper { background: #fff !important; }
.subdiv-kmu .subdivision-items .sub .sub-img-wrapper img { object-fit: contain !important; padding: 96px 36px 28px !important; box-sizing: border-box; background: #fff; }

/* Каталог КМУ: cards and pages (2026-12-05) */
/* reach is a KMU spec in its own right; hide it only on truck cards, where the crane row is hidden too */
.catalog-item.obj:has(.cart-param-param_model_kmu) .cart-param-item-preview.cart-param-param_vylet_strely_m { display: none !important; }
.catalog-item.obj:not(:has(.cart-param-param_model_kmu)) .cart-param-item-preview.cart-param-param_vylet_strely_m { display: flex !important; }
.catalog-item .cart-param-param_gp_kmu_kg .cartp-name::before { content: "Г/п, кг"; }
.catalog-item .cart-param-param_gruz_moment_tm .cartp-name::before { content: "Момент, т·м"; }
.catalog-item .cart-param-param_vylet_strely_m .cartp-name::before { content: "Вылет, м"; }
.catalog-item .cart-param-param_rab_vysota_m .cartp-name::before { content: "Высота, м"; }
.catalog-item.obj .cart-param-param_gp_kmu_kg::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9h12l2 11H4z'/%3E%3Ccircle cx='12' cy='6' r='2.5'/%3E%3C/svg%3E"); }
.catalog-item.obj .cart-param-param_gruz_moment_tm::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-3-6.2'/%3E%3Cpath d='M17 2v4h-4'/%3E%3C/svg%3E"); }
.catalog-item.obj .cart-param-param_vylet_strely_m::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h6M6 20v-6l14-9'/%3E%3Cpath d='M20 5v6'/%3E%3C/svg%3E"); }
.catalog-item.obj .cart-param-param_rab_vysota_m::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M8 7l4-4 4 4M8 17l4 4 4-4'/%3E%3C/svg%3E"); }
/* no stock flag for cranes (made to order) */
.subdiv-kmu .blk_stock, .catalog-item.obj:has(.cart-param-param_gp_kmu_kg) .blk_stock { display: none !important; }
/* "договорная цена": a calm line, not a 40px red headline */
.catalog-item .price-dogovor, .card_price_info .price-dogovor { font-size: 18px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; color: #1d1d22 !important; white-space: nowrap; }
.catalog-item .blk_price:has(.price-dogovor) .rubl, .catalog-item .blk_price:has(.price-dogovor) .cen:empty { display: none !important; }
.subdiv-kmu .have_item .stocks, .subdiv-kmu .have_item .instock { display: none !important; }
.subdiv-kmu .owl-incard .image-default img, .subdiv-kmu .gallery-mini .image-default img { object-fit: contain !important; background: #fff; }
.ae-kmu-box { margin: 18px 0 0; padding: 16px 18px; border: 1px solid #ececf0; border-radius: 12px; background: #f7f7f9; }
.ae-kmu-box__title { font-size: 16px; font-weight: 700; color: #1d1d22; margin: 0 0 4px; }
.ae-kmu-box p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: #55555e; }
.ae-kmu-box__links { display: flex; flex-wrap: wrap; gap: 8px; }
.ae-kmu-box__links a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid #dcdce2; background: #fff; color: #1d1d22 !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.ae-kmu-box__links a.ae-kmu-box__main { border-color: #e40612; color: #e40612 !important; }
.ae-kmu-box__links a:hover { border-color: #e40612; }
a.ae-kmu-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(228, 6, 18, .5); text-underline-offset: 3px; }
a.ae-kmu-link:hover { color: #e40612; }
.subdiv-kmu .catalog-item.obj .image-default img:not(.nophoto) { object-fit: contain !important; background: #fff; }
