.km-menu-switch,.km-mobile-contacts{display:none}
@media(min-width:821px) and (max-width:1120px){
 .mast .mastrow{display:flex;flex-wrap:wrap;justify-content:space-between}.mast .mastrow .identity{width:160px;flex:0 0 160px}.mast .mastrow .identity img{width:145px}.mast .menurow{justify-content:space-between}.mast .menurow .actions{margin-left:auto}
}
@media(max-width:820px){
 .mast.km-responsive-ready .mastrow{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:60px;padding:6px 0}
 .mast.km-responsive-ready .identity{width:auto;min-width:0;flex:0 1 152px;height:auto;margin:0;padding:0}
 .mast.km-responsive-ready .identity a{display:flex;align-items:center;min-height:44px}
 .mast.km-responsive-ready .identity img{width:clamp(112px,28vw,152px);max-width:100%;height:auto;margin:0}
 .mast.km-responsive-ready .mastrow :is(.detail,.callback){display:none}
 .mast.km-responsive-ready .mastphone{display:flex;min-height:44px;white-space:nowrap;gap:6px;margin:0;padding:0;border:0;font-size:clamp(14px,3.8vw,18px)}
 .mast.km-responsive-ready .mastphone svg{width:24px;height:24px;padding:4px}
 .mast.km-responsive-ready .menurow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px;min-height:0;padding:4px 0 6px}
 .mast.km-responsive-ready #cat-toggle,.mast .km-menu-switch,.mast.km-responsive-ready .actions .basket{box-sizing:border-box;min-height:44px;width:auto;min-width:0;padding:0 9px;margin:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;font:500 clamp(13px,3.35vw,16px)/1.15 CatalogMedium,sans-serif}
 .mast .km-menu-switch{justify-self:start;background:transparent;color:inherit;border:0;cursor:pointer}
 .km-menu-switch:after{content:'';width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-top:-3px}
 .km-open .km-menu-switch:after{transform:rotate(225deg);margin-top:3px}
 .mast.km-responsive-ready .actions{grid-area:1/3;display:flex;width:auto;margin:0;justify-self:end}
 .mast.km-responsive-ready .actions .order{display:none}
 .mast.km-responsive-ready .menurow nav.nav-pages{display:none;grid-area:2/1/3/-1;padding:8px 0 6px;margin:0;min-width:0}
 .mast.km-responsive-ready .km-open nav.nav-pages{display:block}
 .km-open .nav-pages>ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px;list-style:none;padding:0;margin:0}
 .km-open .nav-pages>ul a{display:flex;align-items:center;min-height:44px;white-space:normal;font-size:15px}
 .km-open .km-mobile-contacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:4px 8px;padding-top:8px;border-top:1px solid #ffffff30}
 .km-open .km-mobile-contacts a.detail{display:flex;align-items:center;min-height:44px;border:0;padding:0;white-space:normal;font-size:14px;overflow-wrap:anywhere}
 .km-mobile-contacts svg{flex:none;width:16px;height:16px}
 .km-mobile-contacts button{min-height:44px;border:0;border-radius:8px;color:#214634;background:#daedbe;font:500 14px CatalogMedium,sans-serif}
 .mini-row{min-width:0}.mini-row .mini-search{min-width:0}.mini-row .mini-search input{min-width:0;max-width:100%}
 .stage>*,.catalog-layout>*,.product-tiles>*,.line-info{min-width:0}
 .price-scroll{max-width:100%;overflow-x:auto}
 .commerce{max-width:calc(100vw - 20px);max-height:88dvh;overflow:auto}
 .commerce input,.commerce textarea,#callback-dialog input{font-size:16px}
 .product-tile .add-item,.qty-step button,.km-cart-sheet .cart-step{min-height:44px}
 .km-cart-sheet .cart-step,.qty-step button{min-width:36px}
}
@media(max-width:600px){
 .product-tiles,.full-cat .product-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .product-tiles .product-tile:not([hidden]){min-width:0}
 .product-tiles:not(.list-mode) .product-tile{padding:10px;min-height:0}
 .product-tiles:not(.list-mode) .item-link img,.product-tiles:not(.list-mode) .missing-photo{height:clamp(90px,29vw,146px);width:100%;object-fit:contain}
 .product-tiles:not(.list-mode) .item-link h3{font-size:clamp(15px,3.8vw,18px);line-height:1.26;overflow-wrap:anywhere}
 .product-tiles:not(.list-mode) :is(.add-item,.qty-step){max-width:100%;width:100%;font-size:14px;padding-inline:4px}
 .km-cart-sheet .basket-product{grid-template-columns:44px minmax(0,1fr) auto;gap:8px}
 .km-cart-sheet .line-info{grid-column:2/4}.km-cart-sheet .line-qty{grid-column:2;grid-row:auto}.km-cart-sheet .line-cost{grid-column:3;align-self:center}
 .km-cart-actions .primary-action{min-height:44px}
 .slider .slide-arrow{width:36px;height:36px}
}
.km-filter-toggle{display:none}.km-filter-panel{display:contents}
@media(max-width:820px){
 .mast.km-responsive-ready :is(.mastrow,.menurow){padding-inline:clamp(12px,4vw,32px)}
 .stage{padding-top:12px}
 .full-cat .km-filter-ready>h2{display:none}
 .full-cat .km-filter-ready .km-filter-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:8px 16px;color:#213b2d;background:#f8faf6;border:0;text-align:left;font:500 17px CatalogMedium,sans-serif;cursor:pointer}
 .km-filter-toggle:after{content:'';width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin:0 3px 4px 10px}
 .km-filter-open .km-filter-toggle:after{transform:rotate(225deg);margin-bottom:-4px}
 .km-filter-ready:not(.km-filter-open) .km-filter-panel{display:none}
 .km-filter-panel a{min-height:44px}
}

#order-dialog {
  box-sizing: border-box;
  width: min(540px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: clamp(16px, 4vw, 28px);
  overflow: auto;
}
#order-dialog .dialog-x {
  position: absolute;
  inset: 12px 12px auto auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #edf2eb;
  color: #284934;
  font: 24px/1 sans-serif;
  border-radius: 50%;
}
#order-dialog h2 { margin: 0 42px 18px 0; line-height: 1.15; }
#order-review .basket-product {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-areas: "photo info cost" "photo qty cost";
  align-items: center;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid #dfe6dc;
}
#order-review .line-image { grid-area: photo; }
#order-review .line-image img { display: block; width: 56px; height: 56px; object-fit: contain; }
#order-review .line-info { grid-area: info; overflow-wrap: anywhere; }
#order-review .line-info small { display: block; margin-top: 3px; }
#order-review .line-qty { grid-area: qty; font-size: .88rem; }
#order-review .line-cost { grid-area: cost; white-space: nowrap; }
#order-review .basket-total { display: flex; justify-content: space-between; padding: 14px 0; }
#order-dialog .buyer-inputs { display: grid; gap: 10px; }
#order-dialog .buyer-inputs label { display: grid; gap: 4px; }
#order-dialog .buyer-inputs :is(input,textarea) { box-sizing: border-box; width: 100%; }
#order-dialog .primary-action { margin-top: 16px; }

:is(#order-dialog,#callback-dialog) .km-inquiry-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: .9rem;
  line-height: 1.4;
}
:is(#order-dialog,#callback-dialog) .km-inquiry-consent input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #315939;
}
:is(#order-dialog,#callback-dialog) .km-inquiry-consent a {
  color: #315939;
  text-decoration: underline;
}
:is(#order-dialog,#callback-dialog) form[hidden] { display: none; }
:is(#order-dialog,#callback-dialog) [role=status]:empty { display: none; }
#callback-dialog .dismiss { margin: 8px 0 0; }
