.friends-page {
    padding: clamp(18px, 2vw, 28px) 4.5% clamp(30px, 4vw, 48px);
    color: #17251e;
}

.friends-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 17px 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at 84% -55%, rgba(255, 226, 117, 0.2), transparent 43%),
        var(--brand-dark);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
}

.friends-hero__mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #fff2ad;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    box-shadow: 0 0 19px rgba(255, 220, 94, 0.2);
}

.friends-hero__mark svg {
    width: 37px;
    height: 37px;
    fill: var(--accent);
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
}

.friends-hero h1,
.friends-hero p {
    margin: 0;
    color: inherit;
}

.friends-hero h1 {
    font-size: clamp(21px, 2.1vw, 29px);
    line-height: 1.15;
}

.friends-hero p {
    margin-top: 4px;
    font-size: 14px;
    opacity: 0.88;
}

.friends-intro {
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(20px, 4vw, 54px);
    align-items: center;
    margin-top: 14px;
    padding: clamp(17px, 2.2vw, 25px);
    background: #eef3ef;
    border: 1px solid #c6cec9;
    border-left: 5px solid var(--accent);
}

.friends-intro__eyebrow,
.friends-section__heading p {
    margin: 0 0 4px;
    color: #68736d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.friends-intro h2,
.friends-intro > p,
.friends-section__heading h2,
.friends-archive h2,
.friends-archive p,
.friends-contact h2,
.friends-contact p {
    margin: 0;
}

.friends-intro h2,
.friends-section__heading h2,
.friends-archive h2,
.friends-contact h2 {
    color: var(--brand-dark);
}

.friends-intro h2 {
    font-size: clamp(18px, 1.7vw, 23px);
}

.friends-intro > p {
    color: #3f5047;
    font-size: 14px;
    line-height: 1.65;
}

.friends-section {
    margin-top: clamp(24px, 3vw, 36px);
}

.friends-section__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 11px;
}

.friends-section__heading > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: #737c77;
    border-bottom: 3px solid var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.friends-section__heading h2 {
    font-size: clamp(18px, 1.7vw, 22px);
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.friend-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-height: 185px;
    padding: 22px;
    color: #17251e;
    background: #ffffff;
    border: 1px solid #bcc4bf;
    border-top: 4px solid #59635e;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.09);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.friend-card:hover,
.friend-card:focus-visible {
    color: var(--brand-dark);
    background: #f4f8f5;
    border-top-color: var(--accent);
    box-shadow: 0 5px 14px rgba(13, 71, 54, 0.15);
    outline: none;
    transform: translateY(-2px);
}

.friend-card__badge {
    position: absolute;
    top: 12px;
    right: 14px;
    padding: 4px 7px;
    color: #185d48;
    background: #e1f0e8;
    border: 1px solid #b6d0c1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.friend-card__monogram {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-top: 11px;
    color: #ffffff;
    background: var(--brand-dark);
    border-bottom: 4px solid var(--accent);
    font-size: 21px;
    font-weight: 800;
}

.friend-card__body {
    display: grid;
    gap: 8px;
    padding-top: 28px;
}

.friend-card__body strong {
    color: var(--brand-dark);
    font-size: 18px;
    line-height: 1.25;
}

.friend-card__body > span {
    color: #4d5b54;
    font-size: 13px;
    line-height: 1.55;
}

.friend-card__footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    color: #17654d;
    border-top: 1px solid #d8ddda;
    font-size: 12px;
    font-weight: 800;
}

.friend-card--compact {
    min-height: 170px;
}

.friend-card--compact .friend-card__monogram {
    margin-top: 0;
}

.friend-card--compact .friend-card__body {
    padding-top: 2px;
}

.friends-archive {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    margin-top: clamp(24px, 3vw, 36px);
    padding: 18px 20px;
    background: #f0f2f1;
    border: 1px solid #c5cbc7;
}

.friends-archive__icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    color: #ffffff;
    background: #66716b;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 800;
}

.friends-archive h2 {
    font-size: 16px;
}

.friends-archive p {
    margin-top: 4px;
    color: #58645d;
    font-size: 12px;
    line-height: 1.55;
}

.friends-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 14px;
    padding: clamp(18px, 2.3vw, 26px);
    color: #ffffff;
    background: var(--brand-dark);
    border-bottom: 3px solid var(--accent);
}

.friends-contact .friends-intro__eyebrow,
.friends-contact h2,
.friends-contact p {
    color: inherit;
}

.friends-contact .friends-intro__eyebrow,
.friends-contact p {
    opacity: 0.82;
}

.friends-contact h2 {
    font-size: clamp(17px, 1.6vw, 21px);
}

.friends-contact p:last-child {
    margin-top: 5px;
    font-size: 12px;
}

.friends-contact > a {
    flex: 0 0 auto;
    padding: 10px 15px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 2px solid;
    border-color: #ffffff #aa9d68 #aa9d68 #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.friends-contact > a:hover,
.friends-contact > a:focus-visible {
    color: #ffffff;
    background: #59635e;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (max-width: 820px) {
    .friends-intro,
    .friends-grid {
        grid-template-columns: 1fr;
    }

    .friend-card {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .friends-page {
        padding: 12px;
    }

    .friends-hero {
        justify-content: flex-start;
        padding: 14px;
    }

    .friends-hero__mark {
        width: 43px;
        height: 43px;
    }

    .friends-hero__mark svg {
        width: 31px;
        height: 31px;
    }

    .friends-intro {
        gap: 12px;
    }

    .friend-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 11px;
        padding: 18px 14px;
    }

    .friend-card__badge {
        position: static;
        grid-column: 1 / -1;
        justify-self: start;
    }

    .friend-card__monogram {
        width: 48px;
        height: 48px;
        margin-top: 0;
        font-size: 18px;
    }

    .friend-card__body {
        padding-top: 0;
    }

    .friend-card__footer {
        align-items: flex-start;
        font-size: 11px;
    }

    .friends-contact {
        display: grid;
    }

    .friends-contact > a {
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .friend-card {
        transition: none;
    }
}
