
/* section-advantages */
.section-advantages {
    --offset-block: var(--offset-medium);
    --width-content: calc((100% - var(--offset-block) * 2) / 3);
}
.section-advantages__wrapper {
    display: grid;
    align-items: stretch;
    grid-template-columns: 1fr var(--width-content);
    grid-template-rows: auto 1fr;
    column-gap: var(--offset-block); 
}
.section-advantages__image {
    grid-row: span 2;
    overflow: hidden;
}
.section-advantages__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.section-advantages__list {
    display: flex;
    flex-direction: column;
    align-self: end;
}
.section-advantages__item {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--offset-block);
    padding: var(--offset-main) 0;
    border-bottom: 0.0625rem solid var(--color-grey-purple);
}
.section-advantages__caption {
    font-weight: var(--font-medium);
    font-size: 3rem;
    line-height: 1.1;
}
.section-advantages__descr {
    font-size: 1.5rem;
    line-height: 1.4;
}

@media screen and (max-width: 1439px) {
    .section-advantages__item {
        padding: var(--offset-small) 0;
    }
    .section-advantages__caption {
        font-size: 2rem;
        line-height: 1.2;
    }
    .section-advantages__descr {
        font-size: 1.25rem;
    }
}
@media screen and (max-width: 1279px) {
    .section-advantages__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 1023.5px) {
    .section-advantages__wrapper {
        grid-template-columns: 100%;
        grid-template-rows: initial;
    }
    .section-advantages__wrapper .section__header {
        grid-row: 1 / 2;
    }
}
@media screen and (max-width: 575px) {
    .section-advantages__caption {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    .section-advantages__descr {
        font-size: 1rem;
        line-height: 1.5;
    }
}