.instruction__wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 3rem 0 5rem;

    @media (max-width: 61.25rem) {
        padding-bottom: 0;
    }
}
.instruction__wrapper h2 {
    color: #2C2E35;
    font-style: normal;
    font-weight: 700;
    font-size: 1.5rem;
}
.instruction__wrapper p {
    color: #2C2E35;
    font-style: normal;
    font-weight: 400;
    font-size: 1rem;
}
.instruction__wrapper img {
    height: auto;
    width: 100%;
    object-fit: cover;
}

.instruction__wrapper .glue__photo_stand img {
    height: calc(100% - 42px);
    width: auto;
}

.instruction__preparation.preparation,
.instruction__glues .glues__wrapper,
.instruction__group .group__wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.instruction__preparation.preparation {
    @media (max-width: 1200px) {
        grid-template-columns: 1fr;
    }
}

.instruction__glues .glues__wrapper,
.instruction__group .group__wrapper {
    @media (max-width: 980px) {
        grid-template-columns: 1fr;
    }
}
.instruction__groups .instruction__group:last-child .group__wrapper .group__images,
.instruction__groups .instruction__group:last-child .group__wrapper .group__instruction {
    padding-bottom: 0;
}

.instruction__groups .instruction__group:last-child .group__wrapper .group__instruction {
   @media (max-width: 980px) {
       padding-bottom: 3rem;
   }
}

.preparation__icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;

    @media (max-width: 1200px) {
        justify-content: center;
    }
}

.tool {
    @media (max-width: 1200px) {
        max-width: 7rem;
    }

    @media (max-width: 30rem) {
        max-width: 4rem;
    }
}
.preparation__icons .icon {
    width: 7rem;
    height: auto;
    @media (max-width: 48rem) {
        max-width: 5rem;
    }
}
.tools__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    margin: 4rem 0;
    max-width: 60rem;

    @media (max-width: 1200px) {
        max-width: 100%;
        align-items: center;
    }

    @media (max-width: 30rem) {
        gap: 0;
        margin: .5rem 0 0
    }
}

.tools__grid .tool {
    display: block;
    max-width: 47.5rem;
    @media (max-width: 460px) {
        display: none;
    }
}

.tools__grid .tool--special {
    display: none;
    @media (max-width: 460px) {
        display: block;
    }
}

.tools__text {
    max-width: 60rem;
}
.glue__photo_stand {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: center;

    @media (max-width: 1200px) {
        align-items: flex-start;
        flex-wrap: wrap;
        max-height: 12rem;
    }
}

.glue__photo_stand .glue__photo {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    max-height: 25rem;

    @media (max-width: 1200px) {
        max-height: 20rem;
    }

    @media (max-width: 48rem) {
        max-height: 12rem;
    }
}
.glue__photo-title {
    color: #2C2E35;
    font-style: normal;
    font-weight: 700;
}

.glues__wrapper h3 {
    display: inline-block;
    padding: .5rem 1rem;
    font-style: normal;
    font-weight: 700;
    color: #FFF;
    font-size: 1rem;
}
.glue--mounting h3 {
    background-color: #8d589e;
}
.glue--joint h3 {
    background-color: #00acb6;
}
.glue__info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    border-top: 3px solid #2C2E35;
    padding-top: 3rem;
}
.glue--mounting .glue__icon {
    width: 4rem;
}
.glue--joint .glue__icon {
    width: 7rem;
}
.group__images {
    display: grid;
    align-content: start;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: .5rem;
    border-top: 3px solid #2C2E35;

    @media (max-width: 61.25rem) {
        display: none;
    }
}

.group__instruction-steps-images-mobile {
    display: none;
    @media (max-width: 61.25rem) {
        display: block;
        max-width: 20rem;
        margin-left: 2rem;
    }
}
.instruction__groups.groups {
    display: flex;
    flex-direction: column;

    @media (max-width: 61.25rem) {
        margin: 0 -24px;
        width: 100vw;
    }
}

.instruction__group.group {
    @media (max-width: 61.25rem) {
        border-top: 2px solid #fff;
    }
}

.group__instruction {
    background-color: #42454A;
    color: #FFF;
    font-style: normal;
}
.group__instruction,
.group__images {
    padding: 3rem 1.5rem;
}
.group__instruction h4 {
    color: #FFF;
    font-style: normal;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.group__instruction-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    height: 100%;
}
.group__instruction-wrapper > span {
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
}

.group__instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instruction__groups {
    counter-reset: step-counter;
}
.step {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2rem;
    line-height: 1.3;
    font-size: .875rem;
}

.step::before {
    content: counter(step-counter);

    position: absolute;
    left: 0;
    top: 0;
    background-color: #FFFFFF;
    color: #000;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    margin-top: 3px;
}

.group__instruction-image {
    max-width: 10rem;
}

.steps__title {
    text-decoration: underline;
    font-weight: 700;
}

.img-skeleton {
    display: block;
    width: 100%;
    max-width: 20rem;
    aspect-ratio: 1 / 1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.img-skeleton img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.baseboards-and-moldings > h2 {
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    font-size: 2rem;
    margin-top: 3rem !important;
}

.baseboards-and-moldings > h2 > span:last-child {
    font-size: 1rem;
}

.instruction-list {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    @media (max-width: 48rem) {
        flex-direction: column;
        margin: 0;
        align-items: center;
    }
}

.instruction-list-item {
    display: flex;
    max-width: 20rem;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border: 1px solid;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;

    @media (max-width: 48rem) {
        width: 100%;
        max-width: none;
    }
}