/* ==========================================================================
   КОРНЕВЫЕ ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ
   ========================================================================== */
:root {
    /* Цветовая палитра BookFandom */
    --bf-primary: #4a6fa5;
    --bf-primary-dark: #3a5a8c;
    --bf-secondary: #ff7e5f;
    --bf-secondary-dark: #e66d4f;
    --bf-dark: #2c3e50;
    --bf-light: #f8f9fa;
    --bf-gray-light: #eaeaea;
    --bf-gray: #dee2e6;
    --bf-text: #333;
    --bf-white: #ffffff;
    --bf-success: #28a745;
    --bf-warning: #ffc107;
    --bf-info: #17a2b8;
    --bf-danger: #dc3545;
    
    /* Тени BookFandom */
    --bf-shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --bf-shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --bf-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --bf-shadow-xl: 0 12px 30px rgba(0, 0, 0, 0.15);
    
    /* Анимации BookFandom */
    --bf-transition-fast: 0.2s ease;
    --bf-transition-normal: 0.3s ease;
    --bf-transition-slow: 0.5s ease;
    
    /* Скругления BookFandom */
    --bf-radius-sm: 4px;
    --bf-radius-md: 8px;
    --bf-radius-lg: 10px;
    --bf-radius-xl: 12px;
    --bf-radius-full: 50%;
}

/* ==========================================================================
   АНИМАЦИИ BOOKFANDOM
   ========================================================================== */

@keyframes bfFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bfSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bfPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(74, 111, 165, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(74, 111, 165, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(74, 111, 165, 0);
    }
}

@keyframes bfFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bfShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes bfSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bfBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes bfProgress {
    0% {
        width: 0%;
        opacity: 1;
    }
    100% {
        width: 100%;
    }
}

/* ==========================================================================
   КЛАССЫ АНИМАЦИЙ
   ========================================================================== */

.bf-animate-fade-in {
    animation: bfFadeIn 0.5s ease-out;
}

.bf-animate-slide-in {
    animation: bfSlideIn 0.5s ease-out;
}

.bf-animate-pulse {
    animation: bfPulse 2s infinite;
}

.bf-animate-float {
    animation: bfFloat 3s ease-in-out infinite;
}

.bf-animate-shake {
    animation: bfShake 0.5s ease-in-out;
}

.bf-animate-spin {
    animation: bfSpin 1s linear infinite;
}

.bf-animate-bounce {
    animation: bfBounce 1s infinite;
}

.bf-animate-progress {
    animation: bfProgress 2s ease-in-out infinite;
}

/* Задержки анимаций */
.bf-delay-1 { animation-delay: 0.1s; }
.bf-delay-2 { animation-delay: 0.2s; }
.bf-delay-3 { animation-delay: 0.3s; }
.bf-delay-4 { animation-delay: 0.4s; }
.bf-delay-5 { animation-delay: 0.5s; }

/* ==========================================================================
   КОМПОНЕНТЫ С АНИМАЦИЯМИ
   ========================================================================== */

/* Карточка с эффектом наведения */
.bf-card-animated {
    border: 1px solid var(--bf-gray-light);
    border-radius: var(--bf-radius-lg);
    transition: all var(--bf-transition-normal);
    overflow: hidden;
    background: var(--bf-white);
    box-shadow: var(--bf-shadow-sm);
}

.bf-card-animated:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--bf-shadow-xl);
    border-color: var(--bf-primary);
}

/* Кнопка с эффектом пульсации */
.bf-btn-pulse {
    position: relative;
    overflow: hidden;
}

.bf-btn-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: var(--bf-radius-full);
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.bf-btn-pulse:focus::after {
    animation: bfPulse 1s;
}

/* Иконка с анимацией вращения */
.bf-icon-spin {
    display: inline-block;
    transition: transform var(--bf-transition-normal);
}

.bf-icon-spin:hover {
    animation: bfSpin 1s linear infinite;
}

/* Анимированный прогресс-бар */
.bf-progress-animated {
    height: 8px;
    border-radius: var(--bf-radius-md);
    background: linear-gradient(90deg, 
        var(--bf-primary) 0%, 
        var(--bf-secondary) 50%, 
        var(--bf-primary) 100%);
    background-size: 200% 100%;
    animation: bfProgress 2s linear infinite;
}

/* Флекс-карточки с появлением */
.bf-stagger-animate > * {
    opacity: 0;
    transform: translateY(20px);
    animation: bfFadeIn 0.5s forwards;
}

.bf-stagger-animate > *:nth-child(1) { animation-delay: 0.1s; }
.bf-stagger-animate > *:nth-child(2) { animation-delay: 0.2s; }
.bf-stagger-animate > *:nth-child(3) { animation-delay: 0.3s; }
.bf-stagger-animate > *:nth-child(4) { animation-delay: 0.4s; }
.bf-stagger-animate > *:nth-child(5) { animation-delay: 0.5s; }

/* ==========================================================================
   СПЕЦИАЛЬНЫЕ ЭФФЕКТЫ
   ========================================================================== */

/* Эффект параллакса */
.bf-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Эффект стекла (glassmorphism) */
.bf-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bf-glass-dark {
    background: rgba(44, 62, 80, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Градиентный текст */
.bf-gradient-text {
    background: linear-gradient(90deg, var(--bf-primary), var(--bf-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Свечение */
.bf-glow {
    box-shadow: 0 0 20px rgba(74, 111, 165, 0.3);
    transition: box-shadow var(--bf-transition-normal);
}

.bf-glow:hover {
    box-shadow: 0 0 30px rgba(74, 111, 165, 0.5);
}

/* Эффект неона для текста */
.bf-neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px var(--bf-primary),
        0 0 10px var(--bf-primary),
        0 0 15px var(--bf-primary),
        0 0 20px var(--bf-secondary),
        0 0 35px var(--bf-secondary),
        0 0 40px var(--bf-secondary);
    animation: bfPulse 2s infinite;
}

/* ==========================================================================
   КОМПОНЕНТЫ ИНТЕРФЕЙСА
   ========================================================================== */

/* Анимированная навигация */
.bf-nav-link-animated {
    position: relative;
    padding: 0.5rem 1rem;
    color: var(--bf-dark);
    transition: color var(--bf-transition-fast);
}

.bf-nav-link-animated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--bf-primary);
    border-radius: var(--bf-radius-sm);
    transition: all var(--bf-transition-normal);
    transform: translateX(-50%);
}

.bf-nav-link-animated:hover::after,
.bf-nav-link-animated.active::after {
    width: 80%;
}

/* Анимированные шаги */
.bf-step-animated {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.bf-step-number {
    width: 40px;
    height: 40px;
    background: var(--bf-primary);
    color: var(--bf-white);
    border-radius: var(--bf-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    animation: bfBounce 2s infinite;
}

/* Анимированный спиннер загрузки */
.bf-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bf-gray-light);
    border-top: 3px solid var(--bf-primary);
    border-radius: var(--bf-radius-full);
    animation: bfSpin 1s linear infinite;
}

.bf-spinner-sm {
    width: 30px;
    height: 30px;
    border-width: 2px;
}

.bf-spinner-lg {
    width: 70px;
    height: 70px;
    border-width: 4px;
}

/* Анимированные уведомления */
.bf-alert-animated {
    animation: bfSlideIn 0.3s ease-out;
    border-left: 4px solid var(--bf-primary);
}

.bf-alert-success {
    border-left-color: var(--bf-success);
}

.bf-alert-warning {
    border-left-color: var(--bf-warning);
}

.bf-alert-danger {
    border-left-color: var(--bf-danger);
}

/* Анимированный аккордеон */
.bf-accordion-animated .collapse {
    transition: all var(--bf-transition-normal);
}

.bf-accordion-animated .collapsing {
    transition: height var(--bf-transition-normal) ease;
}

/* ==========================================================================
   КАРТОЧКИ С АНИМАЦИЯМИ
   ========================================================================== */

/* Карточка с эффектом переворота */
.bf-flip-card {
    perspective: 1000px;
    height: 300px;
}

.bf-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.bf-flip-card:hover .bf-flip-card-inner {
    transform: rotateY(180deg);
}

.bf-flip-card-front,
.bf-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--bf-radius-lg);
    overflow: hidden;
}

.bf-flip-card-back {
    background: var(--bf-primary);
    color: var(--bf-white);
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Карточка с эффектом накопления */
.bf-card-stack {
    position: relative;
    transition: transform var(--bf-transition-normal);
}

.bf-card-stack:hover {
    transform: translateY(-10px);
}

.bf-card-stack::before,
.bf-card-stack::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bf-gray-light);
    border-radius: var(--bf-radius-lg);
    transition: transform var(--bf-transition-normal);
    z-index: -1;
}

.bf-card-stack::before {
    transform: rotate(3deg) translateY(5px);
}

.bf-card-stack::after {
    transform: rotate(-3deg) translateY(10px);
}

.bf-card-stack:hover::before {
    transform: rotate(5deg) translateY(10px);
}

.bf-card-stack:hover::after {
    transform: rotate(-5deg) translateY(20px);
}

/* ==========================================================================
   ФОРМЫ С АНИМАЦИЯМИ
   ========================================================================== */

/* Поле ввода с анимацией фокуса */
.bf-input-animated {
    border: 2px solid var(--bf-gray-light);
    border-radius: var(--bf-radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--bf-transition-normal);
    background: var(--bf-white);
}

.bf-input-animated:focus {
    border-color: var(--bf-primary);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
    transform: translateY(-2px);
}

/* Анимированный лейбл */
.bf-label-float {
    position: relative;
    margin-top: 1.5rem;
}

.bf-label-float input:focus + label,
.bf-label-float input:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--bf-primary);
    background: var(--bf-white);
    padding: 0 0.5rem;
}

/* Кнопка с эффектом загрузки */
.bf-btn-loading {
    position: relative;
    color: transparent;
}

.bf-btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--bf-white);
    border-radius: var(--bf-radius-full);
    animation: bfSpin 1s linear infinite;
}

/* ==========================================================================
   МЕДИА-ЗАПРОСЫ ДЛЯ АНИМАЦИЙ
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .bf-animate-fade-in,
    .bf-animate-slide-in,
    .bf-animate-pulse,
    .bf-animate-float,
    .bf-animate-shake,
    .bf-animate-spin,
    .bf-animate-bounce,
    .bf-animate-progress,
    .bf-card-animated,
    .bf-btn-pulse:focus::after,
    .bf-icon-spin:hover,
    .bf-progress-animated,
    .bf-stagger-animate > *,
    .bf-nav-link-animated::after,
    .bf-step-number,
    .bf-spinner,
    .bf-alert-animated,
    .bf-flip-card:hover .bf-flip-card-inner,
    .bf-card-stack,
    .bf-card-stack::before,
    .bf-card-stack::after,
    .bf-input-animated,
    .bf-btn-loading::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .bf-parallax {
        background-attachment: scroll;
    }
    
    .bf-flip-card {
        height: 250px;
    }
}

/* ==========================================================================
   УТИЛИТЫ ДЛЯ АНИМАЦИЙ
   ========================================================================== */

.bf-animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bf-animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Эффект печатной машинки */
.bf-typewriter {
    overflow: hidden;
    border-right: 3px solid var(--bf-primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--bf-primary) }
}

/* ==========================================================================
   ИСПРАВЛЕНИЯ ДЛЯ BOOTSTRAP 5
   ========================================================================== */

/* Совместимость с Bootstrap */
:root {
    --bs-primary: var(--bf-primary) !important;
    --bs-primary-rgb: 74, 111, 165 !important;
    --bs-secondary: var(--bf-secondary) !important;
    --bs-secondary-rgb: 255, 126, 95 !important;
}

/* Кастомные стили для Bootstrap компонентов */
.btn-bf-primary {
    --bs-btn-bg: var(--bf-primary);
    --bs-btn-border-color: var(--bf-primary);
    --bs-btn-hover-bg: var(--bf-primary-dark);
    --bs-btn-hover-border-color: var(--bf-primary-dark);
}

.btn-bf-secondary {
    --bs-btn-bg: var(--bf-secondary);
    --bs-btn-border-color: var(--bf-secondary);
    --bs-btn-hover-bg: var(--bf-secondary-dark);
    --bs-btn-hover-border-color: var(--bf-secondary-dark);
}

/* Анимированные алерты Bootstrap */
.alert-bf-primary {
    --bs-alert-bg: rgba(74, 111, 165, 0.1);
    --bs-alert-border-color: rgba(74, 111, 165, 0.3);
    --bs-alert-color: var(--bf-primary);
    border-left-width: 4px;
    animation: bfSlideIn 0.3s ease-out;
}

/* Анимированные баджи */
.badge-bf-animated {
    animation: bfPulse 2s infinite;
    position: relative;
    overflow: hidden;
}

/* Модальные окна с анимацией */
.modal-bf-animated .modal-content {
    animation: bfFadeIn 0.3s ease-out;
}

/* Анимированные табы */
.nav-tabs-bf .nav-link {
    transition: all var(--bf-transition-normal);
    border: none;
    border-bottom: 3px solid transparent;
}

.nav-tabs-bf .nav-link.active {
    border-bottom-color: var(--bf-primary);
    transform: translateY(-2px);
}

/* Анимированный дропдаун */
.dropdown-menu-bf {
    animation: bfFadeIn 0.2s ease-out;
    box-shadow: var(--bf-shadow-lg);
    border: none;
}

.dropdown-item-bf {
    transition: all var(--bf-transition-fast);
}

.dropdown-item-bf:hover {
    transform: translateX(5px);
    background: var(--bf-primary);
    color: var(--bf-white);
}

/* Страница авторов */
.author-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Страница для авторов */
.bf-feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(74, 111, 165, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.bf-feature-icon i {
    color: #4a6fa5;
    font-size: 2rem;
}

/* События в блоге */
.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 126, 95, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* ============================================
   СТИЛИ ДЛЯ ШАПКИ И ГЛАВНОЙ СТРАНИЦЫ
   ============================================ */

/* 1.1 Стили для логотипа и названия в шапке */
.navbar-brand {
    color: var(--bf-primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 50px;
    font-family: 'Arial Narrow', 'Roboto Condensed', sans-serif;
    font-stretch: condensed;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 0.9;
    font-size: 2.2rem !important;
    text-transform: uppercase;
    transform: scaleX(0.85);
    transform-origin: left center;
    color: var(--bf-primary) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    height: 40px;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    margin-right: 8px;
    margin-bottom: 3px;
    color: var(--bf-secondary);
    text-shadow: 0 2px 5px rgba(55, 126, 95, 0.3);
}

/* 1.2 Фон для первого блока главной */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(74, 111, 165, 0.05) 0%, 
        rgba(25, 126, 95, 0.05) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 40px;
    padding-bottom: 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="%234a6fa5" opacity="0.03"/></svg>');
    background-size: cover;
    z-index: -1;
}

.hero-section h1.display-4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* 1.3 Белая карточка на главной - улучшаем видимость */
.hero-section .bg-white.rounded {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 111, 165, 0.1) !important;
    box-shadow: var(--bf-shadow-xl);
}

/* 1.4 Эффект для карточек кампаний */
.campaign-card {
    border-radius: var(--bf-radius-lg);
    overflow: hidden;
    transition: all var(--bf-transition-normal);
    border: 1px solid var(--bf-gray-light);
    background: white;
}

.campaign-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--bf-shadow-xl);
    border-color: var(--bf-primary);
}

.campaign-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.badge-custom {
    background: var(--bf-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Исправление отступов и отображения */
.container.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Исправление автора в карточках */
.card-text.small.text-muted {
    font-size: 0.875rem;
    color: #6c757d !important;
}

/* Исправление описания книги */
.book-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.book-description p {
    margin-bottom: 1rem;
}

/* Исправление предпросмотра книги */
.book-preview-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* Стили для читалки */
.book-page {
    min-height: 500px;
}

.book-page-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Исправление шапки */

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 1.5rem !important;
}

/* Карточки книг на главной */
.book-card .card-title {
    font-size: 1rem;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.book-card .card-text {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Страница архива событий */
.event-card {
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.event-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* ==========================================================================
   СТРАНИЦА "ДЛЯ АВТОРОВ" - Исправления для WordPress структуры
   ========================================================================== */

/* Основные стили для контейнера страницы авторов */
.site-content .container.py-5 {
    padding: 80px 0 !important;
    background: linear-gradient(135deg, 
        rgba(74, 111, 165, 0.05) 0%, 
        rgba(255, 126, 95, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.site-content .container.py-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="%234a6fa5" opacity="0.03"/></svg>');
    background-size: cover;
    z-index: 0;
}

.site-content .container.py-5 > .row {
    position: relative;
    z-index: 1;
}

/* Заголовок страницы */
.site-content h1.display-4 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--bf-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.site-content .lead.text-center {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    margin-bottom: 3rem !important;
}

/* Основная карточка */
.site-content .card.shadow-lg {
    border: none !important;
    border-radius: var(--bf-radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--bf-shadow-xl) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    animation: bfFadeIn 0.6s ease-out;
}

.site-content .card-body {
    padding: 3rem !important;
}

/* Текстовая часть в карточке */
.site-content .card .col-lg-6:first-child h3 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--bf-dark);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

/* Список с галочками */
.site-content .card ul.list-unstyled {
    padding-left: 0;
    margin-bottom: 2rem;
}

.site-content .card ul.list-unstyled li {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    color: #555;
}

.site-content .card ul.list-unstyled li i {
    color: var(--bf-success);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.site-content .card ul.list-unstyled li strong {
    color: var(--bf-dark);
    font-weight: 600;
}

/* Блок с формой */
.site-content .card .bg-light {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 111, 165, 0.15) !important;
    border-radius: var(--bf-radius-lg) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem !important;
    transition: all var(--bf-transition-normal);
}

.site-content .card .bg-light:hover {
    border-color: var(--bf-primary) !important;
    box-shadow: 0 8px 25px rgba(74, 111, 165, 0.15);
}

.site-content .card .bg-light h5 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--bf-dark);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* Стили для формы (если шорткод не работает) */
.site-content .wp-register-form,
.site-content form {
    margin-top: 1rem;
}

.site-content .wp-register-form .form-control,
.site-content form .form-control {
    border: 2px solid var(--bf-gray);
    border-radius: var(--bf-radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all var(--bf-transition-normal);
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 1rem;
}

.site-content .wp-register-form .form-control:focus,
.site-content form .form-control:focus {
    border-color: var(--bf-primary);
    box-shadow: 0 0 0 0.25rem rgba(74, 111, 165, 0.25);
    transform: translateY(-1px);
}

/* Блок "Как это работает" */
.site-content .mb-5:last-child {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(74, 111, 165, 0.1);
}

.site-content .mb-5:last-child h2 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--bf-dark);
    margin-bottom: 3rem;
}

/* Иконки фич */
.site-content .feature-icon {
    background-color: rgba(74, 111, 165, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all var(--bf-transition-normal);
}

.site-content .feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(74, 111, 165, 0.2);
}

.site-content .feature-icon i {
    color: var(--bf-primary);
    font-size: 2rem;
}

/* Заголовки фич */
.site-content .text-center h4 {
    font-family: 'Merriweather', serif;
    font-weight: 600;
    color: var(--bf-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.site-content .text-center p.text-muted {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 992px) {
    .site-content .container.py-5 {
        padding: 60px 0 !important;
    }
    
    .site-content .card-body {
        padding: 2rem !important;
    }
    
    .site-content .card .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    .site-content .mb-5:last-child {
        margin-top: 3rem;
        padding-top: 2rem;
    }
}

@media (max-width: 768px) {
    .site-content .container.py-5 {
        padding: 40px 0 !important;
    }
    
    .site-content h1.display-4 {
        font-size: 2rem;
    }
    
    .site-content .lead.text-center {
        font-size: 1.1rem;
    }
    
    .site-content .card .bg-light {
        padding: 1.5rem !important;
    }
    
    .site-content .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .site-content .feature-icon i {
        font-size: 1.75rem;
    }
}

/* Анимация для появления */
.site-content .card {
    animation: bfSlideIn 0.6s ease-out;
}

.site-content .mb-5:last-child .row > div {
    animation: bfFadeIn 0.5s ease-out;
}

.site-content .mb-5:last-child .row > div:nth-child(1) { animation-delay: 0.1s; }
.site-content .mb-5:last-child .row > div:nth-child(2) { animation-delay: 0.2s; }
.site-content .mb-5:last-child .row > div:nth-child(3) { animation-delay: 0.3s; }

/* Стили для метабоксов кампании */
.campaign-book-metabox {
    padding: 10px;
}

.campaign-book-metabox .description {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.campaign-book-metabox select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.campaign-book-metabox .bg-light {
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007cba;
}
