/*basic*/
html{
    scroll-behavior: smooth;
}

header{
    position: fixed;
    width: 100%;

    z-index: 10;
}

body{
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #353535;
}

hr{
    width: 90%;
    border: 1px solid white;
    border-radius: 5px;
}

footer{
    background-color: #353535;
    width: 100%;
    min-height: 100px;
    border-top: 3px solid white;
    color: white;
}

footer > div{
    display: grid;
    grid-template-columns: 50% 50%;
}

footer .telnum{
    display: flex;
    color: white;
    padding-top: 30px;
    padding-left: 30px;
}

footer .whatsapp-contact{
    display: flex;
    align-items: right;
    justify-content: right;

    padding-top: 30px;
    padding-right: 30px;
}

/*general*/
.telnum{
    color: black;
    text-decoration: none;
}

.telnum:hover{
    color: rgb(68, 68, 68);
    text-decoration: none;
}

.whatsapp-logo{
    display: block;
    height: 40px;
    margin: auto auto;
    padding: 0;
}

.whatsapp-contact{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.stroke{
    border: 2px solid white;
    border-radius: 30px;
    padding: 10px;
}

.text-centred{
    text-align: center;

    justify-content: center;
}

.text-row{
    display: flex;
    gap: 50px;
    margin-top: 20px;
}

.text-big-size{
    font-size: 24px;
}

.text-orange{
    color: #d45500;
}

/*header*/
#header-box{
    display: grid;
    grid-template-columns: 20% 80%;
    min-height: 50px;
    width: 100%;
    column-gap: 10px;
    margin: 0;
    padding: 0;

    background-color: white;
}

#header-logo{
    height: 40px;
    display: block;
    margin: auto auto;  
    margin-top: 5px; 
}

#header-right{
    display: flex;
    align-items: right;
    justify-content: flex-end;
    gap: 50px;
    margin-right: 50px;
}

#header-button-box{
    position: relative;
    display: grid;
    grid-template-columns: 50% 50%;
    justify-content: center;
    margin: 0;
    padding: 0;
    background-color: transparent;
    min-height: 40px;

    border-top: 1px solid black;

    z-index: 9;
}

#header-button-box >div:nth-of-type(1){
    display: flex;
    height: 100%;
    align-items: start;
    justify-content: start;
    padding: 0;
    background-color: transparent;
}

#header-button-box > div:nth-of-type(2) {
    display: flex;
    height: 100%;
    align-items: end;
    justify-content: end;
    padding: 0;
    background-color: transparent;
}

#header-button-box .header-button {
    display: flex;
    align-items: end;
    height: 100%;
    padding: 0;

    background: white;

    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;

    /* Только нижняя тень */
    box-shadow: 0 8px 10px -4px rgba(0, 0, 0, 0.4);

    overflow: visible; /* важно для видимости тени */
}

#header-button-box .header-button:hover{
    background: linear-gradient(
        to bottom,
        white 0%,
        white 30%,
        #d45500 140%
    );
}

#header-button-box .header-button a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 50px; /* ширина кнопки, по желанию */
    box-sizing: border-box;

    color: black;
    text-decoration: none;
}

header label{
    display: none;
}

#burger-toggle{
    display: none;
}

header ul{
    display: none;
}

/*present part*/
#present-part{
    background: url('images/dev-images/present-part-image.jpg');
    background-size: cover;
    background-position: center;
    
    min-height: 100vh;
    padding-top: 50px; /* Adjust for header height */

    color: white;

    line-height: 1.5;
}

#present-part div:first-child{
    margin-top: 100px;
}

#present-part > div > h2:nth-of-type(2){ 
    margin-top: 5%;
}

/*service part*/
#service-part{
    position: relative;
    min-height: 100vh;
    border-radius: 30px;
    margin-top: -48px;
    margin-bottom: -48px;
    padding-bottom: 48px;
    
    background:
        linear-gradient(140deg, transparent 70%, #d45500 71%, #ffb066 100%),
        linear-gradient(200deg, transparent 70%, #d45500 71%, #ffb066 100%),
        white;

    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.service-card-container{
    display: grid;
    grid-template-columns: 50% 50%;
    margin-bottom: 5%;
}

.service-card{
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background-color: white;

    width: 80%;
    margin: auto auto;
    min-height: 100%;
    padding: 10px;

    line-height: 1.5;
}

/*garantia-part*/
#garantia-part{
    background: url('images/dev-images/garantia-part-image.jpg');
    background-size: cover;
    background-position: center;
    
    min-height: 100vh;

    color: white;

    line-height: 1.5;
}

/*examples*/

/*examples kitchen*/
#kitchen-present{
    display: flex;
    flex-direction: column;
    justify-content: center; /* по вертикали */
    align-items: center;     /* по горизонтали */
    background: url('images/dev-images/examples/kitchen/kitchen-present.jpg');
    background-size: cover;
    background-position: center;
    
    min-height: 110vh;

    color: white;
}

#kitchen-present > h1:first-child{
    font-size: 20vh;
}

#kitchen-description{
    position: relative;
    border-radius: 30px;
    margin-top: -48px;
    margin-bottom: -48px;
    padding-bottom: 48px;
    
     background:
        linear-gradient(140deg, transparent 70%, #ffd1b2 71%, #ffffff 100%),
        linear-gradient(200deg, transparent 70%, #ffd5b9 71%, #ffeedd 100%),
        white;

    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

#kitchen-description .process{
    display: flex;
    justify-content: center;

    padding-top: 20px;

    gap: 30px;
}

#kitchen-description .process img{
    height: 50vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#kitchen-description > h1:nth-of-type(2){
    margin-top: 100px;
}

#kitchen-description > h1:nth-of-type(3){
    margin-top: 100px;
}

.process-arrow {
    width: 0;
    max-width: 70%;
    height: 6px;
    margin: 30px auto 0 auto;
    border-radius: 3px;
    background: linear-gradient(
        to right,
        rgba(212,85,0,0.1) 0%,
        #d45500 80%,
        #ffb066 100%
    );
    position: relative;
    opacity: 1;
    transition: width 1.2s cubic-bezier(.77,0,.18,1);
}

.process-arrow.animate {
    width: 70%;
}

#details{
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

#details img{
    height: 60vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.details-arrow{
    width: 0;
    max-width: 70%;
    height: 6px;
    margin: 30px auto 0 auto;
    border-radius: 3px;
    background: linear-gradient(90deg,rgba(255, 176, 102, 0.1) 0%, rgba(212, 85, 0, 1) 50%, rgba(255, 176, 102, 0.1) 100%);
    position: relative;
    opacity: 1;
    transition: width 1.2s cubic-bezier(.77,0,.18,1);
}

.details-arrow.animate{
    width: 70%;
}

#complete{
    padding-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

#complete img{
    height: 60vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.complete-arrow{
    width: 0;
    max-width: 70%;
    height: 6px;
    margin: 30px auto 0 auto;
    border-radius: 3px;
    background: linear-gradient(90deg,rgba(255, 176, 102, 0.1) 0%, rgba(212, 85, 0, 1) 50%, rgba(255, 176, 102, 0.1) 100%);
    position: relative;
    opacity: 1;
    transition: width 1.2s cubic-bezier(.77,0,.18,1);
}

.complete-arrow.animate{
    width: 70%;
}

/*examples mc*/
#mc-present{
    min-height: 80vh;
    background: url('images/dev-images/examples/mc/mc-present.jpg');

    display: flex;
    flex-direction: column;
    justify-content: center; /* по вертикали */
    align-items: center;     /* по горизонтали */
    background-size: cover;
    background-position: center;

    color: white;
    font-size: 5vh;
}

#mc-present > h1{
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

#mc-description{
    display: none;
}

/*adaptive verst*/
@media (max-width: 1800px){
    #kitchen-description .process img{
        height: 40vh;
    }
}

@media (max-width: 1600px){
    #mc-present > h1{
        font-size: 8vh;
    }

    #kitchen-description .process img{
        height: 40vh;
    }
}

@media (max-width: 1200px){
     #mc-present > h1{
        font-size: 6vh;
    }

    #kitchen-present > h1:first-child{
        font-size: 15vh;
    }
}

@media (max-width: 900px){
    #kitchen-description .process{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #kitchen-description .process img{
        height: 50vh;
    }

    #details{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #details img{
        height: 50vh;
    }

    #complete{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #complete img{
        height: 50vh;
    }
}

@media (max-width: 750px){
    header p{
        display: none;
    }
}

@media (max-width: 600px){
    .service-card-container{
        display: block;
        margin-bottom: 5%;
    }

    .service-card{
        margin-bottom: 5%;
    }
    
    #header-logo{
        margin-left: 20%;
    }

    #service-part{
        padding-bottom: 5%;
    }

    h2{
        padding-left: 5%;
        padding-right: 5%;
    }

    body{
        font-size: 14px;
    }

    #kitchen-present{
        background: url('images/dev-images/examples/kitchen/kitchen-present-phone.jpg');

        min-height: 110vh;
        background-size: cover;
    }
}

@media (max-width: 500px){
    header .whatsapp-contact{
        display: none;
    }

    #header-button-box{
        display: none;
    }

    #header-box{
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

    header label{
        display: block;
        position: relative;
        height: 25px;
        width: 30px;
        margin-top: 10px;
        
    }

    header label::after, header label::before, header label span{
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: #d45500;
        transition: .3s;
    }

    header label::before{
        content: "";
        top: 0;
    }

    header label::after{
        content: "";
        bottom: 0;
    }

    header label span{
        top: 10px;
    }

    #burger-toggle:checked ~ label::after{
        transform: rotate(45deg);
        bottom: 10px;
    }

    #burger-toggle:checked ~ label::before{
        transform: rotate(-45deg);
        top: 12px;
    }

    #burger-toggle:checked ~ label span{
        transform: rotate(-45deg);
        top: 12px; 
    }

    header ul{
        gap: 20px;
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        background-color: white;
        z-index: -1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        top: 0; /* или top: 100px; если нужен отступ от header */
        bottom: -15px;
        text-decoration: none;
        transition: .3s;
        list-style-type: none;
        padding-top: 0; /* убрать или поставить 0 */
        padding-right: 7%;
        top: -100vh;
        bottom: 100vh;
    }

    #burger-toggle:checked ~ ul{
        top: 30px;
        bottom: -15px;
    }

    header ul li a{
        text-decoration: none;
        color: #af4600;
        line-height: 1.5;
        font-size: 18px;
    }

    #garantia-part .whatsapp-contact{
        padding-bottom: 30px;
    }

    #mc-description{
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        background: white;

        border-radius: 30px;
        margin-top: -48px;
        margin-bottom: -48px;
        padding-bottom: 50px;
    }

    #mc-description > img{
        max-width: 80%;
        height: auto;
        display: block;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        margin-top: 50px;
    }

    #kitchen-description .process img{
        max-width: 80%;
        height: auto;
    }

    #details img{
        max-width: 80%;
        height: auto;
    }

    #complete img{
        max-width: 80%;
        height: auto;
    }
}

@media (max-width: 450px){
    #mc-present > h1{
        font-size: 1.5rem;
    }
}

@media (max-width: 400px){
    #header-right{
        margin-right: 5%;
    }

    h1{
        padding: 10px;
    }

    h2{
        padding: 10px;
    }

    footer > div{
        display: block;
        margin-bottom: 5%;
    }

    footer .whatsapp-contact{
        display: none;
    }

    #kitchen-present > h1:first-child{
        font-size: 10vh;
    }

    header label{
        margin-right: 20px;
    }

     #kitchen-description .process img{
        max-width: 80%;
        height: auto;
    }

    #details img{
        max-width: 80%;
        height: auto;
    }

    #mc-present > h1{
        font-size: 1.5rem;
    }
}

@media (max-width: 310px){
    #mc-present > h1{
        font-size: 0.6em;
    }
}

@media (max-width: 300px){
    #mc-present > h1{
        font-size: 1rem;
    }
    
    #kitchen-description .process img{
        max-width: 80%;
        height: auto;
    }

    #details img{
        max-width: 80%;
        height: auto;
    }
    
    #kitchen-present > h1:first-child{
        font-size: 7vh;
    }

    #header-logo{
        height: 30px;
        padding-top: 5px;
    }
}

@media (max-width: 230px){
    #mc-present h1{
        font-size: 2vh;
    }
}