/* =========================
   New Year Minimal — SCDUET
   ========================= */
:root {
    /* 👇 подстрой под фирменные цвета */
    --ny-accent: #1f3c88;   /* основной (синий/фирменный) */
    --ny-light: #ffffff;
    --ny-muted: rgba(255,255,255,0.6);
}

/* ❄️ Мини-снег */
#ny-snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* 📱 Мобильная адаптация */
@media (max-width: 768px) {
    #ny-snow {
        opacity: 0.9;
    }
    .ny-topline {
        font-size: 12px;
        padding: 5px;
    }
}

.header__logo {
    position: relative;
}

.header__logo::after {
    content: "✦";
    position: absolute;
    top: -6px;
    right: -8px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    opacity: 0;
    animation: nySpark 10s infinite;
}

@keyframes nySpark {
    0%, 90%, 100% { opacity: 0; }
    92% { opacity: 1; }
}

@media (max-width: 768px) {
    .header__logo::after { display: none; }
}


/* Гирлянда поверх меню */
/* div#aboveheadдолжен быть опорной точкой */
div#abovehead {
    position: relative;
}

.ny-garland {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 6px 0;
    /*background: linear-gradient(90deg, var(--ny-accent), #2a5298);*/
    overflow: hidden;
}

.ny-garland span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;

    opacity: 1;                 /* 💥 яркость */
    filter: none;               /* 💥 убрать серость */

    animation: nyFloat 5s infinite ease-in-out;

    /* лёгкое свечение */
    text-shadow:
            0 0 4px rgba(255,255,255,0.6),
            0 0 8px rgba(255,215,0,0.5);
}


/* Волна */
.ny-garland span:nth-child(4n)     { animation-delay: 0s; }
.ny-garland span:nth-child(4n+1)   { animation-delay: 1s; }
.ny-garland span:nth-child(4n+2)   { animation-delay: 2s; }
.ny-garland span:nth-child(4n+3)   { animation-delay: 3s; }

@keyframes nyFloat {
    0%,100% { transform: translateY(0); opacity: 0.2; }
    50%     { transform: translateY(-3px); opacity: 1; }
}


.ny-garland.menu-line {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 22px;
    pointer-events: none;
    z-index: 5;
}


/* 📱 Мобилки */
@media (max-width: 768px) {
    .ny-garland {
        gap: 12px;
    }
    .ny-garland span {
        font-size: 13px;
        opacity: 0.4;
    }
}


/* 🎄 Новогодний баннер вместо стандартного */
.ny-banner {
    width: 100%;
    height: 50px;
    background-image: url("../img/ny-banner.jpg");
    background-repeat: repeat-x;
    background-position: center center;
    background-size: auto 100%;
}

/* 📱 Мобилки */
@media (max-width: 768px) {
    .ny-banner {
        height: 40px;
        background-size: auto 100%;
    }
}

@media (max-width: 480px) {
    .ny-banner {
        height: 32px;
    }
}

/* 🎅 Логотип — точка привязки */
.header__logo,
{
    position: relative;
}

/* 🎄 Шапка Деда Мороза */
.header__bottom__text::before
{
    content: "";
    position: absolute;

    top: 6.5%;
    left:20.5%;
    transform: translateX(-50%) rotate(120deg) rotateX(-170deg);

    width: 10%;
    height: 10%;

    background-image: url('../img/santa-hat.png');
    background-repeat: no-repeat;
    background-size: contain;

    pointer-events: none;
    z-index: 10;
}


.header__bottom__text::before {
    animation: hatSwing 4s ease-in-out infinite;
}

@keyframes hatSwing {
    0%, 100% { transform: translateX(-50%) rotate(10deg); }
    50% { transform: translateX(-50%) rotate(-3deg); }
}

@media (max-width: 1280px) {
    .header__bottom__text::before {
        top: 6%;
        left:16%;
        width: 7%;
        height: 7%;
    }
}

@media (max-width: 1024px) {
    .header__bottom__text::before {
        top: 2.5%;
        left:23.5%;
        width: 6%;
        height: 6%;
    }
}

@media (max-width: 870px) {
    .header__bottom__text::before {
        top: 3%;
        left:21.5%;
        width: 6%;
        height: 6%;
    }
}

@media (max-width: 800px) {
    .header__bottom__text::before {
        top: 3.3%;
        left:22.5%;
        width: 6%;
        height: 6%;
    }
}

@media (max-width: 605px) {
    .header__bottom__text::before {
        top: 2.7%;
        left:38.5%;
        width: 4%;
        height: 4%;
    }
}

@media (max-width: 450px) {
    .header__bottom__text::before {
        top: 3.1%;
        left:32.5%;
        width: 4%;
        height: 4%;
    }
}
