.ny {
    position: relative;
    width: auto;
    aspect-ratio: 3360 / 1497;
    background: #000;
    overflow: hidden;
    container-type: size;

    margin: 50px calc(50% - 50vw) 48px 0;
}
.ny img { position: absolute; display: block; height: auto; }

.ny .h {
    position: absolute; left: 5.089%; top: 5.678%; margin: 0;
    font: 400 5.506cqw/1 'Playfair Display', Georgia, serif;
    color: #fff; white-space: nowrap; z-index: 4;
}
.ny .y {
    position: absolute; left: 4.494%; top: 18.149%; margin: 0;
    font: 400 11.925cqw/1 var(--font-abril), 'Abril Fatface', serif;
    color: #fff; white-space: nowrap; z-index: 4;
}

.ny .ded    { left: 1.000%;  top: 34.315%; width: 15.000%; z-index: 5; margin-top: -15px; }
.ny .posuda { left: 17.000%; top: 45.961%; width: 21.553%; z-index: 2; }
.ny .koza   { left: 39.300%; top: 14.603%; width: 19.125%; z-index: 1; }
.ny .shar   { left: 59.200%; top: 40.508%; width: 13.636%; z-index: 1; }
.ny .korp   { left: 73.839%; top: 23.635%; width: 25.652%; z-index: 1; }

.ny .cap {
    position: absolute; margin: 0;
    font: 700 1.310cqw/1.756cqw 'ALS Sector', Arial, sans-serif;
    color: #fff; z-index: 3; white-space: nowrap;
    text-decoration: none;
}
.ny .c0 { left: 2.500%;  top: 75.350%; }
.ny .c1 { left: 18.750%; top: 75.350%; }
.ny .c2 { left: 40.730%; top: 75.350%; }
.ny .c3 { left: 60.510%; top: 75.350%; }
.ny .c4 { left: 73.036%; top: 65.3%; }
.ny .c2 span { font-weight: 400; }
.ny .fire { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; }

.ny .txt {
    position: absolute; left: 73.006%; top: 75.1%; width: 22.619%; margin: 0;
    font: 400 0.893cqw/1.161cqw 'ALS Sector', Arial, sans-serif;
    color: #fff; z-index: 3;
}

.ny .cap, .ny .txt {
    text-shadow: 0 0 .35cqw rgba(0,0,0,.95), 0 0 1cqw rgba(0,0,0,.85), 0 0 2cqw rgba(0,0,0,.7);
}
.ny .cap::before, .ny .txt::before {
    content: ""; position: absolute; z-index: -1; inset: -1.2cqw -2.2cqw;
    background: radial-gradient(ellipse at center, rgba(0,0,0,.75), rgba(0,0,0,.45) 55%, transparent 100%);
    filter: blur(.9cqw); pointer-events: none;
}
.ny .txt::before { inset: -1cqw -1.6cqw; }

.ny .stage { position: absolute; inset: 0; transition: transform 1.4s cubic-bezier(.25,.8,.25,1); }
.ny .edge  { position: absolute; top: 0; bottom: 0; right: 0; width: 18%; z-index: 6; }
.ny:has(.edge:hover) .stage { transform: translateX(-4.02%); }

.ny .snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.ny .snow i {
    position: absolute; top: -2cqw; left: var(--x);
    width: var(--s); height: var(--s); border-radius: 50%;
    background: #fff; opacity: var(--o); filter: blur(.03cqw);
    animation: rv-ny-fall var(--d) linear var(--t) infinite;
}
@keyframes rv-ny-fall {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(var(--w), 55cqh); }
    100% { transform: translate(0, 112cqh); }
}
@media (prefers-reduced-motion: reduce) {
    .ny .snow { display: none; }
    .ny .stage { transition: none; }
}

@media (hover: hover) {

    .ny .stage .cap, .ny .stage .txt { z-index: 8; }

    .ny .stage img {
        transform-origin: center bottom;
        transition: transform .45s cubic-bezier(.25,.8,.25,1), opacity .45s ease;
    }

    .ny .stage:has(img:hover)  img,
    .ny .stage:has(.cap:hover) img {
        transform: scale(.96);
        opacity: .45;
    }

    .ny .stage:has(img:hover) img:hover,
    .ny .stage:has(.c0:hover) .ded,
    .ny .stage:has(.c1:hover) .posuda,
    .ny .stage:has(.c2:hover) .koza,
    .ny .stage:has(.c3:hover) .shar,
    .ny .stage:has(.c4:hover) .korp {
        transform: scale(1.05);
        opacity: 1;
        z-index: 4;
    }

    .ny .stage:has(img:hover) .koza:hover,
    .ny .stage:has(.c2:hover) .koza { transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
    .ny .stage img { transition: none; }
}

@media (max-width: 575px) {
    .ny {
        aspect-ratio: auto;
        container-type: inline-size;
        margin-bottom: 32px;
    }
    .ny .stage {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 12px;
        padding: 24px 16px 28px;
        transform: none;
    }
    .ny .edge { display: none; }

    .ny .h, .ny .y, .ny img, .ny .cap, .ny .txt { position: static; }

    .ny .h { grid-column: 1 / -1; grid-row: 1; font-size: 32px; white-space: normal; }
    .ny .y { grid-column: 1 / -1; grid-row: 2; font-size: 64px; margin: 0 0 8px -2px; }

    .ny img { width: 100%; height: 128px; margin: 0;
              object-fit: contain; object-position: center bottom; align-self: end; }

    .ny .ded, .ny .posuda, .ny .koza, .ny .shar, .ny .korp { width: 100%; }
    .ny .ded    { grid-column: 1; grid-row: 3; }
    .ny .posuda { grid-column: 2; grid-row: 3; }
    .ny .c0     { grid-column: 1; grid-row: 4; }
    .ny .c1     { grid-column: 2; grid-row: 4; }
    .ny .koza   { grid-column: 1; grid-row: 5; }
    .ny .shar   { grid-column: 2; grid-row: 5; }
    .ny .c2     { grid-column: 1; grid-row: 6; }
    .ny .c3     { grid-column: 2; grid-row: 6; }
    .ny .korp   { grid-column: 1; grid-row: 7; }
    .ny .c4     { grid-column: 1; grid-row: 8; }
    .ny .txt    { grid-column: 1 / -1; grid-row: 9; width: auto; }

    .ny .nyz-open { grid-column: 1; grid-row: 10; }

    .ny .cap {
        font-size: 13px; line-height: 1.3; white-space: normal;
        padding: 10px 0 18px; align-self: start;
    }

    .ny .txt { font-size: 10px; line-height: 1.45; margin-top: 4px; max-width: 91%; }

    .ny .txt       { display: none; }
    .ny .nyz-open  { display: none; }

    .ny .cap::before, .ny .txt::before { content: none; }
    .ny .cap, .ny .txt { text-shadow: none; }

    .ny .snow { position: absolute; }
    .ny .snow i { width: 1.5px; height: 1.5px; animation-name: rv-ny-fall-m; }
    @keyframes rv-ny-fall-m {
        0%   { transform: translate(0, 0); }
        50%  { transform: translate(var(--w), 90cqw); }
        100% { transform: translate(0, 185cqw); }
    }
}

.ny .nyz-open {
    position: absolute; z-index: 7;
    left: 73.006%;
    bottom: 3.2%;
    display: inline-flex; align-items: center; justify-content: center;

    height: 42px; padding: 0 22px;
    border: 0; border-radius: 6px;
    background: #39655D; color: #fff;
    font: 600 14px/1 'ALS Sector', Arial, sans-serif;
    cursor: pointer; transition: background .15s;
}
@media (hover: hover) { .ny .nyz-open:hover { background: #2f544d; } }

.nyz {
    --nyz-card: #1c1c1c; --nyz-ink: #f2f2f2; --nyz-mute: #9a9a9a;
    --nyz-line: #3a3a3a; --nyz-fbg: #111; --nyz-green: #39655D; --nyz-err: #E0524F;
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
}
body.bg-white .nyz {
    --nyz-card: #fff; --nyz-ink: #111; --nyz-mute: #7b7b7b;
    --nyz-line: #cfcdcb; --nyz-fbg: #fff;
}
.nyz[hidden] { display: none; }
.nyz__bg { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
body.bg-white .nyz__bg { background: rgba(0,0,0,.45); }

.nyz__win {
    position: relative; z-index: 1;
    width: 520px; max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px); overflow-y: auto;
    border-radius: 16px; padding: 32px 32px 28px;
    background: var(--nyz-card); color: var(--nyz-ink);
}
.nyz__grab { display: none; }

.nyz__x {
    position: absolute; right: 20px; top: 20px;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--nyz-line); background: none; color: var(--nyz-ink);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}

.nyz__h { margin: 0; padding-right: 56px; font: 600 26px/1.15 'ALS Sector', Arial, sans-serif; color: var(--nyz-ink); }
.nyz__sub { margin: 10px 0 0; font: 500 15px/1.45 'ALS Sector', Arial, sans-serif; color: var(--nyz-mute); }

.nyz__two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.nyz__f { margin-top: 16px; }
.nyz__f label { display: block; margin-bottom: 8px; font: 600 13px 'ALS Sector', Arial, sans-serif; color: var(--nyz-mute); }
.nyz__f label i { font-style: normal; font-weight: 500; }

.nyz__inp {
    width: 100%; height: 52px;
    border: 1px solid var(--nyz-line); border-radius: 8px;
    padding: 0 16px; background: var(--nyz-fbg);
    font: 500 17px 'ALS Sector', Arial, sans-serif; color: var(--nyz-ink);
    outline: none;
}
.nyz__ta { height: 96px; padding: 14px 16px; resize: none; line-height: 1.4; }
.nyz__inp::placeholder { color: var(--nyz-mute); opacity: .7; }
.nyz__inp:focus { border: 2px solid var(--nyz-ink); padding: 0 15px; }
.nyz__ta:focus { padding: 13px 15px; }
.nyz__inp.is-err { border: 2px solid var(--nyz-err); padding: 0 15px; }
.nyz__ta.is-err { padding: 13px 15px; }

.nyz__msg { margin: 8px 0 0; font: 500 13px 'ALS Sector', Arial, sans-serif; color: var(--nyz-err); }
.nyz__msg_all { margin-top: 14px; }

.nyz__btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 52px; padding: 0 28px; border: 0; border-radius: 8px;
    background: var(--nyz-green); color: #fff;
    font: 600 17px 'ALS Sector', Arial, sans-serif; cursor: pointer;
    transition: background .15s;
}
.nyz__btn_58 { height: 58px; width: 100%; margin-top: 24px; }
.nyz__btn_line { background: none; border: 2px solid var(--nyz-green); color: var(--nyz-ink); margin-top: 28px; }
.nyz__btn[disabled] { opacity: .6; cursor: default; }
@media (hover: hover) {
    .nyz__btn:hover { background: #2f544d; }
    .nyz__btn_line:hover { background: var(--nyz-green); color: #fff; }
}

.nyz__law { margin: 14px 0 0; font: 500 13px/1.45 'ALS Sector', Arial, sans-serif; color: var(--nyz-mute); }
.nyz__law a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }

.nyz__ic {
    width: 56px; height: 56px; border-radius: 50%; background: var(--nyz-green);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}

body.nyz-lock { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

@media (max-width: 767px) {
    .ny .nyz-open {
        position: static; height: 44px; min-height: 44px;
        padding: 0 18px; font-size: 15px; border-radius: 8px;
        margin: 14px 0 0;
    }
    .nyz { align-items: flex-end; }
    .nyz__win {
        width: 100%; max-width: none; border-radius: 16px 16px 0 0;
        padding: 10px 16px 28px; max-height: 92vh;
    }
    .nyz__grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--nyz-line); margin: 0 auto 14px; }
    .nyz__x { right: 12px; top: 18px; }
    .nyz__h { font: 600 20px/1.2 'ALS Sector', Arial, sans-serif; }
    .nyz__sub { margin-top: 8px; font-size: 13px; }
    .nyz__two { grid-template-columns: 1fr; }
    .nyz__ta { height: 76px; }
    .nyz__btn_58 { margin-top: 20px; }
}

@media (min-width: 768px) {
    .ny .cap,
    .ny .txt,
    .ny .nyz-open { transform: translateY(-50px); }

    .ny .c4,
    .ny .txt { transform: translateY(25px); }
    .ny .nyz-open { transform: translateY(8px); }
}
