(function() {
const css = `
#doka-widget { font-family: Arial, sans-serif; position: relative; color: #333; margin: 0; padding: 0; }
#doka-widget .doka-bg { background: url('https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; width: 100%; padding: 40px 20px; position: relative; }
#doka-widget .doka-bg::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.85); z-index: 0; }
#doka-widget .doka-container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
#doka-widget h2 { text-align: center; margin-bottom: 20px; }
.doka-programs { display: flex; gap: 20px; flex-wrap: wrap; }
.doka-card { background: white; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); flex: 1 1 calc(33.333% - 20px); min-width: 250px; display: flex; flex-direction: column; justify-content: space-between; text-align: center; padding: 20px; opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.doka-card.visible { opacity: 1; transform: translateY(0); }
.doka-icon { font-size: 40px; color: #2E86C1; margin-bottom: 10px; transition: transform 0.3s; }
.doka-card:hover .doka-icon { transform: scale(1.1) rotate(5deg); }
.doka-footer { margin-top: 15px; }
.doka-footer a { display: inline-block; background: #2E86C1; color: white; padding: 8px 16px; border-radius: 5px; text-decoration: none; transition: background 0.3s; }
.doka-footer a:hover { background: #1A5276; }
@media(max-width: 768px) { .doka-programs { flex-direction: column; } }
`;
const html = `
Программы
💻
Дока АРМ
Автоматизация рабочего места, учет, управление продажами.
📦
Дока Контроль Маркировки
Полный контроль и учет маркированной продукции по закону.
📝
Декларант ПЛЮС
Подача деклараций и отчетов в электронном виде.
`;
// Добавляем стили
const styleTag = document.createElement('style');
styleTag.innerHTML = css;
document.head.appendChild(styleTag);
// Создаём контейнер
const container = document.createElement('div');
container.id = 'doka-widget';
container.innerHTML = html;
document.currentScript.parentNode.insertBefore(container, document.currentScript);
// Анимация карточек
const cards = container.querySelectorAll('.doka-card');
const observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
if(entry.isIntersecting) {
entry.target.classList.add('visible');
}
});
}, { threshold: 0.2 });
cards.forEach(card => observer.observe(card));
})();