.slide-stage { position: relative; background: #f1f1f1; touch-action: pan-y pinch-zoom; }
.slide { width: 100%; height: 351px; object-fit: cover; }
.slide-prev, .slide-next { background: #161616b5; color: white; }
.slide-prev, .slide-next { position: absolute; top: 50%; transform: translateY(-50%); }
.slide-prev { left: 12px; }
.slide-next { right: 12px; }
.slide-controls { position: absolute; inset: auto 0 4px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.slide-dot { display: grid; place-items: center; min-height: 44px; width: 44px; }
.slide-dot span { width: 31px; height: 4px; background: white; box-shadow: 0 1px 3px #1119; }
.slide-dot[aria-current="true"] span { background: #09aff0; height: 5px; }
.slide-controls button:focus-visible, .slide-stage > button:focus-visible { outline-color: white; box-shadow: 0 0 0 4px #076499; }
.intro { display: grid; grid-template-columns: minmax(0, 537px) minmax(0, 1fr); align-items: center; gap: 52px; padding-top: 58px; }
.intro h2 { font-size: 15px; color: var(--muted); }
.intro p { margin-top: 8px; }
.intro-lead { font: 700 34px/1.32 Arial, Helvetica, sans-serif; }
.about-link { display: inline-block; margin-top: 18px; padding: 11px 28px; border-radius: 28px; }
.featured { margin-block: 56px 52px; text-align: center; }
.home-news { padding-block: 42px; background: #efeff0; }
.home-news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.home-news-grid time, .news-list time { display: block; color: #963838; font-variant-numeric: tabular-nums; }
.home-news-grid li { border-right: 1px dotted #aaa; padding-right: 18px; }
.home-news-grid li:last-child { border-right: 0; padding-right: 0; }
.home-news-grid a:hover, .news-list a:hover { color: var(--red); text-decoration: underline; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 30px; }
.featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 26px; }
.product-card { display: grid; grid-template-rows: auto 1fr; height: 100%; text-align: center; border: 1px solid #e4e4e6; background: white; }
.product-card img { width: 100%; aspect-ratio: 325 / 152; object-fit: contain; }
.product-card span { align-self: end; padding: 8px 6px; font-size: 13px; }
.product-card:hover { border-color: var(--red); color: var(--red); }

.categories { margin-bottom: 24px; border-block: 1px solid var(--rule); }
.categories summary { display: none; }
.categories ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; padding: 4px; }
.categories a { display: block; padding: 10px; font-size: 12px; }
.categories a[aria-current], .categories a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.categories a[aria-current] { font-weight: 700; }
.pagination { margin-top: 30px; }
.pagination ul { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination a { display: grid; min-width: 40px; min-height: 40px; place-items: center; border: 1px solid var(--rule); background: white; }
.pagination a[aria-current] { border-color: var(--red); background: var(--red); color: white; }
.pagination a:not([aria-current]):hover { border-color: var(--red); color: var(--red); }
.product-detail { display: grid; grid-template-columns: minmax(0, 392px) minmax(0, 420px); justify-content: center; align-items: start; gap: 30px; }
.product-detail dl { margin: 0; }
.product-detail dl div { display: grid; grid-template-columns: minmax(0, 124px) minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.product-detail dt { font-weight: 700; }
.product-detail dd { margin: 0; }
.product-body { max-width: 842px; margin: 24px auto 0; }
.product-body:empty { margin: 0; }
.search-status { text-align: center; padding: 18px 8px; }

.news-filter { padding: 8px 16px; border-bottom: 2px solid var(--red); color: var(--red); }
.news-list a { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 16px 12px; border-bottom: 1px solid var(--rule); }
.news-article { max-width: 1120px; margin-inline: auto; }
.news-article h2 { background: #ececec; text-align: center; padding: 12px 20px; font-size: 17px; }
.article-date { color: var(--muted); text-align: center; margin: 14px 0; }
.company-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: 42px; }
.company-photo { margin-inline: auto; }
.certificate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 936px; margin-inline: auto; text-align: center; }
.certificate-link { display: grid; justify-items: center; gap: 10px; padding: 12px; height: 100%; border: 1px solid var(--rule); background: white; }
.certificate-link img { width: 100%; height: 180px; object-fit: contain; }
/* Keep the browser tap highlight from painting over the preview. */
.certificate-link { -webkit-tap-highlight-color: transparent; }
.certificate-link:hover, .certificate-link:active { border-color: var(--red); color: var(--red); }
.certificate-preview-open { overflow: hidden; }
.certificate-preview {
  width: min(600px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  border: 1px solid var(--rule);
  background: white;
  color: var(--ink);
}
.certificate-preview::backdrop { background: #161616c7; }
.certificate-preview-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 12px 4px;
  border-bottom: 1px solid var(--rule);
  background: white;
}
.certificate-preview-header h2 { font-size: 14px; line-height: 1.3; }
.certificate-preview-close:hover { color: var(--red); }
.certificate-preview-close:focus-visible { outline-offset: -3px; }
.certificate-preview-body { padding: 12px; }
.certificate-preview-body img {
  width: 100%;
  margin-inline: auto;
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  object-fit: contain;
}
