.pillars {
    --margin-block: 40px;
    --title-stripe-color: var(--basic-light);

    background-color: var(--basic-ultralight);
    padding-block: var(--margin-block);
}

h2.pillars__title {
    color: var(--text);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 5%;
    line-height: 1.16;
    max-width: 800px;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
}

h2.pillars__title strong {
    font-weight: 600;
}

h2.pillars__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -40px;
    width: 12px;
    height: 2px;
    background-color: var(--title-stripe-color);
    transition: .6s;
}

h2.pillars__title.title_seen::after {
    width: 162px;
}

.pillars__description {
    margin-bottom: var(--margin-block);
    margin-top: 50px;
}

.pillars__description p {
    color: var(--text);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 30px;
    max-width: 800px;
    position: relative;
    text-align: left;
}

.pillars__items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.pillars__item {
    counter-increment: item;
    display: grid;
    grid-template-areas: "image" "content" ;
    grid-template-columns: 1fr;
}

.pillars__item__content {
    --padding: 40px;

    background-color: white;
    color: var(--text);
    grid-area: content;
    padding: var(--padding) calc(var(--padding) * 0.5) var(--padding) var(--padding);
}

.pillars__item:nth-child(even) .pillars__item__content {
    background-color: black;
    color: white;
}

.pillars__item__title {
    --size: 24px;

    font-size: var(--size);
    font-weight: 600;
    line-height: 1.15;
    margin-top: 0;
    text-align: left;
}

.pillars__item__title strong {
    font-weight: 600;
}

.pillars__item__title::before {
    align-items: center;
    background-color: var(--basic-ultralight);
    border-radius: 50%;
    color: var(--text);
    content: counter(item);
    display: flex;
    font-size: var(--size);
    font-weight: 300;
    margin-bottom: 20px;
    height: calc(var(--size) * 1.5);
    justify-content: center;
    line-height: 1;
    text-align: center;
    width: calc(var(--size) * 1.5);
}

.pillars__item__description {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    margin-top: 30px;
    text-align: left;
    width: 90%;
}

.pillars__item__image {
    grid-area: image;
}

.pillars__item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile and up */
@media screen and (min-width: 480px) {
    h2.pillars__title {
        font-size: 32px;
    }
}

/* Tablet and up */
@media screen and (min-width: 768px) {

    .pillars {
        --margin-block: 60px;
    }

    h2.pillars__title {
        font-size: 40px;
    }

    h2.pillars__title::after {
        bottom: -40px;
        height: 3px;
    }


    .pillars__description {
        margin-top: 60px;
    }

    .pillars__description p {
        font-size: 22px;
    }

    .pillars__item {
        grid-template-areas: "content image";
        grid-template-columns: 1fr 1fr;
        gap: 21px;
    }

    .pillars__item:nth-child(even) {
        grid-template-areas: "image content";
    }

    .pillars__item__content {
        --padding: 60px;
    }

    .pillars__item__title {
        --size: 32px;
    }

}

/* Desktop and up */
@media screen and (min-width: 992px) {

    .pillars {
        --margin-block: 100px;
    }

    h2.pillars__title {
        font-size: 48px;
    }

    h2.pillars__title::after {
        bottom: -70px;
        height: 5px;
    }

    .pillars__description p {
        font-size: 24px;
        margin-top: 90px;
    }

    .pillars__item__content {
        --padding: 125px;
    }

    .pillars__item__title {
        --size: 40px;
    }

    .pillars__item__description {
        width: 66.7%;
    }

}
