/* koffd-mob-v1: mobilnaya versiya, shag 1 (shapka, podval, sterzhnevye bloki). Tolko @media do 1024px. */
@media (max-width:1024px){
  /* shapka: logotip + ikonki pomeshchayutsya v ekran */
  html body .header__main{gap:0;padding-top:8px;padding-bottom:8px;padding-right:8px}
  html body .header__main a.header__logo.header__logo{width:auto !important;flex:0 1 auto !important;font-size:22px;padding:7px 4px 7px 16px;margin:0 auto 0 0;white-space:nowrap;flex:0 1 auto;min-width:0}
  html body .header__main .desktop-search-panel{width:0;min-width:0;flex:0 0 0;margin:0}
  html body .header__main a.cart.cart,html body .header__main .header-icons-wrapper a.cart.cart{width:44px;height:44px;margin:0 !important;margin-left:0 !important;display:flex;align-items:center;justify-content:center;flex:0 0 44px}
  html body .header__main .header-icons-wrapper{margin:0;align-items:center}
  html body .header__main .header-icons-wrapper a.burger{margin-left:4px;flex:0 0 auto}
  /* podval: kolonki drug pod drugom */
  html body .k-foot{flex-direction:column;gap:32px}
  html body .k-foot > *{width:100%;max-width:100%;min-width:0}
  html body .k-foot .k-foot__menus{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px;width:100%}
  html body .k-foot .k-foot__slogan,html body .k-foot .k-foot__tag,html body .k-foot .k-foot__copy{font-size:13px}
  html body .k-foot a.footer__link{display:inline-block;padding:6px 0}
  /* blok salonov (glavnaya, lendingi, katalog) */
  html body .k-salons__inner{grid-template-columns:minmax(0,1fr)}
  html body .k-salons__inner > *{min-width:0;max-width:100%}
  /* blok "snyatie boli" na glavnoj */
  html body .k-pain-relief__inner{grid-template-columns:minmax(0,1fr)}
  html body .k-pain-relief__inner > *{min-width:0}
  /* katalog: 2 kartochki v ryad */
  html body .card__wrapper > .card__item{width:calc(50% - 8px) !important;max-width:none;flex:0 0 calc(50% - 8px)}
  /* kartochka tovara */
  html body .k-offer-detail__hero-title-usp{position:static !important;transform:none !important;white-space:normal !important;width:100% !important;left:auto !important;right:auto !important;font-size:16px !important;line-height:1.35;margin-top:6px}
  html body .k-offer-detail__meddevice{grid-template-columns:minmax(0,1fr) !important;padding:20px !important;gap:20px !important}
  html body .k-offer-detail__meddevice > *{min-width:0}
  html body .k-offer-detail__meddevice-photo img{width:100%;height:auto;max-height:420px;object-fit:cover}
  html body .k-offer-detail__meddevice-badges{grid-template-columns:minmax(0,1fr) !important}
  html body .k-offer-detail__meddevice-badge{max-width:100%;min-width:0}
  html body .modal-tabs{flex-wrap:wrap;gap:8px}
  /* polya vvoda: na iPhone ne zumit */
  html body input[type=text],html body input[type=tel],html body input[type=email],html body input[type=search],html body input[type=number],html body textarea,html body select{font-size:16px}
  /* stranica salonov */
  html body .kS .kS-own{grid-template-columns:minmax(0,1fr)}
  html body .kS .kS-own > *,html body .kS .kS-grid > *{min-width:0}
  html body .kS .kS-rows dd{min-width:0;overflow-wrap:anywhere}
}
@media (max-width:767px){
  /* odna kartochka v ryad na telefone */
  html body .card__wrapper > .card__item{width:100% !important;flex:0 0 100%}
  /* kartochka tovara: razmery po 3 v ryad, krupnee */
  html body .k-offer-detail__params-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:8px !important}
  html body .k-offer-detail__params-grid > li{min-height:44px;font-size:14px !important}
}
@media (max-width:600px){
  /* polya 16 px po krayam vmesto 30 */
  html body .wrap__content > .page{padding-left:0;padding-right:0}
}
@media (max-width:379px){
  html body .header__main a.cart.favorites-link{display:none !important}
  html body .header__main a.header__logo.header__logo{font-size:20px;padding-left:16px}
}
