/* Новогоднее оформление публичной части: гирлянда, полоса и снегопад. */

.ny-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 7px 16px;
    background: linear-gradient(90deg, #244a3c 0%, #376b56 50%, #244a3c 100%);
    border-bottom: 1px solid rgba(217, 173, 106, .55);
    color: #f6e5be;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
}

.ny-ribbon__snow {
    color: #d9ad6a;
    font-size: 15px;
    line-height: 1;
    animation: ny-twinkle 3.2s ease-in-out infinite;
}

.ny-ribbon__snow:last-child {
    animation-delay: 1.1s;
}

@keyframes ny-twinkle {
    0%, 100% { opacity: .45; transform: scale(.88) rotate(-8deg); }
    45% { opacity: 1; transform: scale(1.08) rotate(8deg); }
}

/* Тонкая золотая гирлянда по нижней кромке шапки. */
.site-header {
    position: relative;
}

.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 4px;
    pointer-events: none;
    background: repeating-linear-gradient(
        90deg,
        transparent 0 16px,
        rgba(217, 173, 106, .85) 16px 20px,
        transparent 20px 38px
    );
    opacity: .8;
}

.ny-snow {
    position: fixed;
    inset: 0;
    z-index: 50;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .72;
}

@media (max-width: 640px) {
    .ny-ribbon {
        gap: 8px;
        padding: 6px 10px;
        font-size: 11px;
        letter-spacing: .08em;
    }

    .ny-ribbon__snow { font-size: 13px; }
    .ny-snow { opacity: .55; }
}

@media (prefers-reduced-motion: reduce) {
    .ny-ribbon__snow,
    .ny-snow {
        animation: none;
    }

    .ny-snow {
        display: none;
    }
}
