.footer {
    gap: 24px;
    padding: var(--footer-v-padding) var(--footer-h-padding);
    color: var(--color-3);
    background-color: var(--color-11);
}
.footer .footer-first-row {
    gap: var(--footer-row-items-gap);
}
.footer .footer-second-row {
    flex-direction: var(--footer-second-row-direction);
    gap: var(--footer-second-row-gap);
}
.footer .footer-phone-widget a {
    gap: 5px;
    font-size: 16px;
}
.footer .footer-phone-widget a,
.footer .footer-phone-widget a:hover {
    color: var(--color-3);
}
.footer .footer-phone-widget a img {
    height: 20px;
    width: auto;
}
.footer .footer-logo {
    height: 54px;
}
.footer .footer-alternates-switcher {
    height: 32px;
}
.footer .footer-alternates-selected {
    gap: 18px;
    font-size: 18px;
    line-height: 28px;
    cursor: pointer;
}
.footer .footer-alternates-angle {
    height: 24px;
}
.footer .footer-alternates-dropdown {
    transition: all 0.2s ease-in-out;
    z-index: 11;
}
.footer .footer-alternates-switcher:not(.active) .footer-alternates-dropdown {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.footer .footer-alternates-switcher.active .footer-alternates-dropdown {
    opacity: 1;
    visibility: visible;
}
.footer .footer-alternates-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    max-height: var(--footer-alternates-cont-max-height);
    max-width: var(--footer-alternates-cont-max-width);
    margin: auto;
    padding: 20px var(--footer-alternates-cont-padding) var(--footer-alternates-cont-padding);
    color: var(--color-1);
    background-color: var(--color-3);
    border-radius: 6px;
}
span.footer-alternates-header {
    color: var(--brand-black-color);
    font-family: var(--headers-font-family);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    line-height: 30px;
    margin-bottom: 20px;
}
.footer .footer-alternates-close {
    position: absolute;
    top: 16px;
    right: 16px;
    height: 32px;
    width: 32px;
    padding: 6px;
    cursor: pointer;
}
.footer .footer-alternates-list {
    gap: 8px;
}
.footer .footer-alternates-container:not(:hover) .footer-alternates-list {
    overflow: hidden;
}
.footer .footer-alternates-container:hover .footer-alternates-list {
    overflow-x: hidden;
    overflow-y: auto;
}
.footer .footer-alternates-item {
    gap: 8px;
    width: 200px;
    padding: 8px 0 8px 16px;
    color: var(--color-11);
    transition: color 0.2s ease-in-out;
}
.footer .footer-alternates-item:hover {
    color: var(--color-4);
}
.footer .footer-alternates-item.current {
    background-color: #E8E8E84D;
}
.footer .footer-alternates-flag {
    height: 16px;
    width: 22px;
    overflow: hidden;
}
.footer .footer-alternates-label{
    font-weight: var(--font-weight-bold);
    font-size: 16px;
    line-height: 26px;
}
.footer .footer-alternates-list .footer-alternates-title {
    font-size: 16px;
    line-height: 24px;
}
.footer .footer-socials {
    gap: 20px;
}
.footer .footer-socials-item {
    height: 24px;
    width: 24px;
}
.footer .footer-subscribe {
    gap: 20px;
    width: var(--footer-subscribe-width);
}
.footer .footer-subscribe-title {
    font-size: 16px;
    line-height: 24px;
}
.footer .footer-subscribe-form {
    gap: 8px;
}
.footer .footer-subscribe-input {
    font-size: 14px;
    line-height: 24px;
    background-color: #232323;
    color: var(--bg-additional-color);
}
.footer .footer-subscribe-input::placeholder {
    color: var(--color-12);
}
.footer-subscribe-form .form-result-msg {
    font-size: 16px;
    margin-bottom: 10px;
}
.footer .footer-subscribe-submit {
    color: var(--color-3);
    border: 1px solid var(--color-12);
    text-transform: none;
}
.footer .footer-brands {
    gap: 32px;
    height: 28px;
}
.footer .footer-menu-list {
    gap: 15px;
}
.footer .footer-menu-column {
    gap: 20px;
}
.footer .footer-menu-column-headline {
    min-height: 28px;
}
.footer .footer-menu-column-title {
    font-size: 18px;
    line-height: 28px;
}
.footer .footer-menu-column-list {
    gap: 16px;
}
.footer .footer-menu-column-item {
    font-size: 16px;
    line-height: 26px;
}
.footer .footer-menu-column-item:hover {
    color: var(--color-6)
}
.footer .footer-copyright {
    font-size: 16px;
    line-height: 26px;
}
.footer .footer-scroll-top {
    position: absolute;
    top: -68px;
    right: 20px;
    height: 44px;
    width: 44px;
    transition: opacity 0.2s ease-in-out;
    cursor: pointer;
}
.footer .footer-scroll-top:not(:hover) {
    opacity: 0.8;
}
.footer .footer-scroll-top:hover {
    opacity: 1;
}

.footer .footer-menu-column-item:empty,
.footer .footer-alternates-switcher:not(.active) .footer-alternates-angle .up,
.footer .footer-alternates-switcher.active .footer-alternates-angle .down {
    display: none;
}
.footer .brand-list {
    gap: 32px;
    flex-wrap: wrap;
}
.footer .brand-list .brand-item {
    height: 28px;
    width: calc(25% - 24px);
}
.footer .cookie-permissions-link {
    font-size: 12px;
    line-height: 22px;
    cursor: pointer;
}
.footer .cookie-permissions-link:hover {
    text-decoration: underline;
}

.footer-menu-columns-group {
    flex-wrap: nowrap;
    flex-direction: row;
}

.footer-menu-columns-group:nth-of-type(2){
    border-left: 1px solid rgba(62,62,62,0.4);
    border-right: 1px solid rgba(62,62,62,0.4);
    padding-left: 40px;
}

.footer .footer-menu-column-headline .footer-alternates-angle .down,
.footer .footer-menu-column-headline .footer-alternates-angle .up,
.footer .mobile-footer-subscribe-form{
    display: none;
}

.desktop-footer-subscribe-form {
    gap: 20px;
}

@media (-webkit-max-device-pixel-ratio: 1.99) and (min-width: 1440px), (-webkit-min-device-pixel-ratio: 2) and (min-width: 1920px) {

}

/*condition for 3 columns on Mac, if needed*/
@media (-webkit-max-device-pixel-ratio: 1.99) and (min-width: 1024px) and (max-width: 1439px), (-webkit-min-device-pixel-ratio: 2) and (min-width: 1024px) and (max-width: 1919px) {

}

@media (max-width: 767px) {
    :root {
        --footer-v-padding: 26px;
        --footer-h-padding: 16px;
        --footer-row-items-gap: 24px;
        --footer-second-row-gap: 40px;
        --footer-second-row-direction: column;
        --footer-subscribe-width: 100%;
        --footer-alternates-cont-max-height: 684px;
        --footer-alternates-cont-max-width: 100%;
        --footer-alternates-cont-padding: 52px 16px 20px;
    }
    .footer {
        gap: 16px;
    }
    .footer .footer-first-row {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .footer .footer-first-row .footer-left-column {
        justify-content: flex-start;
        width: calc(50% - var(--footer-row-items-gap) / 2);
        order: 1;
        display: none;
    }
    .footer .footer-logo {
        height: 32px;
    }
    .footer .footer-first-row .footer-socials {
        justify-content: center;
        width: 100%;
        order: 2;
    }
    .footer .mobile-footer-subscribe-form{
        display: flex;
    }
    .footer .footer-subscribe-form {
        gap: 12px;
    }
    .mobile-footer-subscribe-form .subscribe-field {
        margin-bottom: 12px;
    }
    .footer .mobile-footer-subscribe-form .footer-subscribe-title {
        margin-bottom: 20px;
        text-align: center;
    }
    .footer .footer-socials-item {
        height: 40px;
        width: 40px;
    }
    .footer-socials .footer-socials-item img {
        width: 100%;
        height: 100%;
    }
    .footer .desktop-footer-subscribe-form{
        display: none;
    }
    .footer .footer-first-row .footer-trustpilot {
        justify-content: flex-start;
        width: calc(50% - var(--footer-row-items-gap) / 2);
        order: 3;
    }
    .footer .footer-first-row .footer-alternates-switcher {
        justify-content: flex-start;
        width: 100%;
        order: 4;
    }
    .footer .footer-alternates-selected{
        width: 100%;
    }
    .footer .footer-alternates-label{
        flex: 1 1 auto;
        justify-content: flex-start;
    }
    .footer .footer-menu-column-title {
        font-size: 16px;
        line-height: 26px;
    }
    .footer .footer-alternates-container {
        padding: 34px var(--footer-alternates-cont-padding) var(--footer-alternates-cont-padding);
    }
    span.footer-alternates-header {
        margin-bottom: 10px;
        padding: 52px 16px 0px;
    }
    .footer-menu-columns-group {
        flex-wrap: wrap;
        flex-direction: column;
    }
    .footer-menu-columns-group:nth-of-type(2) {
        border-left: none;
        border-right: none;
        padding-left: 0px;
    }
    .footer-menu-columns-group:nth-of-type(1) {
        border-top: 1px solid rgba(62,62,62,0.4);
        border-bottom: 1px solid rgba(62,62,62,0.4);
        border-left: none;
        border-right: none;
        padding-left: 0px;
        padding-top: 16px;
        padding-bottom: 16px;
        margin: 0px 0px 16px;
    }
    .footer .footer-second-row {
        gap: 12px;
    }
    .footer-second-row .footer-menu {
        margin-bottom: 24px;
    }
    .footer .brand-list{
        margin-bottom: 14px;
    }
    .footer .footer-menu-list {
        flex-wrap: wrap;
        gap: 0;
    }
    .footer .footer-menu-column {
        width: 100%;
    }
    .footer .footer-menu-column-list {
        gap: 12px;
    }
    .footer .footer-subscribe-title {
        text-align: left;
    }
    .footer .footer-subscribe-form {
        gap: 12px;
    }
    .footer .footer-alternates-container {
        top: unset;
    }
    .footer .footer-alternates-container:not(:hover) .footer-alternates-list {
        overflow-x: hidden;
        overflow-y: auto;
    }
    .footer .footer-alternates-item {
        width: calc(50% - 4px);
    }
    .footer .footer-alternates-list .footer-alternates-title {
        font-size: 14px;
        line-height: 24px;
    }
    .footer-menu-column-headline.empty-headline + .footer-menu-column-list {
        margin-top: 12px;
    }
    .footer-menu-column-headline.empty-headline {
        display: none;
    }

    .footer .footer-menu-columns-group .footer-menu-column-headline .footer-alternates-angle .down{
        display: flex;
    }

    .footer .footer-menu-columns-group .footer-menu-column-headline .footer-alternates-angle .up,
    .footer .footer-menu-columns-group .footer-menu-column-list{
        display: none;
    }

    .footer .footer-menu-columns-group.active .footer-menu-column-headline .footer-alternates-angle .down{
        display: none;
    }

    .footer .footer-menu-columns-group.active .footer-menu-column-headline .footer-alternates-angle .up,
    .footer .footer-menu-columns-group.active .footer-menu-column-list{
        display: flex;
    }

    .footer .footer-menu-column-headline {
        justify-content: space-between;
    }
}
@media (max-width: 1023px) and (min-width: 768px) {
    :root {
        --footer-v-padding: 24px;
        --footer-h-padding: 20px;
        --footer-row-items-gap: 32px;
        --footer-second-row-gap: 32px;
        --footer-second-row-direction: column;
        --footer-subscribe-width: 428px;
        --footer-alternates-cont-max-height: 520px;
        --footer-alternates-cont-max-width: 691px;
        --footer-alternates-cont-padding: 24px;
    }
    .footer .footer-second-row {
        margin-top: 32px;
    }
    .footer .footer-menu-list {
        gap: 16px;
        flex-wrap: wrap;
    }
    .footer .footer-menu-column {
        gap: 20px;
        width: calc((100% - 32px)/2);
    }
    .footer-menu-columns-group:nth-of-type(2) {
        border-top: 1px solid rgba(62,62,62,0.4);
        border-bottom: 1px solid rgba(62,62,62,0.4);
        border-left: none;
        border-right: none;
        padding-left: 0px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .footer .footer-subscribe {
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 1439px) and (min-width: 1024px) {
    :root {
        --footer-v-padding: 24px;
        --footer-h-padding: 37px;
        --footer-row-items-gap: 32px;
        --footer-second-row-gap: 15px;
        --footer-second-row-direction: row;
        --footer-subscribe-width: 428px;
        --footer-alternates-cont-max-height: 540px;
        --footer-alternates-cont-max-width: 711px;
        --footer-alternates-cont-padding: 34px;
    }
}
@media (min-width: 1440px) {
    :root {
        --footer-v-padding: 24px;
        --footer-h-padding: 37px;
        --footer-row-items-gap: 82px;
        --footer-second-row-gap: 15px;
        --footer-second-row-direction: row;
        --footer-subscribe-width: 528px;
        --footer-alternates-cont-max-height: 540px;
        --footer-alternates-cont-max-width: 711px;
        --footer-alternates-cont-padding: 34px;
    }
}
