/* Shared palette for the origin mark and ГИСП badge. */
:root{--origin-mark-size:36px}
.origin-icon {
  --corner-inset: 8.5%;
  --corner-width: clamp(1.5px, var(--origin-mark-size) * .072, 2.5px);
  --corner-length: 25%;
  --corner-color: var(--origin-icon-corner, #4d7a6a);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--origin-mark-size);
  height: var(--origin-mark-size);
  color: var(--origin-icon-ink, #214f43);
  font-family: var(--font);
  font-size: calc(var(--origin-mark-size) * .49);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}
/* Whole CSS pixels give opposite corners the same rasterized thickness. */
@supports (width: round(nearest, 3px, 1px)) {
  .origin-icon {
    --corner-inset: round(nearest, var(--origin-mark-size) * .085, 1px);
    --corner-width: round(nearest, clamp(1.5px, var(--origin-mark-size) * .072, 2.5px), 1px);
    --corner-length: round(nearest, var(--origin-mark-size) * .21, 1px);
  }
}
/* Russian wordmark from the studio’s original master, with theme colors. */
.origin-wordmark {
  display: block;
  flex: none;
  height: calc(var(--origin-mark-size) * .82 * var(--origin-wordmark-scale, 1));
  aspect-ratio: 948.88 / 283.82;
  background-color: var(--origin-icon-ink, #214f43);
  mask: url("../images/made-in-russia-ru.svg") center / contain no-repeat;
}
.registry-icon {
  display: block;
  flex: none;
  width: var(--origin-mark-size);
  height: var(--origin-mark-size);
  background-color: var(--origin-icon-ink, #214f43);
  /* Square mark from the ГИСП lockup published by portal.cit.gov.ru. */
  mask: url("../images/gisp-lockup.png") left center / auto 100% no-repeat;
}
.showcase-product-meta, .hero-meta {
  --origin-icon-ink: #e4f2eb;
  --origin-icon-corner: #b4d7c7;
}
@media (forced-colors: active) {
  .origin-wordmark, .registry-icon { forced-color-adjust: none; background-color: CanvasText; }
  .origin-icon {
    forced-color-adjust: none;
    color: CanvasText;
    --corner-color: CanvasText;
  }
}

.registry-badge{display:inline-flex;align-items:center;gap:10px;max-width:100%;min-height:36px;padding:0;color:var(--green);font-size:13px;font-weight:500;line-height:1.35;text-decoration:none;transition:color .2s}
.registry-badge>span:not(.registry-icon){min-width:0;text-decoration:underline;text-decoration-color:#244e3f50;text-underline-offset:4px;text-decoration-thickness:1px}
.registry-badge:hover{color:#8f1721}
.registry-badge:hover>span:not(.registry-icon){text-decoration-color:currentColor}
.registry-badge>svg{width:14px;height:14px;flex:0 0 auto;margin-left:1px}
.registry-mark{display:flex;align-items:center;gap:10px;max-width:100%;min-width:0}
.registry-origin{display:inline-flex;flex:0 0 auto;align-items:center;min-height:var(--origin-mark-size)}
.registry-mark .registry-badge{min-width:0}
.hero-full-slider .registry-badge{color:#e2ede6}
.hero-full-slider .registry-badge>span:not(.registry-icon){text-decoration-color:#c5dfcc6b}
.hero-full-slider .registry-badge:hover{color:#fff}
.hero-full-slider .registry-badge:hover>span:not(.registry-icon){text-decoration-color:#fff}
.gallery-label{display:inline-flex;align-items:center;gap:9px;max-width:calc(100% - 100px)}
.product-tags{align-items:center}
.product-tags .product-origin-tag{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:transparent}
.product-summary-registry{margin-top:12px}
.product-card>.registry-mark{margin-top:16px}
.catalog-card-body>.registry-mark{margin:0 0 var(--catalog-badge-gap,10px);container-type:inline-size}
.registry-links{align-items:flex-start;gap:16px 28px}
.registry-label-short{display:none}
@container (max-width: 320px) {
  .catalog-card .registry-label-full { display: none; }
  .catalog-card .registry-label-short { display: inline; }
}
@container (max-width: 235px) {
  .catalog-card .registry-badge { gap: 6px; }
  .catalog-card .registry-label-short { font-size: 10px; }
  .catalog-card .registry-badge > svg { display: none; }
}
@media(max-width:700px){
 .gallery-label{gap:7px;letter-spacing:.05em}
 .product-tags .product-origin-tag{gap:7px}
 .registry-links{flex-direction:column;align-items:stretch;gap:18px}
 .registry-badge{font-size:12px;gap:8px}
 .product-card{--origin-mark-size:28px}
 .product-card>.registry-mark{gap:8px;flex-wrap:nowrap}
 .product-card .registry-badge{font-size:11px;gap:6px;min-height:28px}
 .product-card .registry-badge>svg,.product-card .registry-label-full{display:none}
 .product-card .registry-label-short{display:inline}
}

.gallery-stage{padding-top:56px;padding-bottom:12px}
.gallery-main-image{max-height:100%}
