/* Новогодняя ярмарка 2026 — 4 варианта блоков «Праздничные предложения» (слайдер Aspro) и «Скидки ярмарки» (6 баннеров).
   Вариант выбирается ?blk=1..4, на секциях классы .nyp-blk.nyp-blk--N, общая обёртка .nyp-blkset--N. */

/* ---------- переключатель в строке администратора ---------- */
.nyp-blksw { white-space: nowrap; }
.nyp-blksw a { display: inline-block; min-width: 24px; margin-left: 3px; padding: 1px 7px; border-radius: 8px; border: 1px solid rgba(248, 226, 168, .4); color: #f3dfae !important; font-weight: 700; line-height: 1.5; text-align: center; transition: background .2s; }
.nyp-blksw a:hover { background: rgba(226, 184, 102, .18); }
.nyp-blksw a.is-on { background: linear-gradient(180deg, #fff1c4, #e2b866 60%, #c08c38); border-color: transparent; color: #3a2405 !important; }

/* ---------- общий сброс: слайдер Aspro по пропорции картинки, баннеры без старой рамки ---------- */
.nyp-blkset { position: relative;
    /* маска снежной шапки: ровная полоса сверху + наплывы трёх размеров с разным шагом — край выходит неровным */
    --snow: radial-gradient(closest-side, #000 96%, transparent) 0 2px / 34px 26px repeat-x, radial-gradient(closest-side, #000 96%, transparent) 13px 6px / 21px 17px repeat-x, radial-gradient(closest-side, #000 96%, transparent) 5px 9px / 47px 15px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% 12px no-repeat; }
@media (max-width: 760px) { .nyp-blkset { --snow: radial-gradient(closest-side, #000 96%, transparent) 0 1px / 24px 18px repeat-x, radial-gradient(closest-side, #000 96%, transparent) 9px 4px / 15px 12px repeat-x, radial-gradient(closest-side, #000 96%, transparent) 4px 6px / 33px 11px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% 8px no-repeat; } }
.nyp-blk .nyp-frame { position: relative; }
.nyp-blk .nyp-frame .top_big_one_banner, .nyp-blk .nyp-frame .top_slider_wrapp, .nyp-blk .nyp-frame .swiper, .nyp-blk .nyp-frame .swiper-slide { height: auto !important; min-height: 0 !important; margin: 0 !important; }
.nyp-blk .nyp-frame .wrapper_inner { height: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.nyp-blk .nyp-frame table, .nyp-blk .nyp-frame tbody, .nyp-blk .nyp-frame tr { display: block !important; width: 100% !important; height: auto !important; margin: 0 !important; }
@media (min-width: 768px) {
    .nyp-blk .nyp-frame td.img { display: block !important; width: 100% !important; height: auto !important; padding: 0 !important; }
    .nyp-blk .nyp-frame td.img img { display: block !important; width: 100% !important; max-width: none !important; height: auto !important; aspect-ratio: 1500 / 501; object-fit: cover; margin: 0 !important; }
    .nyp-blk .nyp-frame .swiper-slide { background-size: cover !important; }
}
@media (max-width: 767px) {
    .nyp-blk .nyp-frame tr.main_info { aspect-ratio: 735 / 506; background-size: cover !important; background-position: center !important; }
}
/* специфичность как у nyf.css (0,1,1), чтобы правила вариантов (.nyp-blkset--N .nyp-bn) были сильнее */
.nyp-blk :where(.nyp-banners) a { display: block; padding: 0; margin: 0; border-radius: 0; background: none; box-shadow: none; }
.nyp-blk :where(.nyp-banners) a:hover { transform: none; box-shadow: none; }
.nyp-blk :where(.nyp-banners) img { display: block; width: 100%; height: auto; max-width: none; margin: 0; border-radius: 0; }
.nyp-blk [aria-hidden="true"] { pointer-events: none; }
.nyp-blk i[aria-hidden="true"] { font-style: normal; }

/* ===================== 1 · «Витрина-бенто» =====================
   один заголовок; асимметричная сетка: слайдер крупно слева, «Скидки ярмарки» — лентой-ярлыком и двумя баннерами справа,
   четыре баннера рядом ниже; снежные шапки на рамках, тёплое свечение, еловая ветка с колокольчиком на углу */
.nyp-blkset--1 { margin: 54px 32px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto 1fr 1fr auto; gap: 22px 20px; }
.nyp-blkset--1::before { content: ''; position: absolute; left: -32px; right: -32px; top: 60px; bottom: -40px; pointer-events: none;
    background: radial-gradient(50% 45% at 38% 40%, rgba(255, 196, 110, .16), transparent 70%), radial-gradient(30% 40% at 88% 30%, rgba(179, 38, 45, .18), transparent 70%); }
.nyp-blkset--1 .nyp-blk, .nyp-blkset--1 .nyp-banners { display: contents; }
.nyp-blkset--1 .nyp-slider .nyp-h2 { grid-column: 1 / -1; grid-row: 1; margin: 0 0 8px !important; }
.nyp-blkset--1 .nyp-frame { grid-column: 1 / 4; grid-row: 2 / 5; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 9px; border-radius: 24px;
    background: linear-gradient(135deg, #f8e2a8, #b98a3a 40%, #f3d48f 60%, #9b6f28);
    box-shadow: 0 0 0 1px rgba(255, 228, 160, .35), 0 0 46px rgba(255, 190, 90, .32), 0 22px 50px rgba(0, 0, 0, .45); }
.nyp-blkset--1 .nyp-frame > div { border-radius: 16px; overflow: hidden; }
/* снежные шапки: ровная верхняя часть + неровные «капли» по нижнему краю */
.nyp-blkset--1 .nyp-frame::before, .nyp-blkset--1 .nyp-bn::before, .nyp-blkset--1 .nyp-sale .nyp-h2::before { content: ''; position: absolute; z-index: 3; left: -5px; right: -5px; top: -11px; height: 26px; pointer-events: none;
    background: linear-gradient(180deg, #fff 0 45%, #e4eef3 100%); border-radius: 18px 18px 0 0 / 14px 14px 0 0;
    -webkit-mask: var(--snow); mask: var(--snow); }
.nyp-blkset--1 .nyp-frame::before { left: -6px; right: -6px; top: -13px; height: 30px; }
.nyp-bento__toy { position: absolute; z-index: 4; left: -34px; top: -46px; width: 210px; height: 147px; background: url('/zooyarmarka/evroyear2027/hero/a/decor3d/vetka-ugol.webp') center / contain no-repeat; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .45)); transform: scaleX(-1) rotate(8deg); }
/* ярлык «Скидки ярмарки» — красная атласная лента */
.nyp-blkset--1 .nyp-sale .nyp-h2 { position: relative; grid-column: 4; grid-row: 2; align-self: end; display: flex; margin: 0 !important; padding: 13px 14px 12px; border-radius: 12px; gap: 10px;
    background: linear-gradient(180deg, #c33a3f 0%, #a5262d 55%, #8f1d24 100%); font: 600 italic 24px/1.15 var(--serif); color: #fff3d6 !important;
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(248, 226, 168, .35); }
.nyp-blkset--1 .nyp-sale .nyp-h2::after { content: ''; position: absolute; inset: 5px 7px; flex: none; height: auto; opacity: 1; border-top: 1px dashed rgba(248, 226, 168, .55); border-bottom: 1px dashed rgba(248, 226, 168, .55); background: none; pointer-events: none; }
.nyp-blkset--1 .nyp-sale .nyp-h2::before { top: -9px; height: 22px; left: -4px; right: -4px; flex: none; opacity: 1; }
.nyp-blkset--1 .nyp-sale .nyp-h2 span { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff3d6; }
/* баннеры */
.nyp-blkset--1 .nyp-bn { position: relative; padding: 5px; border-radius: 18px; background: linear-gradient(135deg, #f8e2a8, #b98a3a 45%, #f3d48f);
    box-shadow: 0 0 26px rgba(255, 190, 90, .18), 0 14px 30px rgba(0, 0, 0, .38); transition: transform .3s, box-shadow .3s; }
.nyp-blkset--1 .nyp-bn img { height: 100%; aspect-ratio: 836 / 352; object-fit: cover; border-radius: 13px; }
.nyp-blkset--1 .nyp-bn:hover { transform: translateY(-4px); box-shadow: 0 0 40px rgba(255, 200, 110, .45), 0 20px 40px rgba(0, 0, 0, .45); }
.nyp-blkset--1 .nyp-bn:nth-child(1) { grid-column: 4; grid-row: 3; }
.nyp-blkset--1 .nyp-bn:nth-child(2) { grid-column: 4; grid-row: 4; }
.nyp-blkset--1 .nyp-bn:nth-child(n+3) { grid-row: 5; }
.nyp-blkset--1 .nyp-bn:nth-child(1) img, .nyp-blkset--1 .nyp-bn:nth-child(2) img { aspect-ratio: auto; position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
.nyp-blkset--1 .nyp-bn:nth-child(1), .nyp-blkset--1 .nyp-bn:nth-child(2) { min-height: 110px; }
@media (max-width: 1200px) and (min-width: 761px) {
    .nyp-blkset--1 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
    .nyp-blkset--1 .nyp-frame { grid-column: 1 / -1; grid-row: 2; }
    .nyp-blkset--1 .nyp-sale .nyp-h2 { grid-column: 1 / -1; grid-row: 3; justify-self: center; margin-top: 12px !important; padding: 12px 34px; }
    .nyp-blkset--1 .nyp-bn:nth-child(n) { grid-column: auto; grid-row: auto; min-height: 0; }
    .nyp-blkset--1 .nyp-bn:nth-child(n) img { position: static; width: 100%; height: auto; aspect-ratio: 836 / 352; }
}
@media (max-width: 760px) {
    .nyp-blkset--1 { margin: 40px 14px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 16px 12px; }
    .nyp-blkset--1 .nyp-slider .nyp-h2, .nyp-blkset--1 .nyp-frame, .nyp-blkset--1 .nyp-sale .nyp-h2 { grid-column: 1 / -1; grid-row: auto; }
    .nyp-blkset--1 .nyp-frame { padding: 6px; border-radius: 18px; }
    .nyp-blkset--1 .nyp-frame > div { border-radius: 13px; }
    .nyp-blkset--1 .nyp-sale .nyp-h2 { justify-self: center; margin-top: 10px !important; padding: 10px 26px; font-size: 21px; }
    .nyp-blkset--1 .nyp-bn, .nyp-blkset--1 .nyp-bn:nth-child(n) { grid-column: auto; grid-row: auto; min-height: 0; padding: 4px; border-radius: 13px; }
    .nyp-blkset--1 .nyp-bn:nth-child(n) img { position: static; width: 100%; height: auto; aspect-ratio: 836 / 352; border-radius: 10px; }
    .nyp-blkset--1 .nyp-bn::before, .nyp-blkset--1 .nyp-sale .nyp-h2::before { top: -7px; height: 18px; left: -3px; right: -3px; }
    .nyp-blkset--1 .nyp-frame::before { top: -9px; height: 22px; }
    .nyp-bento__toy { width: 130px; height: 91px; left: -20px; top: -34px; }
}

/* ===================== 2 · «Подарки» =====================
   заголовки — красная атласная лента с «ласточкиными хвостами», как в шапке; слайдер — подарочная коробка
   с лентой крест-накрест и большим бантом; баннеры — упакованные подарки с крышкой и бантом, при наведении крышка с бантом приподнимается */
.nyp-blkset--2 .nyp-h2 { width: max-content; max-width: calc(100% - 70px); margin: 0 auto 30px !important; position: relative; z-index: 1; padding: 12px 40px 13px; gap: 0;
    background: linear-gradient(180deg, #c33a3f 0%, #a5262d 55%, #8f1d24 100%); font: 600 italic 30px/1.15 var(--serif); color: #fff3d6 !important;
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(248, 226, 168, .35); }
.nyp-blkset--2 .nyp-h2 span { position: relative; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff3d6; text-shadow: 0 1px 0 rgba(90, 10, 14, .6); }
.nyp-blkset--2 .nyp-h2 span::before { content: ''; position: absolute; left: -32px; right: -32px; top: -6px; bottom: -7px; border-top: 1px dashed rgba(248, 226, 168, .55); border-bottom: 1px dashed rgba(248, 226, 168, .55); }
.nyp-blkset--2 .nyp-h2::before, .nyp-blkset--2 .nyp-h2::after { content: ''; position: absolute; z-index: -1; top: 12px; bottom: -12px; width: 58px; height: auto; flex: none; opacity: 1; background: linear-gradient(180deg, #8f1d24, #6d151b); }
.nyp-blkset--2 .nyp-h2::before { left: -38px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 22px 50%); }
.nyp-blkset--2 .nyp-h2::after { right: -38px; clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 50%, 100% 100%, 0 100%); }
/* коробки: бумага + лента крест-накрест (под картинкой видна только по краям) */
.nyp-blkset--2 .nyp-frame, .nyp-blkset--2 .nyp-bn { --r1: #8f1d24; --r2: #d9474e; --bw: 30px; --paper: radial-gradient(circle, rgba(248, 226, 168, .5) 0 1.7px, transparent 2.2px) 0 0 / 16px 16px, radial-gradient(circle, rgba(248, 226, 168, .3) 0 1.2px, transparent 1.7px) 8px 8px / 16px 16px, linear-gradient(160deg, #1d5b45, #123d2f);
    position: relative;
    background: linear-gradient(90deg, transparent calc(var(--x, 50%) - var(--bw) / 2), var(--r1) 0, var(--r2) var(--x, 50%), var(--r1) calc(var(--x, 50%) + var(--bw) / 2), transparent 0),
        linear-gradient(180deg, transparent calc(50% - var(--bw) / 2), var(--r1) 0, var(--r2) 50%, var(--r1) calc(50% + var(--bw) / 2), transparent 0), var(--paper); }
.nyp-blkset--2 .nyp-frame { --x: 80%; --bw: 40px; padding: 20px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(248, 226, 168, .3), inset 0 -10px 20px rgba(0, 0, 0, .25), 0 26px 50px rgba(0, 0, 0, .5); }
.nyp-blkset--2 .nyp-frame > div { position: relative; z-index: 1; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 3px #fff6e6, 0 0 0 4px rgba(185, 138, 58, .6), 0 10px 24px rgba(0, 0, 0, .45); }
.nyp-gift__bow { position: absolute; z-index: 3; left: 50%; top: -38px; width: 84px; height: 84px; margin-left: -42px; background: url('/zooyarmarka/evroyear2027/hero/a/decor3d/bant-krasnyj.webp') center / contain no-repeat;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); transform-origin: 50% 60%; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.nyp-blkset--2 .nyp-slider .nyp-h2 { margin-bottom: 48px !important; }
.nyp-gift__bow--big { left: 80%; top: -70px; width: 150px; height: 150px; margin-left: -75px; }
.nyp-blkset--2 .nyp-frame:hover .nyp-gift__bow--big { transform: rotate(-6deg) scale(1.06); }
/* подарки */
.nyp-blkset--2 .nyp-banners { gap: 50px 34px; padding-top: 44px; }
.nyp-blkset--2 .nyp-bn { padding: 16px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(248, 226, 168, .28), inset 0 -8px 16px rgba(0, 0, 0, .22), 0 18px 32px rgba(0, 0, 0, .45);
    transform: rotate(var(--rot, 0deg)); transition: transform .35s ease, box-shadow .35s; }
.nyp-blkset--2 .nyp-bn img { position: relative; z-index: 1; border-radius: 6px; aspect-ratio: 836 / 352; object-fit: cover; box-shadow: 0 0 0 3px #fff6e6, 0 8px 18px rgba(0, 0, 0, .35); }
/* крышка: выступает за края коробки, на ней тот же узор и лента */
.nyp-blkset--2 .nyp-bn::before { content: ''; position: absolute; z-index: 2; left: -7px; right: -7px; top: -6px; height: 22px; border-radius: 5px;
    background: linear-gradient(90deg, transparent calc(50% - var(--bw) / 2), var(--r1) 0, var(--r2) 50%, var(--r1) calc(50% + var(--bw) / 2), transparent 0), var(--paper);
    box-shadow: inset 0 0 0 1px rgba(248, 226, 168, .3), inset 0 -3px 0 rgba(0, 0, 0, .18), 0 5px 8px rgba(0, 0, 0, .35); transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.nyp-blkset--2 .nyp-bn .nyp-gift__bow { top: -54px; }
.nyp-blkset--2 .nyp-bn:hover { transform: translateY(-6px) rotate(0deg); box-shadow: inset 0 0 0 1px rgba(248, 226, 168, .28), 0 26px 40px rgba(0, 0, 0, .5), 0 0 40px rgba(255, 200, 110, .25); }
.nyp-blkset--2 .nyp-bn:hover::before { transform: translateY(-12px) rotate(-3deg); }
.nyp-blkset--2 .nyp-bn:hover .nyp-gift__bow { transform: translate(-6px, -14px) rotate(-14deg) scale(1.15); }
.nyp-blkset--2 .nyp-bn:nth-child(3n+1) { --rot: -1.4deg; }
.nyp-blkset--2 .nyp-bn:nth-child(3n+2) { --rot: 1deg; --r1: #9b6f28; --r2: #f8e2a8; --paper: repeating-linear-gradient(135deg, #b3262d 0 12px, #9a1f26 12px 24px); }
.nyp-blkset--2 .nyp-bn:nth-child(1) .nyp-gift__bow { background-image: url('/zooyarmarka/evroyear2027/hero/a/decor3d/bows/bant-1.webp'); }
.nyp-blkset--2 .nyp-bn:nth-child(2) .nyp-gift__bow { background-image: url('/zooyarmarka/evroyear2027/hero/a/decor3d/bows/bant-2.webp'); }
.nyp-blkset--2 .nyp-bn:nth-child(3) .nyp-gift__bow { background-image: url('/zooyarmarka/evroyear2027/hero/a/decor3d/bows/bant-3.webp'); }
.nyp-blkset--2 .nyp-bn:nth-child(4) .nyp-gift__bow { background-image: url('/zooyarmarka/evroyear2027/hero/a/decor3d/bows/bant-4.webp'); }
.nyp-blkset--2 .nyp-bn:nth-child(5) .nyp-gift__bow { background-image: url('/zooyarmarka/evroyear2027/hero/a/decor3d/bows/bant-5.webp'); }
.nyp-blkset--2 .nyp-bn:nth-child(6) .nyp-gift__bow { background-image: url('/zooyarmarka/evroyear2027/hero/a/decor3d/bows/bant-6.webp'); }
.nyp-blkset--2 .nyp-bn:nth-child(3n) { --rot: -.6deg; --paper: radial-gradient(circle, rgba(179, 38, 45, .35) 0 2px, transparent 2.5px) 0 0 / 18px 18px, linear-gradient(160deg, #fff6e6, #ecd9b4); }
.nyp-blkset--2 .nyp-bn:nth-child(4) { --rot: 1.2deg; }
.nyp-blkset--2 .nyp-bn:nth-child(5) { --rot: -1deg; }
.nyp-blkset--2 .nyp-bn:nth-child(6) { --rot: .8deg; }
@media (max-width: 760px) {
    .nyp-blkset--2 .nyp-h2 { font-size: 22px; padding: 9px 20px 10px; max-width: calc(100% - 50px); text-align: center; }
    .nyp-blkset--2 .nyp-h2 span::before { left: -14px; right: -14px; top: -5px; bottom: -6px; }
    .nyp-blkset--2 .nyp-h2::before, .nyp-blkset--2 .nyp-h2::after { width: 34px; top: 10px; bottom: -10px; }
    .nyp-blkset--2 .nyp-h2::before { left: -22px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%); }
    .nyp-blkset--2 .nyp-h2::after { right: -22px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%); }
    .nyp-blkset--2 .nyp-frame { --bw: 22px; padding: 10px; }
    .nyp-blkset--2 .nyp-slider .nyp-h2 { margin-bottom: 34px !important; }
    .nyp-gift__bow--big { top: -34px; width: 74px; height: 74px; margin-left: -37px; }
    .nyp-blkset--2 .nyp-banners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; padding-top: 14px; }
    .nyp-blkset--2 .nyp-bn { --bw: 14px; padding: 8px; }
    .nyp-blkset--2 .nyp-bn::before { left: -4px; right: -4px; top: -4px; height: 13px; }
    .nyp-blkset--2 .nyp-bn img { box-shadow: 0 0 0 2px #fff6e6, 0 5px 10px rgba(0, 0, 0, .35); }
    .nyp-gift__bow { width: 52px; height: 52px; margin-left: -26px; }
    .nyp-blkset--2 .nyp-bn .nyp-gift__bow { top: -36px; }
}

/* ===================== 3 · «Заснеженные окна лавок» =====================
   заголовки — деревянные вывески под снегом; слайдер — окно лавки в деревянной раме с золотым штапиком, сугробом, сосульками,
   огоньками по раме, инеем по углам и подоконником; «Скидки ярмарки» — карусель окошек со стрелками и прокруткой пальцем */
.nyp-blkset--3 { --wood: repeating-linear-gradient(90deg, rgba(0, 0, 0, .1) 0 2px, transparent 2px 11px, rgba(255, 255, 255, .04) 11px 12px, transparent 12px 27px), linear-gradient(180deg, #82502a, #5e371b 60%, #4b2a14); }
.nyp-blkset--3 .nyp-h2 { position: relative; width: max-content; max-width: 100%; margin: 0 auto 40px !important; padding: 14px 44px 12px; border-radius: 10px; background: var(--wood); font-size: 34px;
    box-shadow: inset 0 0 0 2px #3a200d, inset 0 0 0 4px rgba(226, 184, 102, .7), inset 0 0 0 6px #3a200d, 0 16px 30px rgba(0, 0, 0, .5); }
.nyp-blkset--3 .nyp-h2 span { filter: drop-shadow(0 2px 0 #2c1608); }
.nyp-blkset--3 .nyp-h2::before { content: ''; position: absolute; z-index: 2; left: -8px; right: -8px; top: -14px; height: 30px; flex: none; opacity: 1; border-radius: 16px 16px 0 0 / 14px 14px 0 0;
    background: linear-gradient(180deg, #fff 0 45%, #dfeaf0); -webkit-mask: var(--snow); mask: var(--snow); }
/* шляпки гвоздей */
.nyp-blkset--3 .nyp-h2::after { content: ''; position: absolute; inset: auto 14px 50% 14px; height: 8px; margin-bottom: -4px; flex: none; opacity: 1;
    background: radial-gradient(circle at 4px 4px, #f8e2a8 0 2px, #8a6224 2.6px, transparent 3.4px) left / 8px 8px no-repeat, radial-gradient(circle at 4px 4px, #f8e2a8 0 2px, #8a6224 2.6px, transparent 3.4px) right / 8px 8px no-repeat; }
/* окно: рама, сугроб, сосульки */
.nyp-blkset--3 .nyp-frame, .nyp-blkset--3 .nyp-bn { position: relative; background: var(--wood); box-shadow: inset 0 0 0 2px #3a200d, inset 0 2px 0 4px rgba(255, 255, 255, .06), 0 0 60px rgba(255, 180, 80, .22), 0 24px 44px rgba(0, 0, 0, .5); }
.nyp-blkset--3 .nyp-frame { padding: 26px; border-radius: 14px; margin-bottom: 16px; }
.nyp-blkset--3 .nyp-frame > div { position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 4px #e2b866, 0 0 0 6px #3a200d, 0 0 26px 6px rgba(255, 196, 110, .35); }
.nyp-blkset--3 .nyp-frame > div::after { content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none;
    background: radial-gradient(120px 90px at 0 0, rgba(255, 255, 255, .55), rgba(230, 244, 255, .2) 55%, transparent 75%), radial-gradient(140px 100px at 100% 0, rgba(255, 255, 255, .45), rgba(230, 244, 255, .15) 55%, transparent 75%), radial-gradient(110px 80px at 0 100%, rgba(255, 255, 255, .35), transparent 70%), radial-gradient(130px 90px at 100% 100%, rgba(255, 255, 255, .4), transparent 70%); }
.nyp-blkset--3 .nyp-frame::before, .nyp-blkset--3 .nyp-bn::before { content: ''; position: absolute; z-index: 4; left: -10px; right: -10px; top: -16px; height: 34px; border-radius: 22px 22px 0 0 / 18px 18px 0 0;
    background: linear-gradient(180deg, #fff 0 45%, #dfeaf0); -webkit-mask: var(--snow); mask: var(--snow); }
.nyp-blkset--3 .nyp-frame::after, .nyp-blkset--3 .nyp-bn::after { content: ''; position: absolute; z-index: 3; left: 8px; right: 8px; top: 12px; height: 26px; pointer-events: none;
    background: linear-gradient(180deg, #fff, #cfe7f5 60%, rgba(207, 231, 245, .4));
    -webkit-mask: conic-gradient(from -9deg at 50% 100%, #000 18deg, transparent 0) 0 0 / 41px 100% repeat-x, conic-gradient(from -11deg at 50% 100%, #000 22deg, transparent 0) 17px 0 / 29px 58% repeat-x, conic-gradient(from -10deg at 50% 100%, #000 20deg, transparent 0) 9px 0 / 67px 78% repeat-x;
    mask: conic-gradient(from -9deg at 50% 100%, #000 18deg, transparent 0) 0 0 / 41px 100% repeat-x, conic-gradient(from -11deg at 50% 100%, #000 22deg, transparent 0) 17px 0 / 29px 58% repeat-x, conic-gradient(from -10deg at 50% 100%, #000 20deg, transparent 0) 9px 0 / 67px 78% repeat-x; }
/* подоконник со снегом */
.nyp-blkset--3 .nyp-slider::after { content: ''; display: block; height: 22px; margin: -22px -18px 0; border-radius: 6px; position: relative; z-index: 2;
    background: linear-gradient(180deg, #fff 0 5px, #dfeaf0 7px, transparent 7px), var(--wood); box-shadow: inset 0 0 0 2px #3a200d, 0 14px 22px rgba(0, 0, 0, .45); }
/* огоньки по раме */
.nyp-win__lights { position: absolute; z-index: 2; inset: 9px; --l1: #ffd98a; --l2: #ff8a5c; --l3: #fff1c4;
    background:
        radial-gradient(circle at 7px 50%, var(--l1) 0 3.4px, transparent 4.2px) 0 0 / 66px 10px repeat-x, radial-gradient(circle at 29px 50%, var(--l2) 0 3.4px, transparent 4.2px) 0 0 / 66px 10px repeat-x, radial-gradient(circle at 51px 50%, var(--l3) 0 3.4px, transparent 4.2px) 0 0 / 66px 10px repeat-x,
        radial-gradient(circle at 7px 50%, var(--l3) 0 3.4px, transparent 4.2px) 0 100% / 66px 10px repeat-x, radial-gradient(circle at 29px 50%, var(--l1) 0 3.4px, transparent 4.2px) 0 100% / 66px 10px repeat-x, radial-gradient(circle at 51px 50%, var(--l2) 0 3.4px, transparent 4.2px) 0 100% / 66px 10px repeat-x,
        radial-gradient(circle at 50% 7px, var(--l1) 0 3.4px, transparent 4.2px) 0 0 / 10px 66px repeat-y, radial-gradient(circle at 50% 29px, var(--l3) 0 3.4px, transparent 4.2px) 0 0 / 10px 66px repeat-y, radial-gradient(circle at 50% 51px, var(--l2) 0 3.4px, transparent 4.2px) 0 0 / 10px 66px repeat-y,
        radial-gradient(circle at 50% 7px, var(--l2) 0 3.4px, transparent 4.2px) 100% 0 / 10px 66px repeat-y, radial-gradient(circle at 50% 29px, var(--l1) 0 3.4px, transparent 4.2px) 100% 0 / 10px 66px repeat-y, radial-gradient(circle at 50% 51px, var(--l3) 0 3.4px, transparent 4.2px) 100% 0 / 10px 66px repeat-y;
    filter: drop-shadow(0 0 3px rgba(255, 200, 110, .95)) drop-shadow(0 0 7px rgba(255, 170, 70, .6)); animation: nyp-twinkle 2.4s ease-in-out infinite alternate; }
@keyframes nyp-twinkle { from { opacity: .7; } to { opacity: 1; } }
/* карусель окошек */
.nyp-car { position: relative; }
.nyp-blkset--3 .nyp-banners { display: flex; gap: 26px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 14px; padding: 22px 14px 30px; margin: -10px -14px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nyp-blkset--3 .nyp-banners::-webkit-scrollbar { display: none; }
.nyp-blkset--3 .nyp-bn { flex: 0 0 calc((100% - 52px) / 3); scroll-snap-align: start; padding: 16px; border-radius: 10px; box-shadow: inset 0 0 0 2px #3a200d, 0 0 34px rgba(255, 180, 80, .16), 0 16px 28px rgba(0, 0, 0, .45); transition: transform .3s; }
.nyp-blkset--3 .nyp-bn:hover { transform: translateY(-4px); }
.nyp-blkset--3 .nyp-bn img { aspect-ratio: 836 / 352; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 3px #e2b866, 0 0 0 5px #3a200d; }
.nyp-blkset--3 .nyp-bn::before { left: -7px; right: -7px; top: -12px; height: 26px; }
.nyp-blkset--3 .nyp-bn::after { top: 8px; left: 6px; right: 6px; height: 18px; }
.nyp-blkset--3 .nyp-bn .nyp-win__lights { inset: 5px; }
.nyp-car__nav { position: absolute; left: -26px; right: -26px; top: 50%; display: flex; justify-content: space-between; pointer-events: none; transform: translateY(-50%); }
.nyp-car__btn { pointer-events: auto; position: relative; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: radial-gradient(circle at 35% 30%, #fff5cf, #e2b866 50%, #9b6f28); box-shadow: 0 0 0 3px #3a200d, 0 8px 18px rgba(0, 0, 0, .5); transition: transform .2s, opacity .2s; }
.nyp-car__btn::before { content: ''; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -3px; border: solid #3a200d; border-width: 0 0 3.5px 3.5px; transform: rotate(45deg); }
.nyp-car__btn[data-dir="1"]::before { margin-left: -10px; transform: rotate(-135deg); }
.nyp-car__btn:hover { transform: scale(1.08); }
.nyp-car__btn:disabled { opacity: .35; cursor: default; transform: none; }
.nyp-car__btn:focus-visible { outline: 3px solid #f8e2a8; outline-offset: 3px; }
@media (max-width: 760px) {
    .nyp-blkset--3 .nyp-h2 { font-size: 24px; padding: 10px 22px 9px; max-width: calc(100% - 10px); margin-bottom: 30px !important; }
    .nyp-blkset--3 .nyp-h2::after { inset: auto 7px 50% 7px; }
    .nyp-blkset--3 .nyp-frame { padding: 14px; }
    .nyp-blkset--3 .nyp-frame::before { top: -11px; height: 24px; left: -6px; right: -6px; }
    .nyp-blkset--3 .nyp-frame::after { top: 6px; height: 16px; }
    .nyp-blkset--3 .nyp-frame .nyp-win__lights { inset: 3px; }
    .nyp-blkset--3 .nyp-slider::after { margin: -22px -8px 0; height: 18px; }
    .nyp-blkset--3 .nyp-banners { gap: 16px; padding: 18px 14px 24px; }
    .nyp-blkset--3 .nyp-bn { flex-basis: 80%; padding: 12px; }
    .nyp-car__nav { position: static; transform: none; justify-content: center; gap: 18px; margin-top: 2px; }
    .nyp-car__btn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .nyp-win__lights { animation: none; } .nyp-blk .nyp-bn, .nyp-blk .nyp-bn::before, .nyp-gift__bow { transition: none; } }

/* ===================== 4 · «Ярмарочные лавки» =====================
   заголовки — кремовые вывески с флажками; слайдер — большая витрина: полосатая маркиза с фестонами, столбики-леденцы, прилавок;
   баннеры — лавки с маленькими маркизами (бордо / изумруд / крем), над рядом — гирлянда лампочек */
.nyp-blkset--4 { --wood: repeating-linear-gradient(90deg, rgba(0, 0, 0, .1) 0 2px, transparent 2px 13px), linear-gradient(180deg, #7a4a26, #55301a); }
.nyp-blkset--4 .nyp-h2 { position: relative; width: max-content; max-width: 100%; margin: 0 auto 30px !important; padding: 12px 40px 11px; border-radius: 14px; font-size: 34px; color: #173d30 !important;
    background: linear-gradient(180deg, #fff6e6, #f1dfbe); box-shadow: inset 0 0 0 2px #b98a3a, inset 0 0 0 5px #fff6e6, inset 0 0 0 6px rgba(185, 138, 58, .6), 0 14px 28px rgba(0, 0, 0, .45); }
.nyp-blkset--4 .nyp-h2 span { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #173d30; }
/* флажки по бокам вывески */
.nyp-blkset--4 .nyp-h2::before, .nyp-blkset--4 .nyp-h2::after { content: ''; position: absolute; top: 10px; width: 180px; height: 26px; flex: none; opacity: 1;
    background:
        linear-gradient(#e2b866, #e2b866) 0 0 / 100% 2px no-repeat,
        conic-gradient(from -25deg at 50% 100%, #b3262d 50deg, transparent 0) 0 2px / 22px 22px no-repeat,
        conic-gradient(from -25deg at 50% 100%, #b3262d 50deg, transparent 0) 66px 2px / 22px 22px no-repeat,
        conic-gradient(from -25deg at 50% 100%, #b3262d 50deg, transparent 0) 132px 2px / 22px 22px no-repeat,
        conic-gradient(from -25deg at 50% 100%, #2a7258 50deg, transparent 0) 22px 2px / 22px 22px no-repeat,
        conic-gradient(from -25deg at 50% 100%, #2a7258 50deg, transparent 0) 88px 2px / 22px 22px no-repeat,
        conic-gradient(from -25deg at 50% 100%, #2a7258 50deg, transparent 0) 154px 2px / 22px 22px no-repeat,
        conic-gradient(from -25deg at 50% 100%, #f8e2a8 50deg, transparent 0) 44px 2px / 22px 22px no-repeat,
        conic-gradient(from -25deg at 50% 100%, #f8e2a8 50deg, transparent 0) 110px 2px / 22px 22px no-repeat; }
.nyp-blkset--4 .nyp-h2::before { right: 100%; }
.nyp-blkset--4 .nyp-h2::after { left: 100%; }
/* витрина */
.nyp-blkset--4 .nyp-frame { margin-top: 96px; padding: 16px 40px 18px; border-radius: 0 0 6px 6px; background: var(--wood); box-shadow: inset 0 0 0 2px #3a200d, 0 0 60px rgba(255, 190, 90, .22), 0 26px 46px rgba(0, 0, 0, .5); }
.nyp-blkset--4 .nyp-frame > div { position: relative; z-index: 1; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 3px #e2b866, 0 0 0 5px #3a200d, 0 10px 22px rgba(0, 0, 0, .45); }
.nyp-stall__awn { position: absolute; z-index: 3; left: -26px; right: -26px; bottom: 100%; height: 86px; margin-bottom: -22px; --a1: #b3262d; --a2: #fff6e6; --sw: 58px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 45%, rgba(255, 255, 255, .14) 70%, rgba(0, 0, 0, .12)), repeating-linear-gradient(90deg, var(--a1) 0 var(--sw), var(--a2) var(--sw) calc(var(--sw) * 2)) calc(50% - var(--sw) / 2) 0 / calc(var(--sw) * 2) 100%;
    -webkit-mask: radial-gradient(circle at 50% 0, #000 calc(var(--sw) / 2 - .5px), transparent calc(var(--sw) / 2)) 50% 100% / var(--sw) calc(var(--sw) / 2) repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--sw) / 2 + 1px) no-repeat;
    mask: radial-gradient(circle at 50% 0, #000 calc(var(--sw) / 2 - .5px), transparent calc(var(--sw) / 2)) 50% 100% / var(--sw) calc(var(--sw) / 2) repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--sw) / 2 + 1px) no-repeat;
    transform: perspective(400px) rotateX(18deg); transform-origin: 50% 100%; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .4)); }
/* золотая штанга маркизы с огоньками */
.nyp-blkset--4 .nyp-frame::after { content: ''; position: absolute; z-index: 5; left: -20px; right: -20px; top: -60px; height: 14px; pointer-events: none;
    background: radial-gradient(circle at 50% 4px, #ffd98a 0 4px, transparent 4.8px) 0 0 / 46px 14px repeat-x, radial-gradient(circle at 50% 4px, #ff8a5c 0 4px, transparent 4.8px) 23px 0 / 46px 14px repeat-x;
    filter: drop-shadow(0 0 4px rgba(255, 200, 110, .95)); animation: nyp-twinkle 2s ease-in-out infinite alternate; }
.nyp-blkset--4 .nyp-frame::before { content: ''; position: absolute; z-index: 4; left: -34px; right: -34px; top: -70px; height: 12px; border-radius: 6px; background: linear-gradient(180deg, #fff1c4, #e2b866 45%, #9b6f28); box-shadow: 0 4px 8px rgba(0, 0, 0, .4); }
.nyp-stall__post { position: absolute; z-index: 2; left: 8px; top: 0; bottom: 0; width: 22px; border-radius: 4px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 40%, rgba(255, 255, 255, .25) 55%, rgba(0, 0, 0, .25)), repeating-linear-gradient(-35deg, #b3262d 0 12px, #fff6e6 12px 24px); box-shadow: 0 0 0 2px #3a200d; }
.nyp-stall__post--r { left: auto; right: 8px; }
.nyp-stall__counter { position: relative; z-index: 3; display: block; height: 30px; margin: -6px -30px 0; border-radius: 6px;
    background: linear-gradient(180deg, #f8e2a8 0 3px, #b98a3a 3px 5px, transparent 5px), linear-gradient(180deg, #1f5a46, #123d2f); box-shadow: inset 0 0 0 2px #0b231b, 0 16px 26px rgba(0, 0, 0, .5); }
/* лавки */
.nyp-blkset--4 .nyp-banners { gap: 74px 34px; padding-top: 62px; }
.nyp-blkset--4 .nyp-bn { position: relative; padding: 30px 12px 12px; border-radius: 0 0 8px 8px; background: var(--wood); box-shadow: inset 0 0 0 2px #3a200d, 0 0 34px rgba(255, 190, 90, .14), 0 18px 30px rgba(0, 0, 0, .45); transition: transform .3s; }
.nyp-blkset--4 .nyp-bn img { position: relative; z-index: 1; aspect-ratio: 836 / 352; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 3px #e2b866, 0 0 0 5px #3a200d; }
.nyp-blkset--4 .nyp-bn .nyp-stall__awn { left: -12px; right: -12px; height: 52px; margin-bottom: -26px; --sw: 30px; transform: perspective(240px) rotateX(16deg); transition: transform .35s; }
.nyp-blkset--4 .nyp-bn:hover { transform: translateY(-4px); }
.nyp-blkset--4 .nyp-bn:hover .nyp-stall__awn { transform: perspective(240px) rotateX(4deg); }
.nyp-blkset--4 .nyp-bn:nth-child(3n+2) .nyp-stall__awn { --a1: #1f5a46; }
.nyp-blkset--4 .nyp-bn:nth-child(3n) .nyp-stall__awn { --a1: #c99a45; --a2: #fff6e6; }
.nyp-stall__garl { position: absolute; z-index: 4; left: -17px; right: -17px; bottom: 100%; width: calc(100% + 34px); height: auto; aspect-ratio: 320 / 46; margin-bottom: 18px; overflow: visible;
    filter: drop-shadow(0 0 3px rgba(255, 200, 110, .95)) drop-shadow(0 0 8px rgba(255, 170, 70, .5)); }
.nyp-stall__garl ellipse { animation: nyp-twinkle 1.8s ease-in-out infinite alternate; }
.nyp-stall__garl ellipse:nth-of-type(2n) { animation-delay: -.9s; }
@media (max-width: 760px) {
    .nyp-blkset--4 .nyp-h2 { font-size: 24px; padding: 9px 20px 8px; }
    .nyp-blkset--4 .nyp-h2::before, .nyp-blkset--4 .nyp-h2::after { display: none; }
    .nyp-blkset--4 .nyp-frame { margin-top: 62px; padding: 10px 22px 12px; }
    .nyp-stall__awn { left: -12px; right: -12px; height: 56px; margin-bottom: -14px; --sw: 34px; }
    .nyp-blkset--4 .nyp-frame::before { left: -16px; right: -16px; top: -46px; height: 9px; }
    .nyp-blkset--4 .nyp-frame::after { top: -38px; left: -8px; right: -8px; background-size: 30px 14px; background-position: 0 0, 15px 0; }
    .nyp-stall__post { left: 4px; width: 12px; }
    .nyp-stall__post--r { left: auto; right: 4px; }
    .nyp-stall__counter { margin: -4px -12px 0; height: 22px; }
    .nyp-blkset--4 .nyp-banners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 14px; padding-top: 40px; }
    .nyp-blkset--4 .nyp-bn { padding: 20px 7px 7px; }
    .nyp-blkset--4 .nyp-bn .nyp-stall__awn { left: -7px; right: -7px; height: 34px; margin-bottom: -18px; --sw: 20px; }
    .nyp-stall__garl { left: -7px; right: -7px; width: calc(100% + 14px); margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .nyp-stall__garl ellipse, .nyp-blkset--4 .nyp-frame::after { animation: none; } .nyp-blkset--4 .nyp-bn, .nyp-blkset--4 .nyp-stall__awn { transition: none; } }

/* кнопка «Библиотека праздника» в админ-строке */
.nyp-admin .nyp-libbtn { display: inline-block; margin-left: 4px; padding: 2px 10px; border-radius: 8px; background: linear-gradient(180deg, #fff1c4, #e2b866); color: #3a2405 !important; font-weight: 700; text-decoration: none !important; }
