.case-typography {
    color: var(--case-typography-text-color, var(--case-body-color, var(--black-color, #0d1118)));
}

.case-typography .case-typography__color-text {
    color: var(--case-typography-text-color, var(--case-body-color, var(--black-color, #0d1118)));
}

.case-typography svg line {
    stroke: var(--typography-dash-color, var(--grey-300, #cfcfcf));
}

.case-typography__paragraph p {
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0;
}

.case-typography__wrapper {
    margin-top: 24px;
    display: flex;
    gap: 32px;
    border-bottom: 0.5px dashed var(--typography-dash-color, var(--grey-300, #cfcfcf));
}

.case-typography__fonts {
    padding: 24px;
    box-sizing: border-box;
    border-right: 0.5px dashed var(--typography-dash-color, var(--grey-300, #cfcfcf));
    min-width: 0;
    overflow: hidden;
}

.case-typography__font-style {
    padding-top: 189px;
    padding-bottom: 157px;
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: clamp(48px, 9vw, 140px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.case-typography__sub {
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0;
    display: flex;
    justify-content: flex-end;
    text-transform: uppercase;
    font-family: "DM Sans", sans-serif;
}

.case-typography__font-weight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-bottom: 8px;
}

.case-typography__font-weight--has-mid {
    grid-template-columns: 1fr 1fr 1fr;
}

.case-typography__font-weight p {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0;
    margin: 0;
}

.case-typography__font-weight p:first-child {
    justify-self: start;
}

.case-typography__font-weight p:last-child {
    justify-self: end;
}

.case-typography__font-weight--has-mid p:nth-child(2) {
    justify-self: center;
    text-align: center;
}

.case-typography__fonts svg {
    width: 100%;
}

.case-typography__colors {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding-bottom: 24px;
}

.case-typography__color-item {
    display: flex;
    align-items: center;
    height: 100%;
}

.case-typography__color-bar {
    width: 37px;
    height: 100%;
    border-radius: 8px;
    background-color: var(--bar-bg, var(--black-color, #0d1118));
    border: 1px solid var(--bar-border, var(--bar-bg, var(--black-color, #0d1118)));
    box-sizing: border-box;
}

.case-typography__color-text {
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0;
    padding-right: 24px;
    text-transform: uppercase;
}

.case-typography,
.case-typography p,
.case-typography h2 {
    color: var(--black-color, #0d1118);
}

@media screen and (min-width: 1201px) {
    .case-typography__fonts,
    .case-typography__colors {
        width: 50%;
    }
}

@media screen and (min-width: 1201px) and (max-width: 1400px) {
    .case-typography__colors {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        gap: 24px;
    }

    .case-typography__color-bar {
        width: 100px;
        height: 100px;
    }

    .case-typography__color-item {
        justify-content: center;
        flex-direction: column;
    }

    .case-typography__color-text {
        padding-right: 0;
    }

    .case-typography__font-style {
        font-size: clamp(48px, 8vw, 112px);
    }
}

@media screen and (max-width: 1200px) {
    .case-typography__wrapper {
        flex-direction: column;
        align-items: center;
    }

    .case-typography__color-bar {
        width: 24px;
        height: 24px;
        border-radius: 4px;
    }

    .case-typography__color-item {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .case-typography__colors {
        gap: 30px;
        justify-content: center;
    }

    .case-typography__color-text {
        padding-right: 0;
        font-weight: 400;
        font-size: 14px;
        line-height: 140%;
        letter-spacing: 0;
    }

    .case-typography__font-style {
        padding-top: 111px;
        padding-bottom: 74px;
    }

    .case-typography__font-size {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .case-typography__font-weight {
        max-width: 590px;
        width: 100%;
        font-size: 14px;
    }

    .case-typography__sub {
        font-size: 14px;
    }

    .case-typography__wrapper {
        border-bottom: unset;
    }

    .case-typography__fonts {
        border-right: unset;
        padding: 16px;
    }
}

@media screen and (max-width: 768px) {
    .case-typography__font-style {
        font-size: clamp(40px, 12vw, 76px);
        padding-top: 72px;
        padding-bottom: 56px;
    }
}
