#team-block {
    border-radius: 10px;
    padding: 40px 145px 80px; /* Уменьшен верхний отступ */
}

/* #team-block #archive-employees {
    padding: 80px 145px;
} */

#team-block .block-title {
    margin-bottom: 40px;
}

#team-block .team-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

#team-block .team-cards-layout {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: stretch;
}

#team-block .team-small-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
    min-width: 0;
    max-width: 490px;
}

#team-block .team-big-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

#team-block .team-card {
    background: var(--bg-primary-main);
    border-radius: 10px;
    overflow: hidden;
}

#team-block .team-small-card {
    display: flex;
    flex-direction: row;
    padding: 10px;
    height: 100%;
    background-image: url(./images/image\ 14.png);
    background-position: bottom 10px right 10px;
    background-repeat: no-repeat;
}

#team-block .team-small-card .team-employee-photo {
    width: 170px;
    flex-shrink: 0;
    margin-right: 15px;
}

#team-block .team-small-card .team-employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
	min-height: 168px;
}

#team-block .team-small-card .team-employee-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
    margin-top: 10px;
    gap: 15px;
}

#team-block .team-small-card .team-employee-skills {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#team-block .team-small-card .team-skill {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    color: var(--text-primary-main);
}

#team-block .team-small-card .team-employee-skills ul {
    margin: 0;
}

#team-block .team-small-card .team-employee-skills ul li {
    list-style-type: none;
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

#team-block .team-small-card .team-employee-skills ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px; /* Фиксированная позиция вместо 50% */
    width: 8px;
    height: 8px;
    background-color: var(--colors-main);
    border-radius: 50%;
    display: block;
    /* transform: translateY(-50%); Убрано */
}

#team-block .team-small-card .team-employee-skills ul li:last-child {
    margin-bottom: 0;
}

#team-block .team-big-card {
    display: flex;
    height: 100%;
    max-height: 490px;
}

#team-block .team-big-card .team-employee-photo {
    width: 50%;
    flex-shrink: 0;
}

#team-block .team-big-card .team-employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#team-block .team-big-card .team-employee-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 0 10px 10px 0;
    padding: 30px;
    width: 50%;
    height: 100%;
    flex: 1;
}

/* Измененная структура - skills вынесен за scrollable */
#team-block .team-employee-skills {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
    /* justify-content: space-between; Убрано */
}

#team-block .team-skill-item {
    box-sizing: border-box;
    max-width: fit-content;
    border: 1px solid var(--bg-primary-second);
    border-radius: 5px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#team-block .team-skill-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

#team-block .team-employee-role {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: var(--text-primary-second);
}

#team-block .team-employee-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#team-block .team-employee-description p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: var(--text-primary-main);
    white-space: break-spaces;
}

#team-block .team-employee-description ul {}

#team-block .team-employee-description li {
    position: relative;
    list-style-type: none;
    margin-bottom: 8px;
    padding-left: 15px;
    color: var(--text-primary-main);
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 16px;
    line-height: 130%;
}

#team-block .team-employee-description li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    background: var(--colors-main);
    border-radius: 50%;
}

#team-block .team-employee-info-scrollable {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

#team-block .team-employee-info-scrollable::-webkit-scrollbar {
    width: 8px;
}

#team-block .team-employee-info-scrollable::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
    margin: 5px 0;
}

#team-block .team-employee-info-scrollable::-webkit-scrollbar-thumb {
    background-color: var(--colors-main);
    border-radius: 2px;
    width: 50px;
    height: 3px;
    min-height: 30px;
    background-clip: content-box;
    border: 2px solid transparent;
    transition: opacity 0.3s ease;
}

#team-block .team-employee-info-scrollable::-webkit-scrollbar-thumb:hover {
    background-color: var(--colors-main);
    opacity: 0.9;
}

#team-block .team-employee-info-scrollable::-webkit-scrollbar-thumb:active {
    background-color: var(--colors-main);
    opacity: 1;
}

#team-block .team-employee-info-scrollable:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

#team-block .team-employee-info-scrollable {
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

@supports (scrollbar-width: thin) {
    #team-block .team-employee-info-scrollable {
        scrollbar-width: auto;
        scrollbar-color: auto;
    }
}

@supports (-webkit-touch-callout: none) {
    #team-block .team-employee-info-scrollable::-webkit-scrollbar-thumb {
        -webkit-background-clip: padding-box;
        background-clip: padding-box;
    }
}

@media (max-width: 1200px) {
    #team-block {
        padding: 0px 60px 80px;
    }
}

@media (max-width: 1024px) {
    #team-block .team-cards-layout {
        flex-direction: column;
        gap: 20px;
    }

    #team-block .team-small-cards,
    #team-block .team-big-cards {
        flex: 0 0 100%;
        flex-direction: row;
        max-width: none;
    }

    #team-block .team-big-card {
        flex-direction: column;
        max-height: none;
    }

    #team-block .team-big-card .team-employee-photo,
    #team-block .team-big-card .team-employee-info {
        width: 100%;
    }

    #team-block .team-big-card .team-employee-photo {
        height: 250px;
    }

    #team-block .team-small-card .team-employee-photo {
        width: 120px;
    }

    #team-block .team-big-card .team-employee-info {
        padding: 20px;
    }

    #team-block .team-employee-skills {
        justify-content: flex-start;
    }

    #team-block .team-employee-info-scrollable {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    #team-block .team-small-cards,
    #team-block .team-big-cards {
        width: 100%;
        flex-direction: column;
        max-width: none;
    }
}

@media (max-width: 768px) {
    #team-block {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    #team-block .team-employee-info-scrollable::-webkit-scrollbar {
        width: 6px;
    }

    #team-block .team-employee-info-scrollable::-webkit-scrollbar-thumb {
        width: 40px;
        height: 2px;
    }
}

#team-block .btn-border {
    display: block;
    width: fit-content;
    margin: 40px 0 0 0;
    text-align: center;
}