*{
    margin: 0;
    padding: 0px;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

main{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #000000;
}
nav{
    position:fixed;
    background:#fecf00;
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    min-height: 8vh;
    font-family: 'Poppins', sans-serif;
    z-index: 1000;
}

.logo{
    color: rgb(0, 0, 0);
    height: 5rem;
}

.logo img{
    height: 10rem;
    width: 10rem;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.40), 0 17px 50px 0 rgba(0,0,0,0.40);
}

.nav-links{  
    display: flex;
    justify-content: space-around;
    width: 65%;
}

.nav-links li::after{
    content: '';
    height: 3px;
    width: 0;
    background: #000000;
    position: absolute;
    left: 0.25rem;
    bottom: -5px;
    transition: 0.5s;
}

.nav-links li:hover::after{
    width: 95%;
}

.nav-links li, .nav-links-contacts li{
    list-style: none;
    display: inline-block;
    margin: 0;
    position: relative;
}
.nav-links-contacts{
    position: relative;
    display: grid;
    text-align: center;
}
.nav-icon{
    font-size: 20px;
    margin-inline: 10px;
    margin-top: 5px;
}

.nav-links a, .nav-links-contacts a{
    color: rgb(0, 0, 0);
    text-decoration: none;
    letter-spacing: 3px;
    font-weight: bold;
    font-size: 14px;
}

.burger{
    position: absolute;
    right: 1rem;
    display: none;
    cursor: pointer;
}

.burger div{
    width: 25px;
    height: 3px;
    background-color: rgb(0, 0, 0);
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width:1024px){
    .nav-links{
        width:50%;
    }
}

@media screen and (max-width:65em) {
    .nav-links {
        z-index: 10;
        position: fixed;
        right: 0;
        height: 100%;
        top: 0;
        background: hsl(0 0% 100% / 0.1);
        backdrop-filter: blur(1rem);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }
    .nav-links li{
        opacity: 0;
    }
    .logo img{
        height: 5rem;
        width: 5rem;
        margin-left: -5rem;
    }
    .logo{
        height: 3rem;
    }
    .burger{
        z-index: 20;
        display: block;
    }
}

.nav-active{
    transform: translateX(0%);
}

@keyframes navLinkFade{
    from{
        opacity: 0;
        transform: translateX(50px);    
    }
    to{
        opacity: 1;
        transform: translateX(0px)
    }
}

.toggle .line1{
    transform: rotate(-45deg) translate(-5px,6px);
}
.toggle .line2{
    opacity: 0;
}
.toggle .line3{
    transform: rotate(45deg) translate(-5px,-6px);
}

.icon{
    margin: 0.3rem;
    position: relative;
}
.main-h1{
    position: relative;
    margin-top: 2rem;
    margin-right: 5rem;
    margin-left: 5rem;
    text-align: right;
    font-size: 5vw;
    letter-spacing: 10px;
    font-weight: 900;
    color: #fecf00;
    border-bottom: 3px solid black;
    text-shadow: -.1vw -.1vw 0 #000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000;
}
.main-slog{
    width: 100%;
    display: inline-flex;
    margin-top: 7rem;
    font-size: 2rem;
    justify-content: right;
}
.slog-p1{
    background: #fecf00;
    padding: 1rem 0 1rem 1rem;
    letter-spacing: 3px;
    margin-right: 5rem;
}
.slog-p2{
    color: #ffffff;
    background: #000;
    padding: 1rem 1rem 1rem 0;
}
.main-text{
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
}
.main-div{
    background-image: url(https://images.pexels.com/photos/3682238/pexels-photo-3682238.jpeg);
    background-repeat: no-repeat;
    background-attachment:scroll;
    background-size: 100% 100%;
}
.text1{
    margin-right: 25%;
    text-align: left;
    font-size: 2vw;
    color: aliceblue;
    width: 50%;
    border-right: 1px solid white;
    border-top: 1px solid white;
}
.text2{
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    text-align: center;
    font-size: 3vw;
    color: aliceblue;
    margin-inline: 30px;
}
.text3{
    margin-left: 30%;
    text-align: left;
    font-size: 2vw;
    color: aliceblue;
    border-left: 1px solid white;
    border-bottom: 1px solid white;
}
.main-text p{
    margin: 2rem;
}

.main-ul{    
    list-style: none;
    margin-top: 2rem;
    margin-left: 5rem;
    font-size: 2vw;
    letter-spacing: 5px;
    font-weight: 700;
}
.main-ul li{
    text-shadow: 0 0 7px #fffafa, 0 0 7px #ffffff;
    margin-top: 30px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}

.main-icon{
    margin: 10px;
}

.advantages-img1{
    position: relative;
    width: 300px;
    height: 30rem;
    margin: 5px;
}
.advantages-img2{
    position: relative;
    width: 300px;
    height: 30rem;
    margin: 5px;
    right: 0;
}

.advantages-h1{
    margin-top: 2rem;
    text-shadow: 0 0 7px #ffffff, 0 0 7px #fecf00;
    font-size: 3rem;
    text-align: center;
    letter-spacing: 5px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}
.advantages-ul li{
    letter-spacing: 5px;
    margin-top: 1.5rem;
    font-size: 1.3rem;
    list-style: none;
    color: #ffffff;
}

.advantages-icon{
    margin-right: 10px;
}
.advantages{
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    padding-bottom: 5rem;
    background: rgb(33, 31, 31);
}
.advantages img, .advantages-ul{
    flex-basis: 100%;
}
.section-offers{
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5rem;
    gap: 3rem;
    justify-content: center;
}
.section-main-offers{
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 5rem;
    justify-content: center;
    background: #ffffff;
}

.main-offer{
    display: grid;
    justify-items: center;
    margin: 2rem;
    margin-top: 5rem;
    background: #535151;
    border: 2px solid #fecf00;
    position: relative;
    height: 500px;
    width: 500px;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.56), 0 17px 50px 0 rgba(0,0,0,0.56);
}

.main-offer-h1{
    padding-top: 2rem;
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: 10px;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 0 7px #ffffff, 0 0 7px #fecf00;
    font-weight: 900;
}

.offers{
    display: grid;
    justify-items: center;
    margin: 3rem;
    padding: 0;
    margin-bottom: 2rem;
    width: 500px;
    max-width: 70vw;
    border: 2px solid #fecf00;
    border-top: 0;
    background: linear-gradient(
    to top,
    rgba(249, 249, 249, 0.156),
    rgba(0, 0, 0, 0.204));
    z-index: 3;
    backdrop-filter: blur(2rem);
    transition: .5s;
}
.top-offer-h{
    height: 100vh;
}
.offers-h3, .offers-h4{
    position: absolute;
    padding: 3vw;
    margin-top: 11rem;
    margin-left: 10%;
    margin-right: 10%;
    text-align: center;
    color: transparent;
    font-family:'Foldit', cursive;
    font-size: 2.5rem;
    letter-spacing: 10px;
    backdrop-filter: blur(.5rem);   
}
.offers-h2{
    position: absolute;
    padding: 3vw;
    margin-top: 11rem;
    margin-left: 10%;
    margin-right: 10%;
    text-align: center;
    font-family: 'Foldit', cursive;
    font-size: 2.5rem;
    letter-spacing: 10px;
    border: 2px solid #ffffff;
    color: aliceblue;
    background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.156),
    rgba(0, 0, 0, 0.204));
    z-index: 5;
    backdrop-filter: blur(.5rem);
    text-shadow: -.1vw -.1vw 0 #000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000;
}
.offers-h3{
    border: 2px solid #fecf00;
    transform: rotate(-3deg);
    z-index: 3;
}
.offers-h4{
    border: 2px solid #000000;
    transform: rotate(-6deg);
    z-index: 1;
}

.offers h1::before,
.offers-ai::before{
    content: '';
    top: -23px;
    height: 5px;
    width: 60%;
    background: #fecf00;
    position: absolute;
    left: -9.3%;
    transform: rotate(-10deg);
}

.offers h1::after,
.offers-ai::after{
    content: '';
    top: -23px;
    height: 5px;
    width: 60%;
    background: #fecf00;
    position: absolute;
    right: -9.3%;
    transform: rotate(10deg);
}

.wrapper{
    padding: 1rem;
    position: absolute;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 50%;
    transform: translate(-50%);
    margin-top: 20vh;
    width: 40rem;
    height: 30rem;
    background: white;
    border: 1px solid rgb(0, 0, 0);
}

.overlay{
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(0, 0, 0, .9);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    z-index: 9999;
}

.overlay:target{
    visibility: visible;
    opacity: 1;
}

.wrapper h4{
    font-size: 1.5rem;
    letter-spacing: 1px;
    font-weight: 500;
}
.wrapper input{
    width: 15rem;
    height: 3rem;
    position: relative;
    margin: 1rem;
    padding: 1rem;
}

.close{
    position: absolute;
    top: 20px;
    right: 20px;
    transition: all 200ms;
    font-size: 40px;
    font-weight: bold;
    text-decoration: none;
    color: #fecf00;
}

.wrapper a{
    font-size: 1.5rem;
    color: #fecf00;
    margin-bottom: 3rem;
    text-decoration: none;
}

.wrapper a:hover{
    text-decoration: underline;
}

.btn-box{
    position: relative;
    margin: 1rem;
    width: 15rem;
    height: 3rem;
}

.btn-box:hover{
    background: #fecf00;
    cursor: pointer;
    border: none;
}

.offers h1, .main-offer h1{
    text-shadow: 0 0 7px #ffffff, 0 0 7px #fecf00;
    text-align: center;
    margin-top: 10px;
    background: none;
    backdrop-filter: blur(100%);
    height: 3rem;
    font-size: 1.5rem;
    font-weight: 900;
}

.offers p, .main-offer p{
    font-family: sans-serif;
    font-size: 1.25rem;
    padding-top: 0.75rem;
    width: 100%;
    text-align: center;
    background:#fecf00;
    height: 3rem;
    cursor: pointer;
    transition: .5s;
}

.offers p:hover, 
.main-offer p:hover{
    font-size: 1.5rem;
    padding-top: 0.5rem;
}

.offers li{
    letter-spacing: 2px;
    color: #ffffff;
    padding-left: 1rem;
    font-size: 1.3rem;
    list-style: none;
}

.btn-offer-submit{
    user-select: none;
    width: 15rem;
    height: 5rem;
    background: #c3a005;
    margin-top: 2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}
  .front {
    display: block;
    padding-top: 1.6rem;
    border-radius: 10px;
    font-size: 1.2rem;
    height: 5rem;
    background: #fecf00;
    color: rgb(0, 0, 0);
    text-decoration: none;
    transform: translateY(-6px);
  }
  .btn-offer-submit:active .front {
    transform: translateY(-2px);
  }

.offers img, .main-offer img, .offers-ai img{
    height: 300px;
    width: 300px;
    margin-top: 1rem;
    box-shadow: 0 12px 16px 0 rgba(255, 255, 255, 0.19), 0 17px 50px 0 rgba(255, 255, 255, 0.19);
}

#tick-mark {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 15px;
}

#tick-mark::before {
    position: absolute;
    left: -.5rem;
    top: 50%;
    height: 50%;
    width: 3px;
    background-color:#fecf00;
    content: "";
    transform: translateX(10px) rotate(-45deg);
    transform-origin: left bottom;
}

#tick-mark::after {
    position: absolute;
    left: -.5rem;
    bottom: 0;
    height: 3px;
    width: 100%;
    background-color:#fecf00;
    content: "";
    transform: translateX(10px) rotate(-45deg);
    transform-origin: left bottom;
}

.foot{
    display: flex;
    padding: 10px;
    min-height: fit-content;
    background: black; 
}

.bottom{
    flex-basis: 100%;
    padding: 10px;
    text-align:center;
    display:inline-block;
    border-right: 2px solid #fecf00;
}

.bottom p, .about p{
    color: aliceblue;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 4px;
}

.bottom h4, .contacts, .about h4{
    color: aliceblue;
    font-size: 1rem;
    letter-spacing: 2px;
}
.bottom h4, .about h4{
    font-weight: 100;
}

.bottom li, .bottom a, .about li, .about a{
    margin-block: 10px;
    color: #fecf00;
    list-style: none;
    text-decoration: none;
    letter-spacing: 2px;
}

.bottom a:hover{
    text-decoration: underline;
}
.nav-links-contacts a:hover{
    text-decoration: underline;
}

.call-back{
    margin: 10px;
    justify-content: center;
    display: grid;
}

.call-back input, .btn{
    height: 2rem;
    margin: 5px;
    text-align: center;
    font-size: 1rem;
    width: 15rem;
}

.btn:hover{
    cursor: pointer;
    background: #fecf00;
}

.container{
    display: flex;
    justify-content: center;
    padding: 50px 8%;
    padding-top: 5rem;
}

.gallery{
    padding-top: 15rem;
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
}

.gallery img{
    width: 100%;
    height: 100%;
    border: 2px solid #fecf00;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.56), 0 17px 50px 0 rgba(0,0,0,0.56);
}

.gallery-h1{
    position: absolute;
    top: 10rem;
    background: transparent;
    text-align: center;
    font-family: 'Foldit';
    font-size: 4rem;
    color: #000000;
    text-shadow: -.1vw -.1vw 0 #000, 1px -1px 0 #ffe100, -1px 1px 0 #ffffff, 1px 1px 0 #000;
}

.section-contacts{
    padding: 5rem 1rem 5rem 1rem;
    display: flex;
}

.about-us{
    display: grid;
    margin-top: 10rem;
    gap: 5rem;
    width: 100%;
}
.about h4, .contacts-about, .about p, .about span{
    color: black;
    font-size: 1rem;
}
.about a:hover{
    text-decoration: underline;
}
.contact-form{
    margin-top: 5rem;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    width: 1000px;
    height: 600px;
    background: linear-gradient(
    to right bottom,
    rgba(255, 255, 254, 0.156),
    rgba(116, 110, 110, 0.204));
    z-index: 3;
    border-radius: 10px;
    backdrop-filter: blur(2rem);
    margin-left: 50%;
    transform: translate(-50%);
    margin-bottom: 2rem;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.56), 0 17px 50px 0 rgba(0,0,0,0.56);
}
.contact-form p{
    font-size: 3vw;
    margin-inline: 10%;
    color: #ffffff;
    letter-spacing: 3px;
}
.contact-form input{
    max-width: 50vw;
    width: 20rem;
    height: 3rem;
    position: relative;
    margin: 1rem;
    padding: 1rem;
    margin-left: 50%;
    transform: translate(-50%);
}
.contact-icon{
    font-size: 40px;
    margin-top: 5px;
}
.about-img{
    margin-top: 10rem;
    width: 50vw;
    max-height: 500px;
}
.contact{
    margin-left: 50%;
    transform: translate(-50%);
}


@media screen and (max-width:70em){
    .advantages, .section-offers{
        display: grid;
        justify-content: center;
        gap: 2rem;
    }
    .offers-h2, .offers-h3, .offers-h4{
        font-size: 2rem;
        margin-top: 20vh;
    }
    .main-h1{
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .slog-p1{
        margin-right: 1rem;
    }
    .main-ul{
        font-size: 3vw;
        margin-left: 1rem;
    }
    .advantages-img1, .advantages-img2{
        width: 90%;
        margin-left: 50%;
        transform: translate(-50%);
    }
    .advantages-ul{
        text-align: center;
        margin: 10px;
        margin-right: 10%;
        margin-left: 10%;
    }
    .section-contacts{
        display: flex;
        flex-direction: column;
    }
    .about-us{
        margin-top: 0;
    }
    .about-img{
        margin-left: 50%;
        transform: translate(-50%);
    }
    .main-h1::after{
        height: 2px;
    }
    .foot{
        display: grid; 
    }
    .foot h4, .contacts{
        font-size: 0.8rem;
    }
    .bottom{
        border: 0;
        text-align: left;
    }
    .container{
        margin-top: -1rem;
    }
    .about-img img{
        width: 90vw;
    }
    .contact-form{
        max-width: 90vw;
        max-height: 400px;
    }
    .section-contacts{
        margin-top: 2rem;
        display: flex;
        flex-direction: column-reverse;
    }
    .about-img{
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}
@media screen and (max-width:40em) {
    .gallery-h1{
        top: 5rem;
    }
    .container{
        padding-top: 10rem;
    }
    .main-h1{
        font-size: 2.5rem;
    }    
    .offers img, .main-offer img {
        width: 50vw;
        height: 250px;
    }
    .main-offer{
        width: 80vw;
    }
    .main-ul li, .slog-p1{
        font-size: 1rem;
    }
    .about-us, .about-img{
        width: 90%;
    }
    .wrapper{
        width: 90%
    }
    .advantages-h1{
        font-size: 2rem;
    }
    .text1{
        font-size: 1.1rem;
    }
    .text2{
        font-size: 2rem;
    }
    .text3{
        font-size: 1.1rem;
    }
    .offers li{
        font-size: 1rem;
    }
    .bottom input, .btn{
        width: 50vw;
    }
    .logo img{
        margin-left: -1rem;
    }
    .nav-links-contacts{
        margin-right: 2rem;
    }
    .offers-h2, .offers-h3, .offers-h4{
        font-size: 1.2rem;
    }
}