body:has(.primary-section:first-child) {
    padding-top: 0;
}

.primary-section {
    background: url('/wp-content/themes/unit/assets/img/primary-section/sm/01.webp') top center / contain no-repeat;
    padding-top: 84rem;
}

.primary-section__row {
    gap: 12rem 0;
}

.primary-section__badge {
    display: flex;
    justify-content: flex-end;
}

.primary-section__tags + .primary-section__badge {
    margin-top: -22rem;
}

.primary-section__text {
    font-size: 16rem;
    line-height: 19rem;
}

.primary-section__text:not(:first-child) {
    margin-top: 35rem;
}

.primary-section__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13rem;
}

.primary-section__buttons > .double-button {
    width: 100%;
}

.primary-section__buttons > .double-button > .button {
    width: calc(100% - 57rem);
}

.primary-section__buttons:not(:first-child) {
    margin-top: 20rem;
}

@media screen and (min-width: 768px) {
    .primary-section {
        background-image: url('/wp-content/themes/unit/assets/img/primary-section/lg/01.webp');
        background-size: cover;
        padding-bottom: 35rem;
    }

    .primary-section__row {
        flex-direction: row-reverse;
    }

    .primary-section__col:nth-child(1) {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .primary-section__tags {
        order: 1;
    }

    .primary-section__tags + .primary-section__badge {
        margin-top: 0;
    }
}

@media screen and (min-width: 1024px) and (orientation: landscape) {
    .primary-section {
        background-size: 1600rem;
        padding-top: 168rem;
    }
    
    .primary-section__col:nth-child(1) {
        justify-content: flex-start;
        gap: 142rem;
        padding-left: 57rem;
    }
    
    .primary-section__col:nth-child(2) {
        display: flex;
        flex-direction: column;
    }

    .primary-section__title {
        margin-bottom: auto;
    }

    .primary-section__text {
        max-width: 360rem;
    }

    .primary-section__buttons {
        align-items: center;
    }
    
    .primary-section__buttons:not(:first-child) {
        margin-top: 14rem;
    }

    .primary-section__buttons > .double-button,
    .primary-section__buttons > .double-button > .button,
    .primary-section__buttons > .button {
        width: fit-content;
        width: -moz-fit-content;
        max-width: 100%;
    }
}