.hero {
    background: var(--primary-blue);
    color: var(--white);
    min-height: 360px;
    overflow: visible;
    padding: 20px 0 40px;
    position: relative;
}

.hero__inner {
    align-items: center;
    display: flex;
    gap: clamp(48px, 8vw, 130px);
    min-height: 300px;
    position: relative;
    z-index: 2;
}

.page-hero__title {
    font-family: var(--font-title);
    font-size: clamp(44px, 5vw, 60px);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin: 0;
    min-height: 144px;
    max-width: 612px;
    text-wrap: balance;
}

.hero__art {
    flex: 0 0 506px;
    height: 300px;
    position: relative;
}

.hero__line {
    height: 390px;
    left: 114px;
    max-width: none;
    position: absolute;
    top: -20px;
    transform: rotate(56deg);
    width: 88px;
}

.hero__swimmer {
    left: 25px;
    max-width: none;
    position: absolute;
    top: 33px;
    width: 294px;
}


@media (max-width: 1100px) {
    .hero__art {
        flex-basis: 390px;
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 0;
        padding-top: 44px;
    }

    .hero__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        min-height: 0;
    }

    .page-hero__title {
        font-size: clamp(40px, 13vw, 58px);
        max-width: 420px;
        min-height: 88px;
    }

    .hero__art {
        align-self: flex-end;
        flex-basis: auto;
        height: 190px;
        margin-top: -8px;
        width: min(360px, 100%);
    }

    .hero__line {
        height: 280px;
        left: 112px;
        top: -38px;
        width: 64px;
    }

    .hero__swimmer {
        left: 18px;
        top: 18px;
        width: 210px;
    }
}

.hero-art {
    flex: 0 1 506px;
    height: auto;
    max-width: 506px;
    position: relative;
    width: 100%;
    aspect-ratio: 506/300;
}

.hero-art__line, .hero-art__swimmer {
    max-width: none;
    position: absolute;
}

.hero-art__line {
    height: 130.63%;
    left: 22.53%;
    top: -6.67%;
    transform: rotate(56deg);
    width: 17.39%;
    z-index: 1;
}

.hero-art__image {
    position: absolute;
    left: 5%;
    width: 100%;
    object-fit: contain;
    z-index: 2;
}

.hero-art__swimmer {
    left: 4.94%;
    top: 11%;
    transform: none;
    width: 58.1%;
    z-index: 2;
}

.hero__art {
    height: auto;
}

@media (max-width: 760px) {
    .hero-art {
        flex-basis: auto;
        justify-self: end;
        max-width: min(100%, 360px);
        order: -1;
    }

    .hero__art {
        height: auto;
    }
}


.home-hero {
    background: var(--primary-blue);
    color: var(--white);
    position: relative;
    padding: 36px 0 40px;
}

.home-hero__inner {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr minmax(0, 612px) 1fr;
    min-height: 481px;
}

.home-hero__content {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.home-hero h1 {
    font-family: var(--font-title);
    font-size: clamp(42px, 5vw, 60px);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin: 0;
    text-wrap: balance;
}

.home-hero__figure {
    position: relative;
}

.home-hero__figure--mobile {
    display: none;
}

.home-hero__figure img {
    display: block;
    margin-inline: auto;
    max-height: 300px;
    object-fit: contain;
}

.home-hero__figure--left {
    background: var(--line-white1) no-repeat 0 100%;
}

.home-hero__figure--right {
    background: var(--line-white2) no-repeat -50px -50px;
    background-position: -85px -70px;
}

.lesson-cta-card--accent .pill-button {
    background: var(--white);
    color: var(--primary-red);
}

@media (max-width: 1100px) {
    .home-hero__inner {
        grid-template-columns: 240px minmax(0, 1fr) 240px;
        min-height: 430px;
    }

    .home-hero .lesson-cta-card .pill-button {
        grid-column: 1/-1;
        width: fit-content;
    }
}

@media (max-width: 760px) {
    .home-hero {
        padding: 40px 0 60px;
    }

    .home-hero__inner {
        gap: 12px;
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-hero__content {
        gap: 20px;
        order: 1;
    }

    .home-hero__figure {
        max-width: 360px;
        width: 100%;
    }

    .home-hero__figure--mobile {
        display: block;
        justify-self: stretch;
        order: -1;
        margin: 0 auto;
        background: var(--line-white1) no-repeat 0 100%;
    }

    .home-hero__figure--left {
        display: none;
    }

    .home-hero__figure--right {
        display: none;
    }

    .home-hero__figure--extra {
        display: none;
    }

    .home-hero__figure--mobile img {
        margin-inline: unset;
        max-height: none;
        transform: none;
        width: min(268px, 74vw);
    }

    .home-hero h1 {
        font-size: 44px;
        line-height: 1.2;
        text-align: center;
    }

    .home-hero .pill-button {
        min-width: 136px;
        width: auto;
    }

    .home-hero .lesson-cta-card .pill-button {
        width: 100%;
    }
}
