footer{
    background: var(--pink);
    padding: 30px 0;
}
footer > .container{
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.footer-section{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer-section__right{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex: 2;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-section__left{
    flex: 1;
}
.footer-section__left img{
    width: 100%;
}
.footer-section__right-catalog .footer-section__right-catalog__header, .footer-section__right-about .footer-section__right-about__header, .footer-section__right-contact .footer-section__right-contact__header{
    margin-bottom: 5px;
}
.footer-section__right-catalog .footer-section__right-catalog__header a, .footer-section__right-about .footer-section__right-about__header a {
    color: var(--text);
    text-decoration: none;
}
.footer-section__right-catalog .footer-section__right-catalog__header p, .footer-section__right-about .footer-section__right-about__header p, .footer-section__right-contact .footer-section__right-contact__header p{
    font-size: 32px;
    font-family: mak, serif;
    color: var(--text);
}
.footer-section__right-about > a,
.footer-section__right-catalog > a {
    text-decoration: none;
    color: #666666;
    font-size: 16px;
    margin-bottom: 5px;
    transition: .3s;
}

.footer-section__right-about > a p,
.footer-section__right-catalog > a p {
    margin-bottom: 10px;
    width: fit-content;
    position: relative; /* Перенесено сюда */
    font-size: 18px;
    color: var(--text);
}

.footer-section__right-catalog > a p::after,
.footer-section__right-about > a p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text);
    transition: all .3s ease;
}

.footer-section__right-catalog > a p:hover::after,
.footer-section__right-about > a p:hover::after {
    width: 100%;
}

.footer-section__right-catalog > a:hover,
.footer-section__right-about > a:hover {
    color: var(--black);
    transition: .3s;
}
.footer-section__right-contact__content{
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}
.footer-section__right-contact__content img{
    width: 25px;
}
.footer-section__right-contact__content p{
    color: var(--text);
    font-size: 18px;
}
.footer-section__right-contact__content a{
    text-decoration: none;
}
.footer-section__split img{
    width: 100%;
    height: 100%;
}
.footer-section__under{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-section__under-last{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}
.footer-section__under-first a{
    text-decoration: none;
    color: var(--text);
    transition: .3s;
}
.footer-section__under-last a > img{
    width: 30px;
}
.footer-section__under-first p{
    position: relative;
    font-size: 18px;
}
.footer-section__under-first a:hover{
    color: var(--text);
    transition: .3s;
}
.footer-section__under-first p::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text);
    transition: all .3s ease;
}
.footer-section__under-first p:hover::after {
    width: 100%;
}
.footer-section__right-contact__content a p{
    position: relative;
}
.footer-section__right-contact__content a p::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text);
    transition: all .3s ease;
}
.footer-section__right-contact__content a p:hover::after {
    width: 100%;
}
.footer-section__under-second p{
    font-size: 18px;
}
@media (max-width: 1200px){
    .footer-section__right{
        grid-template-columns: repeat(2, auto);
    }
}
@media (max-width: 900px) {
    .footer-section{
        flex-direction: column-reverse;
    }
    .footer-section__right {
        justify-content: space-around;
    }
    .footer-section__under{
        justify-content: space-around;
        text-align: center;
    }
    .footer-section__left img{
        width: 100%;
    }
}
@media (max-width: 600px) {
    .footer-section__right{
        grid-template-columns: repeat(1, 1fr);
    }
}
