.header-list a {
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}
.footer-link{
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: white; /* Цвет линии */
    transition: width 0.3s ease;
}
.footer-link:hover::after {
    width: 100%; /* Линия растягивается на всю ширину */
}
.header-list a:hover {
    color: black; /* Меняем цвет текста */
}

.header-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: black; /* Цвет линии */
    transition: width 0.3s ease;
}

.header-list a:hover::after {
    width: 100%; /* Линия растягивается на всю ширину */
}
