/* Реклама открытки privetotdeda.one, версия 2 (20.11.2026): голубой баннер «первые 100 бесплатно».
   Собирает js/pdm2.js. Откат на зелёную версию: в main.tpl вернуть pdm.css / pdm.js вместо pdm2.*. */

/* общий снег: два слоя точек, CSS-анимация без картинок */
.pdm2__snow {position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .9;
	background-image:
		radial-gradient(1.6px 1.6px at 12px 18px, #fff 60%, transparent 70%),
		radial-gradient(1.2px 1.2px at 64px 70px, rgba(255,255,255,.9) 60%, transparent 70%),
		radial-gradient(2px 2px at 110px 34px, rgba(255,255,255,.85) 60%, transparent 70%),
		radial-gradient(1.3px 1.3px at 150px 96px, #fff 60%, transparent 70%),
		radial-gradient(1.8px 1.8px at 34px 120px, rgba(255,255,255,.8) 60%, transparent 70%);
	background-size: 170px 140px; animation: pdm2Snow 14s linear infinite;}
@keyframes pdm2Snow {from {background-position: 0 0;} to {background-position: 40px 140px;}}

/* ---------- широкий баннер (главная, категории) ---------- */
.pdm2 {position: relative; display: flex; align-items: center; gap: 22px; min-height: 128px; padding: 14px 22px 14px 18px;
	margin: 14px 0 0; border-radius: 14px; overflow: hidden; isolation: isolate;
	background: #0d3f8f url(../images/pdm2/bg.webp) right 40% / cover no-repeat;
	box-shadow: 0 0 0 1px rgba(160,205,255,.35), 0 10px 30px rgba(10,60,150,.35);
	color: #fff !important; text-decoration: none !important; line-height: 1.25; transition: box-shadow .2s, transform .2s;}
.pdm2::before {content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(6,28,78,.88) 0%, rgba(8,40,104,.72) 38%, rgba(10,52,128,.28) 64%, rgba(10,52,128,0) 78%);}
.pdm2:hover {color: #fff !important; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(190,225,255,.6), 0 14px 34px rgba(10,60,150,.45);}
.pdm2 > * {position: relative; z-index: 2;}
.pdm2 > .pdm2__snow {position: absolute; z-index: 1;}

/* веер из трёх открыток */
.pdm2__fan {flex-shrink: 0; position: relative; width: 168px; height: 100px;}
.pdm2__pc {position: absolute; top: 12px; left: 30px; width: 108px; height: 72px; border-radius: 5px; overflow: hidden; background: #fff;
	box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0,20,60,.45); transition: transform .35s cubic-bezier(.2,.8,.2,1);}
.pdm2__pc img {display: block; width: 100%; height: 100%; object-fit: cover;}
.pdm2__pc--0 {transform: translate(-26px, 8px) rotate(-12deg);}
.pdm2__pc--1 {transform: translate(26px, 6px) rotate(10deg);}
.pdm2__pc--2 {transform: translate(0, -4px) rotate(-1deg); z-index: 2;}
.pdm2:hover .pdm2__pc--0 {transform: translate(-34px, 10px) rotate(-16deg);}
.pdm2:hover .pdm2__pc--1 {transform: translate(34px, 8px) rotate(14deg);}
.pdm2:hover .pdm2__pc--2 {transform: translate(0, -8px) rotate(0) scale(1.04);}

.pdm2__txt {flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
	text-shadow: 0 1px 3px rgba(0,20,60,.5);}
.pdm2__tag {display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px;
	background: linear-gradient(90deg, #e3262f, #ff4d4d); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
	text-shadow: none; box-shadow: 0 3px 10px rgba(227,38,47,.45);}
.pdm2__tag svg {color: #ffe08a; flex-shrink: 0;}
.pdm2__h {font-size: 23px; font-weight: 800; letter-spacing: -.01em; color: #fff;}
.pdm2__h em {font-style: normal; color: #ffe08a; white-space: nowrap;}
.pdm2__sub {font-size: 14.5px; font-weight: 500; color: rgba(235,244,255,.92);}

.pdm2__btn {flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px; padding: 14px 22px; border-radius: 999px;
	background: linear-gradient(180deg, #ff4b52, #d81f2a); color: #fff; font-size: 16px; font-weight: 800; white-space: nowrap;
	box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 8px 20px rgba(150,10,20,.45); transition: transform .2s, box-shadow .2s;}
.pdm2__btn svg {transition: transform .2s;}
.pdm2:hover .pdm2__btn {transform: scale(1.04);}
.pdm2:hover .pdm2__btn svg {transform: translateX(3px);}
/* блик по кнопке */
.pdm2__btn {position: relative; overflow: hidden;}
.pdm2__btn::after {content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
	animation: pdm2Shine 5s ease-in-out 1.5s infinite;}
@keyframes pdm2Shine {0%, 70% {left: -60%;} 100% {left: 140%;}}

.sect__header ~ .pdm2 {margin: -4px 0 20px;}

@media (max-width: 1000px) {
	.pdm2 {gap: 16px; padding: 12px 16px 12px 12px;}
	.pdm2__h {font-size: 19px;}
	.pdm2__sub {font-size: 13px;}
	.pdm2__btn {padding: 12px 16px; font-size: 14.5px;}
	.pdm2__fan {width: 140px;}
	.pdm2__pc {width: 92px; height: 61px; left: 24px;}
}
@media (max-width: 767px) {
	.pdm2 {flex-wrap: wrap; gap: 10px 12px; min-height: 0; padding: 12px; border-radius: 12px;
		background-image: url(../images/pdm2/bg-m.webp); background-position: 70% 40%;}
	.pdm2::before {background: linear-gradient(90deg, rgba(6,28,78,.9) 0%, rgba(8,40,104,.72) 60%, rgba(10,52,128,.4) 100%);}
	.pdm2__fan {width: 92px; height: 70px;}
	.pdm2__pc {width: 74px; height: 50px; top: 8px; left: 9px; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0,20,60,.45);}
	.pdm2__pc--0 {transform: translate(-8px, 8px) rotate(-12deg);}
	.pdm2__pc--1 {transform: translate(10px, 6px) rotate(10deg);}
	.pdm2__txt {flex: 1 1 0; gap: 4px;}
	.pdm2__tag {font-size: 11px; padding: 3px 9px 3px 6px;}
	.pdm2__tag svg {width: 13px; height: 13px;}
	.pdm2__tag-l {display: none;}
	.pdm2__h {font-size: 16px; line-height: 1.2;}
	.pdm2__h em {white-space: normal;}
	.pdm2__sub {display: none;}
	.pdm2__btn {flex: 1 0 100%; justify-content: center; padding: 11px 14px; font-size: 15px; box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 6px 14px rgba(150,10,20,.4);}
}

/* ---------- карточка фильма: компактная полоса с Дедом Морозом над плеером ---------- */
.pdm2s {position: relative; display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 0 12px 0 0; min-height: 76px;
	border-radius: 12px; overflow: hidden; isolation: isolate;
	background: #0d3f8f url(../images/pdm2/strip-bg.webp) 60% 30% / cover no-repeat;
	box-shadow: 0 0 0 1px rgba(160,205,255,.35), 0 6px 18px rgba(10,60,150,.28);
	color: #fff !important; text-decoration: none !important; line-height: 1.25;}
.pdm2s::before {content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(6,28,78,.3), rgba(6,28,78,.72) 30%, rgba(6,28,78,.5));}
.pdm2s::after {content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; z-index: 3; background: linear-gradient(180deg, #ff4b52, #c81a25);}
.pdm2s:hover {color: #fff !important;}
.pdm2s > * {position: relative; z-index: 2;}
.pdm2s > .pdm2__snow {position: absolute; z-index: 1;}
.pdm2s__art {flex-shrink: 0; align-self: flex-end; width: 88px; height: 74px; margin-left: 10px; overflow: hidden;}
.pdm2s__art img {display: block; width: 88px; height: auto;}
.pdm2s__txt {flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0;
	text-shadow: 0 1px 3px rgba(0,20,60,.5);}
.pdm2s__say {position: relative; max-width: 100%; padding: 6px 11px; border-radius: 10px; background: #fff; color: #102a5c;
	font-size: 14.5px; font-weight: 600; text-shadow: none; box-shadow: 0 3px 10px rgba(0,20,60,.3);}
.pdm2s__say::before {content: ''; position: absolute; left: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-left: 0; border-right-color: #fff;}
.pdm2s__say b {color: #d81f2a; font-weight: 800;}
.pdm2s__note {font-size: 12px; font-weight: 600; color: #ffe08a;}
.pdm2s__btn {flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; position: relative; overflow: hidden;
	background: linear-gradient(180deg, #ff4b52, #d81f2a); color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap;
	box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 4px 12px rgba(150,10,20,.4);}
.pdm2s__btn::after {content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg);
	animation: pdm2Shine 5s ease-in-out 1.5s infinite;}
@media (max-width: 640px) {
	.pdm2s {gap: 9px; padding-right: 10px; min-height: 66px; margin: 12px 0;}
	.pdm2s__art {width: 64px; height: 62px; margin-left: 8px;}
	.pdm2s__art img {width: 64px;}
	.pdm2s__txt {padding: 6px 0; gap: 3px;}
	.pdm2s__say {font-size: 13px; padding: 5px 8px; border-radius: 8px;}
	.pdm2s__note {font-size: 11px;}
	.pdm2s__btn {width: 36px; height: 36px; padding: 0; justify-content: center; box-shadow: 0 0 0 2px rgba(255,255,255,.9);}
	.pdm2s__btn-t {display: none;}
}

.pdm2-still .pdm2__snow, .pdm2-still .pdm2__btn::after, .pdm2-still .pdm2s__btn::after {animation: none;}
@media (prefers-reduced-motion: reduce) {.pdm2__snow, .pdm2__btn::after, .pdm2s__btn::after {animation: none;}}
