.firstyle {
    background: #F5F5F5;
    padding-top: 60px;
    padding-bottom: 60px;
}
.firstyle__body {
    display: flex;
    flex-direction: column;
    row-gap: 40px;
}
.firstyle__items {
    display: grid;
    grid-template-columns: 490px 1fr;
    grid-template-rows: 160px 160px;
    gap: 30px;
}
.firstyle__item {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border: 1px solid transparent;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.firstyle__item:hover {
    border-color: rgba(229, 175, 152, 1);
    box-shadow: 0px 4px 4px 0px rgba(5, 5, 5, 0.2);
}
.firstyle__header {
    display: flex;
    column-gap: 12px;
    justify-content: start;
    align-items: end;
}
.firstyle__image {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    border-radius: 12px;
    overflow: hidden;
}
.firstyle__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1590px) {
    .firstyle {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .firstyle__items {
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .firstyle {
        padding-top: 32px;
        padding-bottom: 32px;
    }
    .firstyle__body {
        row-gap: 32px;
    }
    .firstyle__items {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .firstyle__items {
        grid-template-columns: 1fr;
    }
    .firstyle__image {
        grid-column: initial;
        grid-row: initial;
        max-height: 300px;
    }
}