/*
 * Раздел «Инвесторам» (/investors).
 *
 * Сетка, заголовки, кнопки и фоны секций — из site.min.css. Здесь только то,
 * чего на сайте нет: плитки с цифрами, нумерованные пункты, простые графики
 * и таблица. Цвета взяты из site.min.css: красный #e21e26, серый фон секций
 * #e7e8e9, серые цифры #c6c7c8, текст #231f20, тёмный фон #0c0c0c.
 */

.inv-kicker {
    margin: 0 0 20px;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e21e26;
}

.inv-actions {
    margin-top: 40px;
}

.inv-actions .button {
    margin-right: 30px;
}

.inv-link {
    display: inline-block;
    border-bottom: 2px solid #e21e26;
    line-height: 1.4;
}

.inv-hero .inv-link {
    color: #fff;
}

/* Плитки с цифрами */

.inv-stats {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.inv-stat {
    flex: 1 1 25%;
    min-width: 200px;
    padding: 0 15px 30px;
}

.inv-stat strong {
    display: block;
    font-family: "Proxima Nova Bl", "Proxima Nova Lt", Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 56px;
    line-height: 1.1;
    color: #231f20;
    padding-bottom: 10px;
    border-bottom: 4px solid #e21e26;
    white-space: nowrap;
}

.inv-stat span {
    display: block;
    margin-top: 15px;
}

.inv-stats-small {
    margin-top: 60px;
}

.inv-stats-small .inv-stat strong {
    font-size: 36px;
}

/* «Ключевые показатели бизнеса» в короткой версии: 2 × 2 в половине строки. */
.inv-stats-kpi .inv-stat {
    flex: 1 1 50%;
    min-width: 180px;
    padding-bottom: 40px;
}

.inv-stats-kpi .inv-stat strong {
    font-size: 44px;
}

.inv-stat small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: #8a8b8c;
}

/* Нумерованные пункты */

.inv-numbered {
    counter-reset: inv;
    list-style: none;
    margin: 0 -15px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.inv-numbered > li {
    counter-increment: inv;
    flex: 0 0 33.3333%;
    padding: 0 15px 40px;
    margin: 0;
}

.inv-numbered > li:before {
    content: counter(inv);
    display: block;
    font-family: "Proxima Nova Bl", "Proxima Nova Lt", Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 64px;
    line-height: 1;
    color: #e21e26;
    margin: 0 0 15px;
    padding: 0;
    width: auto;
    text-align: left;
}

.inv-numbered > li h4 {
    margin-top: 0;
}

/* Несколько абзацев в пункте — ближе друг к другу, чем общие 24px сайта. */
.inv-numbered > li p {
    margin-bottom: 10px;
}

.inv-numbered > li p:last-child {
    margin-bottom: 0;
}

/* Карточки */

.inv-card {
    border-top: 4px solid #e21e26;
    padding-top: 20px;
    margin-bottom: 40px;
}

.inv-card h3 {
    margin: 0;
}

.inv-role {
    margin-top: 5px;
    color: #e21e26;
}

.inv-facts {
    list-style: none;
    padding: 0;
    margin: 20px -15px 0;
    display: flex;
    flex-wrap: wrap;
}

.inv-facts > li {
    flex: 0 0 50%;
    padding: 0 15px 0 45px;
    margin: 0 0 25px;
    position: relative;
}

.inv-facts > li:before {
    content: "";
    position: absolute;
    left: 15px;
    top: 9px;
    width: 14px;
    height: 4px;
    margin: 0;
    padding: 0;
    background: #e21e26;
}

.inv-facts-single {
    margin-top: 0;
}

.inv-facts-single > li {
    flex-basis: 100%;
}

.inv-subtitle {
    margin: 60px 0 30px;
}

.inv-note {
    margin-top: 20px;
    max-width: 760px;
    font-size: 18px;
}

.inv-source {
    margin-top: 30px;
    font-size: 13px;
    line-height: 1.5;
    color: #8a8b8c;
}

.inv-disclaimer {
    margin-top: 80px;
    max-width: 900px;
}

/* Графики */

.inv-chart-title {
    margin: 0 0 25px;
}

.inv-columns {
    display: flex;
    align-items: flex-end;
    height: 260px;
    margin-bottom: 60px;
    border-bottom: 1px solid #c6c7c8;
}

.inv-column {
    flex: 1 1 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding: 0 6px;
}

.inv-column-value {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
}

.inv-column-bar {
    display: block;
    width: 100%;
    max-width: 72px;
    background: #e21e26;
    min-height: 2px;
}

.inv-column-bar.is-forecast {
    background: repeating-linear-gradient(135deg, #e21e26 0 6px, #f06a6f 6px 12px);
}

.inv-column-bar.is-muted,
.inv-bar-fill.is-muted,
.inv-swatch.is-muted {
    background: #9a9b9c;
}

.inv-column-label {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 13px;
    color: #6d6e70;
    white-space: nowrap;
}

/* Высота пары считается от общей колонки, поэтому сама пара тянется на всю высоту. */
.inv-columns-paired .inv-column-value {
    font-size: 13px;
}

.inv-column-pair {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: calc(100% - 26px);
}

.inv-column-pair .inv-column-bar {
    width: 45%;
    margin: 0 1px;
}

.inv-legend {
    margin: -10px 0 20px;
    font-size: 14px;
}

.inv-legend-item {
    margin-right: 25px;
    white-space: nowrap;
}

.inv-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    vertical-align: -1px;
    background: #e21e26;
}

.inv-bars {
    margin-bottom: 50px;
}

.inv-bar {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.inv-bar-label {
    flex: 0 0 150px;
    padding-right: 15px;
}

.inv-bar-track {
    flex: 1 1 auto;
    position: relative;
    height: 14px;
    background: rgba(198, 199, 200, 0.35);
}

.inv-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #e21e26;
}

.inv-bar-value {
    flex: 0 0 auto;
    width: 150px;
    padding-left: 15px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.inv-bar-value em {
    font-family: inherit;
    font-style: normal;
    color: #e21e26;
    margin-left: 6px;
}

/* Продукты: карточки одной высоты, заголовки в одну строку на одном уровне */

.inv-streams {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.inv-stream {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-top: 4px solid #e21e26;
    padding: 30px 30px 26px;
}

.inv-stream h3 {
    margin: 0 0 18px;
    font-size: 30px;
    line-height: 1.15;
    color: #231f20;
}

.inv-stream p {
    margin: 0;
}

.inv-tag {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e21e26;
    font-weight: 600;
}

.inv-tag.is-building {
    margin-top: 22px;
    color: #6d6e70;
}

.inv-stream .inv-trusted {
    margin-top: auto;
    padding-top: 18px;
    font-size: 14px;
    color: #6d6e70;
    border-top: 1px solid #e7e8e9;
}

/* Зазор над подписью «Нам доверяют», даже когда карточка самая высокая в ряду. */
.inv-stream p:nth-last-child(2) {
    margin-bottom: 22px;
}

/* Прогноз: три карточки сценариев */

.inv-scenarios {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 70px;
}

.inv-scenario {
    background: #fff;
    border-top: 4px solid #c6c7c8;
    padding: 30px 32px 10px;
}

.inv-scenario.is-base {
    background: #0c0c0c;
    color: #fff;
    border-top-color: #e21e26;
    box-shadow: 0 24px 48px rgba(12, 12, 12, 0.18);
}

.inv-scenario-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d6e70;
}

.inv-scenario.is-base .inv-scenario-title {
    color: #e21e26;
}

.inv-scenario dl {
    margin: 0;
}

.inv-scenario dt {
    margin: 0;
    padding-top: 18px;
    font-size: 13px;
    color: #8a8b8c;
    border-top: 1px solid #e7e8e9;
}

.inv-scenario.is-base dt {
    border-top-color: #2a2a2a;
    color: #9a9b9c;
}

.inv-scenario dt:first-child {
    border-top: 0;
}

.inv-scenario dd {
    margin: 4px 0 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.inv-scenario-value {
    font-family: "Proxima Nova Bl", "Proxima Nova Lt", Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 30px;
    line-height: 1.15;
    white-space: nowrap;
}

.inv-scenario dd.is-text .inv-scenario-value {
    font-family: inherit;
    font-weight: 600;
    font-size: 17px;
    white-space: normal;
}

.inv-mult {
    display: inline-block;
    padding: 3px 9px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    background: #e21e26;
    white-space: nowrap;
}

.inv-scenario:not(.is-base) .inv-mult {
    background: #231f20;
}

.inv-ready .inv-scenario {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.inv-ready.is-visible .inv-scenario {
    opacity: 1;
    transform: none;
}

@media (max-width: 1024px) {
    .inv-scenarios {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Тёмные секции: стратегия и предложение */

.section.inv-dark {
    background-color: #0c0c0c;
}

.inv-dark .inv-source,
.inv-dark .inv-tag.is-building {
    color: #9a9b9c;
}

.inv-ask {
    font-size: 22px;
    line-height: 1.4;
    margin-top: 20px;
}

.inv-ask strong {
    display: block;
    font-family: "Proxima Nova Bl", "Proxima Nova Lt", Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 96px;
    line-height: 1;
    color: #e21e26;
}

.inv-use {
    border-top: 4px solid #e21e26;
    padding-top: 20px;
    margin-bottom: 30px;
}

.inv-use strong {
    display: block;
    font-family: "Proxima Nova Bl", "Proxima Nova Lt", Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 48px;
    line-height: 1.1;
}

.inv-use h4 {
    margin: 10px 0;
    color: #fff;
}

.inv-email {
    font-size: 32px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .inv-numbered > li {
        flex-basis: 50%;
    }

    .inv-streams {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inv-facts > li {
        flex-basis: 100%;
    }

    .inv-stat strong {
        font-size: 44px;
    }
}

@media (max-width: 640px) {
    .inv-numbered > li,
    .inv-stat {
        flex-basis: 100%;
    }

    .inv-streams {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .inv-stat strong {
        font-size: 40px;
    }

    .inv-ask strong {
        font-size: 64px;
    }

    .inv-email {
        font-size: 22px;
    }

    .inv-bar-label {
        flex-basis: 110px;
        font-size: 14px;
    }

    .inv-bar-value {
        width: 110px;
        font-size: 13px;
    }

    .inv-columns-paired .inv-column-value {
        display: none;
    }

    .inv-actions .button {
        margin: 0 0 20px;
    }
}

/* Фото основателей и логотипы клиентов */

.inv-founder {
    padding-left: 150px;
    position: relative;
    min-height: 150px;
}

/* Имя в одну строку рядом с фото: «Евгений Щербинин» в общие 48px не влезает. */
.inv-founder h3 {
    font-size: clamp(26px, 2.6vw, 40px);
}

.inv-photo {
    position: absolute;
    left: 0;
    top: 24px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.inv-logos {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.inv-logo {
    flex: 0 0 calc(16.6666% - 16px);
    margin: 0 8px 16px;
    height: 90px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
}

.inv-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(1);
    opacity: 0.85;
    transition: filter 0.2s, opacity 0.2s;
}

.inv-logo:hover img {
    filter: none;
    opacity: 1;
}

@media (max-width: 1024px) {
    .inv-logo {
        flex-basis: calc(33.3333% - 16px);
    }
}

@media (max-width: 640px) {
    .inv-founder {
        padding-left: 0;
    }

    /* На телефоне фото над именем, места хватает. */
    .inv-founder h3 {
        font-size: 36px;
    }

    .inv-photo {
        position: static;
        display: block;
        margin-bottom: 15px;
    }

    .inv-logo {
        flex-basis: calc(50% - 16px);
    }
}

/* Тёмная секция «Компания» с фирменным узором из точек */

.inv-founders .wrapper {
    position: relative;
    z-index: 1;
}

.inv-pattern svg {
    opacity: 0.22;
    width: 60%;
    left: auto;
}

.inv-pattern .dots {
    fill: none;
    stroke: #fff;
}

.inv-founders .inv-card p:not(.inv-role) {
    color: #c6c7c8;
}

/* Без строки должности описание не должно прилипать к имени. */
.inv-founders .inv-card h3 + p:not(.inv-role) {
    margin-top: 24px;
}

.inv-founders .inv-photo {
    box-shadow: 0 0 0 4px #0c0c0c, 0 0 0 6px #e21e26;
}

/*
 * Анимации. Начальное состояние включается только классом .inv-ready,
 * который ставит js/investors.js, — без скрипта всё видно сразу.
 */

.inv-ready .inv-column-bar {
    transform: scaleY(0);
    transform-origin: 50% 100%;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.inv-ready .inv-bar-fill {
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.inv-ready .inv-column-value,
.inv-ready .inv-bar-value,
.inv-ready.inv-numbered > li,
.inv-ready .inv-stream,
.inv-ready .inv-logo,
.inv-ready .inv-stat {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.inv-ready .inv-stat strong {
    border-bottom-color: transparent;
    background: linear-gradient(#e21e26, #e21e26) 0 100% / 0 4px no-repeat;
    transition: background-size 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.inv-ready.is-visible .inv-column-bar,
.inv-ready.is-visible .inv-bar-fill {
    transform: none;
}

.inv-ready.is-visible .inv-column-value,
.inv-ready.is-visible .inv-bar-value,
.inv-ready.is-visible.inv-numbered > li,
.inv-ready.is-visible .inv-stream,
.inv-ready.is-visible .inv-logo,
.inv-ready.is-visible .inv-stat {
    opacity: 1;
    transform: none;
}

.inv-ready.is-visible .inv-stat strong {
    background-size: 100% 4px;
}

/* Лесенка: каждый следующий элемент стартует чуть позже. */
.inv-ready > :nth-child(2), .inv-ready > :nth-child(2) * { transition-delay: 0.08s; }
.inv-ready > :nth-child(3), .inv-ready > :nth-child(3) * { transition-delay: 0.16s; }
.inv-ready > :nth-child(4), .inv-ready > :nth-child(4) * { transition-delay: 0.24s; }
.inv-ready > :nth-child(5), .inv-ready > :nth-child(5) * { transition-delay: 0.32s; }
.inv-ready > :nth-child(6), .inv-ready > :nth-child(6) * { transition-delay: 0.40s; }
.inv-ready > :nth-child(7), .inv-ready > :nth-child(7) * { transition-delay: 0.48s; }
.inv-ready > :nth-child(8), .inv-ready > :nth-child(8) * { transition-delay: 0.56s; }
.inv-ready > :nth-child(9), .inv-ready > :nth-child(9) * { transition-delay: 0.64s; }
.inv-ready > :nth-child(10), .inv-ready > :nth-child(10) * { transition-delay: 0.72s; }
.inv-ready > :nth-child(11), .inv-ready > :nth-child(11) * { transition-delay: 0.80s; }

/* Подписи столбцов появляются после роста столбца. */
.inv-ready .inv-column-value { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .inv-pattern .dots {
        animation: none;
    }
}

/* ---- Блоки, добавленные по второму проходу тизера -------------------------- */

.inv-columns-tall {
    height: 320px;
}

.inv-columns-small {
    height: 200px;
}

.inv-columns-equity {
    max-width: 260px;
}

.inv-column-bar.is-dark,
.inv-swatch.is-dark {
    background: #231f20;
}

.inv-column-bar.is-pink,
.inv-swatch.is-pink {
    background: #f2b8bb;
}

.inv-bar-fill.is-dark {
    background: #231f20;
}

.inv-growth {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #fbe3e4;
    color: #e21e26;
    font-size: 12px;
    font-weight: 600;
}

.inv-callout {
    margin: 0;
    padding: 18px 22px;
    background: #fff;
    border-left: 4px solid #e21e26;
    font-size: 15px;
    line-height: 1.5;
}

/* Структура холдинга */

.inv-structure {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
}

.inv-structure-text {
    margin: 0 0 24px;
    max-width: 760px;
}

.inv-structure-holding {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 6px 20px;
    padding: 16px 20px;
    background: #e21e26;
    color: #fff;
    position: relative;
}

.inv-structure-holding strong {
    font-size: 22px;
}

.inv-structure-holding span {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inv-structure-holding:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -20px;
    width: 2px;
    height: 20px;
    background: #e21e26;
}

.inv-structure-entities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e21e26;
}

.inv-structure-entities span {
    padding: 10px 16px;
    border: 1px solid #c6c7c8;
    font-size: 15px;
    white-space: nowrap;
}

/* Направления и кольцевая диаграмма */

.inv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.inv-chip {
    padding: 12px 18px;
    background: #fbe3e4;
    color: #231f20;
    font-weight: 600;
    font-size: 15px;
}

/* Логотипы по группам и карточки проектов */

.inv-logo-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.inv-logo-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inv-logo-group-title {
    margin: 0 0 4px;
    padding-left: 12px;
    border-left: 4px solid #e21e26;
    font-weight: 600;
}

.inv-logo-group .inv-logo {
    flex: none;
    margin: 0;
    height: 80px;
    border: 1px solid #ececec;
}

.inv-impact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.inv-impact-item {
    border-left: 4px solid #e21e26;
    padding: 4px 0 4px 24px;
}

.inv-impact-logo {
    display: flex;
    align-items: center;
    height: 56px;
    margin-bottom: 16px;
}

.inv-impact-logo img {
    max-height: 100%;
    max-width: 160px;
}

.inv-impact-item h4 {
    margin: 0 0 10px;
}

/* Основы роста */

.inv-foundations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.inv-foundation {
    padding: 26px 30px;
    background: #1b1b1b;
    border-top: 4px solid #e21e26;
}

.inv-foundation h4 {
    margin: 0 0 10px;
    color: #fff;
}

.inv-foundation p {
    margin: 0;
    color: #c6c7c8;
}

/* Скачки роста SaaS */

.inv-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: -20px 0 20px;
}

.inv-jump {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #fff;
    font-size: 14px;
}

.inv-jump strong {
    padding: 2px 10px;
    border-radius: 12px;
    background: #e21e26;
    color: #fff;
}

/* Таблица целевых рынков */

.inv-tam {
    background: #fff;
    padding: 10px 30px;
}

.inv-tam-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 120px 110px 140px;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #ececec;
}

.inv-tam-row:last-child {
    border-bottom: 0;
}

.inv-tam-head {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6d6e70;
    font-weight: 600;
}

.inv-tam-country {
    font-weight: 600;
}

.inv-tam-market {
    display: flex;
    align-items: center;
    gap: 14px;
}

.inv-tam-market .inv-bar-track {
    flex: 1 1 auto;
}

.inv-tam-size {
    flex: 0 0 70px;
    font-size: 14px;
    text-align: right;
}

.inv-tam-revenue {
    font-weight: 600;
    color: #e21e26;
}

.inv-tam .is-zero {
    color: #b0b1b2;
}

/* Переключатель сценариев */

.inv-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.inv-tabs-label {
    margin-right: 6px;
    color: #6d6e70;
}

.inv-tab {
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid #231f20;
    background: transparent;
    color: #231f20;
    padding: 10px 20px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.inv-tab:hover {
    border-color: #e21e26;
    color: #e21e26;
}

.inv-tab.is-active {
    background: #e21e26;
    border-color: #e21e26;
    color: #fff;
}

.inv-tab:focus-visible {
    outline: 2px solid #e21e26;
    outline-offset: 3px;
}

/* Без скрипта видны оба сценария, подписанные заголовками. */
.inv-panel-title {
    margin: 0 0 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e21e26;
}

.inv-tabs-ready .inv-panel {
    display: none;
}

.inv-tabs-ready .inv-panel.is-active {
    display: block;
}

.inv-tabs-ready .inv-panel-title {
    display: none;
}

.inv-tabs {
    display: none;
}

.inv-tabs-ready .inv-tabs {
    display: flex;
}

.inv-panel:after {
    content: "";
    display: table;
    clear: both;
}

.inv-metric-rows {
    margin: -20px 0 50px;
}

.inv-metric-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e7e8e9;
    font-size: 14px;
}

.inv-metric-row span {
    flex: 1 1 0;
    text-align: center;
}

.inv-metric-row .inv-metric-name {
    flex: 0 0 120px;
    text-align: left;
    color: #6d6e70;
}

.inv-metric-row .is-accent {
    color: #e21e26;
    font-weight: 600;
}

.inv-chart-title .inv-mult {
    margin-left: 8px;
    vertical-align: 2px;
}

/* Транши и распределение средств */

.inv-tranches {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.inv-tranche {
    padding: 22px 26px;
    border: 1px solid #333;
}

.inv-tranche.is-first {
    border-color: #e21e26;
}

.inv-tranche strong {
    display: block;
    font-family: "Proxima Nova Bl", "Proxima Nova Lt", Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 40px;
    line-height: 1.1;
    color: #e21e26;
}

.inv-tranche span {
    color: #c6c7c8;
}

.inv-proceeds {
    display: flex;
    gap: 4px;
}

.inv-proceed {
    flex-basis: 0;
    min-width: 0;
    padding: 18px 20px;
    background: #2a2a2a;
}

.inv-proceed:nth-child(1) {
    background: #e21e26;
}

.inv-proceed:nth-child(2) {
    background: #5a1f22;
}

.inv-proceed strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
    font-family: "Proxima Nova Bl", "Proxima Nova Lt", Helvetica, Arial, sans-serif;
}

.inv-proceed span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.inv-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.inv-partners-label {
    color: #9a9b9c;
}

.inv-partners-logos {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: #fff;
}

.inv-partners-logos img {
    height: 34px;
    width: auto;
}

/* Анимации новых блоков */

.inv-ready .inv-chip,
.inv-ready .inv-logo-group,
.inv-ready .inv-impact-item,
.inv-ready .inv-tam-row,
.inv-ready .inv-tranche,
.inv-ready .inv-proceed,
.inv-ready .inv-structure-holding,
.inv-ready .inv-structure-entities span {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.inv-ready.is-visible .inv-chip,
.inv-ready.is-visible .inv-logo-group,
.inv-ready.is-visible .inv-impact-item,
.inv-ready.is-visible .inv-tam-row,
.inv-ready.is-visible .inv-tranche,
.inv-ready.is-visible .inv-proceed,
.inv-ready.is-visible .inv-structure-holding,
.inv-ready.is-visible .inv-structure-entities span {
    opacity: 1;
    transform: none;
}

.inv-ready .inv-tam-row .inv-bar-fill {
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.inv-ready.is-visible .inv-tam-row .inv-bar-fill {
    transform: none;
}

.inv-ready .inv-structure-entities span:nth-child(2) { transition-delay: 0.1s; }
.inv-ready .inv-structure-entities span:nth-child(3) { transition-delay: 0.2s; }
.inv-ready .inv-structure-entities span:nth-child(4) { transition-delay: 0.3s; }
.inv-ready .inv-structure-entities span:nth-child(5) { transition-delay: 0.4s; }

@media (max-width: 1024px) {
    .inv-logo-groups,
    .inv-impact,
    .inv-foundations,
    .inv-tranches {
        grid-template-columns: 1fr;
    }

    .inv-tam {
        overflow-x: auto;
    }

    .inv-tam-row {
        min-width: 680px;
    }
}

@media (max-width: 640px) {
    .inv-proceeds {
        flex-direction: column;
    }

    .inv-metric-row {
        font-size: 12px;
    }

    .inv-metric-row .inv-metric-name {
        flex-basis: 80px;
    }

    .inv-columns-paired .inv-column-label {
        font-size: 10px;
    }
}

/*
 * Парные столбцы: каждая подпись стоит над своим столбиком. Пара занимает всю
 * высоту, сверху оставлено место под подпись самого высокого столбика.
 */
.inv-columns-paired .inv-column-pair {
    height: 100%;
    padding-top: 26px;
    box-sizing: border-box;
    gap: 4px;
}

.inv-stack {
    flex: 1 1 0;
    max-width: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.inv-stack .inv-column-bar {
    flex-shrink: 0;
    width: 100%;
    max-width: none;
    margin: 0;
}

.inv-stack .inv-column-value {
    flex-shrink: 0;
    margin-bottom: 4px;
    font-size: 13px;
    white-space: nowrap;
}

.inv-stack .inv-column-value.is-small {
    font-size: 11px;
    color: #6d6e70;
}

/* Отступ слева под названия строк EBITDA и маржи, чтобы цифры стояли под годами. */
.inv-columns-gutter,
.inv-metric-rows {
    margin-left: 120px;
}

.inv-metric-rows {
    position: relative;
}

.inv-metric-row .inv-metric-name {
    position: absolute;
    left: -120px;
    width: 115px;
}

@media (max-width: 640px) {
    .inv-columns-gutter,
    .inv-metric-rows {
        margin-left: 70px;
    }

    .inv-metric-row .inv-metric-name {
        left: -70px;
        width: 66px;
    }

    .inv-stack .inv-column-value {
        font-size: 9px;
    }

    .inv-stack .inv-column-value.is-small {
        display: none;
    }
}

/* Форма «Запросить информацию» в модальном окне */

.inv-modal-open,
.inv-modal-open body {
    overflow: hidden;
}

.inv-modal {
    position: fixed;
    top: 0;
    left: 0;
    /* По размеру экрана, а не страницы: на телефоне страница бывает шире экрана. */
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

.inv-modal[hidden] {
    display: none;
}

.inv-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 12, 0.82);
}

.inv-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 100%;
    overflow-y: auto;
    background: #fff;
    border-top: 4px solid #e21e26;
    padding: 44px 48px 40px;
    color: #231f20;
    animation: inv-modal-in 0.25s ease;
}

@keyframes inv-modal-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.inv-modal-dialog h3 {
    margin: 0 0 14px;
    font-size: 36px;
    color: #e21e26;
}

.inv-modal-lead {
    margin: 0 0 28px;
    color: #6d6e70;
}

.inv-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    font-size: 34px;
    line-height: 1;
    color: #8a8b8c;
    cursor: pointer;
}

.inv-modal-close:hover {
    color: #e21e26;
}

.inv-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.inv-field.is-wide {
    grid-column: 1 / -1;
}

.inv-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6d6e70;
    font-weight: 600;
}

.inv-field label span {
    color: #e21e26;
}

.inv-field input[type=text],
.inv-field input[type=email],
.inv-field input[type=tel],
.inv-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid #c6c7c8;
    border-radius: 0;
    background: #fff;
    font: inherit;
    font-size: 16px;
    color: #231f20;
    transition: border-color 0.2s;
}

.inv-field textarea {
    resize: vertical;
    min-height: 96px;
}

.inv-field input:focus,
.inv-field textarea:focus {
    outline: none;
    border-color: #e21e26;
}

.inv-field [aria-invalid=true] {
    border-color: #e21e26;
    background: #fdf2f2;
}

.inv-field-error {
    display: block;
    min-height: 0;
    margin-top: 4px;
    font-size: 13px;
    color: #e21e26;
}

.inv-file {
    display: flex !important;
    align-items: center;
    gap: 14px;
    margin: 0 !important;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
}

.inv-file input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.inv-file-button {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 1px solid #231f20;
    font-size: 14px;
    font-weight: 600;
    color: #231f20 !important;
}

.inv-file:hover .inv-file-button,
.inv-file input:focus + .inv-file-button {
    border-color: #e21e26;
    color: #e21e26 !important;
}

.inv-file-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: #8a8b8c !important;
}

.inv-form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.inv-form-message {
    margin: 20px 0 0;
    color: #e21e26;
}

.inv-form-message:empty {
    margin: 0;
}

.inv-form .button,
.inv-modal-success .button {
    margin-top: 28px;
    border: 0;
    background: none;
    font-family: inherit;
}

.inv-form .button[disabled] {
    opacity: 0.6;
    cursor: wait;
}

.inv-modal-success p {
    margin: 0;
    font-size: 18px;
}

@media (max-width: 640px) {
    .inv-modal {
        padding: 0;
        align-items: stretch;
    }

    .inv-modal-dialog {
        max-height: none;
        height: 100%;
        padding: 36px 20px 28px;
    }

    .inv-modal-dialog h3 {
        font-size: 28px;
        padding-right: 30px;
    }

    .inv-form-grid {
        grid-template-columns: 1fr;
    }
}
