.template-logo {
  color: var(--accent);
  font-size: 24px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}
.template-logo img { width: auto; max-width: 180px; max-height: 52px; object-fit: contain; }
.template-demo { margin: 0; padding: 8px 5vw; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.template-hero-products { grid-template-columns: repeat(var(--items), minmax(0, 1fr)); }
.template-text-hero { grid-template-columns: 1fr; }
.template-family-grid, .template-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); }
.template-family-grid .family-card { display: flex; flex-direction: column; gap: 8px; }
.family-card > strong { font-size: 17px; color: var(--ink); }
.product-visual > img { width: 100%; height: clamp(235px, 35vw, 445px); object-fit: contain; }
.product-visual:empty { display: none; }
.product-hero:has(.product-visual:empty) { grid-template-columns: 1fr; }
.product-summary, .hero > div, .factory-story > div { min-width: 0; }
.template-table { max-width: 100%; overflow-x: auto; }
.template-table th, .template-table td { text-align: start; }
.factory-story-media figure { margin: 0; }
.factory-story-media figcaption { color: #f1f4f9; }
.article-page > img { display: block; width: min(100%, 760px); max-height: 360px; object-fit: contain; margin: 24px auto; }
#catalog-search { display: block; max-width: 38rem; margin-block: 8px 20px; }
[hidden] { display: none !important; }
[dir="rtl"] .buyer-tasks > a { margin-inline: 0 18px; border-right: 0; border-inline-end: 1px solid var(--line); padding-inline: 0 22px; }
[dir="rtl"] .buyer-tasks > a:last-child { margin-inline-end: 0; border-inline-end: 0; }
[dir="rtl"] .buyer-tasks b { right: auto; inset-inline-end: 14px; }
@media (max-width: 760px) {
  .template-hero-products { grid-template-columns: repeat(var(--items), minmax(0, 1fr)); }
  .template-logo { font-size: 19px; }
  .template-logo img { max-width: 130px; max-height: 40px; }
  .article-page > img { max-height: 240px; }
}
.company-gallery>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem}
.company-gallery figure{margin:0;border:1px solid #d7e1ec;border-radius:10px;overflow:hidden;background:white}
.company-gallery figure:first-child{grid-column:1/-1}
.company-gallery img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.company-gallery figure:first-child img{aspect-ratio:2.6/1}
.company-gallery figcaption{padding:.7rem 1rem;font-weight:600}
.company-video video{display:block;width:100%;max-width:900px;border-radius:10px}
@media(max-width:600px){.company-gallery figure:first-child img{aspect-ratio:4/3}}
