/* =========================================
   1. БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ
   ========================================= */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #6c757d;
    --accent-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --bg-page: #f0f2f5;
    --bg-insight: #f0f7ff;
    --link-hover-bg: rgb(13 110 253 / 5%);
    --border-light: rgb(0 0 0 / 10%);
    --border-medium: rgb(0 0 0 / 12%);
    --text-serif: 'Merriweather', serif;
    --text-sans: 'Inter', sans-serif;

    /* Размеры и отступы */
    --font-size-base: 16px;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --border-radius-block: 12px;
    --border-radius-card: 16px;
    --font-size-lg: 1.125rem;

    /* Тени */
    --shadow-sm: 0 2px 4px rgb(0 0 0 / 2%), 0 1px 2px rgb(0 0 0 / 3%);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 5%), 0 2px 4px -1px rgb(0 0 0 / 3%);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 5%), 0 10px 10px -5px rgb(0 0 0 / 2%);
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    background-color: var(--bg-page) !important;
    color: #1e293b;
    font-family: var(--text-sans);
    line-height: 1.6;
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

.font-serif {
    font-family: var(--text-serif);
}

/* =========================================
   1.5. УЛУЧШЕНИЯ ЧИТАБЕЛЬНОСТИ И ДАННЫЕ
   ========================================= */

/* --- ВЫДЕЛЕНИЕ ЦИФР И ДАННЫХ --- */
.data-highlight {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    display: inline-block;
    margin-right: 0.25rem;
}

.data-highlight-sm {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* --- ВЫДЕЛЕНИЕ ТЕКСТА (для консистентности с v2) --- */
.text-accent-bold {
    font-weight: 700;
    color: var(--primary-color);
}

.text-accent-color {
    color: var(--accent-color);
    font-weight: 600;
}

/* --- БЛОК ВЫВОДА (INSIGHT) - модификаторы --- */
.insight-block.insight-block--green {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, #f0f9f0 0%, #fff 100%);
}

.insight-block.insight-block--green .text-accent-bold {
    color: var(--success-color);
}

.insight-block.insight-block--yellow {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    transition: all 0.3s ease;
}

.insight-block.insight-block--yellow:hover {
    box-shadow: 0 6px 20px rgb(0 0 0 / 12%);
    transform: translateY(-2px);
}

.insight-block.insight-block--yellow p {
    font-weight: 300;
    font-size: 0.9rem;
}

.insight-block.insight-block--yellow .text-accent-bold {
    color: var(--warning-color);
}

.insight-block.insight-block--red {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, #fff0f0 0%, #fff 100%);
}

.insight-block.insight-block--red .text-accent-bold {
    color: var(--danger-color);
}

.insight-block.insight-block--dark {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.insight-block.insight-block--dark .text-accent-bold {
    color: var(--primary-color);
}

/* Ключевое отличие - полоска справа, фиолетовый акцент */
.insight-block.insight-block--key-differentiator {
    border-left: none;
    border-right: 6px solid #6f42c1;
    background: linear-gradient(135deg, #f8f4ff 0%, #fff 100%);
    border-radius: var(--border-radius-block) 0 0 var(--border-radius-block);
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    transition: all 0.3s ease;
}

.insight-block.insight-block--key-differentiator:hover {
    box-shadow: 0 6px 20px rgb(0 0 0 / 12%);
    transform: translateY(-2px);
}

.insight-block.insight-block--key-differentiator p {
    font-weight: 300;
    font-size: 0.9rem;
}

.insight-block.insight-block--key-differentiator h4 {
    font-weight: 600;
}

.insight-block.insight-block--key-differentiator .text-accent-bold {
    color: #6f42c1;
}

/* Правосторонний блок - полоска справа, текст выровнен по правому краю */
.insight-block.insight-block--right {
    border-left: none;
    border-right: 4px solid #5a9fd6;
    border-radius: 10px 0 0 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.insight-block.insight-block--right p {
    font-weight: 300;
}

.insight-block.insight-block--right .fw-bold {
    font-weight: 400;
}

.insight-block.insight-block--right a {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
}

.insight-block.insight-block--right a:hover {
    text-decoration: underline;
}

/* --- КАРТОЧКИ РЫНКОВ (TAM/SAM/SOM) - УЛУЧШЕННЫЕ --- */
.market-card {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: 1px solid rgb(0 0 0 / 8%);
    border-radius: var(--border-radius-card);
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px -8px rgb(0 0 0 / 10%);
    position: relative;
    overflow: hidden;
}

.market-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgb(0 0 0 / 15%);
    background: linear-gradient(145deg, #fff, #f1f3f5);
}

.market-card .badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    margin-bottom: 0.75rem;
}

.market-card .data-highlight {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.market-card .metric-label {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.market-card .metric-note {
    font-size: 0.75rem;
    color: #6c757d;
}

.market-card .market-source {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgb(0 0 0 / 10%);
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Вертикальная граница для колонок в карточках */
@media (width >= 768px) {
    .border-end-md {
        border-right: 1px solid rgb(0 0 0 / 10%) !important;
        padding-right: 1.5rem;
    }
}

/* --- УМНЫЕ КАРТОЧКИ (TAM/SAM/SOM) --- */
.smart-card {
    background: linear-gradient(135deg, #fff, #f8fafc);
    border-radius: var(--border-radius-card);
    padding: var(--spacing-lg);
    height: 100%;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.smart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgb(0 0 0 / 10%);
}

/* --- КАРТОЧКИ РИСКОВ --- */
.risk-card {
    background-color: #fff;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
}

.risk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgb(0 0 0 / 10%);
}

.risk-header {
    background: linear-gradient(135deg, #6610f2 0%, #dc3545 100%);
    color: #fff;
    padding: var(--spacing-lg);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

/* --- КАРТОЧКИ АКТИВОВ --- */
.asset-card {
    background-color: #fff;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
}

.asset-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgb(0 0 0 / 10%);
}

.asset-header {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    color: #fff;
    padding: var(--spacing-lg);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

/* --- СПИСКИ С ГАЛОЧКАМИ --- */
.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

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

/* --- БЛОК ВЫВОДА (INSIGHT) --- */
.insight-block {
    background: linear-gradient(135deg, var(--bg-insight), white);
    border-left: 6px solid var(--accent-color);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: 0 var(--border-radius-block) var(--border-radius-block) 0;
    box-shadow: var(--shadow-md);
    margin: var(--spacing-xl) 0;
    font-size: var(--font-size-lg);
    line-height: 1.8;
}

.insight-block .text-accent-bold {
    font-weight: 700;
    color: var(--primary-color);
}

/* Синий акцент (по умолчанию) */
.insight-block.insight-block--blue {
    border-left-color: var(--accent-color);
    background: linear-gradient(135deg, var(--bg-insight), white);
}

.insight-block.insight-block--blue .text-accent-bold {
    color: var(--accent-color);
}

/* --- КАРТОЧКИ ДРАЙВЕРОВ --- */
.driver-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.driver-card:hover .badge {
    background-color: var(--accent-color) !important;
    color: #fff !important;
}

/* --- УЛУЧШЕНИЕ ТАБЛИЦ --- */
.table td,
.table th {
    padding: 1rem 0.75rem;
}

/* Сравнительные таблицы (как в приложении А.2) */
.comparison-table th {
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    text-align: center;
    vertical-align: middle;
    font-size: 0.8rem;
}

.comparison-table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

.comparison-table .advantage {
    background-color: rgb(25 135 84 / 5%);
}

.comparison-table .advantage td:last-child {
    font-weight: 600;
    color: var(--success-color);
}

.comparison-table .table-active {
    background-color: rgb(13 110 253 / 5%);
}

/* Адаптивность для сравнительной таблицы на мобильных */
@media (width <= 576px) {
    .comparison-table th,
    .comparison-table td {
        font-size: 0.65rem;
        padding: 0.35rem 0.25rem;
    }

    .comparison-table th {
        letter-spacing: 0.05px;
    }

    .comparison-table th .small {
        font-size: 0.45rem !important;
    }

    .comparison-table .badge {
        font-size: 0.5rem;
        padding: 1px 3px;
    }
}

@media (width >= 577px) and (width <= 768px) {
    .comparison-table th,
    .comparison-table td {
        font-size: 0.72rem;
        padding: 0.5rem 0.4rem;
    }

    .comparison-table th .small {
        font-size: 0.52rem !important;
    }

    .comparison-table .badge {
        font-size: 0.58rem;
        padding: 2px 4px;
    }
}

@media (width >= 769px) and (width <= 992px) {
    .comparison-table th,
    .comparison-table td {
        font-size: 0.78rem;
        padding: 0.6rem 0.5rem;
    }

    .comparison-table th .small {
        font-size: 0.58rem !important;
    }

    .comparison-table .badge {
        font-size: 0.62rem;
        padding: 2px 5px;
    }
}

@media (width >= 993px) and (width <= 1200px) {
    .comparison-table th,
    .comparison-table td {
        font-size: 0.85rem;
        padding: 0.7rem;
    }

    .comparison-table th .small {
        font-size: 0.62rem !important;
    }

    .comparison-table .badge {
        font-size: 0.66rem;
        padding: 3px 6px;
    }
}

@media (width >= 1201px) {
    .comparison-table th,
    .comparison-table td {
        font-size: 0.9rem;
        padding: 0.75rem 0.85rem;
    }

    .comparison-table th .small {
        font-size: 0.68rem !important;
    }

    .comparison-table .badge {
        font-size: 0.72rem;
        padding: 3px 7px;
    }
}

/* --- УЛУЧШЕНИЕ ССЫЛОК --- */
.internal-link {
    border-bottom-width: 2px;
    padding-bottom: 2px;
}

/* Кастомные маркеры для списков преимуществ */
.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding-left: 1.8rem;
    position: relative;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* =========================================
   2. ШАПКА И ЛОГОТИП
   ========================================= */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    background-color: rgb(255 255 255 / 98%) !important;
    border-bottom: 1px solid rgb(0 0 0 / 5%);
    box-shadow: 0 4px 20px rgb(0 0 0 / 2%);
}

.container-fluid {
    max-width: 1920px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    margin: 0;
    text-decoration: none;
}

.brand-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.brand-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: rgb(255 255 255 / 90%);
    border-radius: 3px;
}

.navbar-brand:hover .brand-mark {
    transform: rotate(90deg);
}

.brand-name {
    font-family: var(--text-sans);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    white-space: nowrap;
}

.brand-tagline {
    font-family: var(--text-sans);
    font-size: 1rem;
    font-weight: 400;
    color: var(--secondary-color);
    letter-spacing: -0.01em;
    border-left: 1px solid rgb(0 0 0 / 15%);
    padding-left: 0.75rem;
    white-space: nowrap;
}

.navbar-toggler {
    width: auto;
    height: 48px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    justify-content: center;
    background-color: rgb(0 0 0 / 3%);
    border: 1px solid rgb(0 0 0 / 10%);
    border-radius: 8px;
    transition: all 0.2s;
    z-index: 1100;
}

.navbar-toggler .navbar-toggler-icon {
    filter: invert(35%) sepia(20%) saturate(300%) hue-rotate(180deg);
    width: 1.2em;
    height: 1.2em;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgb(0 0 0 / 6%);
    border-color: rgb(13 110 253 / 20%);
    transform: translateY(-1px);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgb(13 110 253 / 25%);
    border-color: var(--accent-color);
}

.navbar-toggler-line {
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================================
   3. OFFCANVAS - УЛУЧШЕННЫЙ ДИЗАЙН МЕНЮ
   ========================================= */

/* Основной контейнер оффкэнваса */
.offcanvas {
    width: 320px !important;
    flex-direction: column;
    max-height: 100vh !important; /* Makes offcanvas height independent of header */
    height: 100vh !important; /* Full viewport height */
    top: 0 !important; /* Ensures it starts from the top of the viewport */
    background: linear-gradient(to bottom, #fff 0%, #f8fafd 100%) !important;
    box-shadow: -10px 0 30px rgb(0 0 0 / 8%) !important;
    border-radius: 0 !important;
    overflow: hidden;
}

/* Заголовок оффкэнваса */
.offcanvas-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
    color: #fff;
    padding: 1.5rem 1.5rem 1rem !important;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    box-shadow: 0 2px 10px rgb(0 0 0 / 5%);
}

.offcanvas-title {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    transition: all 0.2s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Основное тело оффкэнваса */
.offcanvas-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.25rem 1rem !important;
    display: flex;
    flex-direction: column;
}

/* Стили для ссылок в меню */
.offcanvas .nav-link {
    font-family: var(--text-sans);
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    margin: 0.15rem 0;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.offcanvas .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.offcanvas .nav-link:hover {
    background-color: rgb(13 110 253 / 6%);
    color: var(--accent-color);
    transform: translateX(4px);
    border-color: rgb(13 110 253 / 10%);
}

.offcanvas .nav-link:hover::before {
    transform: scaleY(1);
}

.offcanvas .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgb(30 58 95 / 5%);
    border-left: 3px solid var(--primary-color);
    border-color: rgb(30 58 95 / 15%);
}

.offcanvas .nav-link.active::before {
    transform: scaleY(1);
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

/* Разделитель между меню и контактами */
.offcanvas-body > .mt-auto.pt-3.border-top {
    margin-top: 1.5rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid rgb(0 0 0 / 8%) !important;
    background: rgb(249 250 251 / 70%);
    border-radius: 8px;
    padding: 1rem !important;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: -1.25rem;
}

.offcanvas-body > .mt-auto.pt-3.border-top p {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.offcanvas-body > .mt-auto.pt-3.border-top a {
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.offcanvas-body > .mt-auto.pt-3.border-top a:hover {
    color: var(--accent-color);
    transform: translateX(2px);
}

/* =========================================
   4. КОНТЕЙНЕР "БУМАЖНЫЙ ЛИСТ"
   ========================================= */
.paper-sheet {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgb(0 0 0 / 3%), 0 10px 40px rgb(0 0 0 / 6%);
    border: 1px solid rgb(0 0 0 / 2%);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.block-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    box-shadow: 0 4px 6px rgb(13 110 253 / 15%);
}

/* =========================================
   5. ТИПОГРАФИКА И ЭЛЕМЕНТЫ
   ========================================= */
.blockquote-custom {
    background: linear-gradient(145deg, var(--bg-insight), white);
    border-left: 5px solid var(--accent-color);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border-radius: 0 var(--border-radius-block) var(--border-radius-block) 0;
    margin: var(--spacing-lg) 0;
    font-size: var(--font-size-lg);
    line-height: 1.8;
}

.lead-text-box {
    background: linear-gradient(145deg, var(--bg-insight), white);
    border-left: 5px solid var(--accent-color);
    padding: var(--spacing-lg);
    border-radius: 0 var(--border-radius-block) var(--border-radius-block) 0;
    box-shadow: var(--shadow-md);
    margin: var(--spacing-lg) 0;
    font-size: var(--font-size-lg);
    line-height: 1.8;
}

.lead-text-box strong {
    color: var(--primary-color);
    font-weight: 700;
}

.tracking-wide {
    letter-spacing: 0.08em;
}


.hover-bg-gray:hover {
    background-color: #f8f9fa;
}

.stretched-link {
    word-break: break-word;
}

/* =========================================
   6. ССЫЛКИ
   ========================================= */
.internal-link {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-color);
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}

.internal-link:hover {
    border-bottom: 1px solid var(--accent-color);
    background-color: var(--link-hover-bg);
}

.block-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    font-weight: 500;
    padding: 0 2px;
    transition: all 0.2s ease;
}

.block-link::after {
    content: "↗";
    display: inline-block;
    margin-left: 3px;
    font-size: 0.8em;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.block-link:hover::after {
    transform: translate(2px, -2px);
    opacity: 1;
}

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

.quick-links {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.quick-links a {
    color: var(--accent-color);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.quick-links a:hover {
    background-color: var(--link-hover-bg);
    text-decoration: underline;
}

.quick-links a.active {
    background-color: var(--accent-color);
    color: #fff !important;
    font-weight: 500;
    text-decoration: none;
}

.quick-links a.active:hover {
    background-color: var(--primary-color);
}

.quick-links .separator {
    color: var(--secondary-color);
    opacity: 0.5;
}

.breadcrumb-custom {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.breadcrumb-custom ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.breadcrumb-custom li:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: var(--secondary-color);
    opacity: 0.5;
}

.breadcrumb-custom a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb-custom .active {
    color: var(--secondary-color);
}

.related-links {
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 3rem;
    box-shadow: 0 2px 8px rgb(0 0 0 / 2%);
}

.related-links h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.related-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.related-links li {
    flex: 1 1 45%;
}

.related-links a {
    display: block;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.related-links a:hover {
    background-color: var(--link-hover-bg);
    transform: translateX(4px);
    border-color: var(--accent-color);
}

.shadow-inner {
    box-shadow: inset 0 2px 4px rgb(0 0 0 / 5%);
}

.table-hover tbody tr:hover {
    background-color: rgb(13 110 253 / 2%);
    transform: scale(1.002);
    box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
    transition: all 0.2s ease;
}

.bg-primary.bg-opacity-5 {
    background-color: rgb(13 110 253 / 5%);
}

/* Эффект поднятия при наведении */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgb(0 0 0 / 10%);
}

/* =========================================
   7. ФИНАНСОВЫЙ ПРОГНОЗ И ВЫХОД (ВАРИАНТ 1)
   ========================================= */

/* --- ФИНАНСОВАЯ ТАБЛИЦА --- */
.finance-table-v1 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.finance-table-v1 table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.finance-table-v1 thead {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.finance-table-v1 th {
    color: #fff;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1rem 0.75rem;
    text-align: left;
    border: none;
    white-space: nowrap;
}

.finance-table-v1 th:nth-child(3),
.finance-table-v1 th:nth-child(4) {
    text-align: right;
}

.finance-table-v1 td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    font-size: 0.875rem;
}

.finance-table-v1 td:nth-child(3),
.finance-table-v1 td:nth-child(4) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.finance-table-v1 tbody tr:last-child td {
    border-bottom: none;
}

.finance-table-v1 tbody tr:hover {
    background: #f8fafc;
}

.finance-table-v1 .year-cell {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.finance-table-v1 .goal-cell {
    font-size: 0.8rem;
    color: var(--secondary-color);
    max-width: 200px;
}

.finance-table-v1 .revenue-cell {
    font-weight: 600;
    color: var(--primary-color);
}

.finance-table-v1 .ebitda-negative {
    color: var(--danger-color);
    font-weight: 600;
}

.finance-table-v1 .ebitda-positive {
    color: var(--success-color);
    font-weight: 700;
}

/* --- KPI CARDS GRID --- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

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

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.kpi-icon.breakeven {
    background: linear-gradient(135deg, #ffc10720, #ffc10710);
}

.kpi-icon.roi {
    background: linear-gradient(135deg, #19875420, #19875410);
}

.kpi-icon.exit {
    background: linear-gradient(135deg, #0d6efd20, #0d6efd10);
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* --- EXIT PATH BLOCK --- */
.exit-path-block {
    background: linear-gradient(145deg, #fff, #f8fafc);
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.exit-option {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.exit-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #0a58ca);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.exit-content h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.25rem;
}

.exit-content p {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
}

.exit-divider {
    width: 1px;
    background: var(--border-medium);
    flex-shrink: 0;
}

/* --- INSIGHT FOOTER --- */
.insight-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.25rem;
    border-radius: 0 10px 10px 0;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    transition: all 0.3s ease;
}

.insight-footer:hover {
    box-shadow: 0 6px 20px rgb(0 0 0 / 12%);
    transform: translateY(-2px);
}

.insight-footer a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.insight-footer a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVE --- */
@media (width <= 768px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .exit-path-block {
        flex-direction: column;
        gap: 1rem;
    }

    .exit-divider {
        display: none;
    }
}

/* --- SECTION LABEL --- */
.section-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* Для круглых иконок */
.bg-primary.bg-opacity-10,
.bg-success.bg-opacity-10,
.bg-warning.bg-opacity-10,
.bg-info.bg-opacity-10 {
    transition: all 0.2s ease;
}

.card:hover .bg-primary.bg-opacity-10 {
    background-color: rgb(13 110 253 / 20%);
}

.card:hover .bg-success.bg-opacity-10 {
    background-color: rgb(25 135 84 / 20%);
}

.card:hover .bg-warning.bg-opacity-10 {
    background-color: rgb(255 193 7 / 20%);
}

.card:hover .bg-info.bg-opacity-10 {
    background-color: rgb(13 202 240 / 20%);
}

/* Для улучшения читаемости таблицы */
.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
}

/* Для выделения колонки с ущербом */
.bg-danger.bg-opacity-10 {
    background-color: rgb(220 53 69 / 5%) !important;
}

/* Анимация при наведении на строку */
.table-hover tbody tr:hover {
    background-color: rgb(13 110 253 / 2%);
    transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover .bg-danger.bg-opacity-10 {
    background-color: rgb(220 53 69 / 10%) !important;
}


/* Для выделения текста фоном */
.bg-primary.bg-opacity-10 {
    background-color: rgb(13 110 253 / 10%);
}

/* Градиентный фон для карточки */
.bg-gradient-primary {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid rgb(13 110 253 / 10%);
}

/* Тень при наведении */
.shadow-lg {
    transition: box-shadow 0.3s ease;
}

.shadow-lg:hover {
    box-shadow: 0 1rem 3rem rgb(13 110 253 / 15%) !important;
}


/* Для карточек SWOT */
.card {
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 10%);
}

/* Цветные заголовки карточек */
.card-header.bg-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.card-header.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e6ac00 100%);
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.card-header.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #b52b3a 100%);
}

/* Нумерованные списки */
.list-group-numbered {
    counter-reset: item;
}

.list-group-numbered > .list-group-item::before {
    content: counter(item) ". ";
    counter-increment: item;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Стили для улучшенного меню */
.offcanvas .btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
}

.offcanvas .btn-outline-primary:hover {
    background-color: var(--accent-color, #0d6efd);
    color: #fff;
}

.hover-bg-light:hover {
    background-color: #f8f9fa;
}

/* =========================================
   7. КНОПКА "НАВЕРХ"
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgb(13 110 253 / 30%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 9999;
}

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

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

/* =========================================
   8. СПЕЦИАЛЬНЫЕ ЭФФЕКТЫ
   ========================================= */
:target {
    animation: highlight 2s ease;
    scroll-margin-top: 90px;
}

@keyframes highlight {
    0% { background-color: rgb(255 243 205 / 50%); }
    100% { background-color: transparent; }
}

.toc {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
}

/* =========================================
   8.5. FUND ALLOCATION SECTION STYLES
   ========================================= */

/* ==================== ВАРИАНТ 2: ГОРИЗОНТАЛЬНЫЕ БЛОКИ ==================== */
.allocation-v2-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.allocation-stream-v2 {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.25s ease;
}

.allocation-stream-v2:hover {
    box-shadow: 0 8px 20px -8px rgb(0 0 0 / 10%);
    transform: translateX(4px);
}

.stream-header-v2 {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.stream-header-v2.acquisition {
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
    border-left: 5px solid var(--accent-color);
}

.stream-header-v2.growth {
    background: linear-gradient(135deg, #f0f9f4 0%, #fff 100%);
    border-left: 5px solid var(--success-color);
}

.stream-number-v2 {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.stream-number-v2.acquisition {
    background: linear-gradient(135deg, var(--accent-color), #0a58ca);
    color: #fff;
}

.stream-number-v2.growth {
    background: linear-gradient(135deg, var(--success-color), #146c43);
    color: #fff;
}

.stream-title-v2 {
    flex: 1;
}

.stream-title-v2 h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stream-title-v2 span {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.stream-amount-v2 {
    text-align: right;
}

.stream-amount-v2 .amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1.2;
}

.stream-amount-v2 .percent {
    font-size: 0.85rem;
    font-weight: 600;
}

.stream-amount-v2 .percent.acquisition { color: var(--accent-color); }
.stream-amount-v2 .percent.growth { color: var(--success-color); }

.stream-body-v2 {
    padding: 1.25rem 1.5rem;
}

.stream-purpose-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
}

.stream-purpose-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.stream-purpose-list li::before {
    content: "→";
    color: var(--accent-color);
    font-weight: 600;
    flex-shrink: 0;
}

/* Группы фаз */
.phase-group {
    margin-bottom: 1rem;
}

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

.phase-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ==================== ВАРИАНТ 4: ИНФОГРАФИКА ==================== */
.allocation-v4-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.allocation-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.allocation-viz {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    width: 100%;
}

.donut-chart {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 1.5rem;
}

.donut-chart svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
    display: block;
}

.donut-segment {
    fill: none;
    stroke-width: 35;
}

.donut-segment.acquisition {
    stroke: var(--accent-color);
    stroke-dasharray: 175.93 263.89;
}

.donut-segment.growth {
    stroke: var(--success-color);
    stroke-dasharray: 263.89 175.93;
    stroke-dashoffset: -175.93;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-center .total-label {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.donut-center .total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.donut-center .total-unit {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.donut-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.acquisition { background: var(--accent-color); }
.legend-dot.growth { background: var(--success-color); }

.legend-text {
    font-weight: 500;
    color: var(--secondary-color);
}

.legend-value {
    font-weight: 700;
    color: var(--primary-color);
}

.allocation-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Развёрнутые карточки (Вариант 2) для использования в allocation-details */
.allocation-details .allocation-stream-v2 {
    box-shadow: 0 2px 8px rgb(0 0 0 / 4%);
}

.allocation-details .allocation-stream-v2:hover {
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    transform: translateX(2px);
}

/* Упрощённые detail-card (для других случаев) */
.detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgb(0 0 0 / 8%);
}

.detail-card.acquisition {
    border-left: 4px solid var(--accent-color);
}

.detail-card.growth {
    border-left: 4px solid var(--success-color);
}

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

.detail-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.detail-subtitle {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.detail-amount {
    text-align: right;
}

.detail-amount .value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.detail-amount .percent {
    font-size: 0.8rem;
    font-weight: 600;
}

.detail-amount .percent.acquisition { color: var(--accent-color); }
.detail-amount .percent.growth { color: var(--success-color); }

.detail-purpose {
    font-size: 0.85rem;
    color: var(--secondary-color);
    line-height: 1.5;
}

.detail-purpose strong {
    color: var(--primary-color);
}

/* Fund Summary (Вариант 2) */
.fund-summary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-card);
    margin-top: 1.5rem;
}

.fund-summary-title {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.fund-summary-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.fund-summary .internal-link {
    color: rgb(255 255 255 / 90%);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.fund-summary .internal-link:hover {
    color: #fff;
    text-decoration: none;
}

/* Fund Summary Enhanced (Вариант 2 - улучшенный) */
.fund-summary--enhanced {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-card);
    margin-top: 1.5rem;
}

.fund-summary--enhanced .fund-summary-title {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.fund-summary--enhanced .fund-summary-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem;
}

.fund-summary--enhanced .fund-summary-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.fund-summary--enhanced .fund-summary-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgb(255 255 255 / 80%);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.3;
}

.fund-summary--enhanced .fund-summary-list li:last-child {
    margin-bottom: 0;
}

.fund-summary--enhanced .fund-summary-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.fund-summary--enhanced .internal-link {
    color: rgb(255 255 255 / 90%);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.fund-summary--enhanced .internal-link:hover {
    color: #fff;
    text-decoration: none;
}

/* Responsive adjustments */
@media (width <= 768px) {
    .allocation-v2-container,
    .allocation-v4-wrapper {
        gap: 1rem;
    }
    
    .stream-purpose-list {
        grid-template-columns: 1fr;
    }
    
    .allocation-viz {
        padding: 1.5rem;
    }
    
    .donut-chart {
        width: 200px;
        height: 200px;
    }
}

/* =========================================
   8.5. РАЗДЕЛИТЕЛЬНЫЕ ЛИНИИ ПОСЛЕ ЗАГОЛОВКОВ
   ========================================= */
hr.border-secondary.opacity-25 {
    margin-bottom: 1.5rem !important;
}

/* =========================================
   8.5. ПРОБЛЕМА И СТРАТЕГИЧЕСКОЕ РЕШЕНИЕ (ВАРИАНТ 2: ВЕРТИКАЛЬНЫЙ FLOW)
   ========================================= */
.flow-container-v2 {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.problem-block-v2 {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
    color: #fff;
    border-radius: 16px 16px 0 0;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.problem-block-v2::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 150px;
    height: 150px;
    background: rgb(255 255 255 / 3%);
    border-radius: 50%;
}

.problem-block-v2 .block-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(255 255 255 / 60%);
    margin-bottom: 0.5rem;
}

.problem-block-v2 .block-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #fff;
}

.problem-block-v2 .block-text {
    font-size: 0.95rem;
    color: rgb(255 255 255 / 85%);
    line-height: 1.7;
    margin: 0;
}

.stat-highlight-v2 {
    display: inline-block;
    background: rgb(255 107 107 / 20%);
    color: #ff6b6b;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
}

.pain-points-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.pain-item-v2 {
    text-align: center;
    padding: 0.75rem;
    background: rgb(255 255 255 / 5%);
    border-radius: 10px;
}

.pain-item-v2 .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ff6b6b;
    display: block;
    line-height: 1.2;
}

.pain-item-v2 .label {
    font-size: 0.7rem;
    color: rgb(255 255 255 / 60%);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Transition */
.transition-v2 {
    height: 50px;
    background: linear-gradient(180deg, #334155 0%, #f0f9f4 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transition-icon-v2 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgb(13 110 253 / 30%);
}

/* Solution Block */
.solution-block-v2 {
    background: linear-gradient(180deg, #f0f9f4 0%, #fff 100%);
    border-radius: 0 0 16px 16px;
    padding: 2rem;
    border: 1px solid rgb(25 135 84 / 15%);
    border-top: none;
}

.solution-block-v2 .block-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--success-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.solution-block-v2 .block-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--success-color);
}

.solution-block-v2 .block-text {
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.7;
    margin: 0 0 1.25rem;
}

.solution-features-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.solution-feature-v2 {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.solution-feature-v2 .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgb(25 135 84 / 10%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.solution-feature-v2 .text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Адаптивность для проблемы и стратегического решения */
@media (width <= 992px) {
    .pain-points-v2 {
        grid-template-columns: 1fr;
    }

    .solution-features-v2 {
        grid-template-columns: 1fr;
    }
}

@media (width <= 576px) {
    .problem-block-v2,
    .solution-block-v2 {
        padding: 1.5rem;
    }

    .problem-block-v2 .block-title,
    .solution-block-v2 .block-title {
        font-size: 1.1rem;
    }

    .pain-item-v2 .value {
        font-size: 1.25rem;
    }
}

/* =========================================
   9. АДАПТИВНОСТЬ
   ========================================= */
@media (width >= 2000px) {
    .container {
        max-width: 90%;
    }

    .container-fluid {
        max-width: 95%;
    }
}

@media (width >= 3840px) {
    .container {
        max-width: 85%;
    }

    body {
        font-size: 1.2rem;
    }

    .display-5 {
        font-size: 3rem;
    }

    .lead {
        font-size: 1.4rem;
    }
}

@media (width <= 576px) {
    .paper-sheet { padding: 1.5rem; }
    h1.display-5 { font-size: 1.75rem; }
    .brand-tagline { display: none; }
    body { padding-top: 70px; }
    .block-link { white-space: normal; }
    :target { scroll-margin-top: 120px; }

    .offcanvas {
        width: 100%;
    }

    /* Адаптивный блок "Стратегическое ценностное предложение" */
    .alert.alert-primary.d-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .alert.alert-primary .badge {
        align-self: flex-start;
        margin-right: 0;
    }

    .alert.alert-primary .flex-grow-1 {
        width: 100%;
    }

    .alert.alert-primary .btn {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media print {
    .navbar, .navbar-toggler, .btn, footer, .block-number, .quick-links, .breadcrumb-custom, .related-links, .back-to-top, .offcanvas, .offcanvas-backdrop {
        display: none !important;
    }

    body, .paper-sheet {
        background: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    a {
        text-decoration: none;
        color: #000;
        border-bottom: 1px dotted #999;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
        color: #666;
    }
}