@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: #1e1e1e;
}

.staff__section {
    font-family: "Helvetica Neue Cyr Medium", Arial, sans-serif;
    font-weight: 400;
    margin-top: 35px;
}

.staff__title {
    margin-bottom: 20px;
    font-size: 48px;
    line-height: 100%;
    font-weight: 700;
}

.staff__nav {
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 0 0 52px;
    overflow-x: auto;
}

.staff__nav::-webkit-scrollbar {
    display: none;
}

.staff__button {
    width: max-content;
    font-size: 20px;
    font-weight: 400;
    line-height: 100%;
    font-family: "Helvetica Neue Cyr Medium", Arial, sans-serif;
    padding: 12px 28px;
    border-radius: 25px;
    border: none;
    color: #777777;
    background-color: transparent;
}

.staff__button:hover {
    cursor: pointer;
    text-decoration: underline;
}

.staff__button.active {
    font-weight: 700;
    color: #FFFFFF;
    background-color: #F13A5F;
}

.staff__button.active:hover {
    text-decoration: none;
}

.staff__content-wrapper {
    display: none;
}

.staff__content-wrapper.active {
    display: block;
}

.staff__cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px 52px;
    margin: 0 auto;
}

.staff__card {
    width: 205px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff__card-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 25px;
    margin-bottom: 15px;
}

.staff__card-name {
    margin-bottom: 5px;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
}

.staff__card-post {
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 300;
    line-height: 100%;
    color: #F13A5F;
    text-align: center;
}

/* 1440px */
@media (max-width: 1440px) {
    .staff__title {
        margin-bottom: 15px;
    }

    .staff__nav {
        margin: 0 0 52px;
    }

    .staff__cards {
        gap: 30px 40px;
    }
}

@media (max-width: 1280px) {
    .staff__nav {
        margin: 0 0 52px;
    }
}

@media (max-width: 1024px) {
    .staff__title {
        font-size: 40px;
        margin-bottom: 27px;
    }

    .staff__nav {
        margin: 0 0 30px;
    }

    .staff__cards {
        gap: 30px 44px;
    }

    .staff__card {
        width: 180px;
    }

    .staff__card-name {
        font-size: 20px;
    }
}

@media screen and (max-width: 992px) {
    .staff__nav {
        margin: 0 0 30px;
    }
}

@media screen and (max-width: 768px) {
    .staff__title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .staff__nav {
        gap: 20px;
        margin: 0 0 30px;
    }

    .staff__cards {
        gap: 20px 26px;
    }

    .staff__card {
        width: 160px;
    }
}

@media screen and (max-width: 450px) {
    .staff__button {
        font-size: 16px;
    }

    .staff__nav {
        gap: 0;
        margin: 0 0 30px;
    }

    .staff__button-item:first-child {
        margin-left: 15px;
    }

    .staff__button-item:last-child {
        margin-right: 15px;
    }

    .staff__cards {
        gap: 20px 24px;
    }

    .staff__card {
        width: 104px;
    }

    .staff__card-photo {
        margin-bottom: 10px;
    }

    .staff__card-name {
        font-size: 16px;
    }

    .staff__card-post {
        font-size: 12px;
    }
}

@media screen and (max-width: 375px) {
    .staff__button {
        font-size: 16px;
    }

    .staff__nav {
        gap: 0;
        margin: 0 0 30px;
    }

    .staff__card {
        width: 96px;
    }
}

@media screen and (max-width: 350px) {
    .staff__card {
        width: 110px;
    }
}