.work-offers {
    display: flex;
    flex-direction: column;
}

.work-offers .snake-top {
    background-color: var(--theme-red);
    height: var(--navbar-height);
    border-top-right-radius: var(--border-radius);
    width: 40%;
    position: relative;
}

.work-offers .snake-top p {
    height: 100%;
    display: flex;
    align-items: center;
}

.work-offers .snake-top::before {
    content: "";
    position: absolute;
    top: calc(100% - 1px);
    right: calc(var(--navbar-height) - 1px);
    width: 16px;
    height: 16px;
    background:
        radial-gradient(
            circle 10px at 100% 100%,
            transparent 16px,
            var(--theme-red) 17px);  /* + 1 px so the edge is smooth */
    transform: rotate(90deg);
}

.work-offers .snake-top::after {
    content: "";
    position: absolute;
    top: 0;
    right: 100%;
    width: 100vw;
    height: var(--navbar-height);
    background-color: var(--theme-red);
}

.work-offers .snake-top p {
    color: var(--theme-white);
    padding-left: var(--padding-1);
}

.work-offers .offers-container {
    display: flex;
    flex-direction: column;
    margin-top: var(--navbar-height);
    gap: var(--padding-1);
    position: relative;
}

.work-offers .offers-container::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--navbar-height));
    left: calc(40% - var(--navbar-height));
    bottom: calc(-1 * var(--navbar-height));
    width: var(--navbar-height);
    background-color: var(--theme-red);
    z-index: -1;
}

.work-offers .snake-bottom {
    align-self: flex-end;
    margin-top: var(--navbar-height);
    background-color: var(--theme-red);
    height: var(--navbar-height);
    width: calc(60% + var(--navbar-height));
    border-bottom-left-radius: var(--border-radius);
    position: relative;
}

.work-offers .snake-bottom::before {
    content: "";
    position: absolute;
    bottom: calc(100% - 1px);
    left: calc(var(--navbar-height) - 1px);
    width: 16px;
    height: 16px;
    background:
        radial-gradient(
            circle 10px at 100% 100%,
            transparent 16px,
            var(--theme-red) 17px);  /* + 1 px so the edge is smooth */
    transform: rotate(-90deg);
}

.work-offers .snake-bottom::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 100vw;
    height: var(--navbar-height);
    background-color: var(--theme-red);
}

@media(max-width: 600px) {
    .work-offers .snake-top {
        align-self: flex-end;
        background-color: var(--theme-red);
        height: var(--navbar-height);
        border-top-right-radius: 0;
        border-top-left-radius: var(--border-radius);
        border-bottom-right-radius: var(--border-radius);
        width: 100%;
        position: relative;
        padding: 0 var(--padding-2);
        text-align: center;
    }

    .work-offers .snake-top::after {
        content: "";
        position: absolute;
        right: 0;
        top: unset;
        bottom: 100%;
        width: var(--navbar-height);
        height: calc(var(--navbar-height) + var(--padding-2));
        background-color: var(--theme-red);
    }

    .work-offers .snake-top::before {
        top: unset;
        bottom: calc(100% - 1px);
        transform: rotate(180deg);
    }

    .work-offers .offers-container::before {
        left: 0;
    }

    .work-offers .offers-container::after {
        content: "";
        position: absolute;
        top: calc(-1 * var(--navbar-height) - 1px);
        left: calc(var(--navbar-height) - 1px);
        width: 16px;
        height: 16px;
        background:
            radial-gradient(
                circle 10px at 100% 100%,
                transparent 16px,
                var(--theme-red) 17px);  /* + 1 px so the edge is smooth */
    }

    .work-offers .snake-bottom {
        width: 100%;
    }
}
