.footer {
    overflow: hidden;
}

.footer__content-top {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 47px 20px 2px;
}

.footer-block--brand-custom {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer-block--brand-logo {
    flex: 1 1 100%;
}

.footer__logo-image {
    max-width: 230px;
    width: 100%;
    height: auto;
}

.footer__contact-group {
    margin-bottom: 16px;
}

.footer__contact-group:nth-child(1) {
    margin-bottom: 5px;
}

.footer__contact-group:nth-child(1) .footer-block__heading {
    margin-bottom: 9px;
}

.footer__contact-group:nth-child(1) .footer__contact-text p {
    line-height: 2;
}

.footer-block__heading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    margin-bottom: 13px;
    font: 600 18px 'Raleway', sans-serif;
    text-transform: uppercase;
    color: var(--color-4);
}

.footer__contact-text p,
.footer__contact-text a {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-5);
    text-decoration: none;
}

.footer__contact-text p {
    margin-bottom: 8px;
}

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

.footer__menus-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 1;
}

.footer-block--menu {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-block--menu .footer-block__heading {
    margin-bottom: 30px;
}

.footer-block__details-content {
    overflow: hidden;
    transition: height 0.35s ease-out;
    margin: 0;
}
.footer-block__details-content .list-unstyled {
    margin: 5px 0 0 -4px;
    padding-left: 0;
    list-style: none;
}

.footer-block__details-content .list-unstyled li {
    margin-bottom: 26px;
}

.footer-block__details-content .list-unstyled a {
    padding: 2px 4px;
    font-weight: 400;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    color: var(--color-5);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: color .3s ease-out, text-shadow .3s ease-out, text-decoration-color .3s ease-out;
}

.footer-block__details-content .list-unstyled a:hover {
    color: var(--color-5);
    text-decoration: underline;
    text-underline-offset: .3rem;
    text-decoration-color: currentColor;
    text-shadow: -.1px -.1px 0 currentColor, .1px -.1px 0 currentColor, -.1px .1px 0 currentColor, .1px .1px 0 currentColor, 0 0 1px rgba(255, 255, 255, .1);
}

.footer-block .icon-caret {
    right: 4px;
    width: 1.5rem;
    height: 5px;
    transition: transform 0.35s ease;
    color: var(--color-4);
    display: flex;
    align-items: center;
}

.footer-block details.is-open .icon-caret {
    transform: rotate(180deg);
}

.footer__middle-row {
    position: relative;
    padding: 26px 0 50px;
    border-radius: 24px 24px 0 0;
    background-color: #d5efe2;
    z-index: 2;
}

.footer__middle-inner {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer__social-heading {
    font: 700 18px 'Raleway', sans-serif;
    color: var(--color-4);
    margin-bottom: 18px;
}

.footer__list-social.list-social:only-child {
    justify-content: space-around;
}

.footer__social_wrapper .list-social {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer__social_wrapper .list-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--color-6);
    border-radius: 50%;
    border: 2px solid var(--color-6);
    background: #fff;
    transition: all 0.3s ease;
}

.footer__social_wrapper .list-social__link:hover {
    background-color: var(--color-6);
    color: #fff;
}

.footer__social_wrapper svg {
    width: 20px;
    height: 20px;
}

.footer__social_wrapper .list-social__link:hover svg path {
    fill: #fff;
}

.footer__actions-wrapper {
    display: flex;
    width: 100%;
    gap: 15px;
    align-items: center;
}

.footer__contact-btn {
    min-width: 132px;
    min-height: 51px;
    flex-grow: 1;
    align-content: center;
    padding: 5px 20px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    color: var(--color-6);
    border-radius: 50px;
    border: 2px solid var(--color-6);
    background: #fff;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.footer__contact-btn:hover {
    background: var(--color-6);
    color: #fff;
}

.scroll-to-top-btn {
    background: var(--color-6);
    border: none;
    color: white;
    width: 51px;
    height: 51px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(230, 62, 39, 0.2);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.scroll-to-top-btn:active {
    transform: scale(0.95);
}

.footer__content-bottom {
    background-color: var(--color-4);
    border-radius: 24px 24px 0 0;
    margin-top: -24px;
    padding: 25px 0 53px;
    position: relative;
    z-index: 3;
}

.footer__bottom-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
}

.footer__bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__bottom-links li a {
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    transition: 0.3s all;
}

.footer__copyright {
    margin: 0;
    color: #fff;
}

.footer__copyright small {
    font-weight: 500;
    font-size: 14px;
}

.footer__image-section {
    position: relative;
    min-height: 324px;
    margin-top: -24px;
    padding: 24px 0 120px;
    background-color: var(--color-3);
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    z-index: 4;
}

.footer__image-section--bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: -1;
}

.footer__payment {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer__payment .list-payment {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer__payment .list-payment  .list-payment__item {
    padding: 0;
}

@media screen and (min-width: 360px) {
    .footer__social_wrapper .list-social__link {
        width: 52px;
        height: 52px;
    }
}

@media screen and (min-width: 750px) {
    .footer__content-top {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 74px 24px 17px;
        gap: 23px 30px;
    }

    .footer-block--brand-custom {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 13px;
    }

    .footer__menus-wrapper {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-block--menu {
        flex: 0 0 138px;
        border: none;
    }

    .footer-block--menu:nth-child(1) {
        flex: 0 0 156px
    }

    .footer-block__details summary {
        pointer-events: none;
    }

    .footer-block__details .icon-caret {
        display: none !important;
    }

    .footer-block__details-content {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

    .footer-block__details-content .list-unstyled {
        margin: 0 0 0 -4px;
        padding-bottom: 7px;
    }

    .footer-block__details-content .list-unstyled li {
        margin-bottom: 26px;
    }

    .footer-block__heading {
        margin-bottom: 13px;
    }

    .footer__middle-row {
        margin-top: -24px;
        padding: 27px 0 48px;
    }

    .footer__middle-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .footer__actions-wrapper {
        width: auto;
        justify-content: flex-end;
    }

    .footer__contact-btn {
        flex-grow: 0;
        padding: 9px 12px 7px;
    }

    .footer__content-bottom {
        padding: 25px 0 52px;
    }

    .footer__bottom-links {
        justify-content: center;
        gap: 18px;
    }

    .footer__image-section {
        padding: 32px 0 0;
        min-height: 400px;
    }

    .footer__list-social.list-social,
    .footer__follow-on-shop,
    .footer-block__newsletter {
        display: flex;
        justify-content: center;
    }

    .footer__social_wrapper .list-social {
        gap: 12px;
    }

    .footer__bottom-links li a {
        padding: 2px 4px;
        transition: .3s all;
    }

    .footer__bottom-links li a:hover {
        text-decoration: none;
        text-shadow: -.2px -.2px 0 currentColor, .2px -.2px 0 currentColor, -.2px .2px 0 currentColor, .2px .2px 0 currentColor, 0 0 8px rgba(255, 255, 255, .1);
        /*background: rgba(255, 255, 255, 0.2);*/
    }
}

@media screen and (min-width: 990px) {
    .footer__content-top {
        padding: 29px 24px 9px;
    }

    .footer-block--brand-custom {
        flex-direction: column;
        justify-content: unset;
        flex: 0 0 300px;
        margin-bottom: 0;
    }

    .footer__menus-wrapper {
        flex: 0 0 57.5%;
        gap: 30px;
    }

    .footer__middle-row {
        padding: 26px 40px 49px;
    }

    .footer__bottom-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer__content-bottom {
        padding: 24px 0 55px;
    }

    .footer__bottom-links {
        justify-content: flex-start;
        gap: 33px;
    }

    .footer__image-section {
        min-height: 450px;
    }
}

@media screen and (max-width: 989px) {
    .footer__menus-wrapper::before {
        content: "";
        position: absolute;
        top: -30px;
        left: 50%;
        width: 100vw;
        height: calc(100% + 42px);
        border-radius: 24px 24px 0 0;
        background: var( --color-3);
        transform: translateX(-50%);
        z-index: -1;
    }

    .footer__copyright {
        width: 100%;
        padding-top: 25px;
        border-top: 1px solid rgba(254, 254, 244, 0.2);
    }
}


@media screen and (max-width: 749px) {
    .footer-block--menu details > summary {
        min-height: 72px;
        align-content: center;
        cursor: pointer;
    }

    .footer-block--menu .footer-block__heading {
        margin: 0;
    }

    .footer__menus-wrapper::before {
        top: -9px;
        height: calc(100% + 65px);
    }

    .footer-block--menu:nth-last-child(1) {
        border-bottom: 0;
    }
}