/* .standart-width {
    margin: 12rem auto;
} */
.hero-section {
    margin: 0 auto;
    height: calc(100dvh - 192px);
    align-items: start;

    h1 {
        /* font-size: 90px; */
        font-size: clamp(2.9rem, 5vw, 90px);
        margin: 32px auto;
    }

    h5 {
        font-weight: 400;
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
}

.introduction {
    h2 {
        grid-column: span 6;
        align-self: center;
    }

    img {
        grid-column: 8/span 4;
        align-self: center;
        display: block;
        width: 100%;
    }

    .customer-properties {
        grid-row: 2;
        grid-column: span 3;
        margin-top: 4rem;

        h5 {
            font-weight: 400;
        }

        &:nth-child(4) {
            grid-column: 4/span 3;
        }

        &:nth-child(5) {
            grid-column: 7/span 3;
        }

        &:nth-child(6) {
            grid-column: 10/span 3;
        }

    }

    .what-about-you {
        grid-row: 3;
        grid-column: 5/span 4;
        justify-self: center;
        margin-top: 4rem;
    }
}

.offers {
    row-gap: 4rem;

    h3 {
        grid-column: span 12;
        justify-self: center;
    }

    .introduction-text {
        grid-column: 3/span 8;
        justify-self: center;
        text-align: center;
        margin-top: -2rem;
    }

    .offer-cards-wrapper {
        grid-row: 3;
        grid-column: 2/ span 10;
        gap: 2rem;

        .offer-card {
            height: 100%;
            padding: 1rem;
            border: 2px solid var(--black);
            grid-template-rows: 1fr 2fr 6fr;
            width: 100%;
            box-sizing: border-box;

            .header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                height: 1.7rem;

                img {
                    height: 100%;
                    width: 2rem;
                }
            }

            .catch {
                align-self: center;
            }

            .explanation {
                align-self: end;
            }
        }

    }

    .cta-button-secondary {
        grid-row: 4;
        grid-column: span 12;
        justify-self: center;
    }
}

.about-me {

    height: 75dvh;
    align-content: center;

    .portrait-wrapper {
        grid-column: 2/span 4;

        img {
            width: 100%;
            display: block;
        }
    }

    .about-me-information {
        grid-column: 8/span 5;
        align-items: end;

        h3 {
            margin-bottom: 2rem;
        }

    }

    .cta-button-secondary {
        justify-self: start;
    }
}

section:not(.d-flex) {
    height: 95dvh;
    grid-auto-rows: min-content;
    align-content: center;
}

@media only screen and (max-width: 1268px) {
    .offers {
        .offer-cards-wrapper {
            grid-column: 1 / span 12;
        }
    }
   .introduction {
    .what-about-you {
        grid-column: 4/span 6;
    }
   }
}

@media only screen and (max-height: 790px) {

    .what-about-you {
        margin-top: 2rem !important;
    }

    .offers {
        margin-top: 4rem;
    }
}


@media only screen and (max-width: 590px) {

    .hero-section {
        /* .cta-button-primary {
            font-size: 1.5rem;
        } */
    }

    .introduction {
        margin-top: 128px;

        h2 {
            grid-column: span 12;
        }

        img {
            grid-row: 1;
            grid-column: 2/ span 10;
            display: block;
            width: 100%;

        }

        h2 {
            grid-row: 2;
        }

        .customer-properties {
            grid-row: 3;
            grid-column: 1/span 12 !important;
            grid-column: span 12;
            margin: 0;

            h5 {
                margin: 0;
                font-weight: 400;
            }

            p {
                margin: 0;
            }

            &:nth-child(4) {
                grid-row: 4;
            }

            &:nth-child(5) {
                grid-row: 5;
            }

            &:nth-child(6) {
                grid-row: 6;
            }
        }

        .what-about-you {
            grid-row: 7;
            grid-column: 1/span 12;
            justify-self: center;
        }
    }

    .offers {
        .introduction-text {
            grid-column: 1/ span 10;
            text-align: start;
        }

        .offer-cards-wrapper {
            flex-direction: column;

            .offer-card {
                grid-template-rows: 1fr 3fr 6fr;
            }
        }
    }


    .about-me {


        .portrait-wrapper {
            grid-column: 1/span 12;
        }

        .about-me-information {
            grid-column: 1/span 12;
            align-items: end;

            h3 {
                margin-bottom: 2rem;
            }

        }

        .cta-button-secondary {
            justify-self: center;
            margin-top: 3.5rem;
        }
    }

    section:not(.d-flex) {
        height: inherit;
        grid-auto-rows: min-content;
        align-content: center;
        margin: 10rem 0;
    }
}


@media only screen and (max-width: 590px) {
    .hero-section {
        .cta-button-primary {
            font-size: 1.5rem;
        }
    }
}