/* обнуляем встроенные стили */
*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
ul {
	list-style-type: none;
}
a {
	text-decoration: none;  
}
/* общие стили */
.visually-hidden {
	width: 1px;
	height: 1px;
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute;
}
/* подключаем шрифты */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: normal;
	src: 
	url("../fonts/OpenSans-Regular.woff2") format("woff2"),
	url("../fonts/OpenSans-Regular.woff") format("woff"),
	url("../fonts/OpenSans-Regular.ttf") format("truetype");
}
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: bold;
	src: 
	url("../fonts/OpenSans-Bold.woff2") format("woff2"),
	url("../fonts/OpenSans-Bold.woff") format("woff"),
	url("../fonts/OpenSans-Bold.ttf") format("truetype");
}
body {
	font-family: "Open Sans", "Arial", sans-serif;
}

/* !стили для header */
.page-header {
	padding: 30px 0 125px;
	background-image: url("../img/banner-bg.jpg");
	background-color: #1c2141;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	position: relative;
	z-index: 0;
}
.page-header::before {
	content: "";
	background-color: #000000;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	position: absolute;
	opacity: 0.6;
	z-index: -1;
}
.container {
	width: 85%;
	max-width: 1200px;
	padding-left: 1%;
	padding-right: 1%;
	margin: 0 auto;
}
.header-top-block {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.logo {
	display: block;
}
.logo:hover,
.logo:focus {
	border: none;
	outline: 1px solid #b59f5b;
	outline-offset: 10px;
}
.logo-img {
	width: 180px;
}
.nav-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}
.nav-list .list-item {
	margin-right: 35px;
}
.nav-list .list-item:last-child {
	margin-right: 0;
}
.item-link {
	font-size: 13px;
	font-weight: normal;
	text-transform: uppercase;
	color: #ffffff;
}
.item-link:hover, 
.item-link:focus {
	outline: none;
	color: #b59f5b;
	
}
.menu-burger {
	display: none;
}
.logo-mobile {
	display: none;
}
.header-title {
	width: 690px; 
	margin: 100px auto 0 auto;
	font-size: 45px;
	line-height: 1.66;
	text-align: center;
	font-weight: bold;
	text-transform: uppercase;
	color: #ffffff;
}

/*бургерное меню сразу для Tablet и Mobile*/
/* из домашки MQ–2.2. Задача 1 — Мобильное меню */
@media screen and (max-width: 1199px) {
	.menu-burger {
		display: block;
		width: 1.25em;
		height: 1em;  
		border: none;
		padding: 0;
		background-color: transparent;
		font-size: 20px;
		position: relative;
		text-indent: -9999px;
		cursor: pointer;
	}
	.menu-burger:hover,
	.menu-burger:focus {
	border: none;
	outline: 1px solid #b59f5b;
	outline-offset: 10px;
}
	.menu-burger:before, .menu-burger:after {
		content:"";
		width: 100%;
		height: 20%;
		border-radius: 5px;
		background-color: #ffffff;  
		position: absolute;
		left: 0;
	}
	.menu-burger:before {
		top: 0;
	}
	.menu-burger:after {
		bottom: 0;
	}
	.menu-burger-label {
		width: 100%;
		height: 20%;
		margin-top: -0.1em;  
		border-radius: 5px;
		background-color: #ffffff;  
		position: absolute;
		left: 0;
		top: 50%;
	}
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
	.page-header {
		padding: 40px 0 125px;
		background-image: url("../img/banner-bg-tablet.jpg");
	}
	.container {
		width: 91%;
		padding-left: 0;
		padding-right: 0;
	}
	.logo-img {
		width: 160px;
	}
	.nav-list {
		display: none;
	}
	.header-title {
		width: 89%;
		max-width: 600px;
		margin: 105px auto 0 auto;
		font-size: 40px;
		line-height: 1.375;
	}
}

@media screen and (max-width: 640px) {
	.page-header {
		min-height: 640px;
		padding: 30px 0 220px;
		background-image: url("../img/banner-mobile.jpg");
	}
	.container {
		width: 91%;
		padding-left: 0;
		padding-right: 0;
	}
	.header-top-block {
		justify-content: flex-end;
	}
	.logo {
		display: none;
	}
	.nav-list {
		display: none;
	}
	.logo-mobile {
		display: block;
		text-align: center;
		width: 75%;
		margin: 175px auto 0 auto;
	}
	.logo-mobile:hover,
	.logo-mobile:focus {
	border: none;
	outline: 1px solid #b59f5b;
	outline-offset: 10px;
}
	.header-title {
		width: 75%;
		max-width: 270px;
		margin: 45px auto 0 auto;
		font-size: 26px;
		line-height: 1.38;
	}
}

/* !стили для pop-up */
.pop-up {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color:rgba(0, 0, 0, 0.7);
	z-index: 9999;

	display: flex;
	justify-content: center;
	align-items: center;
}
.pop-up-container {
	position: relative; /*для крестика*/
	width: 30%;
	max-width: 700px;
	padding: 30px 20px;
	background-color: white;
}
.feedback {
	font-size: 12px;
}
.form-row {
	margin-bottom: 20px;
}
.question-select {
	display: inline-block;
	width: 100%;
	margin-top: 10px;
	padding: 13px 10px;
	font-size: inherit;
	color: grey;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: none;
	background: #f3f2f2 url(../svg/form-arrows.svg) no-repeat right 10px center;
	background-size: 8px;
}
.question-select:focus,
.question-select:hover {
	outline: 1px solid #b59f5b;
	outline-offset: -1px;
}
.form-hint {
	display: block;
	margin-bottom: 10px;
}
.radio-group {
	display: inline-block;
}
.radio-group:nth-of-type(n+2) {
	margin-left: 5px;
}
.radio-group-text::before {
	content: "";
	display: inline-block;
	vertical-align: middle;
	width: 15px;
	height: 15px;
	margin-right: 3px;
	background: url("../svg/form-empty-circle.svg") no-repeat center center;
	background-size: 100%;
}
.radio {
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	width: 1px;
}
.radio:checked ~ .radio-group-text::before {
	background-image: url("../svg/form-circle.svg");
}
.form-textarea {
	width: 100%;
	min-height: 100px;
	resize: none;
	padding: 10px;
	margin-top: 10px;
	font: inherit;
	color: grey;
	background-color: #f3f2f2;
	border: none;
}
.form-textarea:hover,
.form-textarea:focus {
	outline: 1px solid #b59f5b;
	outline-offset: -1px;
}
.send-button {
	width: 100%;
	padding: 15px;
	font-size: inherit;
	font-weight: bold;
	color: white;
	text-transform: uppercase;
	background-color: #b59f5b;
	border: none;
}
.send-button:focus,
.send-button:hover {
	outline: 2px solid #b59f5b;
	outline-offset: 4px;
	color: black;
}
.popup-close {
	position: absolute;
	top: -20px;
	right: 0;
	width: 15px;
	height: 15px;
	background-color: transparent;
	border: none;
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
	.pop-up-container {
		width: 50%;
	}
	.form-textarea {
		min-height: 50px;
	}
}
@media screen and (max-width: 640px) {
	.pop-up-container {
		width: 90%;
	}
	.form-textarea {
		min-height: 0px;
	}
}

/* !стили для блока Тренды */
.trends {
	max-width: 1660px;
	margin: 60px auto 0 auto;
}
.section-title {
	font-size: 20px;
	color: #0f0d0e;
	font-weight: bold;
	text-transform: uppercase;
	text-align: center;
}
.section-title::after {
	content: "";
	display: block;
	width: 65px;
	height: 3px;
	margin: 15px auto 30px auto;
	background-color: #b59f5b;
	opacity: 0.4;
}
.trends-wrp {
	display: flex;
	flex-wrap: wrap;
}
.trends-item-wrp {
	display: flex;
	align-items: flex-end;
	width: calc(25% - 4px);
	flex-grow: 1;
	padding: 9% 20px 20px; /*9% - чтобы при уменьшее экрана от 1660 к 1200, padding-top уменьшался*/
	margin-right: 4px;
	margin-bottom: 4px;
	background-color: #1c2141;
	position: relative;
	z-index: 0;
}
.trends-item-wrp::before {
	content: "";
	background-color: #000000;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	position: absolute;
	opacity: 0.6;
	z-index: -1;
}
.trends-item-wrp:last-child {
	width: 25%;
	margin-right: 0;
}
.trends-item-wrp-garden {
	background: url("../img/trend-garden.jpg") no-repeat center center;
	background-size: cover;
}
.trends-item-wrp-cheese {
	background: url("../img/trend-cheese.jpg") no-repeat center center;
	background-size: cover;
}
.trends-item-wrp-trip {
	background: url("../img/trend-trip.jpg") no-repeat center center;
	background-size: cover;
}
.trends-item-wrp-lemon {
	background: url("../img/trend-lemon.jpg") no-repeat center center;
	background-size: cover;
}
.trends-item {
	width: 100%;
	padding: 40px 40px 35px 25px;
	border: solid 3px rgba(181, 159, 91, 0.6);
}
.tags {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 5px;
}
.tags-item {
	margin-right: 20px;
}
.tags-item:last-child {
	margin-right: 0;
}
.tags-item-link {
	font-size: 14px;
	color: #b59f5b;
	font-weight: bold;
	text-transform: uppercase;
}
.tags-item-link:hover,
.tags-item-link:focus {
	outline: 1px solid #b59f5b;
	outline-offset: 3px;
}
.trends-title {
	line-height: 1.2;
}
.trends-title-link {
	font-size: 20px;
	color: #ffffff;
	font-weight: bold;
	text-transform: uppercase;
}
.trends-title-link:hover,
.trends-title-link:focus {
	color: #b59f5b;
	outline: none;
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
	.trends {
		margin-top: 50px;
	}
	.section-title {
		font-size: 18px;
	}
	.section-title::after {
		margin: 15px auto 20px auto;
	}
	.trends-item {
		padding: 35px 60px 35px 30px;
	}
	.trends-title-link {
		font-size: 17px;
	}
}
@media screen and (min-width: 641px) and (max-width: 1199px) {
	.trends-item-wrp {
		width: calc(50% - 4px);
	}
	.trends-item-wrp:last-child {
		width: calc(50% - 4px);
	}
	.trends-item-wrp:nth-child(even) {
		margin-right: 0;
	}
}

@media screen and (max-width: 640px) {
	.trends {
		margin-top: 45px;
	}
	.section-title {
		font-size: 16px;
	}
	.section-title::after {
		margin: 12px auto 25px auto;
	}
	.trends-item {
		padding: 30px 30px 30px 20px;
	}
	.trends-title-link {
		font-size: 17px;
	}
}
@media screen and (max-width: 640px) {
	.trends-item-wrp {
		width: 100%;
		margin-right: 0;
		margin-bottom: 3px;
	}
}

/* !стили для общего container, содержащего main и aside */
.container.main-aside {
	margin-top: 60px;
	display: flex;
}

/* !стили для container-main */
.container-main {
	flex-grow: 1; 
	margin-right: 125px;
}
.article-main {
	display: flex;
	margin-bottom: 55px;
}
.article-main:last-child {
	margin-bottom: 0;
}
.article-img-container {
	margin-right: 25px;
}
.article-img {
	width: 23vw; /*иначе реализовать сжимание изо не смогла. если ставлю здесь 100%, то 
	изо сразу становится меньше заявленных в макете 380px */
}
.article-content .tags {
	margin-bottom: 7px;
}
.tags .list-item {
	margin-right: 20px;
}
.tags .list-item:last-child {
	margin-right: 0;
}
.article-main-title {
	margin-bottom: 15px;
	line-height: 1.2;
}
.article-main-title-link {
	font-size: 20px;
	color: #0f0d0e;
	font-weight: bold;
	text-transform: uppercase;
}
.article-main-title-link:hover,
.article-main-title-link:focus {
	outline: none;
	color: #7a6b3e;
}
.date-and-autor {
	margin-bottom: 35px;
}
.date {
	font-size: 12px;
	color: #888888;
}
.date-and-autor .date {
	margin-right: 10px;
}
.autor {
	font-size: 12px;
	color: #000000;
	font-weight: bold;
}
.date-and-autor .autor:hover,
.date-and-autor .autor:focus {
	outline: none;
	color: #7a6b3e;
}
.article-text {
	font-size: 15px;
	line-height: 1.46;
	color: #0f0d0e;
	margin-bottom: 10px;
}

/* !стили для aside */
.container-aside {
	width: 270px;
	flex-shrink: 0;
}
.aside-titles {
	font-size: 14px;
	color: #0f0d0e;
	font-weight: bold;
	text-transform: uppercase;
	text-align: center;
}
.aside-titles::after {
	content: "";
	display: block;
	width: 68px;
	height: 3px;
	margin: 10px auto 25px auto;
	background-color: #b59f5b;
	opacity: 0.4;
}
.article-new-posts {
	display: flex;
	margin-bottom: 17px;
}
.article-new-posts-img-container {
	margin-right: 18px;
}
.article-new-posts-img {
	width: 70px;
}
.article-new-posts-content .date {
	display: block;
	margin-bottom: 2px;
}
.article-new-posts-title-link {
	font-size: 14px;
	line-height: 1.28;
	font-weight: bold;
	text-transform: uppercase;
	color: #0f0d0e;
}
.article-new-posts-title-link:hover,
.article-new-posts-title-link:focus {
	outline: none;
	color: #b59f5b;
}

/* !стили для формы поиска */
.form-search-container {
	margin-top: 60px;
}
.form-search {
	display: flex;
}
.input-search-lable {
	flex-grow: 1;
}
.input-search {
	display: block;
	width: 100%;
	height: 48px;
	padding-left: 16px;
	padding-right: 16px;
	border: none;
	background-color: #f3f2f2;
}
.input-search:hover,
.input-search:focus {
	outline: 2px solid #b59f5b;
	outline-offset: -2px;
}
.button-search {
	width: 48px;
	height: 48px;
	border: none;
	background: #b59f5b url("../svg/search.svg") no-repeat center;
	background-size: 18px;
}
.button-search:hover,
.button-search:focus {
	outline: 2px solid #b59f5b;
	outline-offset: -2px;
	background-color: black;
}

/* !стили для формы подписки */
.form-mailing-container {
	margin-top: 55px;
}
.input-mailing {
	display: block;
	width: 100%;
	height: 48px;
	padding-left: 16px;
	padding-right: 16px;
	margin-bottom: 20px;
	border: none;
	background-color: #f3f2f2;
	-webkit-appearance: none;
	-moz-appearance: none;
}
.input-mailing:hover,
.input-mailing:focus {
	outline: 2px solid #b59f5b;
	outline-offset: -2px;
}
.button-mailing {
	width: 100%;
	height: 48px;
	border: none;
	background: #b59f5b;
	font-size: 14px;
	color: #ffffff;
	font-weight: bold;
	text-transform: uppercase;
}
.button-mailing:hover,
.button-mailing:focus {
	outline: 2px solid #b59f5b;
	outline-offset: -2px;
	background-color: black;
}

/* !стили для раздела Теги */
.tags-container {
	margin-top: 50px;
}
.tags-list-container {
	display: flex;
	flex-wrap: wrap;
}
.tags-list-item {
	margin-right: 7px;
	margin-bottom: 5px;
}
.tags-list-container .tags-item-link {
	display: block;
	padding: 3px 11px;
	border: 4px solid #eeeded;
	font-size: 12px;
	color: #0f0d0e;
	font-weight: bold;
	text-transform: uppercase;
}
.tags-item-link:hover,
.tags-item-link:focus {
	border-color: #b59f5b;
	color: #b59f5b;
}

/* !стили для раздела Темы */
.topics-container {
	margin-top: 55px;
}
.topics-container .aside-titles::after {
	margin-bottom: 20px;
}
.topics-list-item {
	margin-top: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eeeded;
}
.topics-item-link {
	font-size: 14px;
	color: #000000;
	font-weight: bold;
}
.topics-item-link:hover,
.topics-item-link:focus {
	outline: none;
	color: #b59f5b;
}
.superscript {
	font-size: 12px;
	color: #b59f5b;
	font-weight: bold;
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
	.container.main-aside {
		margin-top: 50px;
	}
	.container-main {
		margin-right: 35px;
	}
	.article-main {
		display: block;
	}
	.article-main::after {
		content: "";
		display: block;
		margin-top: 23px;
		margin-bottom: 40px;
		width: 100%;
		height: 3px;
		background-color: rgba(122, 122, 122, 0.2);
	}
	.article-main:last-child:after {
		display: none;
	}
	.article-img-container {
		margin-bottom: 17px;
		margin-right: 0;
	}
	.article-img {
		width: 100%;
	}
	.date-and-autor {
		margin-bottom: 40px;
	}
}

@media screen and (max-width: 640px) {
	.container {
		width: 91.7%;
		margin: 0 auto;
	}
	.container.main-aside {
		margin-top: 45px;
		display: block;
	}
	.container-main {
		width: 100%;
		margin-right: 0;
	}
	.article-main {
		display: block;
	}
	.article-main::after {
		content: "";
		display: block;
		margin-top: 20px;
		margin-bottom: 35px;
		width: 100%;
		height: 3px;
		background-color: rgba(122, 122, 122, 0.2);
	}
	.article-img-container {
		margin-bottom: 15px;
		margin-right: 0;
	}
	.tags .list-item {
		margin-bottom: 0;
	}
	.article-img {
		width: 100%;
	}
	.article-main-title {
		margin-bottom: 12px;
	}
	.article-main-title-link {
		font-size: 16px;
	}
	.date-and-autor {
		margin-bottom: 25px;
	}
	.container-aside {
		margin-top: 45px;
		width: 100%;
	}
}

/* !стили для блока Наши изделия */
.product {
	margin-top: 65px;
}
.products-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.product-wrp {
	width: calc(33.333% - 43.33px);
	display: flex;
	flex-direction: column;
}
.product-img-wrp {
	width: 87%;
	margin: 0 auto;
}
.product-img {
	width: 100%;
}
.product-text {
	flex-grow: 1;
	padding: 40px 20px 25px 20px;
	margin-top: -30px;
	border: 3px solid rgba(181, 159, 91, 0.7);
}
.section-title-product {
	text-align: left;
	margin-bottom: 5px;
}
.section-title-product::after {
	display: none;
}
.product-text-block {
	margin-bottom: 20px;
}
.product-info {
	font-size: 15px;
	line-height: 1.46;
	color: #0f0d0e;
	font-weight: normal;
}
.product-info-link {
	color: #b59f5b;
}
.product-info-link:hover,
.product-info-link:focus {
	outline: none;
	text-decoration: underline;
}
.product-price {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.price-wrp {
	display: flex;
	flex-direction: column;
}
.price {
	font-size: 20px;
	line-height: 1.2;
	font-weight: bold;
}
.price-out {
	font-size: 14px;
	text-decoration: line-through;
}
.btn-link {
	display: inline-block;
	padding: 20px 30px;
	font-size: 14px;
	font-weight: bold;
	color: white;
	text-transform: uppercase;
	background-color: #b59f5b;
}
.btn-link:hover,
.btn-link:focus {
	outline: 2px solid #b59f5b;
	background-color: black;
}

@media screen and (min-width: 1200px) {
	.product-img-wrp {
		max-width: 300px; /*только для desctop, чтобы на других девайсах красиво резинилось*/
	}
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
	.product {
		margin-top: 50px;
	}
	.product-wrp {
		width: calc(50% - 13.5px);
		margin-bottom: 25px;
	}
	.product-text {
		padding-top: 55px;
		margin-top: -45px;
	}
}

@media screen and (max-width: 640px) {
	.product {
		margin-top: 40px;
	}
	.product-wrp {
		width: 100%;
		margin-bottom: 25px;
	}
	.product-wrp:last-child {
		margin-bottom: 0;
	}
	.section-title-product {
		font-size: 17px;
	}
}

/* !стили для footer */
.page-footer {
	margin-top: 65px;
	padding-bottom: 45px;
}
.footer-container {
	background-color: #f3f2f2;
	padding-top: 28px;
	padding-bottom: 28px;
}
.social-icons-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0 auto;
}
.social-icons-list-item {
	margin-right: 30px;
}
.social-icons-list-item:last-child {
	margin-right: 0;
}
.social-icons-link {
	display: block;
	width: 20px;
	height: 20px;
}
.social-icons-link:hover,
.social-icons-link:focus {
	outline: 1px solid #b59f5b;
	outline-offset: 5px;
}
.social-icons-link-twitter {
	background: url("../svg/twitter.svg") no-repeat center;
	width: 25px;
	height: 25px;
	background-size: 100%;
}
.social-icons-link-pinterest {
	background: url("../svg/pinterest.svg") no-repeat center;
	background-size: 100%;
}
.social-icons-link-facebook {
	background: url("../svg/facebook.svg") no-repeat center;
	background-size: 100%;
}
.social-icons-link-instagram {
	background: url("../svg/instagram.svg") no-repeat center;
	background-size: 100%;
}
.social-icons-link-tumblr {
	background: url("../svg/tumblr.svg") no-repeat center;
	background-size: 100%;
}
.copyright-container {
	text-align: center;
	margin-top: 70px;
}
.copyright-link {
	font-size: 12px;
	font-weight: bold;
	color: #bebebe;
}
.copyright-link:hover,
.copyright-link:focus {
	outline: none;
	color: black;
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
	.page-footer {
		margin-top: 50px;
	}
	.copyright-container {
		margin-top: 50px;
	}
}

@media screen and (max-width: 640px) {
	.page-footer {
		margin-top: 40px;
	}
	.copyright-container {
		margin-top: 50px;
	}
}