/* Custom Variables */
:root {
    --color-primary: #d4af37;
    --color-dark: #0d0d0d;
    --color-purple: #1a0a2e;
    --color-purple-light: #2d1b4e;
}

/* Base Styles */
body {
    background-color: var(--color-dark);
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-purple);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8962f;
}

/* Header Styles */
#mainHeader {
    transition: all 0.5s ease;
}

#mainHeader.scrolled {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
}

.nav-item {
    color: #9ca3af !important;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item-active {
    color: var(--color-primary) !important;
    background: rgba(212, 175, 55, 0.1) !important;
}

.btn-ghost {
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-primary);
}

/* Mobile menu button - make it more visible */
.btn-ghost.d-lg-none {
    color: var(--color-primary) !important;
    background: rgba(212, 175, 55, 0.15) !important;
    border: 2px solid var(--color-primary) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

.btn-ghost.d-lg-none:hover {
    background: rgba(212, 175, 55, 0.3) !important;
    transform: scale(1.05);
}

.btn-ghost.d-lg-none i {
    font-size: 1.75rem !important;
    color: var(--color-primary) !important;
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.object-fit-cover {
    object-fit: cover;
}

/* Animated Stars */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Line Elements */
.line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
    min-width: 60px;
}

/* News Cards */
.news-card {
    background: rgba(26, 10, 46, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

.news-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-5px);
}

.news-card img {
    transition: transform 0.7s ease;
}

.news-card:hover img {
    transform: scale(1.1);
}

.news-card .badge {
    background: var(--color-primary) !important;
    color: var(--color-dark) !important;
}

.news-card h3 {
    transition: color 0.3s ease;
}

.news-card:hover h3 {
    color: var(--color-primary) !important;
}

/* Topic Cards */
.topic-card {
    background: linear-gradient(135deg, var(--color-purple-light), var(--color-purple));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s ease;
    position: relative;
    height: 250px;
    cursor: pointer;
}

.topic-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.topic-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.topic-card:hover img {
    opacity: 0.5;
}

.topic-card h3 {
    transition: color 0.3s ease;
}

.topic-card:hover h3 {
    color: var(--color-primary) !important;
}

/* Service Cards */
.service-card {
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.8), rgba(26, 10, 46, 0.8));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
}

.service-card h3 {
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--color-primary) !important;
}

/* Floating Helper */
.floating-helper {
    width: 64px;
    height: 64px;
    border: 2px solid var(--color-primary);
    background: var(--color-purple);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    z-index: 50;
    transition: all 0.3s ease;
    overflow: hidden;
}

.floating-helper:hover {
    transform: scale(1.1);
}

.floating-helper::before {
    content: 'Быстрая справка';
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-purple);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.floating-helper:hover::before {
    opacity: 1;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--color-purple-light) 25%, rgba(45, 27, 78, 0.5) 50%, var(--color-purple-light) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh !important;
    }
    
    .display-1 {
        font-size: 2.5rem !important;
    }
    
    .floating-helper::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 50vh !important;
    }
    
    .display-1 {
        font-size: 2rem !important;
    }
    
    .fs-4 {
        font-size: 1rem !important;
    }
}

/* Modal Styles */
.modal-content {
    background: var(--color-purple);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: white;
}

.modal-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark);
}

.btn-primary:hover {
    background: #b8962f;
    border-color: #b8962f;
}

/* Custom Form Controls */
.form-control, .form-select {
    background: var(--color-purple-light);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: white;
}

.form-control:focus, .form-select:focus {
    background: var(--color-purple-light);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-label {
    color: white;
}

/* Utility Classes */
.text-warning {
    color: var(--color-primary) !important;
}

.bg-warning {
    background-color: var(--color-primary) !important;
}

.border-warning {
    border-color: var(--color-primary) !important;
}

.bg-dark {
    background-color: var(--color-dark) !important;
}

.bg-purple {
    background-color: var(--color-purple) !important;
}

.bg-purple-light {
    background-color: var(--color-purple-light) !important;
}

/* Animation Classes */
.animate-pulse {
    animation: pulse 2s infinite;
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-15px); }
    70% { transform: translateY(-7px); }
    90% { transform: translateY(-3px); }
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Focus States */
button:focus, .nav-link:focus, .btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
/* Стили для жирного текста в Markdown */
strong.text-light {
    color: #e5e7eb !important; /* Светлее обычного текста */
    font-weight: 700;
}

/* Альтернатива - если хочешь с золотистым оттенком */
strong.fw-bold.text-light {
    color: rgba(212, 175, 55, 0.3) !important; /* Слегка золотистый */
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Курсив с золотым оттенком */
em.text-warning-subtle {
    color: rgba(212, 175, 55, 0.7) !important;
    font-style: italic;
}
/* Жирный текст - темнее обычного */
strong.text-secondary {
    color: #9ca3af !important; /* Серый, темнее белого */
    font-weight: 700;
}

/* Или еще темнее */
strong.text-muted {
    color: #6b7280 !important; /* Еще более темный серый */
    font-weight: 700;
}