.hero {
    padding-top: 10.875rem;

    @media (min-width: 51.25rem) {
        padding-top: 8.625rem;
    }

    @media (min-width: 67.5rem) {
        padding-top: 2rem;
    }
}

.hero-back {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 10.875rem;

    @media (min-width: 51.25rem) {
        padding-top: 8.625rem;
    }

    @media (min-width: 67.5rem) {
        padding-top: 2rem;
    }
}

.hero-headline {
    font-size: 1rem;

    @media (min-width: 35rem) {
        font-size: 1.2rem;
    }
}

.hero-claim {
    margin-block: 1rem;
    font-weight: bolder;
    font-size: 2rem;
    line-height: 1;
    color: #fbf5b7;

    @media (min-width: 35rem) {
        font-size: 4rem;
    }
}

.hero-button {
    margin-top: 2rem;
}

.hero-badge {
    position: absolute;
    z-index: +1;
    bottom: .5rem;
    right: .5rem;

    img {
        width: 6rem;
        height: 6rem;
    }

    @media (min-width: 35rem) {
        bottom: 1rem;
        right: 1rem;

        img {
            width: 7rem;
            height: 7rem;
        }
    }

    @media (min-width: 61.25rem) {
        bottom: 2rem;
        right: 2rem;

        img {
            width: 8rem;
            height: 8rem;
        }
    }
}

.polyptychon {
    width: 100%;

    @media (max-width:559px) {
        &:not(:nth-child(1)) {
            display: none;
        }
    }

    @media (min-width:560px) and (max-width:979px) {
        width: 48%;

        &:nth-child(1),
        &:nth-child(4) {
            display: none;
        }

        &:nth-child(2) {
            margin-bottom: 9.2%;
        }

        &:nth-child(3) {
            margin-top: 9.2%;
        }
    }

    @media (min-width:980px) {
        width: 23%;

        &:nth-child(2) {
            margin-bottom: 4.6%;
        }

        &:nth-child(3) {
            margin-top: 4.6%;
        }
    }
}

.only-mobile {
    display: block;

    @media (min-width: 980px) {
        display: none;
    }
}

.only-desktop {
    display: none;

    @media (min-width: 980px) {
        display: block;
    }
}

.direct-nav {
    padding: var(--spacing-xs) var(--spacing-l);
}

.direct-nav__list {
    display: flex;
    justify-content: center;
    gap: var(--spacing-s);
    max-width: fit-content;
    margin-inline: auto;

    @media (min-width: 720px) {
        gap: var(--spacing-xl)
    }
}

.text-over-image {
    position: relative;
    display: inline-block;
}

.text-over-image:hover .text-over-image__text {
    opacity: 50%;
}

@media screen and (prefers-contrast:more) {
    .text-over-image:hover .text-over-image__text {
        opacity: 100%;
    }
}

.text-over-image__image {
    --image-size: 32px;
    width: var(--image-size);
    height: var(--image-size);
    margin-inline: auto;
}

@media screen and (min-width:420px) {
    .text-over-image__image {
        --image-size: 42px;
    }
}

.text-over-image__text {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: all var(--duration-short) linear;
    font-size: .8rem;
    font-weight: bolder;
    text-align: center;
    text-wrap: nowrap;
}

@media screen and (min-width:720px) {
    .text-over-image__text {
        opacity: 100%;
    }
}

@media screen and (prefers-contrast:more) {
    .text-over-image__text {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
    }
}

/** Layout */

.nw-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 1rem;
    margin-inline: auto;
    width: min(80rem, 100%);
}

.nw-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-inline: auto;
    width: min(80rem, 100%);
}

.nw-clean-list {
    list-style: none;
    padding-left: 0;
}

/** Card */

.nw-card {
    display: grid;
    grid-template-areas: 'headline icon' 'content content' 'line line';
    grid-template-rows: 48px auto 2px;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    box-shadow: inset 0px 0px 8px 5px hsl(0 0 12%);
    border-width: 2px;
    border-style: solid;
    border-color: hsl(0 0 12%) hsl(0 0 8%) hsl(0 0 8%) hsl(0 0 12%);
    border-radius: 16px;
    padding: 2.5rem;
    background-image:
        linear-gradient(45deg,
            hsl(0, 0%, 0%) 30%,
            hsl(0, 0%, 8%) 50%,
            hsl(0, 0%, 0%) 70%);
    color: hsl(0 0 84%);

    &::after {
        content: "";
        grid-area: line;
        height: 2px;
        background-image:
            linear-gradient(90deg,
                #bf953f 0%,
                #fcf6ba 12.5%,
                #b38728 37.5%,
                #fbf5b7 62.5%,
                #aa771c 87.5%,
                #bf953f 100%);
        background-repeat: repeat-x;
        background-size: 200% 100%;
    }

    &:hover::after {
        animation: animate-scroll 4s linear infinite;
    }
}

.nw-card__headline {
    grid-area: headline;
    align-self: end;
    margin-block: 0;
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #fcf6ba;
}

.nw-card__icon {
    grid-area: icon;
}

.nw-card__content {
    grid-area: content;
    margin-block: 0;
}

/** Box */

.nw-box {
    box-shadow: inset 0px 0px 8px 5px hsl(0 0 12%);
    border-width: 2px;
    border-style: solid;
    border-color: hsl(0 0 12%) hsl(0 0 8%) hsl(0 0 8%) hsl(0 0 12%);
    border-radius: 16px;
    padding: 2.5rem;
    background-image:
        linear-gradient(45deg,
            hsl(0, 0%, 0%) 30%,
            hsl(0, 0%, 8%) 50%,
            hsl(0, 0%, 0%) 70%);
    color: hsl(0 0 84%);
}

/** ! */

/** Testimonial */

.testimonial {
    display: grid;

    .logo {
        width: 100%;
        justify-self: center
    }

    .quote {
        justify-self: center;
        text-align: center;

        &::before,
        &::after {
            content: '"'
        }
    }

    .attester {
        justify-self: center;
        font-weight: bolder;

        &::before {
            content: '- '
        }
    }

    .tags {
        justify-self: left;
        display: flex;
        flex-wrap: wrap;
        margin-top: var(--spacing-l);

        li {
            box-shadow: inset 0px 0px 8px 5px hsl(0 0 12%);
            border-width: 2px;
            border-style: solid;
            border-color: hsl(0 0 12%) hsl(0 0 8%) hsl(0 0 8%) hsl(0 0 12%);
            border-radius: 8px;
            background-image:
                linear-gradient(45deg,
                    hsl(0, 0%, 0%) 30%,
                    hsl(0, 0%, 8%) 50%,
                    hsl(0, 0%, 0%) 70%);
            color: hsl(0, 0%, 100%);
            font-size: .8rem;
            font-weight: 700;
            line-height: normal;
            white-space: nowrap;
            padding: .5rem 1rem;
            margin-inline: var(--spacing-xxs)
        }
    }
}

.contact {
    background-image: var(--gradient-primary);
    border-radius: var(--spacing);
    box-shadow: 0 8px 16px 0 var(--color-shadow);
    margin-block: var(--spacing-large);
    padding: var(--border-width-small);

    >* {
        background-color: var(--color-background-darkest);
        border-radius: inherit;
        font-size: 1.6rem;
        padding: var(--border-width-large);
        text-align: center
    }
}

.banner {
    padding: var(--spacing) var(--spacing-large);

    p {
        font-size: 1.6rem;
        text-align: center
    }

    p:first-child {
        background-image: var(--gradient-primary);
        background-clip: text;
        color: #fff0
    }

    a {
        font-size: 1rem;
        margin-top: 16px
    }
}

.overlay {
    --overlay-box-shadow: 0 8px 16px 0 var(--color-shadow), 0 -8px 16px 0 var(--color-shadow);
    --overlay-border-color: transparent;
    --overlay-border-image: var(--gradient-primary) 1;
    --overlay-background-image: var(--gradient-surface);
    background-color: var(--color-background-darkest);
    background-image:
        linear-gradient(0deg,
            hsl(0, 0%, 12%) 0,
            hsl(0, 0%, 10%) 2px,
            hsl(0, 0%, 8%) 4px,
            hsl(0, 0%, 6%) 6px,
            hsl(0, 0%, 4%) 8px,
            hsl(0, 0%, 2%) 20%,
            hsl(0, 0%, 0%) 50%,
            hsl(0, 0%, 2%) 80%,
            hsl(0, 0%, 4%) calc(100% - 8px),
            hsl(0, 0%, 6%) calc(100% - 6px),
            hsl(0, 0%, 8%) calc(100% - 4px),
            hsl(0, 0%, 10%) calc(100% - 23px),
            hsl(0, 0%, 12%) 100%);
}

@media screen and (prefers-contrast:more) {
    .overlay {
        --overlay-box-shadow: none;
        --overlay-border-color: var(--color-primary);
        --overlay-border-image: none;
        --overlay-background-image: none;
    }
}

.clean-list {
    list-style: none;
    padding-left: 0;
}

.overlay-box {
    background-image: var(--gradient-surface);
    border: var(--border-width) solid var(--color-primary);
    border-image: var(--gradient-primary) 1;
    box-shadow: 8px 8px 16px 0 var(--color-shadow);
    padding: var(--spacing);
    margin: var(--spacing-large)
}

.overlay-below {
    left: var(--spacing);
    position: absolute;
    right: var(--spacing);
    top: 100%;
    z-index: var(--z-index-fixed-overlay)
}

.inner {
    margin-inline: var(--spacing)
}

@media (min-width:1280px) {
    .inner {
        margin-inline: auto;
        max-width: var(--width-wide);
        width: 100%
    }
}

.row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    >:not(:first-child) {
        margin-left: var(--spacing)
    }

    >:not(:last-child) {
        margin-right: var(--spacing)
    }
}

@media (max-width:840px) {
    .row {
        flex-direction: column
    }
}

.width-min {
    width: var(--width-min)
}

.rounded-border {
    border-radius: var(--spacing)
}

.center-text {
    text-align: center
}

.grid-2x2 {
    display: grid;
    gap: var(--spacing-xl);
    grid-template-columns: 1fr
}

@media screen and (min-width:450px) {
    .grid-2x2 {
        grid-template-columns: 1fr 1fr
    }
}

.segment {
    padding: var(--spacing-larger) var(--spacing-large);

    >* {
        margin-inline: auto;
        max-width: var(--width-wide)
    }
}

.pieces-2-1 {
    display: flex;
    flex-direction: column
}

.row-with-text-and-image {
    display: flex;
    flex-direction: column;

    img {
        display: block;
        max-width: 400px;
        max-height: 540px;
        width: 100%;
        height: auto;
        margin-bottom: var(--spacing)
    }
}

@media (min-width:768px) {
    .row-with-text-and-image {
        flex-direction: row;
        justify-content: space-between;

        >:first-child {
            width: 80%
        }

        >:last-child {
            width: 20%
        }
    }
}

.row-with-min {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;

    >* {
        width: var(--width-min)
    }

    img {
        margin-inline: auto
    }
}

.row-with-two-boxes {
    display: flex;
    flex-direction: column;
    text-align: center
}

@media (min-width:768px) {
    .row-with-two-boxes {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;

        >* {
            width: 48%
        }
    }
}