body{
         background: url(501.jpg) no-repeat center center fixed;
         -moz-background-size: cover;
         -webkit-background-size: cover;
         -o-background-size: cover;
        background-size: cover;
}
 .popap{
	position: fixed;
	width: 100%;
	height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9; /* или выше, если нужно */
}
.popap-exe{
	 position: relative; /* лучше, чем absolute, если использовать flex */
	top: 50%;
	left: 50%;
	width: 1100px;
	height: 620px;
	transform: translate(-50%, -50%);
	border-top: 40px solid rgba(0,0,0,.8);
	border-right: 10px solid rgba(0,0,0,.8);
	border-left: 10px solid rgba(0,0,0,.8);
	border-bottom: 10px solid rgba(0,0,0,.8);
     background: white; /* чтобы было видно содержимое */

}
.popap-close{
	position: absolute;
	right: 5px;
	top: -34px;
	font-size: 25px;
	text-decoration: none;
	color: #ffffff;

}
iframe{
	width: 100%;
	height: 100%;
}
.background3{
     background-color: rgba(0,0,0,.7);
     width: 83.6%;
     height: auto;
     margin: 10px auto;
     border: 1px solid #d5b578;
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     align-items: center;
}
.slot2{
     width: 19%;
     text-align: center;
     height: auto;
     margin: 20px 3%;
}
.slot{
     width: 100%;
     height: 100%;
     cursor: pointer;
     position: relative;
}
.slot:hover{
	opacity: 0.5;
	transform: scale(1.1);
	transition: .5s;
	}
h4{
	color: #ffffff;
	font-size: 25px;
	margin: 5px 10px;
}
h5{
	font-size: 20px;
	color: #ffffff;
	margin: 0;
}
.nan{
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;

}

button.button1{
	position: absolute;
	right: 30px;
	top: -34px;
	font-size: 20px;
	text-decoration: none;
}
button.button2{
	position: absolute;
	right: 70px;
	top: -34px;
	font-size: 20px;
	text-decoration: none;
}
.turnir{
	 background-color: rgba(0,0,0,.7);
     width: 83.6%;
     height: auto;
     margin: 0px auto;
     border-left: 1px solid #d5b578;
     border-right: 1px solid #d5b578;
     border-bottom: 1px solid #d5b578;

}
h2.name{
	text-align: center;
    margin: 0px auto;
    color: #d5b578;
    font-size: 30px;
    padding: 30px 0;
}
.turnir_img{
	width: 47%;
	height: auto;
	border: 2px solid #d5b578;
	margin: 10px auto;
	
}
.img_car{
	width: 100%;
	height: 100%;
	cursor: pointer;
}
.turnir_img:hover{
	transform: scale(1.04);
	transition: .5s;
	}
.opis{
	color: #ffffff;
	margin: 0px 10px;
	font-size: 22px;
	padding: 10px;
}
.naz{
	font-size: 25px;
	color: #ffffff;
	position: absolute;
    padding: 5px;
    background: #d5b578;
    margin: 0;
}
.img{
	height: auto;
	width: 230px;
	margin: 5px 3px;
}
.img2{
    height: 90px;
    width: 83.6%;
    margin: 0px auto;
    display: flex;
    background-color: rgba(0,0,0,.7);

}
button.button3{
    position: absolute;
    padding: 5px 10px;
    background-color: #d4b37a;
    font-size: 18px;
    color: #000000;
    border-radius: 5px;
    border: 0.5px solid #000000;
    cursor: pointer;
    display: block;
    right: 150px;
    top: 30px;
    transition: color .3s;
}
button.button3:hover{
        color: #ffffff;
}
img.logotip{
    width: 60px;
    height: auto;
    position: absolute;
    right: 280px;
    top: 25px;
}
p.p{
	text-align: center;
	font-size: 30px;
	color: #ffffff;
}
.flex{
	width: 100%;
	height: auto;
	margin: 0 auto;
	display: flex;

}
.background4{
	 background-color: rgba(0,0,0,.7);
     width: 83.6%;
     height: auto;
     margin: 0px auto;
     border-left: 1px solid #d5b578;
     border-right: 1px solid #d5b578;
     border-bottom: 1px solid #d5b578;
}
.style_img{
	width: 20%;
	height: auto;
	
	display: block;
	padding: 25px 100px;
}
.text10{
	color: #ffffff;
	font-size: 22px;
	padding: 0 100px;
}
.background_turnir_img_popap{
	position: fixed;
	width: 100%;
	height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
}
.background_turnir_img_popap:target{
	display: block;
}
.turnir_img_popap{
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1100px;
	height: 620px;
	transform: translate(-50%, -50%);
	border-top: 40px solid rgba(0,0,0,.8);
	border-right: 10px solid rgba(0,0,0,.8);
	border-left: 10px solid rgba(0,0,0,.8);
	border-bottom: 10px solid rgba(0,0,0,.8);
	background: #252b2e;
	opacity: 0.97;
}
@media(min-width: 1281px){
	.background3{
            width: 1070px;
            margin: 10px auto;
        }
        .img2{
            width: 1070px;
            margin: 0 auto;
        }
         button.button3{
            display: none;
        }
        img.logotip{
            display: none;
        }
        .turnir{
        	width: 1070px;
            margin: 0px auto;
        }
}
@media(max-width: 1220px){
	.background3{
        width: 97.5%;
        margin: 10px auto;
    }
    .turnir{
    	width: 97.5%;
        margin: 0px auto;
    }
    .img2{
        margin: 0px auto;
        width: 97.5%;
    }
    .img{
        margin: 5px 3px;
    }
    button.button3{
        right: 50px;
        top: 32px;
    }
    img.logotip{
        right: 180px;
    }
}
@media(max-width: 1130px){
	.popap-exe{
		width: 1000px;
		height: 565px;
	}
	.turnir_img_popap{
		width: 100%;
		height: 100%;
		overflow: auto;
		border-top: 0px;
	}
	.style_img{
		width: 80%;
		padding: 20px 0;
		margin: 10px auto;
	}
	.text10{
		padding: 10px 10%;
	}
}
@media(max-width: 1030px){
    .popap-exe{
    	border-top: 0px;
	    border-right: 0px;
	    border-left: 0px;
	    border-bottom: 0px;
	    width: 100%;
        height: 100%;
    }
    .popap-close{
    	display: none;
    }
    button.button1{
		display: none;
	}
	button.button2{
		display: none;
	}
}
@media(max-width: 1000px){
	.slot2{
     width: 27%;
     text-align: center;
     height: auto;
     margin: 20px 3%;
    }
    .turnir_img{
    	flex-wrap: wrap;
    }
    .img_car{
    	width: 100%;
    }
    p.opis{
    	padding: 10px 30px;
    }
    .naz{
	font-size: 22px;
    }
}
@media(max-width: 900px){
	.background3{
        width: 99.5%;
        margin: 10px auto;
        height: auto;
    }
    .img{
        
        width: 200px;
        height: auto; 
    }
    .img2{
        width: 99.5%;
        margin: 0px auto;
        
        height: 78px;
    }
    button.button3{
        top: 22px;
    }
    img.logotip{
        top: 20px;
        width: 50px;
    }
    .turnir{
    	width: 99.5%;
        margin: 0px auto;
        height: auto;
    }
    .naz{
	font-size: 20px;
    }
}
@media(max-width: 700px){
	.slot2{
     width: 45%;
     text-align: center;
     height: auto;
     margin: 20px 2%;
    }
    p.opis{
    	padding: 10px 5px;
    }
    h2.name{
    	font-size: 25px;
    }
    .naz{
	font-size: 18px;
    }
    .turnir_img_popap{
		width: 100%;
		height: 100%;
		overflow: auto;
		
	}
	.style_img{
		width: 100%;
		padding: 20px 0;
		margin: 10px auto;
	}
	.text10{
		font-size: 22px;
		padding: 10px 1%;
	}
}
@media(max-width: 500px){
    button.button3{
    right: 30px;
    }
    img.logotip{
        right: 150px;
    }
    p.naz{
    	
    	padding: 3px;
    }
    .flex{
    	width: 100%;
    	
    	margin: 0 auto;
    	display: block;
    }
    .turnir_img{
    	width: 96%;
    	height: auto;
    }
    .img_car{
    	display: block;
    }
}
@media(max-width: 420px){
	.img{
        margin: 5px 3px;
        width: 170px;
        height: auto;
    }
    .img2{
        height: 68px;
    }
    button.button3{
        top: 18px;
        right: 20px;
    }
    img.logotip{
        width: 40px;
        right: 135px;
    }
	.background3{
        width: 99.5%;
        margin: 10px auto;
        height: auto;
    }
    .turnir_img{
    	width: 96%;
        margin: 10px auto;
        height: auto;
    }
    p.naz{
    	
    }
    h5{
    	font-size: 16px;
    }
    @media(max-width: 390px){
    body{
         background: url(503.jpg) no-repeat center center fixed;
         -moz-background-size: cover;
         -webkit-background-size: cover;
         -o-background-size: cover;
        background-size: cover;
     }
     .img{
        width: 150px;
     }
     .img2{
        height: 60px;
     }
     button.button3{
        top: 15px;
        font-size: 17px;
     }
     img.logotip{
        top: 17px;
        right: 130px;
     }
 }
    @media(max-width: 340px){
    	h5{
    	font-size: 14px;
    }
}
@media(max-width: 330px){
    
     img.logotip{
        display: none;
     }
     button.button3{
     	right: 10px;
     	font-size: 15px;
     }
}
@media(max-width: 315px){
   button.button3{
    display: none;
   } 
}
@media(max-width: 300px){
    	h5{
    	font-size: 10px;
    }
}