.members-section {
    padding: 40px 0 80px;
    background: linear-gradient(180deg, #f8f9fb 0%, #eef2f5 100%);
}

.members-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 200px));
    justify-content: left;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 32, 23, 0.08);
    margin-bottom: 30px;
}

.members-overview .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #65717a;
    margin-bottom: 6px;
}

.members-overview h3 {
    margin: 0;
    font-size: 2.2rem;
    color: #0c3b2e;
}

.members-overview .subtext {
    margin: 4px 0 0;
    color: #6c7a89;
    font-size: 0.9rem;
}

.members-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.members-controls label {
    flex: 1;
    min-width: 220px;
}

.members-controls input,
.members-controls select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #ced4da;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.members-controls input:focus,
.members-controls select:focus {
    border-color: #2c5f2d;
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.2);
    outline: none;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.member-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 34px rgba(16, 34, 23, 0.08);
    border: 1px solid rgba(12, 59, 46, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.member-card__link {
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: inherit;
    text-decoration: none;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
    transform: translateY(-4px);
    background-color:rgba(12, 59, 46, 0.05);
    box-shadow: 0 16px 48px rgba(16, 34, 23, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card__header {
    display: flex;
    gap: 16px;
    align-items: center;
}

.member-card__photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #dce2e7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #2c5f2d;
    font-weight: 700;
}

.member-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    display: block;
}

.member-card__label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7c8a;
    margin: 0;
}

.member-card h3 {
    margin: 4px 0 6px;
    font-size: 1.4rem;
    color: #0c3b2e;
}

.member-card__meta {
    margin: 0;
    color: #6c7a89;
    font-size: 0.95rem;
}

.member-card__arms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.arm-stat {
    border: 1px solid rgba(12, 59, 46, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #f9fbf8 0%, #f1f6f3 100%);
}

.arm-stat__title {
    margin: 0 0 8px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a6b63;
}

.arm-stat__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
    font-size: 0.95rem;
    color: #30443a;
}

.arm-stat__row strong {
    font-size: 1.05rem;
    color: #0f331f;
}

.member-card__bio {
    margin: 0;
    color: #4e5a63;
    line-height: 1.4;
    font-size: 0.95rem;
}

.members-alert {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    background: rgba(44, 95, 45, 0.08);
    border-radius: 12px;
    color: #0f331f;
}

.members-alert.error {
    background: rgba(201, 42, 42, 0.1);
    color: #7a1414;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 600px) {
    .members-overview {
        grid-template-columns: 1fr;
    }

    .member-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .member-card__photo {
        width: 64px;
        height: 64px;
    }

    .member-card__arms {
        grid-template-columns: 1fr;
    }
}
