.r4r-site {
    --yellow: #a9d5bd;
}

.r4r-topbar {
    min-height: 36px;
    padding: 0 max(24px, calc((100vw - var(--max)) / 2));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    background: #09182d;
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.r4r-topbar span {
    color: rgba(255, 255, 255, .7);
}

.r4r-topbar a {
    color: var(--blue);
    text-decoration: none;
}

.r4r-mobile-join {
    display: none;
}

.r4r-friendship-intro {
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 1080px;
}

.r4r-friendship-intro > div {
    max-width: 900px;
}

.r4r-partner-choice > .r4r-button.outline {
    margin-top: -12px;
}

.r4r-sponsor-main > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

@media (max-width: 900px) {
    body.r4r-site {
        overflow-x: hidden;
    }

    .r4r-topbar {
        min-height: 38px;
        padding: 0 18px;
        justify-content: space-between;
        font-size: 11px;
    }

    .r4r-header {
        height: 76px;
        padding: 0 18px;
        background: white;
        box-shadow: 0 1px 0 rgba(16, 35, 63, .12);
    }

    .r4r-logo-image {
        width: 148px;
        height: 54px;
    }

    .r4r-menu {
        width: 48px;
        height: 48px;
        padding: 0;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 6px;
        background: var(--navy);
        color: white;
        cursor: pointer;
    }

    .r4r-menu span {
        font-size: 27px;
        line-height: 1;
    }

    .r4r-header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 14px 22px 22px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: white;
        border-top: 1px solid var(--line);
        box-shadow: 0 18px 35px rgba(9, 24, 45, .2);
        z-index: 50;
    }

    .r4r-header nav.open {
        display: flex;
    }

    .r4r-header nav a {
        width: 100%;
        padding: 15px 2px;
        border-bottom: 1px solid var(--line);
        font-size: 17px;
    }

    .r4r-header nav .r4r-mobile-join {
        display: flex;
        justify-content: center;
        margin-top: 14px;
        padding: 15px 18px;
        border: 0;
        border-radius: 4px;
        background: var(--blue);
        color: var(--navy);
    }

    .r4r-hero,
    .r4r-hero-photo {
        min-height: 660px;
    }

    .r4r-hero-copy {
        padding: 54px 22px 42px;
    }

    .r4r-hero h1 {
        margin: 14px 0 20px;
        font-size: clamp(48px, 15vw, 66px);
        line-height: .9;
    }

    .r4r-hero-copy > p {
        max-width: 34rem;
        font-size: 17px;
        line-height: 1.55;
    }

    .r4r-actions {
        width: 100%;
        gap: 18px;
        margin-top: 26px;
    }

    .r4r-actions .r4r-button {
        width: 100%;
        padding: 15px 18px;
        gap: 12px;
        font-size: 16px;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .r4r-topbar span {
        display: inline;
    }

    .r4r-topbar {
        justify-content: flex-end;
    }

    .r4r-hero,
    .r4r-hero-photo {
        min-height: 620px;
    }

    .r4r-hero h1 {
        font-size: 49px;
    }
}
