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

:root {
    --primary-color: #009BA8;
    --primary-dark: #06757f;
    --secondary-color: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --border-radius: 12px;
    --sidebar-width: 80px;
    --transition: all 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background: #f9f9f9;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Боковое меню */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
    pointer-events: none;
}

.burger-menu {
    display: none;
}

.nav-icons-backdrop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to top, rgba(6, 117, 127, 0.7), rgba(0, 155, 168, 0.7));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0 15px 15px 0;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    height: calc(100vh - 40px);
    pointer-events: all;
    width: 100%;
}

.nav-logo {
    padding: 10px 0;
}

.nav-double-separator {
    width: 50px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 10px 0;
}

.nav-separator {
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0;
}

.nav-main-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
    padding-top: 5px;
}

.nav-admin-separator {
    margin: auto 0 10px 0;
}

.nav-bottom-item {
    padding: 0 0 10px 0;
}

.nav-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    margin: 0;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.nav-icon i {
    font-size: 28px;
    color: white;
    transition: var(--transition);
}

.nav-icon:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.nav-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-size: 13px;
    z-index: 10;
}

.nav-icon:hover::after {
    opacity: 1;
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 155, 168, 0.75), rgba(6, 117, 127, 0.75));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(0, 155, 168, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 155, 168, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 155, 168, 0.85), rgba(6, 117, 127, 0.85));
    border-color: rgba(255, 255, 255, 0.35);
}

/* Основной контент */
.main-content {
    margin-left: 0;
    min-height: 100vh;
}

/* Header Slider */
.header-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 20px;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.slider-btn {
    position: absolute;
    bottom: 17px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    width: auto;
    height: auto;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.slider-btn:hover {
    color: white;
}

.prev-btn {
    left: 50%;
    transform: translateX(calc(-50% - 80px));
}

.next-btn {
    left: 50%;
    transform: translateX(calc(-50% + 80px));
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Полоса с датой актуальности */
.data-actual-bar {
    width: 100%;
    height: 25px;
    background: rgba(6, 117, 127, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06757f;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Блок с главной диаграммой */
.progress-overview {
    padding: 60px 40px 60px calc(var(--sidebar-width) + 60px);
    background: white;
}

.progress-overview .section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.progress-overview .section-subtitle {
    font-size: 16px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
    font-weight: 300;
}

.overview-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: flex-start;
}

.circular-progress-container {
    text-align: center;
}

.circular-progress-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-dark);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.circular-chart {
    width: 350px;
    height: 350px;
    margin: 0 auto 30px;
    position: relative;
}

.circular-chart canvas {
    position: relative;
    z-index: 5;
}

.chart-center-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 70px);
    height: calc(100% - 70px);
    border-radius: 50%;
    overflow: hidden;
    z-index: 0;
}

.chart-center-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: white;
    font-family: 'Roboto', sans-serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.chart-center-text .label {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.chart-center-text .separator {
    width: 80px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 8px auto;
}

.chart-center-text .values {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;
}

.chart-center-text .label-inline {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-align: center;
}

.chart-center-text .values-inline {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}

.progress-legend {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    max-width: 300px;
    margin: 0 auto;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.actual {
    background: var(--primary-color);
}

.legend-color.planned {
    background: #aaa;
}

.project-description h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 700;
}

.project-description .subtitle-text {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-description .main-text {
    font-size: 16px;
    line-height: 1.2;
    color: var(--text-light);
    text-align: justify;
    margin-bottom: 15px;
}

/* Блок мобилизации */
.mobilization-block {
    margin-top: 30px;
}

.mobilization-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mobilization-block h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    margin: 0;
}

.mobilization-line {
    flex: 1;
    height: 0.5px;
    background: rgba(0, 0, 0, 0.1);
}

.mobilization-grid {
    display: flex;
    gap: 25px;
}

.mobilization-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobilization-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.mobilization-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.mobilization-value {
    font-size: 22px;
    font-weight: 300;
    color: var(--primary-color);
}

.mobilization-separator {
    margin-top: 20px;
    height: 0.5px;
    background: rgba(0, 0, 0, 0.1);
}

/* Мини-грид с прогресс-барами подпроектов */
.subprojects-mini-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 0;
    margin-bottom: 30px;
    position: relative;
}

.subproject-mini-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px 20px;
}

.subproject-mini-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.subproject-mini-item h4 i {
    font-size: 16px;
    color: var(--primary-color);
}

.subproject-mini-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subproject-mini-progress .progress-value {
    font-size: 14px;
    font-weight: 500;
    min-width: 45px;
}

.subproject-mini-progress .progress-bar-container {
    flex: 1;
    height: 10px;
}

/* Горизонтальные разделители (97% ширины) */
.subproject-mini-separator {
    grid-column: 1 / -1;
    height: 0.5px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    width: 97%;
}

/* Вертикальные разделители (97% высоты) */
.subproject-mini-vertical-separator {
    grid-column: 2;
    width: 0.5px;
    background: rgba(0, 0, 0, 0.1);
    margin: auto 0;
    height: 97%;
}

/* Секция "Коротко о Проекте" */
.project-info-section {
    padding: 0px 40px 40px calc(var(--sidebar-width) + 60px);
    background: white;
}

.project-info-section .toggle-container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-info-toggle .main-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    text-align: justify;
    margin-bottom: 15px;
}

.toggle-image-container {
    padding: 0;
    background: white;
    text-align: center;
    cursor: pointer;
}

.toggle-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    transition: var(--transition);
}

.toggle-image:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Прогресс подпроектов */
.subprojects-progress {
    padding: 60px 40px 60px calc(var(--sidebar-width) + 60px);
    background: #f5f5f5;
}

.subprojects-progress h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.progress-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.progress-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.progress-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.progress-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
    min-height: 45px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-card h3 i {
    font-size: 20px;
    color: var(--primary-color);
}

.progress-bar-group {
    margin-bottom: 12px;
}

.progress-bar-group:last-child {
    margin-bottom: 0;
}

.progress-bar-label {
    display: none;
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-value {
    font-size: 16px;
    font-weight: 500;
    min-width: 55px;
}

.progress-value.actual {
    color: var(--primary-color);
}

.progress-value.planned {
    color: #aaa;
}

.progress-bar-container {
    flex: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: visible;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
    position: relative;
}

.progress-bar.actual {
    background: var(--primary-color);
}

.progress-bar.planned {
    background: #aaa;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Toggle блок с комментариями */
.comments-section {
    padding: 60px 40px 60px calc(var(--sidebar-width) + 60px);
    background: #f5f5f5;
}

.comments-section h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.toggle-container {
    max-width: 1000px;
    margin: 0 auto;
}

.toggle-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.toggle-item:hover {
    border-color: var(--primary-color);
}

.toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    background: #fafafa;
    transition: var(--transition);
    user-select: none;
}

.toggle-header:hover {
    background: #f5f5f5;
}

.toggle-header h3 {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

.toggle-header i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-size: 18px;
}

.toggle-item.active .toggle-header i {
    transform: rotate(180deg);
}

.toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
    background: white;
}

.toggle-item.active .toggle-content {
    max-height: 500px;
    padding: 20px 25px;
}

.toggle-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

/* Блок с PDF-отчётом */
.pdf-report-section {
    padding: 60px 40px 60px calc(var(--sidebar-width) + 60px);
    background: white;
    min-height: 400px;
}

.pdf-report-section h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.pdf-report-section .section-subtitle {
    font-size: 16px;
    text-align: center;
    margin-bottom: 0px; /* Было 40px, уменьшаем на 40px */
    color: var(--text-light);
    font-weight: 300;
}

.pdf-report-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 600px;
}

/* PDF Flipbook стили (БЕЗ ПОДЛОЖКИ) */
.flipbook-container {
    width: 100%;
    position: relative;
    background: transparent; /* Убрана серая подложка */
    padding-bottom: 0px; /* Уменьшено с 10px - отступ после кнопок уменьшен на 30px (было 40px общего) */
}

.flipbook-viewer {
    width: 100%;
    height: 500px; /* Фиксированная высота для viewer */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px; /* БЕЗ зазора между страницами разворота */
    padding: 20px;
    overflow: hidden;
}

.flipbook-page {
    position: relative;
    background: white;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1), /* Уменьшена тень */
        inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.6s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Скрытие страниц при первом рендере */
.flipbook-page.page-initial {
    opacity: 0;
}

/* Динамические пропорции для страниц */
.flipbook-page.aspect-169 {
    width: 45%;
    max-height: 90%;
}

.flipbook-page.aspect-11 {
    width: 40%;
    max-height: 90%;
}

.flipbook-page.aspect-a4-v {
    width: 35%;
    max-height: 90%;
}

.flipbook-page.aspect-a4-h {
    width: 50%;
    max-height: 90%;
}

.flipbook-page.aspect-43 {
    width: 42%;
    max-height: 90%;
}

/* Одиночная страница (обложка) - центрируется, БЕЗ absolute */
.flipbook-page.single-page {
    /* Без позиционирования - будет центрирована через flex в родителе */
}

.flipbook-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Убираем absolute позиционирование для разворотов */
.flipbook-page-left {
    /* Без позиционирования */
}

.flipbook-page-right {
    /* Без позиционирования */
}

/* ===== ПАРАЛЛЕЛЬНАЯ АНИМАЦИЯ С ВРЕМЕННЫМ ЛАГОМ ===== */

/* Анимация для перелистывания ВПЕРЁД */
/* Левая страница уходит первой */
.flipbook-page.slide-out-left-first {
    animation: slideOutLeft 0.5s ease-out forwards;
}

/* Правая страница уходит с задержкой */
.flipbook-page.slide-out-left-second {
    animation: slideOutLeft 0.5s ease-out 0.1s forwards;
}

@keyframes slideOutLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-80px);
        opacity: 0;
    }
}

/* Левая страница появляется первой */
.flipbook-page.slide-in-left-first {
    opacity: 0;
    animation: slideInFromRight 0.6s ease-out forwards;
}

/* Правая страница появляется с задержкой */
.flipbook-page.slide-in-left-second {
    opacity: 0;
    animation: slideInFromRight 0.6s ease-out 0.15s forwards;
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(60px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Анимация для перелистывания НАЗАД */
/* Правая страница уходит первой */
.flipbook-page.slide-out-right-first {
    animation: slideOutRight 0.5s ease-out forwards;
}

/* Левая страница уходит с задержкой */
.flipbook-page.slide-out-right-second {
    animation: slideOutRight 0.5s ease-out 0.1s forwards;
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(80px);
        opacity: 0;
    }
}

/* Правая страница появляется первой */
.flipbook-page.slide-in-right-first {
    opacity: 0;
    animation: slideInFromLeft 0.6s ease-out forwards;
}

/* Левая страница появляется с задержкой */
.flipbook-page.slide-in-right-second {
    opacity: 0;
    animation: slideInFromLeft 0.6s ease-out 0.15s forwards;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-60px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Контейнер для controls и toolbar - оба блока рядом в центре */
.flipbook-footer-controls {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* Зазор между блоками */
    margin-top: -10px; /* Поднимаем на 20px (было 10px) */
    margin-bottom: 10px; /* Уменьшен отступ после кнопок на 30px (было 40px) */
}

/* Навигационный блок - в стиле toolbar */
.flipbook-controls {
    position: relative;
    display: flex;
    gap: 6px; /* Как у toolbar */
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px; /* Как у toolbar */
    border-radius: 10px; /* Как у toolbar */
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    width: fit-content;
}

.flipbook-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px; /* Как у toolbar (было 50% - круглые) */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    position: relative;
}

.flipbook-btn:hover:not(:disabled) {
    transform: translateY(-2px); /* Как у toolbar */
    box-shadow: 0 4px 12px rgba(0, 155, 168, 0.4);
}

.flipbook-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.flipbook-page-info {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    min-width: fit-content;
    padding: 0 8px;
    text-align: center;
    background: rgba(0, 155, 168, 0.08);
    border-radius: 4px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flipbook-upload-area {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    text-align: center;
}

.flipbook-upload-area i {
    font-size: 64px;
    color: var(--primary-color);
    opacity: 0.6;
}

.flipbook-upload-area h3 {
    font-size: 24px;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

.flipbook-upload-area p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

/* ===== НОВЫЕ СТИЛИ ДЛЯ УЛУЧШЕННОГО FLIPBOOK (V3.0 PRO) ===== */

/* Toolbar стили - размещён справа на уровне навигации */
.flipbook-toolbar {
    position: relative;
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    width: fit-content;
}

.flipbook-tool-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    width: 32px; /* Было 44px */
    height: 32px; /* Было 44px */
    border-radius: 6px; /* Было 8px */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px; /* Было 18px */
    position: relative;
}

.flipbook-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 155, 168, 0.4);
}

.flipbook-tool-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
}

/* Zoom стили для разворотов (без наложения) */
.flipbook-viewer.zoomed {
    transform: scale(1.4);
    z-index: 200;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flipbook-page.zoomed {
    cursor: zoom-out;
}

/* Для одиночной страницы - обычный zoom */
.flipbook-page.single-page.zoomed {
    transform: scale(1.5) !important;
    z-index: 200 !important;
    cursor: zoom-out;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover эффект убран для страниц отчёта */
.flipbook-page:hover {
    /* box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(0, 0, 0, 0.12) !important; */
}

/* Zoom hint */
.zoom-hint {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 150;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    white-space: nowrap;
}

.zoom-hint i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Thumbnails panel */
.flipbook-thumbnails {
    position: absolute;
    left: 0;
    top: 0;
    width: 280px;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
    z-index: 102;
    overflow-y: auto;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flipbook-thumbnails.visible {
    transform: translateX(0);
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.thumbnail-item {
    position: relative;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 155, 168, 0.3);
    border-color: var(--primary-color);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    border-width: 3px;
    box-shadow: 0 4px 16px rgba(0, 155, 168, 0.4);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.thumbnail-number {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Thumbnails адаптивные пропорции */
.thumbnail-item.aspect-169 {
    aspect-ratio: 16 / 9;
}

.thumbnail-item.aspect-11 {
    aspect-ratio: 1 / 1;
}

.thumbnail-item.aspect-a4-v {
    aspect-ratio: 1 / 1.414;
}

.thumbnail-item.aspect-a4-h {
    aspect-ratio: 1.414 / 1;
}

.thumbnail-item.aspect-43 {
    aspect-ratio: 4 / 3;
}

/* Fullscreen mode */
.flipbook-container.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
}

.flipbook-container.fullscreen-mode .flipbook-page {
    max-width: 90vw;
    max-height: 90vh;
}

/* Page curl effect (эффект изгиба угла страницы) */
.page-curl-effect {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.05) 0%, 
        rgba(0, 0, 0, 0.02) 50%, 
        transparent 50%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Hover эффект убран для эффекта загиба страницы */
.flipbook-page:hover .page-curl-effect {
    /* opacity: 1; */
}

/* Scrollbar для thumbnails */
.flipbook-thumbnails::-webkit-scrollbar {
    width: 8px;
}

.flipbook-thumbnails::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

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

.flipbook-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive для toolbar */
@media (max-width: 768px) {
    .flipbook-toolbar {
        top: 10px;
        right: 10px;
        padding: 6px;
    }
    
    .flipbook-tool-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .flipbook-thumbnails {
        width: 220px;
    }
}

/* ===== КОНЕЦ НОВЫХ СТИЛЕЙ V3.0 PRO ===== */

.flipbook-upload-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 155, 168, 0.3);
}

.flipbook-upload-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 155, 168, 0.4);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .progress-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }
    
    .sidebar {
        position: fixed;
        width: 100%;
        height: 60px;
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 15px;
        background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
        top: 0;
        left: 0;
        z-index: 1001;
        pointer-events: all;
    }
    
    .burger-menu {
        display: flex;
        pointer-events: all;
    }
    
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .nav-logo {
        padding: 0;
    }
    
    .nav-logo img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .nav-icons-backdrop {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 250px;
        height: calc(100vh - 60px);
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
        padding: 20px 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 0;
    }
    
    .nav-icons-backdrop.active {
        left: 0;
    }
    
    .nav-double-separator {
        display: none;
    }
    
    .nav-main-items {
        flex: initial;
    }
    
    .nav-bottom-item {
        margin-top: auto;
    }
    
    .nav-separator {
        width: 100%;
        margin: 0;
    }
    
    .nav-icon {
        width: 100%;
        height: 60px;
        padding: 15px 20px;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .nav-icon i {
        font-size: 24px;
        width: 30px;
    }
    
    .nav-icon::after {
        position: static;
        opacity: 1;
        background: transparent;
        color: white;
        padding: 0;
        transform: none;
        font-size: 16px;
        font-weight: 400;
    }
    
    .nav-icon:hover::after {
        opacity: 1;
    }
    
    /* Бургер-меню */
    .burger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 5px;
        z-index: 1002;
    }
    
    .burger-menu span {
        width: 25px;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: var(--transition);
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .data-actual-bar {
        font-size: 12px;
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 24px !important;
    }
    
    .section-subtitle {
        font-size: 14px !important;
    }
    
    .subprojects-progress h2,
    .comments-section h2 {
        font-size: 24px !important;
    }
    
    .overview-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .progress-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .circular-chart {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    
    .mobilization-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobilization-item {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .progress-overview,
    .comments-section,
    .project-info-section,
    .pdf-report-section {
        padding: 30px 15px;
    }
    
    .subprojects-mini-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-title {
        font-size: 20px !important;
        letter-spacing: 1px !important;
    }
    
    .section-subtitle {
        font-size: 13px !important;
    }
    
    .subprojects-progress h2,
    .comments-section h2 {
        font-size: 20px !important;
        margin-bottom: 30px !important;
    }
    
    .circular-chart {
        width: 240px;
        height: 240px;
    }
    
    .chart-center-text .label-inline {
        font-size: 16px;
    }
    
    .chart-center-text .values-inline {
        font-size: 22px;
    }
    
    .main-text {
        font-size: 14px !important;
        text-align: left !important;
    }
    
    .mobilization-block h3 {
        font-size: 16px !important;
    }
    
    .mobilization-value {
        font-size: 24px !important;
    }
    
    .progress-card h3 {
        font-size: 14px !important;
    }
    
    .data-actual-bar {
        font-size: 11px;
        height: 30px;
    }
}
