@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
    font-family:'Montserrat', sans-serif;
    letter-spacing: .1rem;  
    -webkit-font-smooth: auto; 
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

:root {
    --mainbrown:#ab9477;
    --textbrown:#5c524b;
    --mainorange: #f9c749;
    --licolor: rgb(92, 82, 75);
    --icoOrange:rgba(249, 199, 73, 0.88);
    --white:#fff;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}
img {
    width: 100%;
}

.container {
    min-height: 70vh;
    width: 100%;
    display: flex;
    align-items: center;
    /*justify-content: center;*/
}

.service_container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 2rem 2rem;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: auto; 
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.cube {
    max-width: auto;  
    height: 350px;
    background-color: var(--white);
    border: 1px solid rgba(128, 128, 128, 0.342);
    position: relative;
    z-index: 1;
    background: url(../img/moving-312082_640.png);
    background-size: 40%;
    background-position: bottom right;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 0 2rem;
    
}

.cube:hover ::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: all 250ms linear;
    z-index: -1;
    animation: back 1s forwards;
}

.cube h1 {
    color: var(--textbrown);
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
    font-size: 2.3rem;
    text-align: center;
}

.cube p {
    position: relative;
    color: var(--textbrown);
    line-height: 2rem;
    font-size: 1.2rem;
    font-weight: 400;
    text-align: left; /*nove */
    height: 100px; /*nove */
    background-color: transparent;
    
}

.btn_sluzba {
    margin-top: 85px;
    text-align: left;
    padding: 0 0 0 15px;
    display: block;
}

.btn_sluzba a {
    font-size: 1.4rem;
    font-weight: 600;  
    color: #5c524b; 
    text-transform: lowercase; 
    background-color: var(--mainorange);
    border: 3px solid var(--mainorange);
    padding: 1rem 2rem;
    border-radius: 5px;

}

.btn_sluzba a:hover {
    background-color: var(--white);
    border: 3px solid var(--mainorange);
    z-index: 1; 
}

.bremena {
    background: url(../img/7288558_61573.jpg);
    background-size: 40%;
    background-position: bottom right;
    background-repeat: no-repeat;
    order: 2;
}

.doprava {  
    background: url(../img/wepik-photo-mode-20221015-13164.png);
    background-size: 47%;
    background-position: bottom right;
    background-repeat: no-repeat;
    order: 4;
    
}

.uskladnenie {  
    background: url(../img/10701270_43698.jpg);
    background-size: 40%;
    background-position: bottom right;
    background-repeat: no-repeat;    
}

@keyframes back {
    0% {
        background-color: #5c524b5b;
        left: 300px;  
    }

    100% {
        background-color: #5c524b5b;
        opacity: 0.2;
        left: 0px;
    }
}

@media (max-width:768px) {
    .service_container {  
        grid-template-rows: 1fr 1fr;
    }
    
}

@media (max-width:700px) {
    .service_container {  
        grid-template-rows: 1fr 1fr 1fr 1fr;
    }

    .stahovanie{
        order: 2;
    }

    .bremena {
        order: 2;
    }
    
    .uskladnenie {
        order: 4;
    }
}

/************foooter**************************/
footer {
    background-image: url(../img/move-gd65965ab3_1920.jpg);
    background-size: cover;
    background-position: top center;
    position: relative;
    z-index: 1;

}

footer::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: .5;
    z-index: -1;
}


.pre-footer {
    max-width: 1080px;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    gap: 1rem;
    justify-content: center;
    margin: 0 auto;
    color: #fff;
    padding: 5rem 2rem 5rem 2rem;
}

.pre-footer h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pre-footer a {
    color: #fff;
}


.adresa,
.kontakt-footer,
.menu-footer {
    width: 200px;
    text-align: center;
    border-left: 1px solid #c5af9274;
    position: relative;
}

.adresa{
    border: none;
}

.adresa p,
.kontakt-footer span {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 2rem;
}

.adresa img {
    color: #fff;  
}


.kontakt-footer i {
    font-weight: 300;
    line-height: 2rem;
    font-size: 2rem;
    vertical-align: -2px;
    
}

.kontakt-footer {
    width: 370px;
}

.menu-footer a {
    line-height: 18px;
    font-size: 1.2rem;
    position: relative;
}

.menu-footer a:hover {
    color: var(--mainorange);
}
/************end of foooter**************************/