/* ==========================================================================
   ARTNONSTOP_CIRCUS — USER.CSS
   ========================================================================== */

/* ---------- ШИРИНА 1440px ---------- */
body.artnonstop-circus .container-header,
body.artnonstop-circus .site-grid,
body.artnonstop-circus .c-anchors,
body.artnonstop-circus .container-component {
    width: 100% !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    box-sizing: border-box !important;
}

/* ---------- ШАПКА ---------- */
body.artnonstop-circus .container-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}
body.artnonstop-circus .container-header > .grid-child {
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ---------- КОНТЕНТ ---------- */
body.artnonstop-circus .site-grid { display: block !important; }
body.artnonstop-circus .container-component {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ---------- КНОПКА «ОСТАВИТЬ ЗАЯВКУ» ---------- */
body.artnonstop-circus .an-top-b-wrapper {
    text-align: center !important;
    margin: 0 auto !important;
    padding: 8px 28px !important;
}
body.artnonstop-circus .an-top-b-toggle {
    padding: 10px 24px !important;
    font-size: 10px !important;
}


/* ==========================================================================
   ПАНЕЛЬ «ОСТАВИТЬ ЗАЯВКУ» — ВЫЕЗЖАЕТ СПРАВА
   ========================================================================== */

body.artnonstop-circus .an-top-b {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 420px !important;
    max-width: 92vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(180deg, #15192a 0%, #0a0e1a 100%) !important;
    border-left: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 0 !important;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6) !important;
    z-index: 2000 !important;
    opacity: 0 !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s, opacity 0.3s !important;
    overflow-y: auto !important;
}
body.artnonstop-circus .an-top-b.is-open {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Крестик закрытия */
body.artnonstop-circus .an-top-b-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(21, 25, 42, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 50% !important;
    color: #f0d060 !important;
    font-size: 18px !important;
    z-index: 2100 !important;
    cursor: pointer !important;
}
body.artnonstop-circus .an-top-b-close:hover {
    background: linear-gradient(135deg, #d4af37, #ff6b35) !important;
    color: #0a0e1a !important;
}

/* Внутренний модуль */
body.artnonstop-circus .mod-circus-registration {
    padding: 24px 22px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    min-height: 100vh !important;
}

/* Шапка модуля */
body.artnonstop-circus .mod-circus-registration .circus-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 0 18px 0 !important;
    padding-right: 40px !important;
    text-align: left !important;
}
body.artnonstop-circus .mod-circus-registration .circus-badge {
    font-size: 10px !important;
    padding: 4px 12px !important;
    align-self: flex-start !important;
}
body.artnonstop-circus .mod-circus-registration .circus-desc {
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: rgba(255,255,255,0.65) !important;
}

/* РЯД: вкладки СВЕРХУ, форма ПОД ними */
body.artnonstop-circus .mod-circus-registration .circus-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    align-items: stretch !important;
}

/* Вкладки — в один ряд, на всю ширину */
body.artnonstop-circus .mod-circus-registration .circus-tabs {
    display: flex !important;
    gap: 6px !important;
    width: 100% !important;
    order: 1 !important;
}
body.artnonstop-circus .mod-circus-registration .circus-tab {
    flex: 1 !important;
    padding: 10px 12px !important;
    font-size: 11px !important;
    height: 40px !important;
}

/* Форма — под вкладками */
body.artnonstop-circus .mod-circus-registration .circus-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    order: 2 !important;
}

/* ВАЖНО: .circus-fields БЕЗ !important — чтобы JS управлял видимостью! */
body.artnonstop-circus .mod-circus-registration .circus-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
body.artnonstop-circus .mod-circus-registration .circus-fields input {
    width: 100% !important;
    height: 40px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
}

/* Действия */
body.artnonstop-circus .mod-circus-registration .circus-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
}
body.artnonstop-circus .mod-circus-registration .circus-consent {
    font-size: 11px !important;
    line-height: 1.4 !important;
}
body.artnonstop-circus .mod-circus-registration .circus-actions button {
    width: 100% !important;
    height: 44px !important;
    font-size: 12px !important;
}
body.artnonstop-circus .mod-circus-registration .circus-message {
    padding: 6px 10px !important;
    font-size: 12px !important;
    text-align: center !important;
    width: 100% !important;
    margin-top: 8px !important;
}

/* Мобильная */
@media (max-width: 992px) {
    body.artnonstop-circus .an-top-b {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

/* ==========================================================================
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 1999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

/* Показывается, когда панель открыта */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Если overlay лежит ВНЕ .an-layout — общий случай для body.sidebar-open */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Панель — выше затемнения */
body.artnonstop-circus .an-top-b {
    z-index: 2000 !important;
}

/* На всякий случай — оверлей выше контента, но ниже панели */
    z-index: 1999 !important;
}

/* ==========================================================================
   КНОПКА «НАВЕРХ» — СПРАВА СНИЗУ
   ========================================================================== */

body.artnonstop-circus #back-top,
body.artnonstop-circus .back-to-top-link {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    left: auto !important;
    top: auto !important;
    z-index: 9999 !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #d4af37 0%, #ff6b35 100%) !important;
    color: #0a0e1a !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45), 0 0 40px rgba(255, 107, 53, 0.25) !important;
    cursor: pointer !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
    font-size: 20px !important;
    text-decoration: none !important;
}

body.artnonstop-circus #back-top.visible,
body.artnonstop-circus .back-to-top-link.visible,
body.artnonstop-circus #back-top.show,
body.artnonstop-circus .back-to-top-link.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

body.artnonstop-circus #back-top:hover,
body.artnonstop-circus .back-to-top-link:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 32px rgba(255, 107, 53, 0.6), 0 0 40px rgba(212, 175, 55, 0.7) !important;
}

body.artnonstop-circus #back-top .icon-arrow-up,
body.artnonstop-circus .back-to-top-link .icon-arrow-up,
body.artnonstop-circus #back-top .icon-fw,
body.artnonstop-circus .back-to-top-link .icon-fw {
    color: #0a0e1a !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

/* Мобильная */
@media (max-width: 992px) {
    body.artnonstop-circus #back-top,
    body.artnonstop-circus .back-to-top-link {
        right: 16px !important;
        bottom: 16px !important;
        width: 44px !important;
        height: 44px !important;
    }
}

/* ==========================================================================
   КНОПКА «НАВЕРХ» — ГАРАНТИРОВАННО ВИДИМАЯ
   ========================================================================== */

html body.artnonstop-circus a#back-top,
html body.artnonstop-circus a#back-top.back-to-top-link,
html body.artnonstop-circus a#back-top.visible {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    left: auto !important;
    top: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    z-index: 99999 !important;
    background: linear-gradient(135deg, #d4af37 0%, #ff6b35 100%) !important;
    color: #0a0e1a !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.5), 0 0 40px rgba(255, 107, 53, 0.3) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    transition: transform 0.25s, box-shadow 0.25s !important;
}

html body.artnonstop-circus a#back-top:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 32px rgba(255, 107, 53, 0.6), 0 0 40px rgba(212, 175, 55, 0.7) !important;
}

/* Внутренние иконки */
html body.artnonstop-circus a#back-top span,
html body.artnonstop-circus a#back-top i,
html body.artnonstop-circus a#back-top .icon-arrow-up,
html body.artnonstop-circus a#back-top .icon-fw {
    color: #0a0e1a !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 992px) {
    html body.artnonstop-circus a#back-top {
        right: 16px !important;
        bottom: 16px !important;
        width: 46px !important;
        height: 46px !important;
    }
}

/* Скрытие кнопки «Наверх» когда НЕ .visible */
html body.artnonstop-circus a#back-top:not(.visible),
html body.artnonstop-circus a#back-top.back-to-top-link:not(.visible) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
}

/* Плавный переход */
html body.artnonstop-circus a#back-top {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease !important;
}

/* ==========================================================================
   ЭФФЕКТЫ HERO-КАРТИНКИ — ПАРАЛЛАКС + СВЕЧЕНИЕ + ПУЛЬСАЦИЯ
   ========================================================================== */

/* Плавное покачивание картинки */
@keyframes cHeroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.01); }
}

/* Пульсация свечения */
@keyframes cHeroGlowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.08);
    }
}

/* Кольцо — вращение + пульсация */
@keyframes cHeroRingPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.06);
        opacity: 0.15;
    }
}

/* Внутреннее мерцание картинки */
@keyframes cHeroShimmer {
    0%, 100% { filter: contrast(1.05) saturate(1.05) brightness(1); }
    50% { filter: contrast(1.1) saturate(1.15) brightness(1.08); }
}

/* Фрейм — плавающее движение */
body.artnonstop-circus .c-hero__frame {
    animation: cHeroFloat 6s ease-in-out infinite !important;
    will-change: transform !important;
}

/* Свечение позади — пульсирует */
body.artnonstop-circus .c-hero__glow {
    animation: cHeroGlowPulse 4s ease-in-out infinite !important;
    will-change: opacity, transform !important;
}

/* Кольцо — пульсирует */
body.artnonstop-circus .c-hero__ring {
    animation: cHeroRingPulse 3s ease-in-out infinite !important;
    will-change: transform, opacity !important;
}

/* Картинка — лёгкое мерцание + hover-увеличение */
body.artnonstop-circus .c-hero__image {
    animation: cHeroShimmer 8s ease-in-out infinite !important;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) !important;
    will-change: transform, filter !important;
}
body.artnonstop-circus .c-hero__frame:hover .c-hero__image {
    transform: scale(1.08) !important;
    animation-play-state: paused !important;
}

/* Внешнее свечение вокруг фрейма при hover */
body.artnonstop-circus .c-hero__frame:hover {
    box-shadow:
        0 0 80px rgba(212, 175, 55, 0.6),
        0 0 140px rgba(255, 107, 53, 0.4),
        inset 0 0 80px rgba(212, 175, 55, 0.15) !important;
    transition: box-shadow 0.5s ease !important;
}

/* Уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    body.artnonstop-circus .c-hero__frame,
    body.artnonstop-circus .c-hero__glow,
    body.artnonstop-circus .c-hero__ring,
    body.artnonstop-circus .c-hero__image {
        animation: none !important;
    }
}

/* ==========================================================================
   БОКОВОЕ МЕНЮ «ШОУ ЦИРКА» — АКТИВНЫЙ ПУНКТ
   ========================================================================== */

/* Общий вид пункта */
body.artnonstop-circus .an-sidebar-services .mod-articles-link {
    position: relative !important;
    transition: color 0.25s, padding-left 0.25s, background 0.25s, border-color 0.25s !important;
}

/* Hover — золотая подсветка */
body.artnonstop-circus .an-sidebar-services .mod-articles-link:hover {
    color: #f0d060 !important;
    background: rgba(212, 175, 55, 0.08) !important;
    padding-left: 28px !important;
}

/* Активный пункт */
body.artnonstop-circus .an-sidebar-services .mod-articles-item.active .mod-articles-link,
body.artnonstop-circus .an-sidebar-services .mod-articles-link.active,
body.artnonstop-circus .an-sidebar-services li.active .mod-articles-link,
body.artnonstop-circus .an-sidebar-services .mod-articles-link[aria-current="page"] {
    color: #f0d060 !important;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), rgba(255, 107, 53, 0.06)) !important;
    border-left: 3px solid #d4af37 !important;
    padding-left: 28px !important;
    font-weight: 700 !important;
}

/* Дополнительная золотая полоска слева для активного */
body.artnonstop-circus .an-sidebar-services .mod-articles-item.active .mod-articles-link::before,
body.artnonstop-circus .an-sidebar-services .mod-articles-link.active::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 3px !important;
    background: linear-gradient(180deg, #f0d060, #ff6b35) !important;
    box-shadow: 0 0 10px rgba(240, 208, 96, 0.6) !important;
}

/* ==========================================================================
   АКТИВНЫЙ ПУНКТ — БЕЗ ПОЛОСКИ, ТОЛЬКО ПОДСВЕТКА
   ========================================================================== */

/* Убираем псевдоэлемент-полоску */
body.artnonstop-circus .an-sidebar-services .mod-articles-item.active .mod-articles-link::before,
body.artnonstop-circus .an-sidebar-services .mod-articles-link.active::before {
    content: none !important;
    display: none !important;
}

/* Активный пункт — только фон + цвет + мягкая подсветка */
body.artnonstop-circus .an-sidebar-services .mod-articles-item.active .mod-articles-link,
body.artnonstop-circus .an-sidebar-services .mod-articles-link.active,
body.artnonstop-circus .an-sidebar-services li.active .mod-articles-link {
    color: #f0d060 !important;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.05)) !important;
    border-left: none !important;
    padding-left: 22px !important;          /* как у обычного */
    font-weight: 700 !important;
    box-shadow:
        inset 0 0 20px rgba(212, 175, 55, 0.08),
        0 0 14px rgba(212, 175, 55, 0.12) !important;
    text-shadow: 0 0 12px rgba(240, 208, 96, 0.4) !important;
}

/* Hover — как у обычного */
body.artnonstop-circus .an-sidebar-services .mod-articles-link:hover {
    color: #f0d060 !important;
    background: rgba(212, 175, 55, 0.08) !important;
    padding-left: 22px !important;
    border-left: none !important;
    text-shadow: none !important;
}

/* ==========================================================================
   БОКОВОЕ МЕНЮ «ШОУ ЦИРКА» — ПРАВИЛЬНОЕ ВЫДЕЛЕНИЕ
   ========================================================================== */

/* --- ОБЫЧНЫЕ ПУНКТЫ (не активные) — БЕЗ ПОЛОСКИ, только hover-подсветка --- */
body.artnonstop-circus .an-sidebar-services .mod-articles-link {
    position: relative !important;
    border-left: none !important;               /* никаких полосок */
    padding-left: 22px !important;
    color: #e6d9ba !important;
    background: transparent !important;
    transition: color 0.25s, background 0.25s !important;
}

body.artnonstop-circus .an-sidebar-services .mod-articles-link:hover {
    color: #f0d060 !important;
    background: rgba(212, 175, 55, 0.08) !important;    /* мягкая подсветка */
    padding-left: 22px !important;
    border-left: none !important;
}

/* --- АКТИВНЫЙ ПУНКТ — ЗОЛОТАЯ ПОЛОСКА СЛЕВА + ПОДСВЕТКА --- */
body.artnonstop-circus .an-sidebar-services .mod-articles-item.active .mod-articles-link,
body.artnonstop-circus .an-sidebar-services .mod-articles-link.active,
body.artnonstop-circus .an-sidebar-services li.active .mod-articles-link,
body.artnonstop-circus .an-sidebar-services .mod-articles-link[aria-current="page"] {
    color: #f0d060 !important;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 53, 0.05)) !important;
    border-left: 3px solid #d4af37 !important;          /* полоска ТОЛЬКО здесь */
    padding-left: 25px !important;
    font-weight: 700 !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.15) !important;
    text-shadow: 0 0 12px rgba(240, 208, 96, 0.4) !important;
}

/* Псевдоэлемент-полоска — только для активного */
body.artnonstop-circus .an-sidebar-services .mod-articles-item.active .mod-articles-link::before,
body.artnonstop-circus .an-sidebar-services .mod-articles-link.active::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 3px !important;
    background: linear-gradient(180deg, #f0d060, #ff6b35) !important;
    box-shadow: 0 0 10px rgba(240, 208, 96, 0.7) !important;
}

/* Убираем полоску у НЕ активных */
body.artnonstop-circus .an-sidebar-services .mod-articles-link:not(.active)::before {
    content: none !important;
    display: none !important;
}
