.hero {
    position: relative;
    overflow: hidden;
}

.hero { background: linear-gradient(to right, #ffde59 0 10%, #ffffff 10% 100%); }

.hero::before, .hero::after {
    content: "";
    position: absolute;
    width: 780px;
    height: 780px;
    bottom: -400px;
    left: -400px;
    background: url("../img/figure.svg") no-repeat center / contain;
    z-index: 1;
}

.hero::after {
    top: -400px;
    bottom: auto;
    left: auto;
    right: -570px;
}

.hero__container {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    position: relative;
    z-index: 5;
}

.hero__img img {
    width: 100%;
}


.hero__text {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero__title {
    font-size: 120px;
    font-family: "Lora", serif;
    font-style: italic;
    font-weight: 600;
}

.hero__subtitle {
    font-size: 40px;
    line-height: 130%;
}

.hero__name {
    font-family: "Adlery Pro Swash", sans-serif;
    font-size: 64px;
}

@media (max-width: 1100px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__img {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero { background: linear-gradient(to bottom, #ffde59 0 10%, #ffffff 10% 100%); }
}

@media (max-width: 645px) {
    .hero__title {
        font-size: 42px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    .hero__name {
        font-size: 24px;
    }

    .hero__text {
        gap: 24px;
    }

    .hero__img {
        max-width: 80%;
    }

    .hero::after {
        content: none;
    }

    .hero::before {
        left: -580px;
    }
}
