.portfolio_project_body {
    background: #FFFFFF;
}

.portfolio_project_body .header_menu a.is_active {
    color: #FFFFFF;
}

.portfolio_project_page {
    overflow: visible;
}

.project_hero_block {
    padding: 42px 0 34px;
}

.project_hero h1 {
    max-width: 985px;
}

.project_intro_block {
    padding: 0 0 100px;
}

.project_intro {
    display: grid;
    grid-template-columns: minmax(0, 762px) minmax(0, 538px);
    align-items: start;
    gap: 20px;
}

.project_media {
    position: relative;
    min-height: 632px;
}

.project_main_image {
    width: 100%;
    height: 418px;
    overflow: hidden;
    border-radius: 20px;
    background: #D9D9D9;
}

.project_main_image img,
.project_gallery_item img,
.project_review_head img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.project_review {
    position: absolute;
    left: 27px;
    top: 353px;
    z-index: 2;
    width: 427px;
    min-height: 265px;
    padding: 38px 28px 28px;
    background: #BCB5AF;
    border-radius: 20px;
}

.project_review_head {
    display: flex;
    align-items: center;
    gap: 20px;
}

.project_review_head img {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
}

.project_review_head h3 {
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 18px;
    line-height: 130%;
    color: #000000;
}

.project_review_head span {
    display: block;
    font-weight: 500;
    font-size: 14px;
    line-height: 130%;
    color: rgba(0, 0, 0, 0.5);
}

.project_review>p {
    margin-top: 28px;
    font-size: 14px;
    line-height: 130%;
    color: #000000;
}

.project_price {
    position: absolute;
    left: 470px;
    top: 434px;
    z-index: 3;
    width: 292px;
    min-height: 92px;
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #E8E8E8;
    border-radius: 15px;
    text-align: center;
}

.project_price span {
    font-weight: 400;
    font-size: 20px;
    line-height: 150%;
    color: #000000;
}

.project_price strong {
    font-weight: 600;
    font-size: 20px;
    line-height: 150%;
    color: #000000;
}

.project_info {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.project_text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project_text .p14 {
    max-width: 534px;
}

.project_specs {
    margin: 0;
    padding: 35px 44px;
    display: grid;
    grid-template-columns: 203px 1fr;
    row-gap: 15px;
    background: #F4F4F4;
    border-radius: 15px;
}

.project_specs div {
    display: contents;
}

.project_specs dt,
.project_specs dd {
    margin: 0;
    font-size: 14px;
    line-height: 130%;
    color: #000000;
}

.project_specs dt {
    font-weight: 600;
}

.project_specs dd {
    font-weight: 400;
}

.project_gallery_block {
    padding: 0 0 70px;
}

.project_gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project_gallery_item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    background: #D9D9D9;
}

.project_gallery_item:nth-child(5),
.project_gallery_item:nth-child(6),
.project_gallery_item:nth-child(7) {
    grid-column: span 1;
}

.project_gallery_item img {
    transition: transform 0.5s ease;
}

.project_gallery_item:hover img {
    transform: scale(1.035);
}

.project_form_block {
    padding: 80px 0;
    background: #F4F4F4;
}

.project_form_container {
    display: flex;
    justify-content: center;
}

.project_form {
    width: min(874px, 100%);
}

.project_form h2 {
    margin-bottom: 48px;
    font-weight: 400;
    font-size: 36px;
    line-height: 130%;
    text-align: center;
    letter-spacing: -0.05em;
    color: #000000;
}

.project_form_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project_form_field {
    display: block;
}

.project_form_field span {
    display: block;
    margin-bottom: 16px;
    padding-left: 11px;
    font-weight: 600;
    font-size: 14px;
    line-height: 130%;
    color: #000000;
}

.project_form_field input,
.project_form_field textarea {
    width: 100%;
    height: 47px;
    padding: 0 11px 12px;
    border: none;
    border-bottom: 1px solid #D2D2D2;
    border-radius: 0;
    outline: none;
    background: transparent;
    resize: none;
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    color: #000000;
}

.project_form_field textarea {
    height: 80px;
    padding-top: 8px;
}

.project_form_field input:focus,
.project_form_field textarea:focus {
    border-bottom-color: #7F7470;
}

.project_form_field_full {
    margin-top: 42px;
}

.project_form_btn {
    width: max-content;
    height: 47px;
    margin: 36px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    background: #7F7470;
    font-weight: 600;
    font-size: 16px;
    line-height: 130%;
    padding: 0 16px;
    color: #FFFFFF;
    transition: background 0.25s ease;
}

.project_form_btn:hover {
    background: #60534B;
}

.project_form_policy {
    max-width: 609px;
    margin: 26px auto 0;
    font-size: 12px;
    line-height: 130%;
    text-align: center;
    color: #333333;
}

.project_form_policy a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1360px) {
    .portfolio_project_page .container {
        width: calc(100% - 40px);
    }
    .project_intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }
    .project_media {
        max-width: 762px;
    }
    .project_info {
        max-width: 762px;
    }
    .project_text .p14 {
        max-width: none;
    }
    .project_gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio_project_page .container {
        width: calc(100% - 42px);
    }
    .project_hero_block {
        padding: 30px 0 22px;
    }
    .project_hero h1 {
        font-size: 30px;
        line-height: 130%;
    }
    .project_intro_block {
        padding-bottom: 36px;
    }
    .project_intro {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .project_media {
        width: 100%;
        max-width: none;
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .project_main_image {
        height: auto;
        aspect-ratio: 348 / 210;
        border-radius: 16px;
    }
    .project_price {
        position: static;
        order: 2;
        width: 100%;
        min-height: 71px;
        padding: 10px 18px;
        border-radius: 15px;
    }
    .project_price span,
    .project_price strong {
        font-size: 18px;
    }
    .project_review {
        position: static;
        order: 5;
        width: 100%;
        min-height: auto;
        padding: 30px 24px;
        border-radius: 20px;
    }
    .project_review_head {
        gap: 20px;
        align-items: flex-start;
    }
    .project_review_head img {
        flex-basis: 84px;
        width: 84px;
        height: 84px;
    }
    .project_review_head h3 {
        max-width: 190px;
    }
    .project_review>p {
        margin-top: 22px;
    }
    .project_info {
        gap: 26px;
    }
    .project_text {
        gap: 18px;
    }
    .project_specs {
        padding: 23px 24px;
        grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
        row-gap: 14px;
        border-radius: 15px;
    }
    .project_gallery_block {
        padding-bottom: 46px;
    }
    .project_gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .project_gallery_item {
        border-radius: 16px;
    }
    .project_form_block {
        padding: 40px 0 60px;
    }
    .project_form h2 {
        margin-bottom: 34px;
        font-size: 28px;
    }
    .project_form_grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .project_form_field_full {
        margin-top: 22px;
    }
    .project_form_field textarea {
        height: 78px;
    }
    .project_form_btn {
        margin-top: 28px;
    }
    .project_form_policy {
        max-width: 347px;
        margin-top: 24px;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .project_specs {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}


/* ========================================================================== */


/* Mobile final correction */


/* ========================================================================== */

@media (max-width: 768px) {
    .portfolio_project_body {
        overflow-x: hidden;
    }
    .portfolio_project_page {
        overflow: hidden;
    }
    .portfolio_project_page .service_breadcrumbs {
        display: none;
    }
    .project_hero_block {
        padding: 28px 0 26px;
    }
    .project_hero h1 {
        max-width: 348px;
        font-size: 30px;
        line-height: 130%;
        letter-spacing: -0.05em;
    }
    .project_intro_block {
        padding-bottom: 46px;
    }
    .project_intro {
        gap: 28px;
    }
    .project_main_image {
        aspect-ratio: 348 / 210;
        border-radius: 20px;
    }
    .project_info {
        gap: 28px;
    }
    .project_specs {
        padding: 22px 20px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        row-gap: 16px;
    }
    .project_gallery_block {
        padding-bottom: 50px;
    }
    .project_gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .project_review {
        padding: 28px 24px;
    }
    .project_form_block {
        padding: 44px 0 62px;
    }
    .project_form h2 {
        margin-bottom: 32px;
        font-size: 28px;
        line-height: 130%;
    }
}