/* ========================================================
   Хани Пряни — Праздничная тема «Новый Год и Рождество»
   Аккуратные микро-акценты, сохранение фирменного стиля 1-в-1
   ======================================================== */

body.theme-new-year {
    --accent-holiday-red: #D32F2F;
    --accent-holiday-green: #1B5E20;
    --accent-holiday-gold: #D4AF37;
    --accent-holiday-glow: rgba(212, 175, 55, 0.32);
    --accent-holiday-aura: rgba(211, 47, 47, 0.16);
}

/* 1. Логотип в шапке без белой подложки — парит на фоне шапки */
body.theme-new-year .site-header .logo,
body.theme-new-year .drawer-logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)) 
            drop-shadow(0 0 16px rgba(212, 175, 55, 0.4)) 
            drop-shadow(0 0 24px rgba(211, 47, 47, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
}

body.theme-new-year .site-header .logo:hover,
body.theme-new-year .drawer-logo:hover {
    transform: translateY(-1px) scale(1.02);
    border: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8)) 
            drop-shadow(0 0 24px rgba(212, 175, 55, 0.65)) 
            drop-shadow(0 0 35px rgba(211, 47, 47, 0.3));
}

body.theme-new-year .site-header .logo img {
    height: 64px;
    display: block;
    transition: height 0.3s ease;
}

body.theme-new-year .site-header.scrolled .logo img {
    height: 52px;
}

body.theme-new-year .drawer-logo img {
    height: 38px;
}

@media (max-width: 900px) {
    body.theme-new-year .site-header .logo img {
        height: 48px;
        max-width: calc(100vw - 100px);
        width: auto;
    }
    body.theme-new-year .site-header.scrolled .logo img {
        height: 40px;
    }
}

/* 2. Шапка сайта (Landing) — геометрия 1-в-1 с оригиналом, темный красно-зеленый прозрачный градиент */
body.theme-new-year .site-header.is-landing {
    background: linear-gradient(
        135deg, 
        rgba(5, 24, 15, 0.42) 0%, 
        rgba(10, 10, 10, 0.38) 50%, 
        rgba(32, 6, 11, 0.42) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
    transition: padding 0.5s cubic-bezier(0.77, 0, 0.175, 1), 
                background 0.4s ease, 
                border-color 0.4s ease, 
                box-shadow 0.4s ease,
                backdrop-filter 0.4s ease;
}

/* При скролле (is-landing.scrolled) — глубокий, бархатный полупрозрачный градиент */
body.theme-new-year .site-header.is-landing.scrolled {
    background: linear-gradient(
        135deg, 
        rgba(6, 26, 17, 0.84) 0%, 
        rgba(10, 10, 10, 0.90) 50%, 
        rgba(38, 7, 13, 0.84) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                0 0 30px rgba(212, 175, 55, 0.08);
}

/* 3. Шапка на внутренних страницах (is-inner) — темный полупрозрачный красно-зеленый градиент */
body.theme-new-year .site-header.is-inner {
    background: linear-gradient(
        135deg, 
        rgba(6, 26, 17, 0.84) 0%, 
        rgba(10, 10, 10, 0.90) 50%, 
        rgba(38, 7, 13, 0.84) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* 4. Новогодний бейдж в Hero-блоке главной страницы */
body.theme-new-year .ny-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 20px;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FFF2C6;
    font-weight: 500;
    animation: ny-fade-down 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-new-year .ny-hero-badge .ny-badge-sparkle {
    font-size: 0.95rem;
    display: inline-block;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
    animation: ny-twinkle 2.8s ease-in-out infinite alternate;
}

/* 4.0 Праздничный новогодний фон главного экрана с пряником */
body.theme-new-year .hero-bg {
    background-image: url('hero.webp');
    opacity: 0.72;
}

/* 4.1 Новогодняя шапочка Санты на букве «П» в главном заголовке */
body.theme-new-year .ny-hat-letter {
    position: relative;
    display: inline-block;
}

body.theme-new-year .ny-hat-letter::before {
    content: '';
    position: absolute;
    top: -0.28em;
    left: 0.12em;
    width: 0.77em;
    height: 0.77em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse cx='15' cy='22' rx='10' ry='2.5' fill='rgba(0,0,0,0.35)'/%3E%3Cpath d='M5 21 Q 12 4 27 3 Q 27 13 21 21 Z' fill='%23D32F2F' stroke='%239A0007' stroke-width='1'/%3E%3Crect x='4' y='18.5' width='20' height='6' rx='3' fill='%23FFFFFF'/%3E%3Ccircle cx='27' cy='4' r='4' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    transform-origin: 25% 85%;
    transform: rotate(22deg);
}

/* 5. Праздничное золотисто-рубиновое свечение карточек при ховере */
body.theme-new-year .listing-card:hover,
body.theme-new-year .grid-item:hover,
body.theme-new-year .catalog-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 
                0 0 24px rgba(212, 175, 55, 0.22), 
                0 0 45px rgba(211, 47, 47, 0.1);
}

/* 6. Карточки цен */
body.theme-new-year .price-card__accent {
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.5) 25%, 
        rgba(220, 38, 38, 0.6) 50%, 
        rgba(212, 175, 55, 0.5) 75%, 
        transparent 100%
    );
}

body.theme-new-year .price-card:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.15);
}

/* 7. Логотип в подвале сайта (Footer) без белой подложки */
body.theme-new-year .site-footer .footer-logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)) 
            drop-shadow(0 0 16px rgba(212, 175, 55, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

body.theme-new-year .site-footer .footer-logo:hover {
    transform: scale(1.02);
    border: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8)) 
            drop-shadow(0 0 24px rgba(212, 175, 55, 0.6));
}

body.theme-new-year .site-footer .footer-logo img {
    height: 36px;
    display: block;
}

/* 8. Праздничное новогоднее оформление онлайн-чата */
body.theme-new-year .chat-trigger-btn {
    background: linear-gradient(135deg, #092416 0%, #151515 50%, #2b0810 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(212, 175, 55, 0.28), 
                0 0 35px rgba(211, 47, 47, 0.15);
}

body.theme-new-year .chat-trigger-btn:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 
                0 0 28px rgba(212, 175, 55, 0.45), 
                0 0 45px rgba(211, 47, 47, 0.25);
    border-color: rgba(212, 175, 55, 0.7);
}

/* Новогодняя мини-шапочка Санты на иконке чата */
body.theme-new-year .chat-trigger-btn:not(.is-active) .icon-container::before {
    content: '';
    position: absolute;
    top: -11px;
    left: 5px;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse cx='15' cy='22' rx='10' ry='2.5' fill='rgba(0,0,0,0.3)'/%3E%3Cpath d='M5 21 Q 12 4 27 3 Q 27 13 21 21 Z' fill='%23D32F2F' stroke='%239A0007' stroke-width='1'/%3E%3Crect x='4' y='18.5' width='20' height='6' rx='3' fill='%23FFFFFF'/%3E%3Ccircle cx='27' cy='4' r='4' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    transform: rotate(-6deg);
}

/* Праздничная снежинка рядом с текстом «Чат с нами» */
body.theme-new-year .chat-trigger-btn .btn-label::after {
    content: ' ❄️';
    font-size: 13px;
    margin-left: 3px;
    display: inline-block;
}

/* Окно чата */
body.theme-new-year .chat-main-window {
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 
                0 0 35px rgba(212, 175, 55, 0.15), 
                0 0 55px rgba(211, 47, 47, 0.08);
}

/* Шапка окна чата с красно-зеленым темным градиентом */
body.theme-new-year .chat-top-bar {
    background: linear-gradient(
        135deg, 
        rgba(6, 28, 17, 0.96) 0%, 
        rgba(15, 15, 15, 0.98) 50%, 
        rgba(38, 7, 13, 0.96) 100%
    );
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
    position: relative;
}

body.theme-new-year .chat-top-bar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.4) 20%, 
        rgba(220, 38, 38, 0.6) 50%, 
        rgba(212, 175, 55, 0.4) 80%, 
        transparent 100%
    );
    pointer-events: none;
}

body.theme-new-year .chat-top-bar h4::before {
    content: '❄️ ';
    font-size: 15px;
    margin-right: 2px;
}

/* График работы в чате */
body.theme-new-year .chat-schedule-bar.is-working {
    background: linear-gradient(135deg, rgba(16, 75, 40, 0.25) 0%, rgba(15, 15, 15, 0.95) 100%);
    border-bottom-color: rgba(34, 197, 94, 0.3);
}

/* Приветственное сообщение чата */
body.theme-new-year .chat-welcome {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(20, 16, 16, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* Сообщения клиента (благородный хвойный бархат) */
body.theme-new-year .message.client .message-bubble {
    background: linear-gradient(135deg, #1b452f 0%, #133323 100%);
    color: #f9f9f9;
    border: 1px solid rgba(76, 175, 80, 0.35);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Сообщения мастера/оператора */
body.theme-new-year .message.admin .message-bubble {
    background: #1c1c1c;
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Поле ввода сообщения в чате */
body.theme-new-year .chat-input-area {
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    background: #111;
}

body.theme-new-year .chat-input-area button {
    color: var(--accent-gold);
}

body.theme-new-year .chat-input-area button:hover:not(:disabled) {
    color: #FFE082;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

/* 9. Анимации */
@keyframes ny-twinkle {
    0% { transform: scale(0.92) rotate(-4deg); opacity: 0.85; }
    50% { transform: scale(1.1) rotate(6deg); opacity: 1; }
    100% { transform: scale(0.92) rotate(-4deg); opacity: 0.85; }
}

@keyframes ny-fade-down {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}
