.project-head__image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    width: 100%;
    border-radius: 8px;
}

.project-head__category-image {
    display: none;
}

.project-head {
    padding-top: 170px;
    padding-bottom: 60px;
    background: #f3f5fb;
}

.project-head__cover {
    background: #fefefe;
    border-radius: 16px;
}

.project-head__wrapper {
    display: flex;
    padding: 8px;
    box-sizing: border-box;
    gap: 40px;
}

.project-head__content,
.project-head__image {
    flex: 1;
}

.project-head__content {
    display: flex;
    flex-direction: column;
    padding: 16px 0 16px 16px;
}

.project-head__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: auto;
}

.project-head__category {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
}

.project-head img {
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    max-height: 500px;
}

.project-head__category-item {
    height: 32px;
    background: #d0dbff;
    color: #30377f;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-head__title {
    font-weight: 500;
    font-size: 56px;
    line-height: 120%;
    letter-spacing: 0;
}

.project-head__description p {
    font-weight: 400;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0;
}

.layout-category-top .project-head__content {
    flex-direction: column-reverse;
}

.layout-category-top .project-head__category {
    margin-top: unset;
    padding-top: unset;
    gap: unset;
    margin-bottom: 40px;
}

.layout-category-top .project-head__category-item {
    background: unset;
    padding-left: 8px;
    padding-right: 8px;
    height: 27px;
    border-right: 1px solid #30377f;
    border-radius: 0;
}

.layout-category-top .project-head__category-item:last-child {
    border-right: unset;
}

.layout-category-top .project-head__category-item:first-child {
    padding-left: unset;
}

.layout-category-image .project-head__category {
    display: none;
}

.layout-category-image .project-head__category-image {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.layout-category-image .project-head__image {
    display: flex;
    padding: 24px;
    box-sizing: border-box;
}

.layout-category-image .project-head__category-item {
    background: #f3f5fb;
}

.layout-horizontal-image .project-head__category {
    display: none;
}

.layout-horizontal-image .project-head__category-image {
    display: none;
}

.layout-horizontal-image .project-head__wrapper {
    flex-direction: column;
}

.layout-horizontal-image .project-head__info {
    flex-direction: row;
    justify-content: space-between;
}

.layout-horizontal-image .project-head__description {
    max-width: 560px;
}

.layout-horizontal-image .project-head__content {
    padding: 0 0 16px;
}

@media screen and (min-width: 1200px) {
    .layout-horizontal-image.project-head {
        background: #fefefe;
    }
}

@media screen and (max-width: 1200px) {
    .project-head__wrapper {
        flex-direction: column-reverse;
    }

    .project-head__content {
        padding: 8px 0 8px 8px;
    }

    .project-head__category {
        padding-top: 40px;
    }

    .layout-horizontal-image .project-head__info {
        flex-direction: column;
    }

    .layout-horizontal-image .project-head__wrapper {
        background: #fefefe;
        border-radius: 16px;
    }

    .layout-horizontal-image .project-head__info {
        padding-left: 8px;
        padding-right: 8px;
        padding-top: 24px;
    }

    .layout-horizontal-image .project-head__description {
        max-width: unset;
    }

    .layout-horizontal-image .project-head__info {
        gap: 8px;
    }

    .layout-horizontal-image .project-head__content {
        padding: 0;
    }
}

@media screen and (max-width: 768px) {
    .project-head__image {
        min-height: 257px;
    }

    .project-head__title {
        font-size: 36px;
    }

    .project-head__description p {
        font-size: 18px;
    }
}
