.case-blocks .header {
    font-family: Noto Serif;
    font-size: 40px;
    font-style: italic;
    font-weight: 600;
    line-height: 110%;
    /* text-align: center; */
}


.case-blocks .text {
    font-family: Inter Tight;
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
    /* text-align: left; */
    color: var(--main);
}

.case-blocks .text blockquote,
.case-blocks .text2 blockquote {
    display: inline-block;
    border-left: 4px solid var(--red);
    padding-left: 15px;
    margin: 20px 0;
    font-weight: 500;
}

.case-blocks .text blockquote:last-child,
.case-blocks .text blockquote p:last-child,
.case-blocks .text2 blockquote:last-child,
.case-blocks .text2 blockquote p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .program-blocks .text blockquote,
    .program-blocks .text2 blockquote {
        border-left: 3px solid var(--red);
        padding-left: 10px;
    }
}


/* Запрос */ 
.case-blocks.case-request {
    padding: 60px 0;
}

.case-blocks.case-request .header {
    margin: 0 0 40px 0;
}

.case-blocks.case-request .text {
    color: var(--white);
}

/*
.case-blocks.case-request .content {
    margin: 80px 0;

}
    */

.case-blocks.case-request .computer img {
    width: 405px;
    max-width: 405px;
    height: auto;
    position: absolute;
    bottom: -60px;
}

.case-blocks.case-request .computer {
    display: flex;
    align-items: end;
    line-height: 0;
    position: relative;
    min-width: 405px;
    min-height: 200px;
}

@media (max-width: 1024px) {
    .case-blocks.case-request {
        padding: 50px 0;
    }

    .case-blocks.case-request .columns-to-rows {
        flex-direction: column-reverse;
        gap: 0px !important;
    }

    .case-blocks.case-request .computer {
        min-width: 80%;
        min-height: 120px;
    }

    .case-blocks.case-request .content {
        position: relative;
        top: -20px;
    }

    .case-blocks.case-request .computer img {
        width:auto;
        max-height: 140px;
        bottom: unset;
        top: 0;
        right: 0px;

    }

    .case-blocks .header {
        font-size: 25px;
    }
    
    .case-blocks.case-request .header {
        margin-bottom: 20px;
    }

    .case-blocks.case-request .text {
        font-size: 13px;
    }
}

/* Анализ профиля */
.case-blocks.case-analysis {
    padding: 60px 0;
}

/*
.case-blocks.case-analysis .title-slant::before {
    transform: rotate(-0.52deg);
}*/

.case-blocks.case-analysis .header {
    margin: 0px 0 40px 0;
}

.case-blocks.case-analysis .text {
    margin: 0;
    display: inline-block;
    font-size: 16px;
    line-height: 120%;
    text-align: left;
    display: block;
}

@media (max-width: 1024px) {
    .case-blocks.case-analysis {
        padding: 50px 0;
    }

    .case-blocks.case-analysis .header {
        margin-bottom: 20px;
    }

    .case-blocks.case-analysis .text {
        font-size: 13px;
    }
}

/* Процесс подготовки */ 
.case-blocks.case-process {
    padding: 60px 0;
}

.case-blocks.case-process .list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 5px 0 20px 0;
}

.case-blocks.case-process .list .item {
    padding: 20px;
    background: #CFE7FD82;
    font-family: Inter Tight;
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
}

.case-blocks.case-process .list2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.case-blocks.case-process .list2 .item {
    padding: 20px 22px;
    background: #EEEEEE;
    font-family: Inter Tight;
    font-size: 16px;
    font-weight: 400;
    line-height: 20.96px;
}

.case-blocks.case-process .header {
    margin: 0;

}

.case-blocks.case-process .text {
    margin: 40px 0 30px 0;
    font-family: Inter Tight;
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
}

.case-blocks.case-process .header2 {
    font-family: Inter Tight;
    font-size: 16px;
    font-weight: 600;
    line-height: 120%;
    color: var(--main);
    margin: 50px 0 30px 0;
}

.case-blocks.case-process .text2 {
    margin: 50px 0 0 0;
    font-size: 16px;
    line-height: 120%;
}

@media (max-width: 1024px) {
    .case-blocks.case-process {
        padding: 50px 0;
    }

    .case-blocks.case-process .text {
        font-size: 13px;
        margin: 25px 0 20px 0;
    }

    .case-blocks.case-process .text2 {
        font-size: 13px;
        margin-top: 23px;
    }

    .case-blocks.case-process .list {
        margin: 0;
        display: flex;
        /* grid-template-columns: repeat(2, 1fr); */
        gap: 8px;
        flex-wrap: wrap;
    }

    .case-blocks.case-process .list .item {
        width: 40%;
        flex-grow: 1;
        padding: 15px;
        font-size: 13px;
    }

    .case-blocks.case-process .list .item:nth-child(3n) {
        width: 90%;
    }
}

/* Результат */
.case-blocks.case-result {
    padding: 60px 0;
    position: relative;
}

.case-blocks.case-result .columns-to-rows {
    gap: 100px;
}

.case-blocks.case-result .content {
    line-height: 0;
    flex-grow: 1;
    /* position: relative; */
}

.case-blocks.case-result .header {
    margin: 0;
}

.case-blocks.case-result .text {
    margin: 40px 0 300px;
    font-size: 18px;
    line-height: 120%;
}

.case-blocks.case-result .content > img {
    width: 388px;
    height: 345px;
    position: absolute;
    bottom: 0;
}

.case-blocks.case-result .image .img-wrapper {
    margin-top: 90px;
    transform: rotate(7.4deg);
}

.case-blocks.case-result .image .img-wrapper.pin::before {
    top: unset;
    left: unset;
    bottom: -30px;
    right: 25%;
}

.case-blocks.case-result .image .result_img {
    width: auto;
    max-width: 300px;
    max-height: 280px;
    height: auto;
}

@media (max-width: 1024px) {
    .case-blocks.case-result {
        padding: 50px 0;
    }

    .case-blocks.case-result .text {
        font-size: 13px;
        margin: 25px 0 255px;
    }

    .case-blocks.case-result .columns-to-rows {
        flex-direction: column-reverse;
    }

    .case-blocks.case-result .content > img {
        height: 285px;
        width: auto;
    }

    .case-blocks.case-result .image .img-wrapper {
        margin-top: unset;
    }

    .case-blocks.case-result .image .img-wrapper.pin::before {
        top: 10px;
        left: -20px;
        bottom: unset;
        right: unset;
        transform: rotate(-18deg);
        content: url(/wp-content/themes/selfstartglobal/images/pin2.svg);
    }

    .case-blocks.case-result .image {
        height: 100px;
        position: relative;
    }

    .case-blocks.case-result .image .img-wrapper {
        position: absolute;
        right: 0;
        top: 0;
    }

    .case-blocks.case-result .image .result_img {

        max-width: 140px;
        max-height: 170px;
    }
}

/* Отзыв */
.case-blocks.case-review {
    padding: 60px 0;
}

.case-blocks.case-review .header {
    margin: 0;
}

.case-blocks.case-review .columns-to-rows {
    margin: 30px 0;
    position: relative;
}

.case-blocks.case-review .columns-to-rows .info_box {
    display: flex;
    background-color: var(--grey-bg);
    padding: 30px;
    gap: 30px;
}

.case-blocks.case-review .columns-to-rows .info_box .text {
    color: var(--black);
}

.case-blocks.case-review .columns-to-rows .info_box .text .block-header {
    font-family: Inter Tight;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    margin-bottom: 40px;
    display: block;
}

.case-blocks.case-review .columns-to-rows .info_box .text .block-text {
    font-family: Noto Serif;
    font-weight: 400;
    font-style: italic;
    font-size: 18px;
    line-height: 120%;
    display: block;
}

.case-blocks.case-review .columns-to-rows .info_box .media {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-blocks.case-review .columns-to-rows .info_box .media > * {
    display: inline-flex;

}

.case-blocks.case-review .columns-to-rows .info_box .media .media-link {
    left: -30px;
    top: 5px;
    position: relative;
}

.case-blocks.case-review .columns-to-rows .info_box .media-text {
    font-family: Inter Tight;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: var(--main);
    background-color: var(--blue);
    white-space: nowrap;
    padding: 3px 8px;
    transform: rotate(-2.49deg);
}


.case-blocks.case-review .columns-to-rows > div.goal {
    /* text-align: center; */
}

.case-blocks.case-review .columns-to-rows > div.goal img {
    width: 220px;
    height: 200px;
    object-fit: contain;
    position: absolute;
    left: -30px;
    bottom: -100px;
}

.case-blocks.case-review .columns-to-rows > div.goal {
    width: 50%;
    flex-grow: 1;
}

.case-blocks.case-review .columns-to-rows > div.info_box {
    width: 50%;
    flex-grow: 1;
}


.case-blocks.case-review .button_block {
    margin: 50px 0 0 0;
    text-align: center;
}



/* Университет */
.case-blocks.case-university {
    padding: 60px 0;
}

.case-blocks.case-university .header {
    margin: 0;
}

.case-blocks.case-university .head img {
    position: absolute;
    bottom: -60px;
    left: 0;
}

.case-blocks.case-university .site-main {

}

.case-blocks.case-university .columns-to-rows {
    display: flex;
    position: relative;
}

.case-blocks.case-university .columns-to-rows > * {
    flex-grow: 1;
}

.case-blocks.case-university .info_box {
    display: flex;
    justify-content: center;
}

.case-blocks.case-university .info_box .university {
    width: 400px;
}

@media (max-width: 1024px) {
    .case-blocks.case-university .info_box {
        justify-content: end;
    }

    .case-blocks.case-university .head img {
        z-index: -1;
        left: -80px;
        width: 280px;
    }

    .case-blocks.case-review .columns-to-rows > div.goal,
    .case-blocks.case-review .columns-to-rows > div.info_box {
        width: 100%;
        position: relative;
    }

    .case-blocks.case-review .columns-to-rows .info_box .media {
        position: absolute;
        right: 0;
        top: -10px;
    }

    .case-blocks.case-review .columns-to-rows .info_box .media .media-link {
        top: 0px;
        left: unset;
        right: -25px;
    }

    .case-blocks.case-review .columns-to-rows .info_box .media-text {
        position: relative;
        left: -40px;
        top: 5px;
        font-size: 13px;
        padding: 2px 4px;
    }

    .case-blocks.case-review .columns-to-rows .info_box .media .media-link img {
        width: 40px;
        height: 40px;
        
    }

    .case-blocks.case-review .columns-to-rows .info_box .media > img {
        position: absolute;
        max-height: 30px;
        width: auto;
        top: 35px;
        right: 15px;
        transform: rotate(60deg);
    }

    .case-blocks.case-review .columns-to-rows > div.goal img {
        z-index: -1;
        left: unset;
        bottom: unset;
        top: -40px;
        right: -20px;
        width: 110px;
        height: 110px;
    }

    .case-blocks.case-review .columns-to-rows > div.info_box {
        padding: 15px;
    }

    .case-blocks.case-review .columns-to-rows .info_box .text .block-header {
        font-size: 13px;
        width: 60%;
    }

    .case-blocks.case-review .columns-to-rows .info_box .text .block-text {
        font-size: 15px;
    }

    .case-blocks.case-university .info_box .university {
        width: 270px;
        margin-right: unset;
    }
}

/* Archive */
.site-main.archive .grid .text .info {
    display: grid;
    gap: 10px;
}

.site-main.archive .grid .text .info:not(.nogrid) {
    grid-template-columns: 40% 60%;
}

.site-main.archive .grid .text .info img {
    min-width: 100px;
    width: 100px;
    height: 100px;
    aspect-ratio: 1/1;
    border-radius: 12px;
    object-fit: cover;
}

.site-main.archive .grid .text .info {
    grid-row: 1/3;
    margin-bottom: 10px;
}

.site-main.archive .grid .text .info .program {
    font-weight: 600;
    font-size: 12px;
    line-height: 120%;
}


.site-main.archive .grid .text .info h2 {
    margin-top: 0px;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .site-main.archive .grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .site-main.archive .grid .text .info .program {
        font-size: 11px;
    }

        .site-main.archive .grid .text .info:not(.nogrid) {
            grid-template-columns: auto 1fr;
            grid-template-rows: auto 1fr;
        }

        .site-main.archive .grid .text .info:not(.nogrid) img {
            width: 105px;
            height: 105px;
            border-radius: 9px;
            grid-row: 1/3;
            grid-column: 1;
        }

        .site-main.archive .grid .text .info:not(.nogrid) .program {
            grid-row: 1;
            grid-column: 2;
        }

        .site-main.archive .grid .text .info:not(.nogrid) h2 {
            grid-row: 2;
            grid-column: 2;
            display: flex;
            align-items: flex-end;
        }
}