/* 
 * Стили презентации результатов работы
 * Дизайн вдохновлён Odoo - минималистичный, профессиональный
 */

:root {
    /* Цвета Odoo */
    --primary: #714B67;
    --primary-light: #8F6A86;
    --primary-dark: #5A3C52;
    --secondary: #017e84;
    --secondary-light: #02979e;
    --accent: #e67e22;
    
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-dark: #1a1a2e;
    --bg-darker: #0f0f1a;
    
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --text-light: #ffffff;
    
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    
    --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);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Навигация */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.125rem;
}

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

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

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

.nav-link.active {
    background: var(--primary);
    color: var(--text-light);
}

/* Контейнеры */
.main-content {
    min-height: calc(100vh - 64px - 60px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-dark {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
    color: var(--text-primary);
}

.section-title.light {
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle.light {
    color: rgba(255,255,255,0.75);
}

/* Hero презентация - компактный для 16:9 */
.hero-presentation {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 0;
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -1px;
}

.hero-role {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Статистика grid - компактный */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.15);
}

.stat-card.stat-primary {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 500;
}

/* Timeline - горизонтальный layout для 16:9 */
.timeline {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
    overflow-x: auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.timeline-icon {
    font-size: 1.25rem;
}

.timeline-content {
    flex: 1;
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    width: 100%;
}

.timeline-year {
    display: inline-block;
    background: var(--primary);
    color: var(--text-light);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Категории - горизонтальный layout для 16:9 */
.categories-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    justify-content: center;
    align-items: stretch;
    overflow-x: auto;
    padding: 1rem 0;
}

.category-card {
    background: var(--bg-primary);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    flex: 0 0 auto;
    width: calc((100% - 6.25rem) / 6);
    min-width: 160px;
    max-width: 220px;
    text-align: center;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color, var(--primary));
}

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

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.category-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.category-tag {
    display: inline-block;
    background: var(--accent-color, var(--primary));
    color: var(--text-light);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

/* Skills section - full screen */
#skills {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#skills .container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Skills bars - компактный для 16:9 */
.skills-bars {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.skill-bar-item {
    background: var(--bg-secondary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.skill-bar-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-bar-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.skill-bar-percent {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
}

.skill-bar-track {
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Detailed stats - full screen */
.section-dark {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-dark .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.detailed-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.detailed-stat {
    padding: 1.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.detailed-stat:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.detailed-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detailed-label {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* CTA секция */
.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-content {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    padding: 1.5rem;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    opacity: 0.85;
}

.cta-feature-icon {
    font-size: 1.25rem;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* CTA блок (legacy) */
.cta-block {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem;
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--text-light);
}

.cta-block h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-block p {
    opacity: 0.85;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--bg-secondary);
    color: var(--primary);
}

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

/* Страница задач */
.tasks-section {
    padding-top: 3rem;
}

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

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.tasks-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(113, 75, 103, 0.1);
}

.tasks-summary {
    color: var(--text-secondary);
}

/* Сетка задач - колонки */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    align-items: start;
}

.task-column {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.column-header {
    background: var(--primary);
    color: var(--text-light);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.column-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.column-icon {
    font-size: 1.5rem;
}

.column-info {
    display: flex;
    flex-direction: column;
}

.column-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.column-desc {
    font-size: 0.8125rem;
    opacity: 0.85;
    margin: 0;
}

.column-count {
    background: rgba(255,255,255,0.2);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.cards-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 65vh;
    overflow-y: auto;
}

/* Карточка задачи */
.task-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.task-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.card-key {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(113, 75, 103, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.card-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.card-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.card-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-container {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

.modal-header {
    background: var(--primary);
    color: var(--text-light);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--text-light);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(85vh - 100px);
}

.modal-field {
    margin-bottom: 1.5rem;
}

.modal-field:last-child {
    margin-bottom: 0;
}

.modal-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.modal-field-value {
    color: var(--text-primary);
    line-height: 1.7;
}

.modal-field-value.description {
    white-space: pre-wrap;
    word-break: break-word;
}

.modal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-list li {
    background: var(--bg-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    border-left: 3px solid var(--primary);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Футер */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 1.5rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer p {
    opacity: 0.7;
    font-size: 0.875rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-presentation {
        padding: 3rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-role {
        font-size: 1.25rem;
    }
    
    .hero-container,
    .container {
        padding: 0 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .skills-bars {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 22px;
    }
    
    .timeline-marker {
        width: 46px;
        height: 46px;
    }
    
    .timeline-item {
        gap: 1rem;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .detailed-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .detailed-number {
        font-size: 2.5rem;
    }
    
    .detailed-stat {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-features {
        gap: 1rem;
    }
    
    .cta-block {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-block h2 {
        font-size: 1.5rem;
    }
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== Навигация между секциями ===== */

.page-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-section .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Контейнер фиксированной навигации */
.scroll-nav-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
}

/* Фиксированные кнопки навигации */
.scroll-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: var(--primary);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
}

.scroll-nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.scroll-nav-btn .scroll-icon {
    font-size: 1.25rem;
}

.scroll-nav-btn.scroll-down .scroll-icon {
    animation: bounce 2s infinite;
}

.scroll-nav-btn.scroll-up {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.scroll-nav-btn.scroll-up:hover {
    background: var(--bg-primary);
    color: var(--primary);
}

.scroll-nav-btn.scroll-up .scroll-icon {
    animation: bounceUp 2s infinite;
}

.scroll-nav-btn .scroll-text {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(4px); }
    60% { transform: translateY(2px); }
}

@keyframes bounceUp {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

/* Индикаторы секций (точки справа) */
.section-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.section-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(113, 75, 103, 0.3);
    border: none;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.section-dots .dot:hover {
    background: var(--primary-light);
    transform: scale(1.3);
}

.section-dots .dot.active {
    background: var(--primary);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(113, 75, 103, 0.2);
}

/* ===== Адаптивность для навигации ===== */
@media (max-width: 768px) {
    .scroll-nav-container {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .scroll-nav-btn {
        padding: 0.6rem 0.8rem;
    }
    
    .scroll-nav-btn .scroll-icon {
        font-size: 1rem;
    }
    
    .scroll-nav-btn .scroll-text {
        font-size: 0.55rem;
    }
    
    .section-dots {
        right: 1rem;
        gap: 0.75rem;
    }
    
    .section-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    /* Timeline вертикальный на мобильных */
    .timeline {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
    }
    
    .timeline::before {
        left: 25px;
        top: 0;
        bottom: 0;
        width: 3px;
        height: auto;
        transform: none;
    }
    
    .timeline-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        min-width: auto;
        max-width: none;
    }
    
    .timeline-content {
        text-align: left;
    }
    
    /* Categories вертикальные на мобильных */
    .categories-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .category-card {
        width: calc(50% - 0.75rem);
        min-width: 140px;
        max-width: none;
    }
    
    .page-section {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .scroll-nav-fixed {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem;
        border-radius: var(--radius-lg);
    }
    
    .scroll-nav-fixed .scroll-text {
        display: none;
    }
    
    .scroll-nav-fixed .scroll-icon {
        font-size: 1.25rem;
    }
    
    .section-dots {
        display: none;
    }
}

/* ===== КЛЮЧЕВЫЕ ПРОЕКТЫ ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.project-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
    margin-bottom: 0.75rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    margin-top: auto;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.project-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.project-metrics {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

/* ===== ИНТЕГРАЦИИ ===== */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.integration-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.integration-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.integration-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.5rem;
}

.integration-name {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.integration-type {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ===== ВКЛАД В КОМАНДУ ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.team-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.team-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.team-value {
    margin-bottom: 0.5rem;
}

.team-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light);
    display: block;
}

.team-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}

.team-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.team-description {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
}

/* ===== ИНСТРУМЕНТЫ ===== */
#tools {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tools-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.tool-tag {
    background: var(--bg-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: default;
}

.tool-tag:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: scale(1.05);
}

.tool-tag[data-category="IDE"] { border-left: 3px solid #007acc; }
.tool-tag[data-category="VCS"] { border-left: 3px solid #f05032; }
.tool-tag[data-category="CI/CD"] { border-left: 3px solid #fc6d26; }
.tool-tag[data-category="DevOps"] { border-left: 3px solid #2496ed; }
.tool-tag[data-category="Database"] { border-left: 3px solid #336791; }
.tool-tag[data-category="Cache"] { border-left: 3px solid #dc382d; }
.tool-tag[data-category="Queue"] { border-left: 3px solid #37b24d; }
.tool-tag[data-category="API"] { border-left: 3px solid #ff6c37; }
.tool-tag[data-category="Monitoring"] { border-left: 3px solid #f46800; }
.tool-tag[data-category="PM"] { border-left: 3px solid #0052cc; }
.tool-tag[data-category="Docs"] { border-left: 3px solid #172b4d; }
.tool-tag[data-category="Communication"] { border-left: 3px solid #4a154b; }
.tool-tag[data-category="Planning"] { border-left: 3px solid #ffd02f; }

/* ===== СВЕТЛАЯ СТАТИСТИКА ===== */
.detailed-stats-light {
    background: transparent;
}

.detailed-stats-light .detailed-stat {
    background: var(--bg-secondary);
}

.detailed-stats-light .detailed-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detailed-stats-light .detailed-label {
    color: var(--text-secondary);
}

/* ===== АДАПТИВНОСТЬ НОВЫХ СЕКЦИЙ ===== */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .integrations-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .integrations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .team-number {
        font-size: 2rem;
    }
    
    .tools-cloud {
        gap: 0.75rem;
    }
    
    .tool-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .integration-item {
        padding: 1rem;
    }
    
    .integration-icon {
        font-size: 1.5rem;
    }
}

/* ========================================
   ИНТЕРАКТИВНАЯ КАРТА ЗАДАЧ (Canvas)
   ======================================== */

.map-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-darker);
    overflow: hidden;
}

/* Панель управления */
.map-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.map-back {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.map-back:hover {
    opacity: 1;
}

.map-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.map-total {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.1rem;
}

.map-zoom-level {
    color: var(--text-light);
    font-family: monospace;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    min-width: 60px;
    text-align: center;
}

.map-zoom-controls {
    display: flex;
    gap: 0.5rem;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: var(--primary);
}

/* Легенда */
.map-legend {
    position: absolute;
    top: 80px;
    left: 1.5rem;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    z-index: 90;
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 150px;
}

.legend-title {
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0.75rem 0;
}

.legend-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}
.legend-dot-sm { width: 6px; height: 6px; }
.legend-dot-md { width: 10px; height: 10px; }
.legend-dot-lg { width: 14px; height: 14px; }

/* Viewport карты */
.map-viewport {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    cursor: grab;
    background: var(--bg-darker);
}

.map-viewport:active {
    cursor: grabbing;
}

#mapCanvas {
    display: block;
}

/* Tooltip */
.task-tooltip {
    position: absolute;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    max-width: 280px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 200;
}

.task-tooltip.visible {
    opacity: 1;
}

.tooltip-key {
    font-size: 0.7rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tooltip-summary {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.tooltip-meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

/* Подсказка */
.zoom-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(113, 75, 103, 0.85);
    color: var(--text-light);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    z-index: 90;
    transition: opacity 0.3s;
}

/* Модальное окно задачи */
.task-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.task-modal.active {
    opacity: 1;
    visibility: visible;
}

.task-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
}

.task-modal .modal-container {
    position: relative;
    background: var(--bg-darker);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.task-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.task-modal .modal-close:hover {
    opacity: 1;
}

.task-modal .modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.task-modal .modal-key {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.85rem;
}

.task-modal .modal-status {
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-light);
}

.task-modal .modal-title {
    color: var(--text-light);
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.task-modal .modal-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-modal .modal-field {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 1rem;
}

.task-modal .field-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-modal .field-value {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.task-modal .modal-loading,
.task-modal .modal-error {
    text-align: center;
    color: rgba(255,255,255,0.6);
    padding: 2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .map-legend {
        top: auto;
        bottom: 4rem;
        left: 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .map-controls {
        padding: 0 1rem;
    }
    
    .map-total {
        display: none;
    }
    
    .zoom-hint {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
}

/* =================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ЗАДАЧ ПО EPIC-АМ
   ================================================================= */

/* Тулбар с поиском */
.tasks-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: var(--bg-secondary);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(113, 75, 103, 0.15);
}

.tasks-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.tasks-summary .separator {
    opacity: 0.5;
}

/* Epic фильтры */
.epic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.epic-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.epic-filter:hover {
    border-color: var(--accent-color, var(--primary));
    background: var(--bg-primary);
}

.epic-filter.active {
    background: var(--accent-color, var(--primary));
    color: var(--text-light);
    border-color: var(--accent-color, var(--primary));
}

.filter-icon {
    font-size: 1.125rem;
}

.filter-name {
    font-weight: 500;
}

.filter-count {
    background: rgba(0,0,0,0.1);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.epic-filter.active .filter-count {
    background: rgba(255,255,255,0.2);
}

/* Список Epic секций */
.epics-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.epic-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.epic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.epic-header:hover {
    filter: brightness(1.1);
}

.epic-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.epic-icon {
    font-size: 2rem;
}

.epic-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.epic-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.epic-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.epic-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.epic-toggle:hover {
    background: rgba(255,255,255,0.3);
}

.toggle-icon {
    font-size: 0.875rem;
    transition: transform 0.2s;
}

/* Карточки задач внутри Epic */
.epic-tasks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    transition: max-height 0.3s, padding 0.3s;
}

.epic-tasks.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.task-card {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.card-key {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(113, 75, 103, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.card-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.card-developer {
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-problem {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-assignee {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.assignee-label {
    opacity: 0.7;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
}

.card-hint {
    font-size: 0.8125rem;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.task-card:hover .card-hint {
    opacity: 1;
}

/* Секция действий */
.section-action {
    text-align: center;
    margin-top: 1rem;
}

/* Статистика направлений */
.category-stats {
    display: flex;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.7rem;
    justify-content: center;
}

.category-count {
    font-weight: 600;
    color: var(--accent-color, var(--primary));
}

.category-time {
    opacity: 0.8;
}

/* Worklogs и Comments в модальном окне */
.worklogs-list,
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.worklog-item,
.comment-item {
    background: var(--bg-primary);
    padding: 0.875rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.worklog-item strong,
.comment-item strong {
    color: var(--text-primary);
}

.worklog-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.worklog-author {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.worklog-time {
    background: var(--primary);
    color: var(--text-light);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.worklog-date {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.worklog-comment {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.worklogs-more,
.comments-more {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    padding: 0.5rem;
}

/* Epic badge в модальном окне */
.epic-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.time-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--text-light);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

/* Светлая версия detailed stats */
.detailed-stats-light {
    background: transparent;
}

.detailed-stats-light .detailed-stat {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
}

.detailed-stats-light .detailed-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detailed-stats-light .detailed-label {
    color: var(--text-secondary);
}

/* Адаптивность для страницы задач */
@media (max-width: 1024px) {
    .epic-tasks {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .tasks-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .epic-filters {
        justify-content: center;
    }
    
    .epic-filter .filter-name {
        display: none;
    }
    
    .epic-tasks {
        grid-template-columns: 1fr;
    }
    
    .detailed-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .detailed-number {
        font-size: 2.5rem;
    }
}

/* =================================================================
   СЕКЦИИ КЕЙСОВ (SHOWCASE PROJECTS)
   ================================================================= */

.showcase-section {
    background: var(--bg-secondary);
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.showcase-section:nth-child(even) {
    background: var(--bg-primary);
}

/* Фоновое изображение */
.showcase-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.showcase-section .container {
    position: relative;
    z-index: 1;
}

/* Анимации появления */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Дополнительные эффекты анимации */
.showcase-stat.animate-on-scroll {
    transform: translateY(20px) scale(0.95);
}

.showcase-stat.animate-on-scroll.visible {
    transform: translateY(0) scale(1);
}

.gallery-item.animate-on-scroll {
    transform: translateY(40px) scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.animate-on-scroll.visible {
    transform: translateY(0) scale(1);
}

.showcase-feature.animate-on-scroll {
    transform: translateX(-20px);
}

.showcase-feature.animate-on-scroll.visible {
    transform: translateX(0);
}

.tech-tag {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.showcase-technologies.visible .tech-tag {
    opacity: 1;
    transform: scale(1);
}

/* Задержки для тегов */
.showcase-technologies.visible .tech-tag:nth-child(1) { transition-delay: 0.05s; }
.showcase-technologies.visible .tech-tag:nth-child(2) { transition-delay: 0.1s; }
.showcase-technologies.visible .tech-tag:nth-child(3) { transition-delay: 0.15s; }
.showcase-technologies.visible .tech-tag:nth-child(4) { transition-delay: 0.2s; }
.showcase-technologies.visible .tech-tag:nth-child(5) { transition-delay: 0.25s; }
.showcase-technologies.visible .tech-tag:nth-child(6) { transition-delay: 0.3s; }
.showcase-technologies.visible .tech-tag:nth-child(7) { transition-delay: 0.35s; }
.showcase-technologies.visible .tech-tag:nth-child(8) { transition-delay: 0.4s; }

.showcase-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.showcase-period {
    display: inline-block;
    background: var(--project-color, var(--primary));
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full, 50px);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.showcase-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.showcase-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.showcase-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

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

.showcase-results {
    background: rgba(113, 75, 103, 0.05);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--project-color, var(--primary));
}

.showcase-results h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.showcase-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.showcase-results li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.showcase-results li:last-child {
    margin-bottom: 0;
}

.showcase-results li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--project-color, var(--primary));
    font-weight: bold;
}

.showcase-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 160px;
}

.showcase-stat {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.showcase-section:nth-child(even) .showcase-stat {
    background: var(--bg-card);
}

.showcase-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--project-color, var(--primary));
    margin-bottom: 0.15rem;
}

.showcase-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Features */
.showcase-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.showcase-feature {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.showcase-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--project-color, var(--primary));
}

.feature-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.feature-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Gallery - компактная для 16:9 */
.showcase-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Адаптивные сетки для разного количества картинок */
.showcase-gallery.gallery-1 {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.showcase-gallery.gallery-2 {
    grid-template-columns: repeat(2, 1fr);
}

.showcase-gallery.gallery-3 {
    grid-template-columns: repeat(3, 1fr);
}

.showcase-gallery.gallery-4 {
    grid-template-columns: repeat(4, 1fr);
}

.showcase-gallery.gallery-5,
.showcase-gallery.gallery-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Для 1 картинки - делаем её больше */
.showcase-gallery.gallery-1 .gallery-thumb {
    aspect-ratio: 16/9;
}

/* Для 2 картинок - горизонтальные */
.showcase-gallery.gallery-2 .gallery-thumb {
    aspect-ratio: 16/10;
}

.gallery-item {
    cursor: pointer;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--border-light) 100%);
}

.gallery-thumb.no-image::after {
    content: '🖼️';
    font-size: 2rem;
    opacity: 0.3;
}

.gallery-thumb.no-image img {
    display: none;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-thumb img {
    transform: scale(1.05);
}

.gallery-zoom {
    font-size: 1.5rem;
    color: var(--text-light);
}

.gallery-caption {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: center;
}

/* Technologies */
.showcase-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tech-tag {
    background: var(--project-color, var(--primary));
    color: var(--text-light);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
}

/* =================================================================
   LIGHTBOX
   ================================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-caption {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 1rem;
    text-align: center;
    opacity: 0.9;
}

/* Адаптивность для кейсов */
@media (max-width: 1024px) {
    .showcase-content {
        grid-template-columns: 1fr;
    }
    
    .showcase-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .showcase-stat {
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .showcase-title {
        font-size: 1.75rem;
    }
    
    .showcase-subtitle {
        font-size: 1rem;
    }
    
    .showcase-gallery {
        grid-template-columns: 1fr;
    }
    
    .showcase-features {
        grid-template-columns: 1fr;
    }
    
    .showcase-stats {
        flex-direction: column;
    }
    
    .showcase-stat {
        min-width: auto;
    }
    
    .lightbox-close {
        top: -2.5rem;
        font-size: 2rem;
    }
}
