/* INFODISKI sensor photo badges (Claude, 2026-11-17): "Виготовлено 2026" + video chip on INFODISKI sensor photos
 * in catalogue cards and on the product page; the chip opens the YouTube review in a modal player. */
.product-media,.product-main-image{position:relative}
.ib-badges{position:absolute;left:8px;top:8px;z-index:3;display:flex;flex-direction:column;align-items:flex-start;gap:6px;pointer-events:none}
.product-main-image .ib-badges{left:12px;top:12px;gap:8px}
.ib-year,.ib-video{animation:ib-in .42s cubic-bezier(.23,1,.32,1) both}
.ib-video{animation-delay:.08s}
@keyframes ib-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

.ib-year{position:relative;overflow:hidden;display:inline-flex;flex-direction:column;align-items:flex-start;gap:1px;padding:4px 8px 5px;border-radius:8px;background:#1c1d1f;color:#fff;box-shadow:0 2px 8px rgba(28,29,31,.2)}
.ib-year-l{display:flex;align-items:center;gap:4px;font-size:8.5px;font-weight:700;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.8);white-space:nowrap}
.ib-year-l i{flex:0 0 auto;width:5px;height:5px;border-radius:50%;background:#35c47a;box-shadow:0 0 0 2px rgba(53,196,122,.28)}
.ib-year b{font-size:15px;font-weight:800;line-height:1.05;letter-spacing:.02em;color:#ff8d2b;font-variant-numeric:tabular-nums}
.ib-year::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.4) 50%,transparent 70%);transform:translateX(-130%);pointer-events:none}
.ib-year.ib-shine::after{animation:ib-shine 1.1s cubic-bezier(.23,1,.32,1)}
@keyframes ib-shine{from{transform:translateX(-130%)}to{transform:translateX(130%)}}
.product-main-image .ib-year{padding:6px 11px 7px;border-radius:10px}
.product-main-image .ib-year-l{font-size:10px}
.product-main-image .ib-year b{font-size:19px}

.ib-video{pointer-events:auto;display:inline-flex;align-items:center;gap:6px;margin:0;padding:3px 10px 3px 3px;border:0;border-radius:999px;background:rgba(255,255,255,.95);color:#1c1d1f;font:inherit;font-size:11px;font-weight:600;line-height:1.25;white-space:nowrap;cursor:pointer;box-shadow:0 2px 8px rgba(28,29,31,.16),0 0 0 1px rgba(28,29,31,.08);touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;transition:transform .16s cubic-bezier(.23,1,.32,1),box-shadow .16s}
.ib-video:active{transform:scale(.96)}
.ib-video.ib-icon{padding:3px;gap:0}
.ib-video.ib-icon .ib-play{width:22px;height:22px}
.ib-video.ib-icon .ib-play svg{width:10px;height:10px}
.ib-video:focus-visible{outline:2px solid #ff8d2b;outline-offset:2px}
.ib-play{flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:#ff0033;color:#fff;display:flex;align-items:center;justify-content:center;transition:transform .2s cubic-bezier(.23,1,.32,1)}
.ib-play svg{width:9px;height:9px;margin-left:1px}
.product-main-image .ib-video{font-size:12.5px;padding:4px 12px 4px 4px}
.product-main-image .ib-play{width:24px;height:24px}
.product-main-image .ib-play svg{width:11px;height:11px}
@media (hover:hover) and (pointer:fine){
  .ib-video:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(28,29,31,.18),0 0 0 1px rgba(28,29,31,.08)}
  .ib-video:hover .ib-play{transform:scale(1.1)}
}

.ib-vmodal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:64px 16px calc(16px + env(safe-area-inset-bottom,0px));background:rgba(14,14,16,.82);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.ib-vmodal-box{position:relative;width:min(960px,100%)}
.ib-vmodal-box.is-vertical{width:min(420px,100%,calc((100vh - 96px) * 9 / 16));width:min(420px,100%,calc((100dvh - 96px) * 9 / 16))}
.ib-vmodal-frame{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#000;box-shadow:0 24px 64px rgba(0,0,0,.5)}
.ib-vmodal-box.is-vertical .ib-vmodal-frame{aspect-ratio:9/16}
.ib-vmodal-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.ib-vmodal-x{position:absolute;right:0;top:-52px;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background .16s,transform .16s cubic-bezier(.23,1,.32,1)}
.ib-vmodal-x svg{width:20px;height:20px}
.ib-vmodal-x:active{transform:scale(.94)}
@media (hover:hover) and (pointer:fine){.ib-vmodal-x:hover{background:rgba(255,255,255,.28)}}

@media (prefers-reduced-motion:reduce){
  .ib-year,.ib-video{animation:none}
  .ib-year.ib-shine::after{animation:none}
  .ib-video,.ib-play{transition:none}
}
