.sotrydniki-header {
    display: flex;
    align-items: baseline;
    flex-direction: column;
}
.sotrydniki-title {
    font-size: 28px;
    font-weight: bold;
    display: inline-block;
}
.sotrydniki-meta-grid {
    display: flex;
    gap: 15px 30px;
    margin-bottom: 4vh;
}
.sotrydniki-subtitle {
    font-size: 20px;
    font-weight: 400;
    text-align: right;
    max-width: 70vh;
    line-height: 1.5;
    color: gray;
}
.sotrydniki-scrollable-description {
    max-height: 150px;
    margin-left: 2vh;
    overflow-y: auto;
    margin-bottom: 4vh;
    padding-right: 10px;
    font-weight: 500;
    font-size: 20px;
    color: black;
}
.princip-scrollable-description {
    max-height: 150px;
    margin-left: 2vh;
    overflow-y: auto;
    margin-bottom: 4vh;
    padding-right: 10px;
    font-weight: 400;
    font-size: 20px;
    color: #474747;
}
.agent-skills{
	display: flex;
	flex-direction: column;
	align-items: center;
}
.sotrydniki-link{
	text-decoration: none;
    color: inherit;
    outline: none;
    background: none;
    user-select: none;
    width: 50%;
}
.skill {
    position: relative;
    display: flex;
    flex-direction: row;
    margin-top: 1vh;
    height: 40px;
    box-shadow: 0px 1px 10px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: flex-start;
    font-size: 20px;
    font-weight: 400;
    width: 300px;
    padding-left: 20px;
    overflow: hidden; /* Скрываем переполнение псевдоэлемента */
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    background: #fff; /* Исходный фон */
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #FFD700;
    transition: width 0.5s ease-in-out;
    z-index: 1;
}

.skill:hover {
    transform: scale(1.03);
    box-shadow: 0px 1px 15px 10px rgba(0, 0, 0, 0.15);
}

.skill:hover::before {
    width: 100%;
}

/* Чтобы текст оставался поверх заполнения */
.skill > * {
    position: relative;
    z-index: 2;
}
.sotrydniki-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 20vh;
}
.gallery{
	display: flex;
	flex-direction: row;
	gap: 10px;
}
.name-and-gallery{
	display: flex;
	flex-direction: column;
}
.agen-info{
	margin-left: 4vh;
}

@media (max-width: 1300px) {
    .sotrydniki-header {
        align-items: center;
        text-align: center;
    }
    
    .sotrydniki-meta-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .sotrydniki-subtitle {
        text-align: center;
        max-width: 100%;
        font-size: 18px;
    }
    
    .sotrydniki-scrollable-description,
    .princip-scrollable-description {
        font-size: 18px;
        max-height: 200px;
        margin-left: 0;
    }
    
    .sotrydniki-link {
        width: 70%;
    }
    
    .skill {
        width: 250px;
        font-size: 18px;
    }
    
    .gallery {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .name-and-gallery {
        align-items: center;
    }
    
    .agen-info {
        margin-left: 0;
        text-align: center;
    }
    
    .sotrydniki-contact {
        width: 100%;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .sotrydniki-title {
        font-size: 24px;
    }
    
    .sotrydniki-subtitle {
        font-size: 16px;
    }
    
    .sotrydniki-scrollable-description,
    .princip-scrollable-description {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .sotrydniki-link {
        width: 90%;
    }
    
    .skill {
        width: 100%;
        max-width: 300px;
        height: 35px;
        font-size: 16px;
        padding-left: 15px;
    }
    
    .gallery {
        gap: 5px;
    }
    
    .sotrydniki-contact {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .sotrydniki-title {
        font-size: 20px;
    }
    
    .sotrydniki-scrollable-description,
    .princip-scrollable-description {
        font-size: 14px;
        max-height: 150px;
    }
    
    .sotrydniki-link {
        width: 100%;
    }
    
    .skill {
        height: 30px;
        font-size: 14px;
        padding-left: 10px;
    }
    
    .gallery {
        flex-direction: column;
    }
    
    .agent-skills {
        padding: 0 10px;
    }
    
    .sotrydniki-contact {
        align-items: center;
    }
}