
.footer {
    margin-top: 100px;
    background-color: #106B7D;
    color: #fff;
    border-radius: 100px 100px 0 0;
    height: 100%;
}

.container {
    padding: 80px 72px 52px;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.logo-search {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px;
    min-width: 250px;
}

.logo {
    width: 200px;
}

.footer_search {
    position: relative;
    margin-top: 23px;
    width: 183px;
}

.footer_search input {
    padding: 17px 16px;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 100px 0 0 100px;
}

.footer_search button {
    position: absolute;
    right: -24px;
    width: 48px;
    height: 48px;

    background-color: #212529;
    border: none;
    color: white;
    border-radius: 50%;

}

.footer_search button img{
    margin: 0 auto;
}

.working-hours {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 20px;
    font-weight: 300;
    color: #B9EAF3;
}

.working-hours span{
    line-height: 17.15px;
}
.working-hours-title{
    font-weight: 500;
    line-height: 20.79px;
}

.links {
    flex: 2;
    display: flex;
    justify-content: space-around;
    padding: 20px 20px 0;
}

.links div {
    flex: 1;
}

.links h5 {
    padding:  0 16px;
    font-weight: 500;
    margin: 0 0 16px 0;
}

.links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.links ul li {
    padding:  8px 16px;
    font-size: 1rem;
    font-weight: 300;

}

.links ul li a {
    color: #E9ECEF;
    text-decoration: none;
}

.contacts {
    display: flex;
    width: 100%;
    justify-content: space-between;
    min-width: 250px;
    padding: 0 72px;
    margin-bottom: 56px;
    align-items: center;
}

.contacts a{
    color: #E9ECEF;
}

.contacts p {
    display: flex;
    align-items: center;
    gap: 9px;
    background-color: #1E8194;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 41px;
    font-size: 1rem;
    font-weight: 500;
}

.contacts .tel-icon{
    width: 15px;
    height: 15px;
}

.social-icons {
    display: flex;
    height: 31px;
    gap: 16px;
}

.payment-methods-wrapper{
    height: 72px;
    background-color: #fff;
    width: 100%;
    display: flex;
}

.payment-methods{
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-methods a{
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-methods img {
    width: 100%;
    padding: 0 32px;
    border-left: 1px solid #9BA2A9;
}

.payment-methods img:nth-child(1) {
    border-left: none;
}

.payment-icons{
    display: flex;
    align-items: center;
}

.mobile-footer-nav {
    display: none;
}

/* Для устройств шириной от 1025px до 1280px (малые ноутбуки и планшеты в альбомной ориентации) */
@media (max-width: 1280px) and (min-width: 1025px) {
    .footer .contacts {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer .contacts p {
        width: 100%;
        justify-content: center;
    }

    .logo-search {
        justify-content:initial;
    }

    .working-hours {
        margin: 30px 0 0 10px;
    }

    .links {
        padding: 0 20px;
    }
}

/* Для устройств шириной от 768px до 1024px (планшеты) */
@media (max-width: 1024px) and (min-width: 769px) {

    .footer .contacts {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer .contacts p {
        width: 100%;
        justify-content: center;
    }

    .container {
        display: flex;
        flex-direction: column;
    }

    .logo-search {
        display: flex;
        flex-direction: row;
        height: auto;
        align-items: center;
        margin-bottom: 20px;
    }
    .links {
        padding: 20px 0 0 20px;
    }
    .links ul li {
        padding: 0;
    }

    .links h5 {
        padding: 0;
    }
}


/* Для устройств шириной от 481px до 767px (смартфоны в ландшафтной ориентации и малые планшеты) */
@media (max-width: 768px){
    .footer {
        border-radius: 20px 20px 0 0;
    }

    .footer .container {
        flex-direction: column;
        padding: 40px 30px 25px;
    }

    .footer .container .logo-search {
        gap: 20px;
        height: auto;
    }

    .footer .container .logo-search .working-hours {
        padding-bottom: 20px;
        border-bottom: 1px solid #53A3B3;
    }

    .footer .container .links {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .footer .container .links div {
        margin-top: 24px;
        border-bottom: 1px solid #53A3B3;
    }

    .footer .container .links h5 {
        padding: 0;
    }

    .footer .container .links ul li {
        padding: 0;
    }

    .footer .contacts{
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 30px ;
    }

    .footer .contacts p {
        width: 100%;
        justify-content: center;
    }

    .payment-methods img {
        padding: 0 16px;
    }

    .payment-methods-wrapper {
        height: auto;
    }

    .payment-methods {
        padding-top: 25px;
        padding-bottom: 80px;
    }

    .mobile-footer-nav {
        display: flex;
        padding: 12px;
        width: 100%;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        background-color: #E9ECEF;
        font-size: 12px;
        color: #6C757D;
        border-radius: 25px 25px 0 0;
        z-index: 997;
    }

    .mobile-footer-nav__item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

/* Для устройств шириной до 480px (смартфоны в портретной ориентации) */
@media (max-width: 480px) {
    /* Стили для маленьких смартфонов */

    .footer {
        border-radius: 20px 20px 0 0;
    }

    .footer .container {
        padding: 20px;
    }

    .footer .contacts{
        padding: 0 20px;
    }

    .footer .container .logo-search > div .footer_search{
        width: 200px;
    }
    .footer_search input{
        width: 100%;
    }

    .footer_search button {
        right: -20px;
    }
    .payment-methods img {
        padding: 0 8px;
    }
}



