/* Kazvodkhoz - Investment program */

.kvh-ip {
    --ip-primary: #1f5875;
    --ip-heading: #17384d;
    --ip-text: #344b5c;
    --ip-border: #dce5eb;
    --ip-pale: #edf5f9;

    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: clamp(20px, 3vw, 36px);
    background: #fff;
    border: 1px solid var(--ip-border);
    border-radius: 16px;
    box-shadow: 0 3px 16px rgba(31, 88, 117, .035);
    color: var(--ip-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.65;
}

.kvh-ip * {
    box-sizing: border-box;
}

.kvh-ip p {
    margin: 0 0 15px;
    color: var(--ip-text);
    font-size: inherit;
    line-height: inherit;
    overflow-wrap: break-word;
}

.kvh-ip p:last-child {
    margin-bottom: 0;
}

.kvh-ip h2,
.kvh-ip h3 {
    color: var(--ip-heading);
    margin: 0;
    overflow-wrap: break-word;
}

.kvh-ip strong {
    color: var(--ip-heading);
    font-weight: 700;
}

/* Introduction and section headings */

.kvh-ip__intro,
.kvh-ip__heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.kvh-ip__heading {
    align-items: center;
    margin-bottom: 24px;
}

.kvh-ip__heading h2 {
    font-size: clamp(19px, 2vw, 25px);
    font-weight: 700;
    line-height: 1.3;
    min-width: 0;
}

.kvh-ip__icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    background: var(--ip-pale);
    color: var(--ip-primary);
    border-radius: 12px;
}

.kvh-ip__icon svg {
    width: 31px;
    height: 31px;
}

/* Five key metrics */

.kvh-ip__metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.kvh-ip__metric {
    padding: 19px 15px;
    min-width: 0;
    min-height: 156px;
    border: 1px solid var(--ip-border);
    border-radius: 12px;
    background: #fff;
}

.kvh-ip__metric-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 12px;
}

.kvh-ip__metric-top svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    color: var(--ip-primary);
}

.kvh-ip__metric-top strong {
    font-size: clamp(27px, 2.5vw, 36px);
    font-weight: 750;
    color: var(--ip-primary);
    line-height: 1.15;
    letter-spacing: -.025em;
    font-variant-numeric: tabular-nums;
}

.kvh-ip__metric-top .kvh-ip__value--wide {
    font-size: clamp(19px, 1.8vw, 26px);
    letter-spacing: -.035em;
}

.kvh-ip__metric > span {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: break-word;
}

/* Section dividers */

.kvh-ip__section {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--ip-border);
}

/* Main program - two columns */

.kvh-ip__program-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px;
}

.kvh-ip__overview,
.kvh-ip__results {
    min-width: 0;
}

.kvh-ip__results {
    border-left: 1px solid var(--ip-border);
    padding-left: 26px;
    display: grid;
    align-content: start;
    gap: 16px;
}

.kvh-ip__completed {
    padding: 21px;
    background: var(--ip-pale);
    border-radius: 12px;
    border: 1px solid #e0ebf1;
}

.kvh-ip__completed h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 15px;
}

.kvh-ip__completed ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.kvh-ip__completed li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.kvh-ip__completed li svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--ip-primary);
    margin-top: 2px;
}

.kvh-ip__note {
    border-left: 3px solid var(--ip-primary);
    padding: 4px 0 4px 15px;
    font-size: 15px;
}

/* Six branch cards */

.kvh-ip__branches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kvh-ip__branch {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-width: 0;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--ip-border);
    border-radius: 12px;
}

.kvh-ip__branch-icon {
    color: var(--ip-primary);
    flex: 0 0 32px;
    margin-top: 2px;
}

.kvh-ip__branch-icon svg {
    width: 32px;
    height: 32px;
}

.kvh-ip__branch-content {
    min-width: 0;
    flex: 1;
}

.kvh-ip__branch h3 {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 12px;
}

.kvh-ip__branch p {
    font-size: 14px;
    line-height: 1.65;
}

section.content-wrap:has(.kvh-ip) {
    margin-bottom: 32px;
}

/* Tablet */

@media (max-width: 1100px) {
    .kvh-ip__metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .kvh-ip__metric {
        min-height: 135px;
    }
}

@media (max-width: 850px) {
    .kvh-ip__program-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .kvh-ip__results {
        border-left: 0;
        padding-left: 0;
    }

    .kvh-ip__branches {
        grid-template-columns: 1fr;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .kvh-ip {
        padding: 18px;
        font-size: 15px;
        border-radius: 12px;
    }

    .kvh-ip__intro,
    .kvh-ip__heading {
        gap: 12px;
    }

    .kvh-ip__icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .kvh-ip__icon svg {
        width: 25px;
        height: 25px;
    }

    .kvh-ip__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .kvh-ip__metric {
        padding: 15px 12px;
        min-height: 130px;
    }

    .kvh-ip__metric:last-child {
        grid-column: 1 / -1;
        min-height: 0;
    }

    .kvh-ip__section {
        margin-top: 24px;
        padding-top: 22px;
    }

    .kvh-ip__completed,
    .kvh-ip__branch {
        padding: 17px;
    }

    .kvh-ip__branch {
        gap: 12px;
    }

    .kvh-ip__branch h3 {
        font-size: 17px;
    }

    .kvh-ip__branch-icon {
        flex-basis: 25px;
    }

    .kvh-ip__branch-icon svg {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 360px) {
    .kvh-ip__metrics {
        grid-template-columns: 1fr;
    }

    .kvh-ip__metric {
        min-height: 0;
    }
}
