/* Four public shells own their geometry before deferred scripts execute.
   Legacy pages retain theme-chrome's compatibility path. */
html:has(body[data-static-layout]) { scrollbar-gutter: stable; }
body[data-static-layout] {
  --static-header-bottom: calc(176px + var(--admin-toolbar-offset, 0px));
  --search-drawer-shell-left: 50%;
  --search-drawer-shell-top: var(--static-header-bottom);
  --search-drawer-shell-width: min(calc(100% - var(--gutter) * 2), var(--container));
  --search-drawer-shell-transform: translateX(-50%);
}
body[data-static-layout] .static-page-intro {
  display: flex;
  flex-direction: column;
  min-width: 0;
  order: 0;
  position: sticky;
  top: var(--static-header-bottom);
  z-index: 20;
  margin: 0 0 16px;
}
body[data-static-layout] .static-page-intro > :is(.group-hero, .product-hero-title) {
  position: relative !important;
  top: auto !important;
  order: 0;
  margin: 0;
  width: 100%;
}
body[data-static-layout] .static-page-intro > :is(.group-breadcrumbs, .product-breadcrumbs) {
  position: relative !important;
  top: auto !important;
  order: 1;
  margin: 0;
  width: 100%;
  min-width: 0;
  min-height: 30px;
}
body[data-static-layout] .static-page-intro > .group-hero { min-height: 68px; }
body[data-static-layout] .group-hero h1 { min-block-size: 1lh; }
body[data-static-layout] main,
body[data-static-layout] main.group-main,
body[data-static-layout] main.product-main { min-height: 100svh !important; }
body[data-static-layout] .category-nav .header-blog-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  margin-left: 10px;
  border: 1px solid rgba(214,228,237,.7);
  border-radius: 13px;
  background: #fff;
  color: var(--blue,#007fbd);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15,23,42,.035);
}
body[data-static-layout] .header-blog-link svg { flex: none; }
body[data-static-layout] .header-blog-link:hover { background: #f0f9ff; }
body[data-static-layout] .header-blog-link:focus-visible { outline: 2px solid #007fbd; outline-offset: 3px; }
body[data-static-layout] .site-footer__contacts { min-height: 72px; }
body[data-static-layout] .site-footer__social { min-height: 24px; }
body[data-static-layout] .static-presence-toggle { display: none; }
body[data-static-layout] #product-main-image:not([data-viewer360="true"]) {
  width: 94%;
  height: 94%;
  object-fit: contain;
}

@media (min-width: 1101px) {
  body[data-static-layout] .topline__contact-module {
    --utility-rail-hero-top: calc(var(--static-header-bottom) + 16px);
    top: var(--utility-rail-hero-top) !important;
  }
  body[data-static-layout] .topline__contacts { min-height: 126px; }
  body[data-static-layout] .product-variant-nav {
    --utility-rail-side-nav-top: calc(var(--static-header-bottom) + 340px);
  }
}
@media (min-width: 821px) {
  body[data-static-layout] .control-panel a[href$="/technological/"],
  body[data-static-layout] .catalog-popover__utility a[href$="/technological/"] { display: none; }
  body[data-static-layout] .static-page-intro > .product-breadcrumbs { min-height: 42px; }
}
@media (min-width: 961px) {
  body[data-static-layout] .presence-panel__scale {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    transform: none;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 2px;
    padding: 14px 14px 10px;
  }
}
@media (max-width: 820px) {
  body[data-static-layout] .category-nav .header-blog-link { display: none; }
}
@media (max-width: 760px), (max-width: 960px) and (max-height: 560px) and (orientation: landscape) {
  body[data-static-layout] .hero-grid {
    display: flex;
    flex-direction: column;
  }
  body[data-static-layout] .hero-grid > .hero-card { order: 0; }
  body[data-static-layout] .hero-grid > .control-panel { order: 1; }
  body[data-static-layout] .static-presence-toggle {
    order: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    text-align: left;
    color: inherit;
    font: inherit;
    cursor: pointer;
    border: 1px solid rgba(153, 196, 221, .58);
  }
  body[data-static-layout] .static-presence-toggle small { margin-left: auto; font-size: 10px; }
  body[data-static-layout] .static-presence-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
  body[data-static-layout] .static-presence-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  body[data-static-layout] .hero-grid > .presence-panel { order: 3; }
  body[data-static-layout] .hero-grid > .presence-panel:not(.is-mobile-open) { display: none; }
  body[data-static-layout] .hero-grid > .presence-panel.is-mobile-open { display: block !important; width: 100%; height: auto; }
}
@media (max-width: 760px) {
  body[data-static-layout] .static-page-intro { position: static; }
  body[data-static-layout] .static-page-intro > :is(.group-breadcrumbs, .product-breadcrumbs) { order: -1; min-height: 48px; }
  body[data-static-layout].is-category-page .static-page-intro > .group-hero { min-height: 76px; }
  body[data-static-layout].is-category-page .category-view-switch[hidden] { display: flex; visibility: hidden; pointer-events: none; }
}
