/* Shared header, scoped to avoid changing catalog/content styling. */
.tm-header-desktop,.tm-header-mobile,.tm-contacts{font-family:Arial,sans-serif;color:#252830;box-sizing:border-box}
.tm-header-desktop *,.tm-header-mobile *,.tm-contacts *{box-sizing:border-box}
.tm-header-desktop a,.tm-header-mobile a,.tm-contacts a{text-decoration:none}
.tm-header-desktop h2,.tm-contacts h2,.tm-contacts h3,.tm-header-mobile p,.tm-header-desktop p,.tm-contacts p{margin:0}
.tm-max{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#f3f0ff;color:#49368d!important;border:0;border-radius:10px;min-height:42px;padding:8px 10px;font:700 14px Arial,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer}
.tm-max img{display:block;width:26px;height:26px;max-width:none}
.tm-max[aria-disabled=true]{cursor:help}
.tm-max:hover{background:#eae4ff}
.tm-phone{color:#252830!important;font-size:25px;font-weight:700;line-height:1.25;white-space:nowrap}
.tm-address{display:flex;align-items:center;gap:7px;color:#747985;font-size:12px;line-height:1.45}
.tm-address svg{width:17px;height:19px;flex-shrink:0}
.tm-icon-button{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;cursor:pointer;padding:10px;color:inherit;width:44px;height:44px;flex-shrink:0}
.tm-icon-button svg,.tm-cart svg{width:25px;height:25px;flex-shrink:0}
.tm-header-desktop :focus-visible,.tm-header-mobile :focus-visible,.tm-contacts :focus-visible,.tm-search-toggle:focus-visible{outline:3px solid #7548d8;outline-offset:3px}
#header.tm-header-desktop{display:grid;grid-template-columns:1.25fr 1.08fr 1fr;align-items:center;gap:23px;height:auto;min-height:118px;padding:18px 0}
.tm-brand{display:flex;align-items:center;gap:22px}
.tm-brand img{width:200px;height:auto;display:block}
.tm-brand p{font-size:13px;line-height:1.6;color:#747985}
.tm-department{border-left:1px solid #e6e7ec;padding-left:23px;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-start;padding-top:2px;gap:8px}
.tm-department h2{font:700 14px/1.3 Arial,sans-serif;color:#252830;white-space:nowrap}
.tm-phone-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tm-desktop #menu .menu{display:flex;align-items:center}
.tm-desktop #menu .tm-search-toggle{color:white;margin-left:15px}
#korzina.tm-cart{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:none;padding:0;margin:0 0 0 auto;width:auto;min-width:44px;height:44px;color:inherit;line-height:1.2;text-align:center;font:14px Arial,sans-serif;text-decoration:none;cursor:pointer}
.tm-desktop #korzina.tm-cart{color:white;white-space:nowrap;padding-left:12px}
#korzina.tm-cart #hPb{display:none}
#korzina.tm-cart #totalPrice{display:none}
.tm-desktop .menu .topmenu{flex:1}
.tm-repair-banner h2{font:bold 30px/1.4 Arial,sans-serif;color:#171717;margin:0 0 28px}
.tm-repair-banner>a{font:bold 30px/1.3 Arial,sans-serif;color:#ff4b2b;text-decoration:none}
/* Real mobile template remains selected by the server User-Agent. */
#header.tm-header-mobile{position:relative;top:auto;left:auto;right:auto;width:100%;height:auto;padding:12px 12px 14px;margin:0;background:white;z-index:4;border-bottom:1px solid #ececef}
.tm-mobile-top{display:flex;align-items:center;gap:5px;min-height:47px}
.tm-mobile-brand{flex:1;min-width:0;margin:0 5px}
.tm-mobile-brand img{display:block;width:100%;max-width:205px;height:auto;margin:0}
.tm-header-mobile #menu-icon{position:static;display:flex;align-items:center;justify-content:center;margin:0;padding:0;width:40px;height:44px;flex-shrink:0;border:0;border-radius:10px;background:#f6f6f7;color:#555}
.tm-header-mobile .hamburger-box{width:22px;height:20px}
.tm-header-mobile .hamburger-inner,.tm-header-mobile .hamburger-inner:before,.tm-header-mobile .hamburger-inner:after{width:22px;height:2px;background:#5f6269}
.tm-header-mobile .hamburger-inner:before{top:-7px}.tm-header-mobile .hamburger-inner:after{bottom:-7px}
.tm-header-mobile .tm-icon-button{padding:8px;width:39px}
.tm-header-mobile #korzina.tm-cart{position:relative;margin:0;width:37px;min-width:37px;color:#252830}
.tm-header-mobile #hPe,.tm-header-mobile #hPb{position:absolute;right:-1px;top:1px;min-width:16px;border-radius:9px;padding:2px 4px;background:#fbecee;color:#b82936;font:bold 10px/1.2 Arial,sans-serif}
.tm-mobile-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px}
.tm-header-mobile .tm-address{font-size:12px;line-height:1.55}
.tm-contact-open,.tm-call{border:0;border-radius:10px;background:#c72f3c;color:#fff!important;font:700 14px/1.3 Arial,sans-serif;padding:14px 18px;text-decoration:none;cursor:pointer;white-space:nowrap}
.tm-mobile>.main,.tm-mobile .mm-page>.main{padding-top:0}
.tm-mobile .search{width:100%;box-sizing:border-box;height:auto;padding:12px}
.tm-mobile #search{display:flex;gap:8px;width:100%}
.tm-mobile #search input{min-width:0;flex:1;width:auto;font-size:16px}
.tm-mobile #search button{flex-shrink:0}
.tm-mobile .main2{width:calc(100% - 24px);max-width:600px}
.tm-mobile #banners{box-sizing:border-box;width:100%;padding:12px 27px 28px}
.tm-mobile .banners,.tm-mobile .banners>li,.tm-mobile .banner_item{width:100%!important;box-sizing:border-box}
.tm-mobile .banner_img img{max-width:185px;max-height:150px;object-fit:contain}
.tm-mobile .tm-repair-banner{text-align:left;padding:15px 0 25px}
.tm-mobile .tm-repair-banner h2{font-size:22px;line-height:1.45;margin:0 0 35px;color:#171717}
.tm-mobile .tm-repair-banner>a{font-size:22px}
.tm-mobile .shop_sub_razd{box-sizing:border-box;width:100%;margin:0}
.tm-mobile .shop_sub_razd img{max-width:100%}
/* Native dialog supplies focus containment and an inert backdrop. */
.tm-contacts{position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:480px;max-height:calc(100dvh - 24px);padding:26px 20px max(28px,env(safe-area-inset-bottom));border:0;border-radius:24px 24px 0 0;background:white;overflow-y:auto;overscroll-behavior:contain;color:#252830}
.tm-contacts::backdrop{background:rgba(24,30,39,.46)}
.tm-contacts[open]{animation:tm-sheet-in .18s ease-out}
.tm-sheet-handle{position:absolute;top:10px;left:calc(50% - 24px);width:48px;height:4px;border-radius:4px;background:#d7d9df}
.tm-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 13px}
.tm-sheet-heading h2{font:700 25px/1.2 Arial,sans-serif;color:#252830}
.tm-sheet-heading .tm-icon-button{margin-right:-8px}
.tm-sheet-department{padding:0 0 21px;margin:0 0 18px;border-bottom:1px solid #e3e5eb}
.tm-sheet-department h3{font:700 18px/1.35 Arial,sans-serif;color:#252830;margin:0 0 10px;max-width:260px}
.tm-sheet-department .tm-phone{font-size:25px;display:inline-block}
.tm-sheet-actions{display:grid;grid-template-columns:1fr 1.18fr;gap:12px;margin-top:15px}
.tm-sheet-actions>a,.tm-sheet-actions>button{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:14px}
.tm-sheet-actions .tm-max{padding:8px 9px;gap:7px}
.tm-hours{font-size:12px;line-height:1.5;color:#747985;margin-top:7px!important}
.tm-sheet-address .tm-address{font-size:13px;color:#252830;align-items:flex-start}
.tm-sheet-address .tm-address svg{color:#747985}
.tm-sheet-address>a{display:block;margin:12px 0 0 24px;color:#c72f3c;font-size:13px}
@keyframes tm-sheet-in{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.tm-contacts[open]{animation:none}}
@media(max-width:1200px){#header.tm-header-desktop{gap:16px;grid-template-columns:1.12fr 1.1fr 1fr}.tm-brand{gap:14px}.tm-brand img{width:170px}.tm-brand p{font-size:11px}.tm-department{padding-left:16px}.tm-phone{font-size:22px}.tm-department h2{font-size:13px}.tm-max{font-size:12px;padding:7px}.tm-desktop #menu .tm-search-toggle{margin-left:4px}}
@media(max-width:350px){#header.tm-header-mobile{padding-left:9px;padding-right:9px}.tm-mobile-brand{margin:0 2px}.tm-mobile-top{gap:2px}.tm-header-mobile #menu-icon{width:34px}.tm-header-mobile .tm-icon-button{width:34px}.tm-header-mobile .tm-address{font-size:11px}.tm-contact-open{padding:12px 14px;font-size:13px}.tm-contacts{padding-left:16px;padding-right:16px}.tm-sheet-heading h2{font-size:23px}.tm-sheet-actions{gap:8px}.tm-sheet-actions>a,.tm-sheet-actions>button{font-size:12px}.tm-sheet-actions .tm-max img{width:23px;height:23px}.tm-sheet-department .tm-phone{font-size:24px}}
.tm-desktop #korzina.tm-cart{position:static;flex-shrink:0}
.tm-desktop #menu{background:#c72f3c;padding:0;height:54px}
.tm-desktop #menu .menu{height:54px}
.tm-desktop #main-menu{flex:1;display:flex;align-items:center;justify-content:space-between}
.tm-desktop #main-menu>li{float:none;white-space:nowrap}
.tm-desktop #main-menu>li>a{padding-left:10px;padding-right:10px}

.tm-header-mobile .tm-icon-button,.tm-contacts .tm-icon-button{color:#252830!important;line-height:1;padding:8px}
.tm-department h2,.tm-repair-banner h2{text-align:left}
.tm-desktop #ban_next{right:8px}.tm-desktop #ban_prev{left:8px}
.tm-desktop .onindexitems{margin-left:0;margin-right:0}
.tm-desktop .onindexitems .slick-prev{left:0}
.tm-mobile .tm-mobile-brand img{max-width:205px;height:auto}
#header.tm-header-desktop{padding-top:14px;padding-bottom:14px}
.tm-department{gap:5px}
/* The legacy button rule otherwise exposes invisible slider label overflow. */
.tm-desktop .slick-arrow,.tm-mobile .slick-arrow{font-size:0!important;line-height:0}
.tm-desktop #main-menu>li:first-child>a:before{content:'☰';display:inline-block;font:18px Arial;margin-right:10px;vertical-align:-1px}

.tm-desktop .slick-arrow,.tm-mobile .slick-arrow{padding:0!important}
.tm-mobile .tm-repair-banner h2{max-width:270px}
.tm-desktop .slick-arrow{width:40px;height:40px;margin-top:-20px}

/* Center the submit icon independently of the legacy text baseline. */
.tm-desktop #search button[type="submit"]{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;line-height:1;box-sizing:border-box}
.tm-desktop #search button[type="submit"] img{display:block;margin:0}
