/* =============================================================================
   Детский портал - Основные стили
   ============================================================================= */

/* -----------------------------------------------------------------------------
   CSS Variables (Цветовая палитра для детского портала)
   ----------------------------------------------------------------------------- */
:root {
    /* Основные цвета */
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    
    /* Акцентные цвета (яркие, детские) */
    --color-pink: #ec4899;
    --color-orange: #f97316;
    --color-yellow: #fbbf24;
    --color-green: #22c55e;
    --color-cyan: #06b6d4;
    --color-purple: #a855f7;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-sunset: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-ocean: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-forest: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-candy: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    
    /* Фоны */
    --bg-light: #faf5ff;
    --bg-cream: #fefce8;
    --bg-mint: #ecfdf5;
    
    /* Текст */
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    /* Тени */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* Скругления */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    
    /* Шрифты */
    --font-primary: 'Nunito', sans-serif;
    --font-display: 'Comfortaa', cursive;
    
    /* Анимации */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* -----------------------------------------------------------------------------
   Base Styles
   ----------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

.main-content {
    flex: 1;
}

/* -----------------------------------------------------------------------------
   Header / Navbar
   ----------------------------------------------------------------------------- */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark) !important;
}

.brand-icon {
    font-size: 1.75rem;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--color-primary) !important;
}

.nav-link i {
    font-size: 1.1rem;
}

/* User button */
.btn-user {
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-user:hover {
    border-color: var(--color-primary-light);
    background: white;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* -----------------------------------------------------------------------------
   Hero Section
   ----------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    background: var(--gradient-primary);
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-clouds .cloud {
    position: absolute;
    font-size: 4rem;
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.cloud-1 { top: 10%; left: 5%; animation-delay: 0s; }
.cloud-2 { top: 30%; right: 10%; animation-delay: -7s; }
.cloud-3 { bottom: 20%; left: 20%; animation-delay: -14s; }

.hero-stars .star {
    position: absolute;
    font-size: 1.5rem;
    animation: twinkle 2s ease-in-out infinite;
}

.star-1 { top: 15%; right: 20%; animation-delay: 0s; }
.star-2 { top: 40%; left: 15%; animation-delay: 0.5s; }
.star-3 { bottom: 30%; right: 30%; animation-delay: 1s; }

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

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    display: block;
    color: var(--color-yellow);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-welcome {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: inline-block;
}

.welcome-text {
    font-size: 1.25rem;
    margin: 0;
}

.welcome-emoji {
    font-size: 1.5rem;
    animation: wave 1s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

/* -----------------------------------------------------------------------------
   Roadmap Section (Карта сайта)
   ----------------------------------------------------------------------------- */
.roadmap-section {
    padding: 5rem 0;
    background: white;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.roadmap-card {
    position: relative;
    display: block;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-decoration: none !important;
    color: var(--text-dark) !important;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: var(--transition-normal);
    overflow: hidden;
}

.roadmap-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.roadmap-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-normal);
}

.roadmap-card:hover .card-glow {
    opacity: 0.3;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-pink);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-normal);
}

.roadmap-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Card colors */
.card-magazines { border-color: #fde68a; }
.card-magazines:hover { background: linear-gradient(135deg, #fef3c7 0%, white 100%); }

.card-games { border-color: #a7f3d0; }
.card-games:hover { background: linear-gradient(135deg, #d1fae5 0%, white 100%); }

.card-exercises { border-color: #c7d2fe; }
.card-exercises:hover { background: linear-gradient(135deg, #e0e7ff 0%, white 100%); }

.card-detectives { border-color: #fecaca; }
.card-detectives:hover { background: linear-gradient(135deg, #fee2e2 0%, white 100%); }

.card-articles { border-color: #ddd6fe; }
.card-articles:hover { background: linear-gradient(135deg, #ede9fe 0%, white 100%); }

.card-profile { border-color: #99f6e4; }
.card-profile:hover { background: linear-gradient(135deg, #ccfbf1 0%, white 100%); }

/* -----------------------------------------------------------------------------
   Features Section
   ----------------------------------------------------------------------------- */
.features-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
}

/* -----------------------------------------------------------------------------
   CTA Section
   ----------------------------------------------------------------------------- */
.cta-section {
    padding: 4rem 0;
}

.cta-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    color: white;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-content p {
    opacity: 0.9;
    margin: 0;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.site-footer {
    background: var(--text-dark);
    color: var(--text-light);
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    color: var(--text-dark);
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.footer-content {
    padding: 4rem 0 2rem;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-subtitle {
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7) !important;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white !important;
    padding-left: 5px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.version-text {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.copyright {
    opacity: 0.7;
    margin: 0;
}

.heart {
    animation: heartbeat 1s infinite;
}

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

/* -----------------------------------------------------------------------------
   Auth Pages
   ----------------------------------------------------------------------------- */
.auth-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
}

.auth-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
}

.auth-form .form-control {
    border-radius: var(--radius-md);
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
}

.auth-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--color-primary);
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.register-link, .login-link {
    font-weight: 700;
    color: var(--color-primary);
}

/* -----------------------------------------------------------------------------
   Error Pages
   ----------------------------------------------------------------------------- */
.error-page {
    padding: 5rem 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-illustration {
    margin-bottom: 2rem;
}

.error-emoji {
    font-size: 5rem;
    display: block;
    margin-bottom: 1rem;
}

.error-code {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.suggestion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    color: var(--text-dark) !important;
    transition: var(--transition-fast);
}

.suggestion-card:hover {
    background: var(--color-primary);
    color: white !important;
    transform: translateY(-3px);
}

.suggestion-card i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* WIP Page */
.wip-page .wip-illustration {
    margin-bottom: 2rem;
}

.wip-animation {
    position: relative;
    display: inline-block;
}

.wip-emoji {
    font-size: 5rem;
}

.wip-gears {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wip-gears .gear-1 {
    font-size: 2rem;
    color: var(--color-primary);
    animation: rotate 3s linear infinite;
}

.wip-gears .gear-2 {
    font-size: 1.5rem;
    color: var(--color-pink);
    animation: rotate 3s linear infinite reverse;
    margin-left: -0.5rem;
}

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

.wip-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.wip-badge {
    display: inline-block;
    background: var(--gradient-sunset);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.wip-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.wip-message {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.wip-progress {
    max-width: 300px;
    margin: 0 auto 2rem;
}

/* -----------------------------------------------------------------------------
   Admin Pages (Health, Debug)
   ----------------------------------------------------------------------------- */
.admin-page {
    background: #f8fafc;
    min-height: calc(100vh - 200px);
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    color: var(--text-dark);
}

.page-subtitle {
    color: var(--text-muted);
}

.status-banner {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    gap: 1.5rem;
}

.status-banner.status-healthy {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.status-banner.status-unhealthy {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.status-banner .status-icon {
    font-size: 3rem;
}

.status-banner h2 {
    margin: 0;
    font-size: 1.5rem;
}

.status-banner p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.health-card, .debug-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    height: 100%;
}

.health-card .card-header,
.debug-card .card-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.health-card .card-header h3,
.debug-card .card-header h3 {
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
}

.card-body {
    padding: 1.5rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.metric:last-child {
    border-bottom: none;
}

.metric-label {
    color: var(--text-muted);
}

.metric-value {
    font-weight: 600;
}

.badge-success {
    background: #22c55e;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
}

.badge-danger {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
}

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.25rem;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.1rem;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
}

/* -----------------------------------------------------------------------------
   Forms
   ----------------------------------------------------------------------------- */
.form-control {
    font-family: var(--font-primary);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* -----------------------------------------------------------------------------
   Alerts
   ----------------------------------------------------------------------------- */
.alert {
    border-radius: var(--radius-md);
    border: none;
}

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        text-align: center;
        justify-content: center;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
}

/* =============================================================================
   Детективы
   ============================================================================= */

/* Каталог детективов */
.detective-catalog-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.detective-filters {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
}

.detective-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.detective-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.detective-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.detective-card-link {
    display: block;
    text-decoration: none !important;
    color: var(--text-dark) !important;
}

.detective-card-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--gradient-primary);
}

.detective-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.detective-card:hover .detective-card-image {
    transform: scale(1.05);
}

.detective-card-difficulty {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.difficulty-1 { background: #22c55e; }
.difficulty-2 { background: #84cc16; }
.difficulty-3 { background: #eab308; }
.difficulty-4 { background: #f97316; }
.difficulty-5 { background: #ef4444; }

.detective-card-body {
    padding: 1.25rem;
}

.detective-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.detective-card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detective-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detective-card-meta .badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Пустое состояние */
.empty-state {
    padding: 3rem;
}

.empty-state-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Страница детектива */
.detective-detail-section,
.detective-solution-section,
.detective-hint-section {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 200px);
}

.detective-header {
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.detective-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.detective-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.difficulty-badge {
    color: white !important;
}

.difficulty-badge.difficulty-1 { background: #22c55e !important; }
.difficulty-badge.difficulty-2 { background: #84cc16 !important; }
.difficulty-badge.difficulty-3 { background: #eab308 !important; }
.difficulty-badge.difficulty-4 { background: #f97316 !important; }
.difficulty-badge.difficulty-5 { background: #ef4444 !important; }

/* Контент детектива (Markdown) */
.detective-content {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
}

.detective-markdown {
    font-size: 1rem;
    line-height: 1.8;
}

.detective-markdown h1 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary-light);
    color: var(--color-primary-dark);
}

.detective-markdown h1:first-child {
    margin-top: 0;
}

.detective-markdown h2 {
    font-size: 1.4rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.detective-markdown h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.detective-markdown h4 {
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.detective-markdown p {
    margin-bottom: 1rem;
}

.detective-markdown ul,
.detective-markdown ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.detective-markdown li {
    margin-bottom: 0.5rem;
}

.detective-markdown img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

.detective-markdown table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.detective-markdown th,
.detective-markdown td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.detective-markdown th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-dark);
}

.detective-markdown tr:hover td {
    background: #fafafa;
}

.detective-markdown strong {
    color: var(--text-dark);
}

.detective-markdown hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 2rem 0;
}

.detective-markdown blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Стили для решения */
.solution-content h2:first-of-type {
    color: #22c55e;
}

.solution-content h3 {
    color: #dc2626;
}

/* Стили для подсказки */
.hint-content {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-radius: var(--radius-lg);
}

.hint-content h1 {
    color: #d97706;
    border-bottom-color: #fbbf24;
}

/* Действия */
.detective-actions {
    margin-top: 2rem;
}

/* Хлебные крошки */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--color-primary);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Responsive для детективов */
@media (max-width: 768px) {
    .detective-grid {
        grid-template-columns: 1fr;
    }
    
    .detective-title {
        font-size: 1.4rem;
    }
    
    .detective-markdown h1 {
        font-size: 1.4rem;
    }
    
    .detective-markdown h2 {
        font-size: 1.2rem;
    }
    
    .detective-actions .d-flex {
        flex-direction: column;
    }
    
    .hint-navigation {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================================================
   Страница проверки ответа
   ============================================================================= */

.detective-answer-section {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 200px);
}

/* Форма ответа */
.answer-form {
    max-width: 800px;
}

.answer-question {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.answer-question .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
}

.answer-question .card-header h5 {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.answer-question .card-body {
    padding: 1.5rem;
}

/* Варианты ответа */
.answer-option {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-md);
    background: #fafafa;
    transition: var(--transition-fast);
}

.answer-option:hover {
    background: #f0f0f0;
}

.answer-option:last-child {
    margin-bottom: 0;
}

.answer-option .form-check-input {
    margin-top: 0.25rem;
}

.answer-option .form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.answer-option .form-check-input:checked + .form-check-label {
    font-weight: 600;
    color: var(--color-primary);
}

/* Кнопка проверки */
.answer-submit {
    text-align: center;
}

.answer-submit .btn {
    min-width: 200px;
}

/* Результат проверки */
.answer-result .alert {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.answer-result .alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.answer-result .alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.answer-result .alert-heading {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Помощь (подсказки и решение) */
.answer-help {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
}

.answer-help .card {
    border: none;
    border-radius: var(--radius-lg);
}

/* Навигация */
.answer-navigation {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    border-top: 1px solid #e2e8f0;
}

/* Responsive для формы ответа */
@media (max-width: 768px) {
    .answer-option {
        padding: 0.6rem 0.75rem;
    }
    
    .answer-submit .btn {
        width: 100%;
    }
}

/* Действия на странице подсказки */
.hint-actions {
    padding-bottom: 2rem;
}

/* =============================================================================
   Страницы оплаты
   ============================================================================= */

/* Карточка оплаты */
.payment-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.payment-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
}

.payment-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.payment-body {
    padding: 2rem;
}

.payment-footer {
    background: #f8fafc;
    padding: 1rem 2rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.payment-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.payment-secure svg {
    color: var(--color-green);
}

/* Итоговая сумма */
.payment-summary {
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.payment-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Кнопки выбора суммы */
.amount-btn {
    min-width: 70px;
}

.amount-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Результат оплаты */
.payment-result {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2rem;
    text-align: center;
}

.payment-result-icon {
    margin-bottom: 1.5rem;
}

.payment-result-success .payment-result-icon svg {
    color: var(--color-green);
}

.payment-result-fail .payment-result-icon svg {
    color: #ef4444;
}

.payment-result-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.payment-result-success .payment-result-title {
    color: var(--color-green);
}

.payment-result-fail .payment-result-title {
    color: #ef4444;
}

.payment-result-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.payment-result-hint {
    background: #fef3c7;
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.875rem;
}

.payment-result-hint ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.payment-result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Детали платежа */
.payment-details {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.payment-detail-row:last-child {
    border-bottom: none;
}

.payment-detail-label {
    color: var(--text-muted);
}

.payment-detail-value {
    font-weight: 500;
}

/* Страница статуса платежа */
.payment-status-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.payment-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.payment-status-number {
    font-family: monospace;
    font-size: 1rem;
    color: var(--text-muted);
}

.payment-status-table {
    margin-bottom: 0;
}

.payment-status-table th {
    width: 40%;
    font-weight: 500;
    color: var(--text-muted);
}

.payment-status-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.payment-error-details {
    background: #fee2e2;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 576px) {
    .payment-card,
    .payment-result,
    .payment-status-card {
        border-radius: 0;
        margin: -1rem;
    }
    
    .payment-result-actions,
    .payment-status-actions {
        flex-direction: column;
    }
    
    .payment-result-actions .btn,
    .payment-status-actions .btn {
        width: 100%;
    }
    
    .payment-status-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* =============================================================================
   Личный кабинет
   ============================================================================= */

/* Заголовок профиля */
.profile-header {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-sm);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-email {
    font-size: 0.875rem;
}

/* Статистика */
.profile-stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    height: 100%;
}

.profile-stat-card.profile-stat-warning {
    border: 2px solid #fbbf24;
}

.profile-stat-icon {
    margin-bottom: 0.5rem;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.profile-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Меню профиля */
.profile-menu {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.profile-menu-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
}

.profile-nav-item:hover {
    background: #f1f5f9;
    color: var(--color-primary);
}

.profile-nav-item.active {
    background: var(--color-primary);
    color: white;
}

.profile-nav-item .badge {
    margin-left: auto;
}

/* Активность */
.profile-activity {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.profile-activity-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.profile-activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-activity-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.profile-activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-activity-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.profile-activity-content {
    flex: 1;
    min-width: 0;
}

.profile-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.profile-activity-title-text {
    font-weight: 500;
}

.profile-activity-status {
    font-size: 0.875rem;
    font-weight: 500;
}

.profile-activity-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.profile-activity-amount {
    font-weight: 600;
}

.profile-activity-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.profile-activity-date {
    color: var(--text-muted);
}

.profile-activity-link {
    color: var(--color-primary);
}

/* Пустое состояние */
.profile-empty,
.profile-empty-state {
    text-align: center;
    padding: 2rem;
}

.profile-empty-icon {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.profile-empty-state h4 {
    margin-bottom: 0.5rem;
}

/* Таблицы */
.profile-table-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-table {
    margin-bottom: 0;
}

.profile-table th {
    background: #f8fafc;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-bottom: 2px solid #e2e8f0;
}

.profile-table td {
    vertical-align: middle;
}

.profile-table code {
    font-size: 0.8rem;
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* Детали */
.profile-detail-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-detail-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.profile-detail-body {
    padding: 1.5rem;
}

.profile-detail-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.profile-detail-table th {
    width: 35%;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

.profile-detail-table td {
    padding: 0.5rem 0;
}

.profile-order-summary {
    position: sticky;
    top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header {
        text-align: center;
    }
    
    .profile-header .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-stat-card {
        margin-bottom: 0.5rem;
    }
    
    .profile-activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .profile-activity-details {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .profile-table-card {
        overflow-x: auto;
    }
    
    .profile-table {
        min-width: 600px;
    }
}

/* ========================================
   Каталог услуг
   ======================================== */

.catalog-section {
    padding: 2rem 0 4rem;
}

.catalog-filters {
    border: none;
    box-shadow: var(--shadow-sm);
}

/* Сетка каталога */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Карточка каталога */
.catalog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.catalog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.catalog-card-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

.catalog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.catalog-card:hover .catalog-card-image {
    transform: scale(1.05);
}

/* Тип услуги на карточке */
.catalog-card-type {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    color: white;
}

.catalog-card-type.type-game { background: linear-gradient(135deg, #22c55e, #16a34a); }
.catalog-card-type.type-course { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.catalog-card-type.type-lesson { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.catalog-card-type.type-detective { background: linear-gradient(135deg, #ef4444, #dc2626); }
.catalog-card-type.type-journal { background: linear-gradient(135deg, #f59e0b, #d97706); }
.catalog-card-type.type-puzzle { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.catalog-card-type.type-article { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.catalog-card-type.type-video { background: linear-gradient(135deg, #ec4899, #db2777); }
.catalog-card-type.type-subscription { background: linear-gradient(135deg, #64748b, #475569); }

/* Бейдж "Скоро" */
.catalog-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.catalog-card-badge.badge-coming-soon {
    background: rgba(251, 191, 36, 0.9);
    color: #92400e;
}

.catalog-card-body {
    padding: 1.25rem;
}

.catalog-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.catalog-card-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.catalog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.catalog-card-meta .badge {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Страница детализации */
.catalog-detail-section {
    padding: 2rem 0 4rem;
}

.catalog-detail-header {
    margin-bottom: 1.5rem;
}

.catalog-type-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 25px;
    color: white;
}

.catalog-type-badge.type-game { background: linear-gradient(135deg, #22c55e, #16a34a); }
.catalog-type-badge.type-course { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.catalog-type-badge.type-lesson { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.catalog-type-badge.type-detective { background: linear-gradient(135deg, #ef4444, #dc2626); }
.catalog-type-badge.type-journal { background: linear-gradient(135deg, #f59e0b, #d97706); }
.catalog-type-badge.type-puzzle { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.catalog-type-badge.type-article { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.catalog-type-badge.type-video { background: linear-gradient(135deg, #ec4899, #db2777); }
.catalog-type-badge.type-subscription { background: linear-gradient(135deg, #64748b, #475569); }

.catalog-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.catalog-detail-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
}

.catalog-detail-image img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.catalog-detail-content {
    line-height: 1.7;
}

.catalog-detail-content h2,
.catalog-detail-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.catalog-detail-action {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    text-align: center;
}

.catalog-detail-sidebar {
    position: sticky;
    top: 1rem;
}

.catalog-detail-sidebar .card {
    border: none;
    box-shadow: var(--shadow-sm);
}

.catalog-detail-sidebar .card-header {
    background: #f8fafc;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

/* Пустое состояние */
.empty-state {
    padding: 3rem;
}

.empty-state-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

/* Responsive для каталога */
@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .catalog-card-cover {
        height: 150px;
    }
    
    .catalog-detail-title {
        font-size: 1.5rem;
    }
    
    .catalog-detail-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

/* =============================================================================
   Cookie Consent Banner
   ============================================================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-dark);
}

.cookie-banner-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-link {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-cookie-accept {
    padding: 0.6rem 1.5rem;
}

.btn-cookie-decline {
    padding: 0.6rem 1rem;
}

/* Cookie Required Block (заглушка для контента) */
.cookie-required-block {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}

.cookie-required-content {
    max-width: 400px;
    margin: 0 auto;
}

.cookie-required-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.cookie-required-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cookie-required-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Responsive для cookie banner */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .cookie-banner-icon {
        font-size: 2rem;
    }
    
    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-banner-actions .btn {
        width: 100%;
    }
}

/* Ссылка в футере */
.footer-cookie-settings {
    cursor: pointer;
    color: rgba(255,255,255,0.7) !important;
    transition: var(--transition-fast);
}

.footer-cookie-settings:hover {
    color: white !important;
}
