/* =====================================
   RESET
===================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


body{
    font-family:'Segoe UI', Arial, sans-serif;
    color:#333;
    background:#f7f7f7;
    line-height:1.6;
}


a{
    text-decoration:none;
    color:inherit;
}


img{
    max-width:100%;
    display:block;
}



/* =====================================
   TOP BAR
===================================== */


.top-bar{

    background:#111;
    color:white;

    padding:10px 40px;

    text-align:right;

    font-size:14px;

}



/* =====================================
   HEADER
===================================== */


.navbar{

    background:white;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:15px 40px;

    box-shadow:0 3px 10px rgba(0,0,0,.1);

}



.logo img{

    width:170px;

}



/* MENU */

nav ul{

    list-style:none;

    display:flex;

}


nav ul li{

    position:relative;

}


nav ul li a{

    display:block;

    padding:15px 20px;

    font-weight:600;

    color:#222;

}


nav ul li a:hover{

    color:#f58220;

}



/* DROPDOWN */


.dropdown-menu{

    display:none;

    position:absolute;

    top:100%;

    left:0;

    background:white;

    min-width:200px;

    box-shadow:0 5px 15px rgba(0,0,0,.2);

    z-index:100;

}


.dropdown-menu li a{

    padding:12px;

}


.dropdown:hover .dropdown-menu{

    display:block;

}



/* =====================================
   HERO
===================================== */


.hero{

    height:500px;

    background:
    linear-gradient(
        rgba(0,0,0,.20),
        rgba(0,0,0,.20)
    ),
    url("../images/1.png");


    background-size:cover;

    background-position:center;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    color:white;

}



.hero-content{

    max-width:800px;

}



.hero h1{

    font-size:50px;

    font-weight:700;

    text-shadow:
    0 4px 12px rgba(0,0,0,.5);

}



.hero p{

    font-size:22px;

    text-shadow:
    0 2px 8px rgba(0,0,0,.5);

}



/* =====================================
   BUTTON
===================================== */


.button{

    display:inline-block;

    background:#f58220;

    color:white;

    padding:15px 35px;

    border-radius:30px;

    font-weight:bold;

    box-shadow:
    0 8px 25px rgba(245,130,32,.35);

    transition:.3s;

}



.button:hover{

    transform:translateY(-3px);

    background:#d9680c;

}



/* =====================================
   GENERAL SECTIONS
===================================== */


.services,
.products-section,
.about,
.about-info,
.about-preview{

    max-width:1200px;

    margin:auto;

    padding:70px 40px;

}



h2{

    text-align:center;

    font-size:35px;

    margin-bottom:40px;

    color:#222;

}



/* =====================================
   SERVICES
===================================== */


.service-box{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}



.service-card{

    background:white;

    padding:30px;

    border-radius:15px;

    text-align:center;

    box-shadow:
    0 5px 20px rgba(0,0,0,.1);

}



.service-card img{

    width:400px;

    height:300px;

    object-fit:contain;

}



.service-card h3{

    margin:20px 0;

}



/* =====================================
   PRODUCTS
===================================== */


.products-section{

    background:#eee;

}



.products{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}



.product-card{

    background:white;

    padding:25px;

    border-radius:15px;

    text-align:center;

    box-shadow:
    0 5px 15px rgba(0,0,0,.1);

    transition:.3s;

}



.product-card:hover{

    transform:translateY(-5px);

}



.product-card img{

    width:100%;

    height:220px;

    object-fit:contain;

}



.product-card h3{

    margin:15px 0;

}



.product-card strong{

    display:block;

    margin-top:15px;

    color:#f58220;

    font-size:22px;

}



/* САМО ЗА SLIDER */

.products-slider .product-card{

    min-width:280px;

    flex:0 0 280px;

}
/* =====================================
   PAGE TITLE
===================================== */


.page-title{

    background:
    linear-gradient(
        rgba(0,0,0,.20),
        rgba(0,0,0,.20)
    ),
    url("../images/2.png");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    color:white;

    text-align:center;

    padding:90px 20px;

}



.page-title h1{

    font-size:40px;

}



/* =====================================
   ABOUT PAGE
===================================== */


.about{

    text-align:center;

}



.about p{

    max-width:850px;

    margin:20px auto;

}



.about-box{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

    margin-top:50px;

}



.about-card{

    background:white;

    padding:30px;

    border-radius:15px;

    box-shadow:
    0 5px 20px rgba(0,0,0,.1);

}



.about-card h3{

    color:#f58220;

}



.about-info{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:center;

}



.about-info ul{

    padding-left:20px;

}



.about-info li{

    margin:15px 0;

}



.about-info img{

    width:100%;

    max-width:500px;

}
.about-preview{
    text-align:center;
}

.about-preview p{
    max-width:850px;
    margin:20px auto;
}


.about-button{
    width:100%;
    display:flex;
    justify-content:center;
    margin-top:30px;
}



/* =====================================
   FOOTER
===================================== */


footer{

    background:#111;

    color:white;

    padding:50px 40px;

}



.footer-container{

    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:40px;

}



.footer-container h3{

    color:#f58220;

    margin-bottom:20px;

}



.copyright{

    max-width:1200px;

    margin:40px auto 0;

    padding-top:20px;

    border-top:1px solid #444;

    text-align:center;

}





/* =====================================
   PRODUCT DETAILS
===================================== */


.product-details{

    max-width:1200px;

    margin:auto;

    padding:70px 40px;

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:center;

    background:white;

}



.product-image img{

    width:100%;

    max-width:500px;

}



.product-info h1{

    font-size:35px;

}



.product-info h2{

    color:#f58220;

    text-align:left;

}



.product-info li{

    margin:10px 0;

}



.product-link{

    color:inherit;

}



/* =====================================
   PRODUCT POPUP
===================================== */


.modal{

    display:none;

    position:fixed;

    z-index:999;

    left:0;

    top:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,.65);

    justify-content:center;

    align-items:center;

}



.modal-content{

    background:white;

    width:90%;

    max-width:900px;

    padding:40px;

    border-radius:20px;

    box-shadow:
    0 10px 40px rgba(0,0,0,.4);

    position:relative;

}



.close{

    position:absolute;

    right:25px;

    top:15px;

    font-size:35px;

    font-weight:bold;

    cursor:pointer;

}



.close:hover{

    color:#f58220;

}



.product-popup{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:40px;

    align-items:center;

}



.product-popup img{

    width:100%;

    max-height:350px;

    object-fit:contain;

}



.product-popup h2{

    text-align:left;

    margin-bottom:20px;

}



.product-popup h3{

    color:#f58220;

    font-size:25px;

}



.product-popup li{

    margin:10px 0;

}



/* =====================================
   ГОТОВИ ОГРАДНИ СЕТОВЕ
===================================== */


.product-logo{

    background:
    linear-gradient(
        rgba(0,0,0,.20),
        rgba(0,0,0,.20)
    ),
    url("../images/baner.png");


    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    color:white;

    text-align:center;

    padding:90px 20px;
    
    margin-bottom:60px;

}



.fence-set-container{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:40px;

    max-width:1200px;
    

    margin:60px auto 0;

}



.fence-set-card{

    background:white;

    border-radius:10px;

    padding:25px;

    box-shadow:
    0 4px 15px rgba(0,0,0,.10);

    text-align:center;

}



.fence-set-card img{

    width:100%;

    height:280px;

    object-fit:contain;

    margin-bottom:15px;

}



.fence-set-card h2{

    margin-bottom:10px;

}



.fence-set-card h3{

    text-align:left;

    margin-top:20px;

}



.fence-set-card ul{

    text-align:left;

    line-height:1.8;

    padding-left:25px;

}



.set-price{

    display:block;

    font-size:20px;

    margin:25px 0;

}



/* =====================================
   CALCULATOR
===================================== */


.fence-calculator{

    background:#f5f5f5;

    padding:60px 20px;

    text-align:center;

}



.fence-calculator > h1{

    margin-bottom:10px;

}



.fence-calculator > p{

    max-width:700px;

    margin:0 auto 35px;

}



.calculator-box{

    max-width:700px;

    margin:auto;

    background:white;

    padding:30px;

    border-radius:10px;

    box-shadow:
    0 4px 15px rgba(0,0,0,.10);

}



.calculator-field{

    margin-bottom:20px;

    text-align:left;

}



.calculator-field label{

    display:block;

    margin-bottom:7px;

    font-weight:bold;

}



.calculator-field input,
.calculator-field select{

    width:100%;

    padding:12px;

    font-size:16px;

    border:1px solid #ccc;

    border-radius:5px;

}



.calculate-button{

    border:none;

    cursor:pointer;

    margin-top:10px;

}



.calculator-result{

    max-width:700px;

    margin:35px auto 0;

    padding:30px;

    background:white;

    border-radius:10px;

    box-shadow:
    0 4px 15px rgba(0,0,0,.10);

    text-align:left;

}



.calculator-result h2{

    text-align:center;

}



.calculator-result ul{

    line-height:2;

}



.estimated-price{

    margin:25px 0;

    padding:20px;

    background:#f1f1f1;

    border-radius:6px;

    font-size:20px;

    text-align:center;

}



/* =====================================
   VIDEO
===================================== */


.video-section{

    padding:60px 20px;

    background:#f7f7f7;

    text-align:center;

}



.video-section .container{

    max-width:600px;

    margin:auto;

}



.video-section h2{

    font-size:30px;

    margin-bottom:15px;

}



.video-section p{

    max-width:600px;

    margin:0 auto 25px;

    color:#666;

}



.video-section video{

    width:100%;

    height:auto;

    border-radius:18px;

    box-shadow:
    0 10px 35px rgba(0,0,0,.2);

}



/* =====================================
   SLIDER
===================================== */


.products-slider{

    position:relative;

    overflow:hidden;

    width:100%;

}



.products-track{

    display:flex;

    gap:25px;

    transition:.4s;

    overflow-x:auto;

    padding:10px 5px 20px;

    scrollbar-width:none;

}



.products-track::-webkit-scrollbar{

    display:none;

}



.slider-btn{

    position:absolute;

    top:45%;

    width:45px;

    height:45px;

    border:none;

    border-radius:50%;

    background:#222;

    color:white;

    cursor:pointer;

    font-size:22px;

    z-index:5;

}



.slider-prev{

    left:-5px;

}



.slider-next{

    right:-5px;

}

/* =====================================
   RESPONSIVE
===================================== */


@media(max-width:900px){


/* HEADER */

.navbar{

    flex-direction:column;

    padding:15px 20px;

}


nav ul{

    flex-direction:column;

    width:100%;

    text-align:center;

}



nav ul li a{

    padding:12px;

}



.dropdown-menu{

    position:static;

    width:100%;

    box-shadow:none;

}



/* HERO */


.hero{

    height:400px;

    padding:20px;

}



.hero h1{

    font-size:32px;

}



.hero p{

    font-size:18px;

}




/* SECTIONS */


.services,
.products-section,
.about,
.about-info,
.about-preview{

    padding:50px 20px;

}



/* SERVICES */


.service-box{

    grid-template-columns:1fr;

}



/* PRODUCTS */


.products{

    grid-template-columns:repeat(2,1fr);

    gap:20px;

}



.product-card{

    padding:20px;

}



.product-card img{

    height:180px;

}



/* ABOUT */


.about-box{

    grid-template-columns:1fr;

}



.about-info{

    grid-template-columns:1fr;

    gap:30px;

}



/* FOOTER */


.footer-container{

    grid-template-columns:1fr;

    text-align:center;

}



/* PRODUCT DETAILS */


.product-details{

    grid-template-columns:1fr;

    padding:40px 20px;

}



/* POPUP */


.product-popup{

    grid-template-columns:1fr;

}


.modal-content{

    padding:25px;

    max-height:90vh;

    overflow:auto;

}




/* FENCE SETS */


.fence-set-container{

    grid-template-columns:1fr;

}



.fence-set-card img{

    height:220px;

}




/* CALCULATOR */


.calculator-box,
.calculator-result{

    padding:20px;

}



}