.home-specialties {
    margin: 3rem 0 8rem;
}

.home-specialties__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.home-specialties__title {
    margin: 0;
    font-size: 3.2rem;
    font-weight: 900;
    color: #353535;
    line-height: 1.15;
}

.home-specialties__featured {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-specialties:not(.is-expanded) .home-specialties__all.is-extra {
    display: none;
}

.home-specialties__featured-item {
    margin: 0;
    padding: 0;
}

.home-specialties__card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-height: 7.2rem;
    height: 100%;
    padding: 1.2rem;
    border: 1px solid #e5e5e5;
    border-radius: .8rem;
    background: #fff;
    color: #353535;
    text-decoration: none;
    transition: border-color .2s, background-color .2s, color .2s;
}

.home-specialties__card:hover {
    border-color: #7fcf9a;
    background: #f8f8f8;
    color: #42985f;
}

.home-specialties__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 4.4rem;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: .8rem;
    background: #f3fbf6;
}

.home-specialties__icon img {
    display: block;
    max-width: 2.7rem;
    max-height: 2.7rem;
}

.home-specialties__name {
    min-width: 0;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.home-specialties__all {
    margin-top: 3rem;
    padding-top: 2.4rem;
    border-top: 1px solid #e5e5e5;
}

.home-specialties__all-title {
    margin-bottom: 1.8rem;
    font-size: 2.2rem;
    font-weight: 900;
    color: #353535;
    line-height: 1.2;
}

.home-specialties__groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem 2rem;
    align-items: start;
}

.home-specialties__group {
    border-top: 2px solid #7fcf9a;
    padding-top: 1.2rem;
}

.home-specialties__letter {
    margin: 0 0 1.2rem;
    font-size: 2.2rem;
    font-weight: 900;
    color: #353535;
    line-height: 1;
}

.home-specialties__list {
    display: grid;
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-specialties__item {
    margin: 0;
    padding: 0;
}

.home-specialties__link {
    display: inline-block;
    padding: .2rem 0;
    color: #353535;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .2s;
}

.home-specialties__link:hover {
    color: #42985f;
}

.home-specialties__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
    padding: 1.4rem 2rem;
    border: 0;
    border-radius: .8rem;
    background: #ededed;
    color: #353535;
    font-size: 1.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.home-specialties__toggle:hover {
    background: #7fcf9a;
    color: #fff;
}

@media only screen and (max-width: 920px) {
    .home-specialties__featured,
    .home-specialties__groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 580px) {
    .home-specialties {
        margin: 2rem 0 6rem;
    }

    .home-specialties__header {
        margin-bottom: 2rem;
    }

    .home-specialties__title {
        font-size: 2.8rem;
    }

    .home-specialties__featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .8rem;
    }

    .home-specialties__card {
        flex-direction: column;
        align-items: flex-start;
        min-height: 11.2rem;
        padding: 1rem;
    }

    .home-specialties__icon {
        flex-basis: 4rem;
        width: 4rem;
        height: 4rem;
    }

    .home-specialties__name {
        font-size: 1.45rem;
    }

    .home-specialties__all {
        margin-top: 2.4rem;
    }

    .home-specialties__groups {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .home-specialties__link {
        font-size: 1.8rem;
    }

    .home-specialties__toggle {
        margin-top: 1.6rem;
    }
}
