.profile_brand_body {
    background: #FFFFFF;
}

.profile_brand_page {
    background: #FFFFFF;
    overflow: hidden;
}

.profile_brand_page h1,
.profile_brand_page h2,
.profile_brand_page h3,
.profile_brand_page p,
.profile_brand_page li {
    text-wrap: pretty;
}

.profile_brand_page h2 em {
    font-weight: 400;
    line-height: 100%;
}


/* Hero */

.profile_brand_hero_block {
    padding: 42px 0 40px;
    background: #FFFFFF;
}

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

.profile_brand_intro_block {
    padding: 47px 0;
    background: #F4F4F4;
}

.profile_brand_intro {
    display: grid;
    grid-template-columns: 538px 538px;
    justify-content: space-between;
    align-items: center;
    gap: 70px;
}

.profile_brand_logo_card {
    min-height: 202px;
    padding: 35px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 20px;
}

.profile_brand_logo_card img {
    max-width: 388px;
    max-height: 154px;
    display: block;
    object-fit: contain;
}

.profile_brand_intro_text {
    max-width: 538px;
    font-weight: 700;
    font-size: 18px;
    line-height: 130%;
    color: #000000;
}

.profile_brand_intro_text p+p {
    margin-top: 12px;
}


/* Advantages */

.profile_brand_advantages_block {
    padding: 90px 0 80px;
    background: #FFFFFF;
}

.profile_brand_advantages {
    display: grid;
    grid-template-columns: 538px 538px;
    justify-content: space-between;
    align-items: end;
    gap: 70px;
}

.profile_brand_advantages h2 {
    margin-bottom: 34px;
}

.profile_brand_icon_list ul {
    margin: 0;
    gap: 20px;
}

.profile_brand_advantages_image {
    min-height: 306px;
    aspect-ratio: 538 / 306;
}


/* Product line */

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

.profile_brand_line h2 {
    margin-bottom: 48px;
}

.profile_brand_products {
    display: grid;
    grid-template-columns: repeat(2, 538px);
    justify-content: space-between;
    gap: 80px 132px;
}

.profile_brand_product {
    display: grid;
    grid-template-columns: 315px 203px;
    grid-template-rows: auto 315px auto;
    column-gap: 20px;
    row-gap: 22px;
    min-height: 481px;
}

.profile_brand_product h3 {
    grid-column: 1 / -1;
    font-weight: 600;
    font-size: 18px;
    line-height: 130%;
    color: #000000;
}

.profile_brand_product_image {
    width: 315px;
    height: 315px;
    grid-column: 1;
    grid-row: 2;
}

.profile_brand_colors {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, 58px);
    align-content: start;
    gap: 14px 14px;
}

.profile_brand_color {
    width: 58px;
    text-align: center;
}

.profile_brand_color span {
    display: block;
    width: 58px;
    height: 58px;
    border: 1px solid #DCDCDC;
    border-radius: 50%;
    background: var(--color);
}

.profile_brand_color p {
    margin-top: 8px;
    font-size: 12px;
    line-height: 120%;
    color: #000000;
}

.profile_brand_product_specs {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: 203px 315px;
    gap: 20px;
}

.profile_brand_product_specs p {
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    color: #000000;
}

.profile_brand_product_specs p+p {
    margin-top: 12px;
}


/* Works */

.profile_brand_works_block {
    padding-bottom: 80px;
    background: #FFFFFF;
}

.profile_brand_works_block h2 {
    margin-bottom: 40px;
}

.profile_brand_order {
    margin-top: 52px;
    display: flex;
    justify-content: center;
}

.profile_brand_order_btn {
    min-width: 362px;
    min-height: 47px;
    padding: 13px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    background: #7F7470;
    font-weight: 500;
    font-size: 16px;
    line-height: 130%;
    color: #FFFFFF;
    text-align: center;
    transition: background 0.25s ease;
}

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


/* Footer spacing on this page */

.profile_brand_body footer {
    padding-top: 25px;
}


/* Responsive */

@media (max-width: 1200px) {
    .profile_brand_intro,
    .profile_brand_advantages {
        grid-template-columns: 1fr;
        gap: 42px;
    }
    .profile_brand_logo_card,
    .profile_brand_intro_text,
    .profile_brand_advantages_image {
        max-width: 538px;
    }
    .profile_brand_products {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}

@media (max-width: 768px) {
    .profile_brand_page .container {
        width: calc(100% - 42px);
    }
    .profile_brand_hero_block {
        padding: 28px 0 22px;
    }
    .profile_brand_page .service_breadcrumbs {
        display: none;
    }
    .profile_brand_hero h1 {
        font-size: 30px;
        line-height: 130%;
    }
    .profile_brand_intro_block {
        padding: 30px 0 28px;
    }
    .profile_brand_intro {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .profile_brand_logo_card {
        width: 100%;
        min-height: 166px;
        padding: 26px 32px;
        border-radius: 20px;
    }
    .profile_brand_logo_card img {
        max-width: 283px;
        max-height: 112px;
    }
    .profile_brand_intro_text {
        font-size: 18px;
        line-height: 130%;
    }
    .profile_brand_advantages_block {
        padding: 40px 0 30px;
    }
    .profile_brand_advantages {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
    }
    .profile_brand_advantages h2 {
        margin-bottom: 28px;
        font-size: 28px;
        line-height: 130%;
    }
    .profile_brand_advantages h2 em {
        display: block;
        margin-top: 4px;
        font-size: 38px;
        line-height: 80%;
    }
    .profile_brand_icon_list ul {
        gap: 16px;
    }
    .profile_brand_icon_list ul li {
        min-height: 32px;
        padding-left: 52px;
        align-items: flex-start;
        font-size: 16px;
    }
    .profile_brand_icon_list ul li::before {
        top: 0;
        transform: none;
    }
    .profile_brand_advantages_image {
        width: 100%;
        min-height: auto;
        aspect-ratio: 348 / 166;
        border-radius: 20px;
    }
    .profile_brand_line_block {
        padding: 38px 0 50px;
    }
    .profile_brand_line h2 {
        margin-bottom: 30px;
        font-size: 28px;
        line-height: 130%;
    }
    .profile_brand_line h2 em {
        display: block;
        margin-top: 4px;
        font-size: 38px;
        line-height: 80%;
    }
    .profile_brand_products {
        grid-template-columns: 1fr;
        gap: 70px;
    }
    .profile_brand_product {
        width: 100%;
        min-height: auto;
        display: grid;
        grid-template-columns: 164px 1fr;
        grid-template-rows: auto auto auto;
        column-gap: 19px;
        row-gap: 16px;
    }
    .profile_brand_product h3 {
        grid-column: 1 / -1;
        grid-row: 2;
        font-weight: 500;
        font-size: 18px;
    }
    .profile_brand_product_image {
        grid-column: 1;
        grid-row: 1;
        width: 164px;
        height: 164px;
        border-radius: 20px;
    }
    .profile_brand_product_specs {
        grid-column: 1 / -1;
        grid-row: 3;
        grid-template-columns: 164px 1fr;
        gap: 19px;
    }
    .profile_brand_product_specs p+p {
        margin-top: 12px;
    }
    .profile_brand_colors {
        grid-column: 1 / -1;
        grid-row: 4;
        display: flex;
        gap: 20px;
        overflow-x: auto;
        padding: 2px 0 6px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }
    .profile_brand_colors::-webkit-scrollbar {
        display: none;
    }
    .profile_brand_color {
        flex: 0 0 72px;
        width: 72px;
        scroll-snap-align: start;
    }
    .profile_brand_color span {
        width: 72px;
        height: 72px;
    }
    .profile_brand_color p {
        font-size: 14px;
        line-height: 130%;
    }
    .profile_brand_works_block {
        padding: 45px 0 42px;
    }
    .profile_brand_works_block h2 {
        margin-bottom: 24px;
        font-size: 28px;
        line-height: 130%;
    }
    .profile_brand_works_block h2 em {
        display: block;
        font-size: 38px;
        line-height: 130%;
    }
    .profile_brand_order {
        margin-top: 34px;
    }
    .profile_brand_order_btn {
        width: 100%;
        min-width: 0;
        min-height: 60px;
        padding: 9px 25px;
        font-size: 16px;
    }
    .profile_brand_body footer {
        padding-top: 35px;
    }
}

@media (max-width: 420px) {
    .profile_brand_page .container {
        width: calc(100% - 42px);
    }
    .profile_brand_product {
        grid-template-columns: 164px minmax(0, 1fr);
    }
}


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


/* Extra responsive polish */


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

.profile_brand_body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .profile_brand_page .container {
        width: calc(100% - 42px);
    }
    .profile_brand_hero h1 {
        max-width: 348px;
        font-size: 30px;
        line-height: 130%;
        letter-spacing: -0.05em;
    }
    .profile_brand_intro_text {
        max-width: 348px;
    }
    .profile_brand_advantages_image {
        width: 100%;
        aspect-ratio: 348 / 166;
        border-radius: 20px;
    }
    .profile_brand_products {
        gap: 70px;
    }
    .profile_brand_product_specs {
        align-items: start;
    }
    .profile_brand_colors {
        width: calc(100vw - 21px);
        max-width: calc(100vw - 21px);
        margin-right: -21px;
        padding-right: 21px;
    }
    .profile_brand_works_block .work_image {
        aspect-ratio: 348 / 164;
        border-radius: 20px;
    }
}

/* Related works use the same slider cards as portfolio */
.profile_brand_works_block .brand_related_works_grid {
    margin-top: 0;
}

.profile_brand_works_block .portfolio_work_card {
    min-width: 0;
}
