html {
	height: 100%;
	margin-bottom: 1px;
    font-size: 14px;
}

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	color: #fff;
	background: #86917e; 
}

h1 {
	color: #fff;
    border-bottom: 1px solid #818181;
    padding: 0 0 5px 10px;
    margin: 5px 10px 10px 10px;
	font-size:18px;
}

h2 {
	color: #fff;
	color: #fff;
    border-bottom: 1px solid #818181;
    padding: 0 0 5px 10px;
    margin: 5px 10px 10px 10px;
	font-size:16px;
}

a {
	text-decoration: none;
	margin:0;
	padding:0;
	color: #fff;
}

a:hover {
	color: #b3af2e;
}

p {
	margin: 4px 5px;
	text-indent: 3ch;
}

header {	
	width: 1000px;
	height: auto;
	margin: 0 auto;
    background: #4c5844;
	border-top: 2px solid #818181;
    border-left: 2px solid #818181;
    border-bottom: 2px solid #282e22;
    border-right: 2px solid #282e22;
}

nav {
	height: 40px;
    line-height: 40px;
    color: #ecf0f1;
    background: #4c5844;
    font-size: 16px;
    padding: 0 7px;
}

nav ul { 
	margin:0;
	padding:0;
	list-style-type: none;
} 

nav ul li { 
	float:left;
} 
   
nav ul li a {
	display: inline-block;
	height: 24px;
	line-height: 24px;
	min-width:80px;
    padding: 0 6px;
	margin-right: 1px;
    background: #4c5844;
    border-top: 1px solid #818181;
    border-left: 1px solid #818181;
    border-bottom: 1px solid #818181;
    border-right: 1px solid #282e22;
} 

   
nav ul li a:hover { 
    border-top: 1px solid #818181;
    border-left: 1px solid #818181;
    border-bottom: 1px solid #282e22;
    border-right: 1px solid #282e22;
} 

section {
	background: #4c5844;
	width: 1000px;
	margin: 0 auto;
	padding: 1px;
}


article {
	background: #3d4436;
    padding: 5px;
    border: 1px solie #889081;
    border-top: 1px solid #282e22;
    border-left: 1px solid #282e22;
    border-bottom: 1px solid #818181;
    border-right: 1px solid #818181;
	margin:8px;
}

footer {
	width: 1000px;
	height: 30px;
	line-height: 30px;
	margin: 0 auto;
    background: #4c5844;
	border-top: 2px solid #818181;
    border-left: 2px solid #818181;
    border-bottom: 2px solid #282e22;
    border-right: 2px solid #818181;
}

.footerIn {
	padding: 0 0 0 20px;
}

.post {
	float:left;
	margin:5px;
	width:410px;
	height:300px;
	padding:5px;
	border-radius:2px;
	background: #4c5844;
	border-top: 1px solid #818181;
    border-left: 1px solid #818181;
    border-bottom: 1px solid #282e22;
    border-right: 1px solid #282e22;
}

.post img {
	width:410px;
	height:300px;
	margin:0;
	border-radius:2px;
}

.pack {
	width:310px;
	height:200px;
}

.pack img {
	width:310px;
	height:200px;
}

.pict {
	text-align:center;
}

.picts {
	display: inline-block;
	margin:3px;
	width:250px;
	height:144px;
	padding:4px;
	border-radius:2px;
	background: #4c5844;
	text-align:center;
	border-top: 1px solid #818181;
    border-left: 1px solid #818181;
    border-bottom: 1px solid #282e22;
    border-right: 1px solid #282e22;
}

.picts img {
	width:250px;
	height:144px;
	margin:0;
	border-radius:2px;
}

.down a {
	display: inline-block;
	font-size:18px;
	height: 40px;
	line-height: 40px;
	width:298px;
    padding: 0 10px;
	margin: 10px 75px;
	float:none;
    background: #4c5844;
    border-top: 1px solid #818181;
    border-left: 1px solid #818181;
    border-bottom: 1px solid #282e22;
    border-right: 1px solid #282e22;
}

.setting a {
	margin: 0 800px 0 5px;
}

/* Кнопка выпадающего списка */
.dropbtn{
	display: inline-block;
	height: 26px;
	line-height: 26px;
	color: #ecf0f1;
	background: #4c5844;
	font-size: 16px;
	min-width:80px;
	padding: 0 6px;
	margin-right: 10px;
	background: #4c5844;
	border-top: 1px solid #818181;
	border-left: 1px solid #818181;
	border-bottom: 1px solid #818181;
	border-right: 1px solid #282e22;
}

.dropbtn:hover {
	border-top: 1px solid #818181;
	border-left: 1px solid #818181;
	border-bottom: 1px solid #282e22;
	border-right: 1px solid #282e22;
}

.dropbtn::after{
	content: ' \02C5';
}

/* Контейнер <div> - необходим для размещения выпадающего содержимого */
.dropdown {
	position: relative;
	display: inline-block;
}

/* Выпадающее содержимое (скрыто по умолчанию) */
.dropdown-content {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	left: auto;
	margin-top: 2px;
	width: 600px;
	max-height: 70vh;
	overflow-y: auto;
	z-index: 5;
	background: #4c5844;
	border-top: 1px solid #818181;
	border-left: 1px solid #818181;
	border-bottom: 1px solid #282e22;
	border-right: 1px solid #282e22;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.dropdown-content ul {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.dropdown-content ul li {
	float: none;
}

/* Ссылки внутри выпадающего списка */
.dropdown-content a {
	min-width: 0;
	height: 100%;
	line-height: 1.4;
	padding: 12px 10px;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-top: 1px solid #818181;
	border-left: 1px solid #818181;
	border-bottom: 1px solid #282e22;
	border-right: 1px solid #282e22;
}

.dropdown-content a:hover {
	background: #5a6650;
}

/* Показать выпадающее меню при наведении курсора */
.dropdown:hover .dropdown-content {display: block;}
.dropdown-content.show {display: block;}

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	justify-content: center;
	align-items: center;
	overflow: hidden;
	z-index: 10;
}
.modal-content {
	max-width: 90%;
	max-height: 100%;
	margin: auto;
	display: block;
	padding: 0%;
}
.close {
	color: white;
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 24px;
	cursor: pointer;
}

#rating {
	width:120px;
	height:22px;
	background:url(https://upcs16.com/images/star.png) repeat-x;
	background-position:0;
	float:right;
	margin:5px 0
}
/* Video */
            .video-container {
                position: relative;
                width: 100%;
                /*max-width: 560px;*/
                margin: 0 auto;
            }

            .video-thumbnail {
                position: relative;
                cursor: pointer;
            }

            .video-thumbnail img {
                width: 100%;
                display: block;
            }
            iframe {
                width: 100%;
                height: 315px;
                border: none;
            }

            .video {
                position: relative;
                width: 100%;
                height: 0;
                padding-bottom: 56.25%;
                background-color: #000000;
                box-shadow: 0 0 4px rgb(0 0 0 / 60%)
            }

            .video__link {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
            }

            .video__media {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                border: none;
            }

            .video__button {
                position: absolute;
                top: 50%;
                left: 50%;
                z-index: 1;
                display: none;
                padding: 0;
                width: 68px;
                height: 48px;
                border: none;
                background-color: transparent;
                transform: translate(-50%, -50%);
                cursor: pointer;
            }

            .video__button-shape {
                fill: #212121;
                fill-opacity: 0.8;
            }

            .video__button-icon {
                fill: #ffffff;
            }

            .video__button:focus {
                outline: none;
            }

            .video-thumbnail:hover .video__button-shape, .video__button:focus .video__button-shape {
                fill: #ff0000;
                fill-opacity: 1;
            }

            .video--enabled {
                cursor: pointer;
            }

            .video--enabled .video__button {
                display: block;
            }

/* ==========================================================================
   Mobile / responsive
   ========================================================================== */
@media (max-width: 1040px) {
	header,
	section,
	footer {
		width: 100%;
	}
}

@media (max-width: 768px) {
	header,
	footer {
		height: auto;
	}

	nav {
		height: auto;
		padding: 7px;
	}

	nav ul li {
		float: none;
	}

	nav ul li a {
		display: block;
		width: 100%;
		margin: 0 0 1px 0;
	}

	nav ul li[style*="float:right"] {
		float: none !important;
		margin-top: 1px;
	}

	.dropdown {
		display: block;
	}

	.dropbtn {
		display: block;
		width: 100%;
		margin-right: 0;
	}

	.dropdown-content {
		position: static;
		top: auto;
		right: auto;
		left: auto;
		margin-top: 0;
		min-width: 0;
		width: 100%;
		max-height: none;
		overflow-y: visible;
		box-shadow: none;
	}

	.dropdown-content ul {
		display: block;
	}

	.dropdown-content ul li {
		float: left;
		width: 50%;
	}

	.dropdown-content ul li a {
		width: auto;
	}

	.post {
		float: none;
		width: 100%;
		height: auto;
		margin: 5px 0;
	}

	.post img {
		width: 100%;
		height: auto;
	}

	.pack {
		width: 100%;
		height: auto;
	}

	.pack img {
		width: 100%;
		height: auto;
	}

	.picts {
		display: block;
		width: 100%;
		height: auto;
		margin: 5px 0;
	}

	.picts img {
		width: 100%;
		height: auto;
	}

	.down a {
		width: 100%;
		margin: 8px 0;
	}

	.setting a {
		margin: 8px 0;
	}

	#rating {
		float: none;
		margin: 10px 0;
	}
}

@media (max-width: 480px) {
	html {
		font-size: 13px;
	}

	h1,
	h2 {
		font-size: 16px;
	}

	.dropdown-content ul li {
		width: 100%;
	}

	.down a {
		font-size: 16px;
		height: auto;
		line-height: 1.4;
		padding: 8px 10px;
	}
}