/* ==========================================================================
   СТРАНИЦА "ОБРАБОТКА ДАННЫХ" (PERSONAL DATA ONLY)
   ========================================================================== */

/* --- Центрированный Header --- */
.pw-page-header {
    position: relative;
    min-height: 250px;
    background-color: var(--pw-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-page-header .pw-hero-bg-zoom {
    position: absolute;
    inset: -15px;
    background: url('header.jpg') center center / cover no-repeat;
    animation: heroBreathe 18s ease-in-out infinite alternate;
    z-index: 1;
}

.pw-page-header .pw-hero-sword-flare {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2;
}

.pw-page-header .pw-hero-cinematic-overlay {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 50% 50%, rgba(11, 12, 16, 0.4) 0%, rgba(11, 12, 16, 0.85) 75%, var(--pw-bg-dark) 100%),
            linear-gradient(to bottom, rgba(11, 12, 16, 0.3) 0%, transparent 40%, rgba(13, 14, 18, 0.98) 100%);
    z-index: 3;
    pointer-events: none;
}

.pw-breadcrumb {
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    list-style: none;
    padding-left: 0 !important;
}

.pw-breadcrumb .breadcrumb-item a {
    color: var(--pw-gold);
    text-decoration: none;
}

.pw-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.45);
}

.pw-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(229, 193, 88, 0.35);
    content: "•";
    padding: 0 8px;
}

/* --- Плавающий сайдбар быстрого доступа (Справа) --- */
.pw-floating-quick {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.pw-quick-bubble {
    pointer-events: auto;
    position: relative;
    border-radius: 8px;
    background: rgba(11, 12, 16, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 193, 88, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 12px rgba(229, 193, 88, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pw-quick-bubble.float-1 { animation: floatBob 4.2s ease-in-out infinite alternate; }
.pw-quick-bubble.float-2 { animation: floatBob 4.8s ease-in-out infinite alternate 0.6s; }
.pw-quick-bubble.float-3 { animation: floatBob 4.4s ease-in-out infinite alternate 1.2s; }
.pw-quick-bubble.float-4 { animation: floatBob 5s ease-in-out infinite alternate 1.8s; }

.pw-quick-bubble:hover {
    transform: scale(1.08) translateX(-6px) !important;
    border-color: var(--pw-gold-light);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9), 0 0 20px rgba(229, 193, 88, 0.45);
}

.pw-quick-bubble-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
    text-decoration: none;
    color: #f1f1f1;
}

.pw-quick-icon {
    color: var(--pw-gold);
    font-size: 1rem;
    filter: drop-shadow(0 0 4px rgba(229, 193, 88, 0.5));
}

.pw-quick-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}

.pw-quick-bubble-link.is-donate .pw-quick-label { color: var(--pw-gold-light); }
.pw-quick-bubble-link.is-donate .pw-quick-icon { color: #ffd700; animation: coinPulse 2.5s ease-in-out infinite alternate; }

@media (max-width: 991px) {
    .pw-floating-quick { display: none; }
}

/* ==========================================================================
   ОСНОВНАЯ КАРТОЧКА
   ========================================================================== */
.pw-pdata-card {
    background:
            radial-gradient(circle at 50% 0%, rgba(229, 193, 88, 0.05) 0%, transparent 60%),
            linear-gradient(180deg, #11131a 0%, #0c0d12 100%);
    border-radius: 12px;
    border: 1px solid var(--pw-border-soft);
    box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.8),
            inset 0 0 0 1px rgba(255, 255, 255, 0.03),
            inset 0 0 40px rgba(0, 0, 0, 0.6);
}

/* Угловые металлические скобы */
.pw-pdata-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--pw-gold);
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pw-pdata-card:hover .pw-pdata-corner { opacity: 1; }
.corner-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.corner-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.corner-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

/* ==========================================================================
   АНИМИРОВАННЫЙ МАГИЧЕСКИЙ ЗАМОК (LOCK SEAL)
   ========================================================================== */
.pw-pdata-seal {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 600px;
}

.pw-lock-seal-wrapper {
    position: relative;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lockFloat 4s ease-in-out infinite alternate;
}

/* Пульсирующая магическая аура позади замка */
.pw-lock-halo {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, rgba(229, 193, 88, 0.08) 50%, transparent 75%);
    filter: blur(4px);
    animation: haloPulse 3s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Вращающееся золотое кольцо-орнамент */
.pw-lock-ring {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px dashed rgba(229, 193, 88, 0.45);
    animation: ringRotate 20s linear infinite;
    pointer-events: none;
}

/* Центральная иконка замка */
.pw-lock-core-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffeaa7 30%, var(--pw-gold) 70%, var(--pw-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(229, 193, 88, 0.6)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
    z-index: 2;
    transition: transform 0.3s ease;
}

.pw-lock-seal-wrapper:hover .pw-lock-core-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.9));
}

/* Мерцающие магические искры */
.pw-lock-sparkle {
    position: absolute;
    color: var(--pw-gold-light);
    font-size: 0.65rem;
    pointer-events: none;
    opacity: 0;
}

.pw-lock-sparkle.s-1 {
    top: 6px;
    right: 8px;
    animation: sparkleGlint 3.2s ease-in-out infinite;
}

.pw-lock-sparkle.s-2 {
    bottom: 8px;
    left: 8px;
    animation: sparkleGlint 3.2s ease-in-out infinite 1.6s;
}

/* --- Ключевые кадры анимаций --- */
@keyframes lockFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(-1deg); }
}

@keyframes haloPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.18); opacity: 0.9; }
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes sparkleGlint {
    0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(45deg); filter: drop-shadow(0 0 6px #fff); }
}

/* Выделенный инфоблок */
.pw-pdata-callout {
    background: rgba(229, 193, 88, 0.04);
    border: 1px solid rgba(229, 193, 88, 0.2);
    border-left: 3px solid var(--pw-gold);
}

/* Блоки разделов */
.pw-pdata-block {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pw-pdata-block:last-of-type {
    border-bottom: none;
}

/* Бейджи номеров разделов */
.pw-pdata-badge {
    background: rgba(229, 193, 88, 0.12);
    border: 1px solid rgba(229, 193, 88, 0.35);
    color: var(--pw-gold-light);
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pw-pdata-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff7d6;
}

/* Списки */
.pw-pdata-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.pw-pdata-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}

.pw-pdata-list li:last-child {
    margin-bottom: 0;
}

.pw-pdata-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--pw-gold);
    font-size: 0.72rem;
    opacity: 0.75;
}

.pw-pdata-list li strong {
    color: var(--pw-gold-light);
}