/* Уникальные имена классов, чтобы не было конфликта со старым кодом */ .wrap-premium-2026 { position: relative !important; display: inline-block !important; } .seal-premium-2026 { position: absolute !important; top: 15px !important; right: 15px !important; width: 125px !important; height: 125px !important; background: radial-gradient(circle at 40% 40%, #ff1a1a, #cc0000 60%, #800000) !important; color: #fff !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; font-family: Georgia, serif !important; z-index: 9999 !important; box-shadow: inset 2px 2px 5px rgba(255,255,255,0.4), inset -3px -3px 8px rgba(0,0,0,0.5), 6px 10px 20px rgba(0,0,0,0.6) !important; clip-path: polygon(100% 50%, 98% 58%, 99% 67%, 92% 73%, 92% 82%, 83% 85%, 80% 94%, 71% 93%, 65% 100%, 56% 96%, 47% 100%, 38% 94%, 29% 95%, 23% 87%, 14% 84%, 12% 75%, 4% 70%, 6% 61%, 1% 53%, 5% 44%, 3% 35%, 11% 29%, 10% 20%, 19% 15%, 23% 6%, 32% 8%, 39% 1%, 48% 6%, 57% 2%, 64% 9%, 73% 7%, 79% 16%, 88% 17%, 90% 26%, 98% 30%, 96% 39%) !important; -webkit-clip-path: polygon(100% 50%, 98% 58%, 99% 67%, 92% 73%, 92% 82%, 83% 85%, 80% 94%, 71% 93%, 65% 100%, 56% 96%, 47% 100%, 38% 94%, 29% 95%, 23% 87%, 14% 84%, 12% 75%, 4% 70%, 6% 61%, 1% 53%, 5% 44%, 3% 35%, 11% 29%, 10% 20%, 19% 15%, 23% 6%, 32% 8%, 39% 1%, 48% 6%, 57% 2%, 64% 9%, 73% 7%, 79% 16%, 88% 17%, 90% 26%, 98% 30%, 96% 39%) !important; pointer-events: none !important; } .seal-premium-2026 b { font-size: 16px; text-transform: uppercase; text-shadow: 1px 1px 2px #000; } .seal-premium-2026 span { font-size: 24px; font-weight: 900; line-height: 0.9; margin-top: 5px; text-shadow: 1px 1px 2px #000; border-top: 1px solid rgba(255,255,255,0.3); padding-top: 5px; } (function() { var drawSeal = function() { // Ищем только новые маркеры var mks = document.querySelectorAll('.js-new-seal-marker:not([data-ready])'); mks.forEach(function(el) { // Находим контейнер всей статьи в блоке или на странице var box = el.closest('.com-content-category__item, .blog-item, article, .item-page, .article-details'); if (box) { var photo = box.querySelector('img'); if (photo && photo.clientWidth > 100) { if (photo.parentElement.classList.contains('wrap-premium-2026')) return; var w = document.createElement('div'); w.className = 'wrap-premium-2026'; // Перенос стиля обтекания var s = window.getComputedStyle(photo); if (s.float !== 'none') w.style.float = s.float; if (s.margin !== '0px') w.style.margin = s.margin; photo.parentNode.insertBefore(w, photo); w.appendChild(photo); var s_obj = document.createElement('div'); s_obj.className = 'seal-premium-2026'; s_obj.innerHTML = 'АКЦИЯ2800руб.'; w.appendChild(s_obj); el.setAttribute('data-ready', '1'); } } }); }; // Запуски для гарантии drawSeal(); window.addEventListener('load', drawSeal); setTimeout(drawSeal, 500); setTimeout(drawSeal, 1500); })(); /* Уникальные имена классов, чтобы не было конфликта со старым кодом */ .wrap-premium-2026 { position: relative !important; display: inline-block !important; } .seal-premium-2026 { position: absolute !important; top: 15px !important; right: 15px !important; width: 125px !important; height: 125px !important; background: radial-gradient(circle at 40% 40%, #ff1a1a, #cc0000 60%, #800000) !important; color: #fff !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; font-family: Georgia, serif !important; z-index: 9999 !important; box-shadow: inset 2px 2px 5px rgba(255,255,255,0.4), inset -3px -3px 8px rgba(0,0,0,0.5), 6px 10px 20px rgba(0,0,0,0.6) !important; clip-path: polygon(100% 50%, 98% 58%, 99% 67%, 92% 73%, 92% 82%, 83% 85%, 80% 94%, 71% 93%, 65% 100%, 56% 96%, 47% 100%, 38% 94%, 29% 95%, 23% 87%, 14% 84%, 12% 75%, 4% 70%, 6% 61%, 1% 53%, 5% 44%, 3% 35%, 11% 29%, 10% 20%, 19% 15%, 23% 6%, 32% 8%, 39% 1%, 48% 6%, 57% 2%, 64% 9%, 73% 7%, 79% 16%, 88% 17%, 90% 26%, 98% 30%, 96% 39%) !important; -webkit-clip-path: polygon(100% 50%, 98% 58%, 99% 67%, 92% 73%, 92% 82%, 83% 85%, 80% 94%, 71% 93%, 65% 100%, 56% 96%, 47% 100%, 38% 94%, 29% 95%, 23% 87%, 14% 84%, 12% 75%, 4% 70%, 6% 61%, 1% 53%, 5% 44%, 3% 35%, 11% 29%, 10% 20%, 19% 15%, 23% 6%, 32% 8%, 39% 1%, 48% 6%, 57% 2%, 64% 9%, 73% 7%, 79% 16%, 88% 17%, 90% 26%, 98% 30%, 96% 39%) !important; pointer-events: none !important; } .seal-premium-2026 b { font-size: 16px; text-transform: uppercase; text-shadow: 1px 1px 2px #000; } .seal-premium-2026 span { font-size: 24px; font-weight: 900; line-height: 0.9; margin-top: 5px; text-shadow: 1px 1px 2px #000; border-top: 1px solid rgba(255,255,255,0.3); padding-top: 5px; } (function() { var drawSeal = function() { // Ищем только новые маркеры var mks = document.querySelectorAll('.js-new-seal-marker:not([data-ready])'); mks.forEach(function(el) { // Находим контейнер всей статьи в блоке или на странице var box = el.closest('.com-content-category__item, .blog-item, article, .item-page, .article-details'); if (box) { var photo = box.querySelector('img'); if (photo && photo.clientWidth > 100) { if (photo.parentElement.classList.contains('wrap-premium-2026')) return; var w = document.createElement('div'); w.className = 'wrap-premium-2026'; // Перенос стиля обтекания var s = window.getComputedStyle(photo); if (s.float !== 'none') w.style.float = s.float; if (s.margin !== '0px') w.style.margin = s.margin; photo.parentNode.insertBefore(w, photo); w.appendChild(photo); var s_obj = document.createElement('div'); s_obj.className = 'seal-premium-2026'; s_obj.innerHTML = 'АКЦИЯ2800руб.'; w.appendChild(s_obj); el.setAttribute('data-ready', '1'); } } }); }; // Запуски для гарантии drawSeal(); window.addEventListener('load', drawSeal); setTimeout(drawSeal, 500); setTimeout(drawSeal, 1500); })();