
.footer {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 0;
    /* overflow: hidden; */
}

.footer .inner {
    width: 100%;
    max-width: 1040px;
}

.footer > * {
    position: relative;
    z-index: 1;
}

.footer::before {
    content: ' ';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom:0;
    background: linear-gradient(134.71deg, rgba(0, 176, 255, 0.977355) -0.5%, #861FFC 76.33%, #861FFC 98.45%);
}

.footer-homepage .footer::before {
    top: -96px;
}

.footer .inner > svg {
    margin: 60px 0 0 0;
}

.footer .inner .master {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    padding: 40px 0;
    width: 100%;
    gap: 10px;

    .grid {
        flex: 3;
    }

    .socials {
        flex: 1;
    }
}

.footer .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;

    > div {
        flex: 1;
        grid-row: 1 / 4;
    }

    div:nth-of-type(2) {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
    }

    div:nth-of-type(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
}

.footer .grid > div,
.footer .socials > div {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer .grid > div h4,
.footer .socials > div h4 {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    color: #fff;
    margin: 0;
}

.footer .grid > div ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer .grid > div ul li a {
    text-decoration: none;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    font-size: 15px;
    line-height: 28px;
    color: #fff;
}


.footer .grid > div ul li a:hover {
    text-shadow: 0px 0px 1px currentColor;
}

.footer .socials { 
    width: 100%;
}

.footer .socials h4 {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    color: #FFFFFF;
    margin-top: 40px;
}

.footer .socials ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}

.footer .socials div:first-child ul {
    flex-direction: column;
}

.footer .socials > div:first-child  li {
    display: flex;
    flex-direction: row;
}

.footer .socials > div:last-child  li {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin-right: 16px;
}

.footer .socials ul li > a {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    font-size: 15px;
    line-height: 28px;
    color: #fff;
}

.footer .socials div:first-child ul li {
    align-items: flex-start;
    font-weight: 300;
    font-size: 15px;
    line-height: 20px;
    color: #fff;
}

.footer .socials div:first-child ul li > svg  {
    margin: 12px 8px 0 0;
}

.footer .socials div:first-child ul li > div  {
    margin: 8px 0 0 0;
    line-height: 22px;
}

.footer .socials div:first-child ul li > a {
    width: auto;
}

.footer .socials > div:first-child ul li > div,
.footer .socials > div:first-child ul li svg  {
    margin: 12px 12px 0 0;
}

.footer .socials ul li.mail > svg  {
    width: 23px;
    height: 15px;
}

.footer .socials ul li.call > svg  {
    width: 23px;
    height: 21px;
}

.footer .socials ul li.travel > svg  {
    width: 28px;
    height: 24px;
}

#adres {
    color: #fff;
    text-decoration: none;
}

.footer .socials ul li.travel > div > br  {
    display: none;
}

.footer .terms {
    align-self: stretch;
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 40px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.6);
}

.footer .terms > div {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 600px;
    justify-content: space-between;
    line-height: 40px;
    font-family: 'Open Sans';
}
    
.footer .terms span {
    display: inline-flex;
 
    font-style: normal;
    font-weight: 600;
    font-size: 8px;
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 4px;
}

.footer .terms a {
    line-height: 40px;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 8px;
    color: #FFFFFF;
    text-decoration: none;
}

.footer .other-products li ,
.resources li {
    display: flex;
    gap: 10px;
}

@media only screen and (max-width: 1200px) {
    .footer {
        padding: 0 36px;
    }

    .footer .socials {
        margin: 0;
    }
}

@media only screen and (max-width: 900px) {
    .footer .inner .master .grid{
        flex: 2;
    }

    .footer .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;

        div:first-of-type,
        div:nth-of-type(2) {
            grid-row: 1;
        }

        div:nth-of-type(3),
        div:last-of-type {
            grid-row: 2;
        }

        div:nth-of-type(3) {
            grid-column: 1;
        }
    }

    .footer .socials {
        display: grid;
        grid-template-rows: repeat(2, 1fr);

        div {
            max-height: min-content;
        }

        ul {
            margin: 0;
        }
    }
}

@media only screen and (max-width: 732px) {
    .footer {
        padding: 0;
    }

    .footer .socials {
        width: auto;
        margin: 28px  28px 0 28px;
        display: flex;
        flex-direction: row;
    }

    .footer .socials h4 {
        margin-top: 0;
    }

    .footer .terms {
        justify-content: space-between;
        margin: 0 28px; 
    }

    .footer .terms a {
        margin: 0;
    }   

    .footer .inner .master {
        display: flex;
        flex-direction: column;
        padding: 0 0 40px 0;
    }

    .footer .inner > svg {
        margin: 60px 0 0 28px;
    }

    .footer .grid {
        display: flex;
        flex: 0 0 80%;
        align-self: stretch;
        margin: 40px 28px 10px 28px;
        flex-wrap: wrap;
        row-gap: 20px;
        column-gap: 0;
    }

    .footer .grid > div:nth-child(odd),
    .footer .socials > div:first-child {
        flex: 0 0 55%;
    }    

    .footer .socials > div:last-child h4 {
        margin-top: 0;
    }

    .footer .socials div:last-child ul {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer .socials div:last-child ul li {
        margin-bottom: 12px;
        margin-right: 12px;
    }

    .footer .socials ul li.travel > div > br  {
        display: block;
    }

    .footer .socials ul li.mail > svg  {
        width: 15px;
        height: 11px;
    }
    
    .footer .socials ul li.call > svg  {
        width: 14px;
        height: 15px;
    }
    
    .footer .socials ul li.travel > svg  {
        width: 11px;
        height: 18px;
    }
    .footer .socials ul li.travel > div {
        line-height: 22px;
    }
}