/* iTECH responsive layer */
html,body{max-width:100%;overflow-x:hidden}
img,svg,video,canvas{max-width:100%;height:auto}
input,select,textarea,button{max-width:100%}
.wrap,.shell{min-width:0}
header nav,header .shell{min-width:0}
header .logo,header .brand{min-width:0}
.itech-header-actions{min-width:0}
.project-switcher,.project-switcher .switch-wrap,.project-switcher .switch-core{max-width:100%;min-width:0}
.panel,.card,.product,.cat-card,.model-card,.preorder-card,.preorder-info,.parts-request-card{min-width:0;max-width:100%}
.hero h1,.section h2{overflow-wrap:anywhere}
.price-table{max-width:100%}
@media(max-width:980px){
  header .itech-header-address{display:none!important}
  header nav,header .shell{gap:10px!important}
  .itech-header-actions{margin-left:auto!important;gap:7px!important}
  .hero-grid,.hero-split,.cooperation-grid,.preorder-layout,.catalog-shell{grid-template-columns:1fr!important}
  .category-grid,.visual-grid,.shop-grid,.featuregrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .grid,.model-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .filters,.toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .project-switcher .switch-wrap{overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;justify-content:flex-start!important}
  .project-switcher .switch-core{display:flex!important;flex-wrap:nowrap!important;min-width:max-content!important}
  .project-switcher .itech-header-address-inline{display:none!important}
}
@media(max-width:760px){
  body{font-size:15px}
  .wrap,.shell{width:min(100% - 28px,1180px)!important}
  header{position:sticky;top:0}
  header nav,header .shell{height:auto!important;min-height:64px!important;flex-wrap:wrap!important;padding:9px 0!important}
  header .logo,header .brand{font-size:18px!important;flex:1 1 auto}
  .itech-header-actions{flex:0 0 auto!important}
  .itech-account-btn,.itech-phone-link,.header-request-menu summary{min-height:38px!important;padding:0 10px!important;font-size:11px!important}
  .project-switcher{position:relative!important;top:auto!important;z-index:10!important}
  .project-switcher .switch-wrap{width:100%!important;padding:8px 14px!important}
  .project-switcher a{font-size:11px!important;padding:8px 10px!important}
  .itech-site-search{order:50!important;flex:1 0 100%!important;width:100%!important;max-width:none!important;margin:2px 0 0!important}
  .itech-search-field{height:44px!important}
  .itech-search-results{width:100%!important;max-width:100%!important}
  .header-request-menu .request-menu-panel{position:fixed!important;left:14px!important;right:14px!important;top:76px!important;width:auto!important;max-height:70vh;overflow:auto}
}
@media(max-width:640px){
  .hero{padding:42px 0 34px!important}
  .hero h1{font-size:clamp(34px,10vw,44px)!important;line-height:1.02!important;letter-spacing:-.04em!important}
  .hero p,.lead{font-size:15px!important;line-height:1.55!important}
  .section{padding:42px 0!important}
  .section h2{font-size:30px!important;line-height:1.08!important}
  .category-grid,.visual-grid,.shop-grid,.featuregrid,.grid,.model-grid,.stats,.process{grid-template-columns:1fr!important}
  .filters,.toolbar,.preorder-grid,.device-select-grid,.parts-request-grid,.parts-select-grid,.purchase-mode,.parts-delivery-mode,.repair-form-switch,.repair-choice-grid{grid-template-columns:1fr!important}
  .visual-card,.shop-card{grid-template-columns:1fr!important}
  .visual-card img,.shop-card img{width:100%;max-height:220px;object-fit:cover}
  .panel,.catalog-panel,.callback-panel-switchable,.preorder-card,.preorder-info,.parts-request-card{padding:14px!important;border-radius:18px!important}
  .repair-form-pane{padding:12px!important}
  .repair-form-heading{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}
  .repair-form-address{min-width:0!important;max-width:none!important;width:100%!important}
  .actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .actions>a,.actions>button,.btn,.secondary-button,.primary-button{max-width:100%}
  .footergrid{grid-template-columns:1fr!important}
  table.price-table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .price-table th,.price-table td{white-space:nowrap}
}
/* Auth-required request forms */
.itech-form-locked button[type="submit"]{background:transparent!important;border:1px solid #a56eff!important;color:#fff!important}
.itech-form-locked button[type="submit"]:hover,.itech-form-locked button[type="submit"]:focus-visible{background:#8b5cf6!important}
.itech-gate-attention{animation:itechGatePulse .7s ease 2}
@keyframes itechGatePulse{50%{box-shadow:0 0 0 5px rgba(139,92,246,.18);border-color:#b799ff}}
