.nav-bar{
    display: flex;
    justify-content: center;
    background: #162132;
}

.inner-nav-bar{
    display: flex;
    align-items: center;
    padding: 1rem 0;
    width: 1280px;

}

.inner-nav-bar nav{
    margin-left: auto;
    white-space: nowrap;
    z-index: 99;
}

.inner-nav-bar a{
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.5em 1em;
    border-radius: 30px;
    position: relative;
}
.inner-nav-bar a::before{
    content: "";
    position: absolute;
    right: 0; bottom: 0; left: 0;
    display: block;
    border-bottom: 2px solid #fff;
    transform: scaleX(0);
    transition: transform 0.4s;
}

.inner-nav-bar a:hover::before{
    transform: scaleX(1);

}
.inner-nav-bar a.logo-link{
    background: transparent;
}
a#active::before{
    display: none;
}

.inner-nav-bar a + a{
    margin-left: 0.5rem;
} 
.inner-nav-bar .lang-container{
    display: inline-flex;
    /* margin-left: 5rem; */
}

.inner-nav-bar .lang-container li a {
    color: #162132;
}

.inner-nav-bar span{

    color: #162132;
    padding: 0.5em 1em;
    background: #fff;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 700;
}
.inner-nav-bar:hover{
    cursor: pointer;
}  

.inner-nav-bar span::after{
    content: url(../media/nav-bar/lang-drop-arrow.svg);
    display: inline-flex;
    margin-left: 0.5rem;
}

.inner-nav-bar ul{
    position: absolute;
    opacity: 0;
    border-radius: 20px;
    padding: 2.5em 0 0 0;
    background: #e2e2e2;
    color: #162132;
    font-weight: 700;
    text-transform: uppercase;
    transition: .4s;
    z-index: -1;
    overflow: hidden;
}

.lang-container a:hover::before {
    display: none;
}

.inner-nav-bar ul.displayed{
    opacity: 1;
}


/* pagination */
.pagination{
    display: flex;
    padding-left: 0;
    justify-content: center;
}
.pagination li a{
    padding: 0.1rem 0.5rem;
    font-weight: 300;
    border-radius: 50%;

    color: rgba(20, 20, 20, 0.7);
}
.pagination .active a{
    background-color: #162132;
    color: #fff;
    border-radius: 50%;
}
.pagination a:hover{background-color: #ececec;}
.pagination .active a:hover{background-color: #162132;}



/* Pievienots sort [13.07.2020]  */


.sort-menu{
    display: flex;
    flex-direction: column;
    position: absolute;
    visibility: hidden;
    top:0;left: 0; right: 0;
    padding-top: 2.7rem;
    padding-bottom: 1rem;
    background-color: #fff;   
    border-radius: 30px;
    overflow: hidden;
}

.sort-trigger span {
    z-index: 1;
}

.sort-menu.opened{
    visibility: visible;
}

.sort-option{
    padding: 0.5rem 1rem;
}
.sort-option:hover{
    background-color: #ececec;
    cursor: default;
}

.sort-trigger:hover{
    cursor: pointer;
}

.sort-wrapper{
    position: relative;
    font-size: 14px;
    font-weight: 700;
    z-index: 1000;
    width: 360px;
}

.sort-trigger{
    display: flex;
    align-items: center;
    font-size: 16px;
    background-color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 20px;

}
.sort-trigger .dropdown-bullet{
    margin-left: auto;
    transition: .4s;
}
.sort-wrapper .selected-option{
    padding: 0 0.5rem;
}

.sort-option.selected{
    background-color: #162132;
    color: #fff;
}





/* izmainits bg uz hmtl img elementu */
/* #section-1{
    position: relative;
    height: 60vw;
    max-height: 450px;
    overflow: hidden;
}

#section-1 .banner-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 100%;
    min-width: 700px;
    min-height: 450px;
    z-index: 1;
}

#section-1 .inner{
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 2;
}

.mobile-banner-container{
    display: none;
    justify-content: center;
    padding: 2rem 0;
    background-color: #162132;
}
.mobile-banner-container .img-wrapper{
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}
.mobile-banner-container .inner{
    flex-direction: column;
}
.mobile-banner-container p{
        color: red;
        text-align: center;
        font-size: 25px;
        opacity: 0.5;
}

.mobile-banner-container h1{
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 60px;
}

#section-1 .inner h1{
    font-size: 90px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    text-align: right;
} */




/* banner changes */

#masterlsider {margin-top: 2rem;}

/* 

.ms-slide {
    max-height: 450px;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.ms-slide img {
    position: absolute;
    max-height: 450px;
    min-height: 450px;
    width: 100%;
    object-fit: cover;
    z-index: 1;
}

.ms-slide .inner {
    display: block;
    height: calc(450px - 4rem);
    position: relative;
    padding-top: 4rem;
    z-index: 2;
} */

/* end of banner changes */

/* section 2 */

#section-2 .inner{
    justify-content: space-between;
}

/* Izmainīts pievieonoju grid */
#section-2 .offer-container{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, calc(33% - 1rem)));
    grid-gap: 1rem;
    justify-items: center;
}

#section-2 .offer-item,
#section-2 .special-offer-item{
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    margin-bottom: 2rem;
    z-index: 2;
    max-width: 350px;
    min-width: 270px;
}


/* max-height pievienots */
#section-2 .img-wrapper{
    position: relative;
    overflow: hidden;
    /* height: 45%; */
    width: 100%;
    min-height: 200px;
    max-height: 200px;
}

#section-2 .hidden-content{
    position: absolute;
    top: 0; right: 0; left: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: .4s;
}

#section-2 .hidden-content h2{
    padding: 0.4em 0.5em;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 30px;
}
#section-2 .offer-item:hover .hidden-content,
#section-2 .special-offer-item:hover .hidden-content{
    opacity: 1;
}
#section-2 .offer-item:hover img,
#section-2 .special-offer-item:hover img{
    transform: scale(1.1);
}


.info-row{
    margin-top: 1em;
}
.info-row span{
    color: #fff;
    text-transform: uppercase;
    padding: 0 0.5rem ;
    font-size: 14px;
    background: #000;
}
#section-2 .offer-item img,
#section-2 .special-offer-item img{
    width: 100%;
    transition: .6s;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; 
    -ms-transform: translateZ(0); /* IE 9 */
    -webkit-transform: translateZ(0); /* Chrome, Safari, Opera */
    transform: translateZ(0);
}

#section-2 .offer-textbox{
    display: flex;
    flex-direction: column;
    position: relative;
    height: 50%;
    padding: 1rem 1rem 2rem 1rem;
    color: #000;
    background: #fff;


}
 
.offer-main-container {
    width: 100%;
}

.offer-main-container > h1,
form h1 {
    text-transform: none;
}

.offer-main-container > h1{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    white-space: nowrap;
}

#section-2 .offer-textbox p{
    color: rgba(20, 20, 20, 0.7);
    margin-top: 1rem;
    font-weight: 200;
}
#section-2 .offer-bottom-row{
    display: flex;
    margin-top: auto;
    justify-content: space-between;
}
#section-2 .offer-textbox .offer-bottom-row p{
    color: rgba(20, 20, 20, 0.4);
    padding-left: 0.5rem;

}
#section-2 .price-info{
    white-space: nowrap;
    margin-bottom: -7px;
}

#section-2 .offer-textbox .euro-sign{
    font-size: 30px;
}
#section-2 .offer-textbox .price{
    font-size: 35px;
    font-weight: 700;
}
#section-2 .lizings-info{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-left: auto;
    text-align: right;
    text-transform: uppercase;
}

#section-2 .lizings-info p{
    margin: 0;
}
#section-2 .special-offer-container .lizings-info{
    margin-left: -1rem;

}

#section-2 span.bold-span{
    font-weight: 700;

    color: #000;
}

#section-2 .special-offer-container{
    display: flex;
    flex-wrap: wrap;
}


#section-2 .special-offer-item .img-wrapper::before{
    content: "Akcija";
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    background: #a81427;
    padding: 4rem 5rem 0.5rem 4rem;
    position: absolute;
    top: -45px; left: -65px;
    transform: rotateZ(-30deg);
    z-index: 10;
}
#section-2 .special-offer-item .price,
#section-2 .special-offer-item .euro-sign{
    color: #a81427;
}
#section-2 .special-offer-item .bold-span{
    color: #a81427;
}
#section-2 .old-price{
    text-decoration: line-through;
}
#section-2 .see-more-link{
    position: relative;
    display: inline-flex;
    margin-left: 50%;
    margin-top: 2rem;
    margin-bottom: 2rem;
    transform: translateX(-50%);
    font-size: 28px;    
    color: #505050;
    white-space: nowrap;
}

#section-2 .see-more-link::after{
    content: "";
    position: absolute;
    bottom: -5px;
    width: 100%;
    border-bottom: 2px solid #505050;
    transform: scaleX(0);
    transition: .4s;
}
#section-2 .see-more-link:hover::after{
    transform:scaleX(1);
}
#section-2 .see-more-link span{
    margin-top: 5px;
    margin-left: 20px;
}



/* Section - 3 */
#section-3 .inner{
    flex-direction: column;
}

hr{
    opacity: 0.1;
    margin-top: 4rem;
}


/* section - 4 */


.contacts-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 300px;
    width: 33%;
    margin-top: 4rem;
}

 .contact-info a {
    width: 100%;
    display: flex;
    align-items: center;
    color: rgba(20, 20, 20, 0.7);
    font-size: 18px;
}
.contact-info .pin {
    height: 25px;
}
 .contact-info a:last-child { 
    margin-top: 1rem;
    margin-left: 5px;
}
.contact-info a.email img {
    margin-right: 0.7rem;
}

.contact-info .img-wrapper img {
    border-radius: 50%;
    width: 200px;
}

.contact-info h2 {
    align-self: flex-start;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.contact-info a img {
    margin-right: 1rem;
}

.contact-info a:first-of-type {
    margin-left: 6px;
    margin-bottom: 1rem;
}

.contact-info a span {
    position: relative;
}

.contact-info a span::after {
    position: absolute;
    bottom: -3px; left: 0;
    content: "";
    width: 100%;
    border-bottom: 2px solid rgba(20, 20, 20, 0.4);
    transform:scaleX(0);
    transition: .4s;
}

.contact-info a:hover span::after {   
    transform: scaleX(1);
}


/* section - 5 */

#section-5 {
    padding: 4rem 0;
    position: relative;
}

#section-5 .contact-info-container {
    display: flex;
    width: 100%;
    position: relative;
}

#section-5 #map {
    min-width: 100vw;
    /* transform: translateX(); */
    position: absolute;
    left: 0;
    top: -5px;
    /* margin: 0 2rem 0 1rem; */
    min-height:100%;
    z-index: 1;
}

#section-5 .table-wrapper {
    width: 33%;
    /* position: absolute; */
    padding: 1rem;
    /* height: 100%; */
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 2;

}

#section-5 .table-wrapper.mezciems-wrapper {
    margin-left: auto;
}

#section-5 table {
    border-collapse: separate;
    margin-right: 1rem;
}

#section-5 h2:not(:first-child){
    margin-top: 2rem;
}

#section-5 td:first-child{
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.6);
    padding-right: 1rem;
    white-space: nowrap;
}
#section-5 tr:first-child td{
    /* font-weight: 300; */
    /* padding: 0.5rem 0; */
    text-transform: none;
}
#section-5 td:not(:first-child){
    color: rgba(20, 20, 20, 0.6);
}
#section-5 td{
    vertical-align: top;
    padding: 0.3rem 0;

}
#section-5 .gmap_canvas,
#section-5 .mapouter{
    height: 100%;
}

/* social cols */

.social-col img {
    height: 25px;
    width: 25px;
    display: block;
}

.social-col a {
    display: inline-block;
    transition: .4s;
}

.social-col a:hover {
  transform: scale(1.2);
}




@media (max-width: 1250px){
    #section-2 .special-offer-container .lizings-info {
        margin-left: auto;
    }

    #section-2 .offer-container {
        grid-template-columns: repeat(auto-fill, minmax(270px, calc(50% - 1rem)));
    }


}

@media (max-width:1150px){
    #section-3 .icon-row{
        flex-direction: column;
    }
    #section-3 .icon-row .img-wrapper{
        width: 60%;
    }
    #section-3 .inner-icon-row{
        margin-top: 2rem;
        width: 100%;
    }
    .inner-nav-bar .lang-container{
        margin-left: auto;
    }


}
@media (max-width:1100px){
    main {
        padding-top: 3rem;
    }
    .nav-bar{
        display: none;
    }
    .mobile-nav-display{display: flex}
}

@media (max-width:992px){
    #section-2 .inner{
        flex-direction: column;
    }
    #section-2 aside{
        margin-bottom: 2rem;
        margin-right: 0;
    }
    #section-5 .contact-info-container {
        flex-direction: column;
    }
    #section-5 #map,
    #section-5 .table-wrapper {
        width: 100%;
        position: relative;
    }
    #section-5 #map {
        margin: 1rem 0;
        order: 3;
    }
    #section-5 .mezciems-wrapper {
        order: 2;
    }
}

@media (max-width:900px){
    /* .ms-layer.title4 {
        font-size: 25px !important;
        line-height: 25px !important;

    } */

    #section-3 .text-row{
        flex-direction: column;
        align-items: center;
    }  

    #section-3 .text-row h1{
        text-align: left;
        margin-right: 0;
    }

    #section-4 .inner{
        flex-direction: column;
        align-items: center;
    }

    #section-5 .inner{
        flex-direction: column;
    }

    #section-5 table{
        width: 400px;
        display: flex;
    }
    

    #section-5 #map{
        min-height: 400px;
        width: 100%;
        margin-top: 2rem;
    }
}

@media (max-width:700px){
    #section-3 .icon-row .img-wrapper{
        width: 100%;
    }
}

@media (max-width:610px){
    #section-2 .img-wrapper{
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: auto;
        max-height: 100%;
    }
    
    .offer-main-container > h1{ 
        white-space: normal;
    }

    #section-3 .inner-icon-row {
        flex-wrap: wrap;
    }

    #section-3 .text-row {
        align-items: flex-start;
    }

    #section-3 .inner-icon-row .icon-container {
        width: 50%;
    }

    #section-3 .inner-icon-row .icon-container:nth-child(-n+2) {
        margin-bottom: 2rem;
    }

    #section-2 .offer-container {
        grid-template-columns: repeat(auto-fill, minmax(270px, 100%));
    }

}

@media (max-width:576px){
    /* new [13.07.2020] */
    
    .sort-wrapper {
        width: 100%;
        margin-top: 2rem;
    }

    aside{
        min-width: 100%;
    }

    #section-2 .see-more-link{
        white-space: normal;
        align-items: center;
    }

    #section-3 .text-row h1{
        font-size: 80px;

    }

    #section-5 table{
        width: 100%;
    }
  
}


/* slider */
.ms-skin-default .ms-nav-next, .ms-skin-default .ms-nav-prev {
    background-image: url(/media/light-skin-1.png) !important;
}



.swiper-button-next, .swiper-button-prev {
    color: #fff;
}

.swiper-slide .bg {
    position: relative;
    z-index: -1;
}

.swiper-slide .bg img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.swiper-slide .content-wrapper {
    display:flex;
    padding: 0rem 4rem 0rem 4rem;
    min-height: 400px;
    max-height: 400px;
}
.swiper-slide .content-wrapper h2 {
    margin-bottom: 1rem;
    font-size: 35px;
}

.swiper-slide .content-wrapper h3 {
    font-size: 20px;
    margin-bottom: 2rem;
    font-weight: 200;
} 

.swiper-slide .content-wrapper .content {
    padding: 2rem 0;
}

.swiper-slide .content-wrapper.tl {
    align-items: flex-start;
    justify-content: flex-start;
}

.swiper-slide .content-wrapper.tr {
    align-items: flex-start;
    justify-content: flex-end;
}

.swiper-slide .content-wrapper.bl {
    align-items: flex-end;
    justify-content: flex-start;
}

.swiper-slide .content-wrapper.br {
    align-items: flex-end;
    justify-content: flex-end;
}

@media (max-width:1070px) {
    .swiper-button-next, .swiper-button-prev {
        color: #a81427;
    }

    .swiper-slide .bg img {
        position: static;
    }

    .swiper-slide .content-wrapper .content {
        padding: 0;
    }

    .swiper-slide .content-wrapper {
        background-color: #162132;
        min-height: auto;
        max-height: auto;
        padding: 2rem 2rem 3rem 2rem;
    }
}

@media (max-width:550px) {
    .swiper-slide .content-wrapper h2 {
        font-size: 25px;
    }
    
    .swiper-slide .content-wrapper h3 {
        font-size: 15px;
    } 

    .swiper-slide .content-wrapper a {
        padding: .5rem 1rem;
        font-size: 15px;
    }
}