body {
	min-width: 960px;
	margin: 0;
	padding: 0;

	font-family: "PT Sans Narrow", Arial, sans-serif;
	font-size: 14px;
	line-height: 24px;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;

	background-color: #000000;
	background-image: url("../img/bg.jpg");
	background-position: top center;
	background-repeat: no-repeat;
}

.inner-page {
	color: #000000;

	background-color: #f9f6f3;
	background-image: url("../img/pattern-light.jpg");
	background-position: 0 0;
	background-repeat: repeat;
}

.main-header {
	margin-bottom: 75px;
}

.inner-page .main-header {
	margin-bottom: 50px;

	background-color: #000000;
}

a {
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

.visually-hidden:not(:focus):not(:active),
input[type="checkbox"].visually-hidden,
input[type="radio"].visually-hidden {
	position: absolute;

	width: 1px;
	height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;

	white-space: nowrap;

	clip-path: inset(100%);
	clip: rect(0 0 0 0);
	overflow: hidden;
}

.button {
	display: inline-block;
	margin-right: 16px;
	padding: 10px 30px;

	font: inherit;
	text-align: center;
	color: #ffffff;
	vertical-align: middle;
	text-transform: uppercase;

	background-color: #000000;
	border: none;
}

.button:hover,
.button:focus,
.button:active {
	background-color: #663d15;
}

.button.disabled,
.button:disabled {
	cursor: default;
	opacity: 0.5;
	background-color: #000000;
}

.main-navigation {
	display: flex;
	flex-direction: column;
	align-items: center;

	font-size: 16px;
	line-height: 20px;
	color: #ffffff;

	background-color: transparent;
}

.inner-page .main-navigation {
	align-items: flex-start;
	flex-direction: row;
}

.main-header-logo {
	order: 2;
	width: 368px;
	height: 153px;
}

.inner-page .main-header-logo {
	order: 0;

	width: 111px;
	height: 24px;
	padding: 23px 20px;
}

.main-navigation .container {
	display: flex;
}

.main-navigation-wrapper {
	width: 100%;
	margin-bottom: 60px;

	background-color: #000000;
}

.main-navigation-wrapper .container {
	display: flex;
	justify-content: space-between;
}

.site-navigation,
.user-navigation {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-navigation {
	display: flex;
	flex-wrap: wrap;
	width: 620px;
	margin: 0;
	padding: 0;

	list-style: none;
}

.user-navigation {
	display: flex;
	justify-content: flex-end;
	max-width: 140px;
	margin: 0;
	padding: 0;

	list-style: none;
}

.inner-page .user-navigation {
	margin-left: auto;
}

.site-navigation a,
.user-navigation a {
	display: block;
	padding: 25px 20px;

	color: #ffffff;
}

.site-navigation a:hover,
.site-navigation a:focus,
.user-navigation a:hover,
.user-navigation a:focus {
	background-color: #242424;
}

.site-navigation-current {
	position: relative;
}

.site-navigation-current a:not([href]) {
	background-color: #000000;
}

.site-navigation-current::after {
	content: "";

	position: absolute;
	right: 20px;
	bottom: 0;
	left: 20px;

	height: 5px;

	background-color: #ffffff;
}

.user-navigation .login-link {
	position: relative;
	padding-left: 50px;
}

.login-link::before {
	content: "";

	position: absolute;
	top: 27px;
	left: 24px;

	width: 16px;
	height: 18px;

	background-image: url("../img/login.svg");
	background-repeat: no-repeat;
	background-position: 0 0;

	opacity: 0.3;
}

.login-link:hover::before,
.login-link:focus::before,
.login-link:active::before {
	opacity: 1;
}

.container {
	width: 940px;
	margin: 0 auto;
	padding: 0 10px;
}

.features {
	margin-bottom: 80px;
}

.features-list {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 0;

	list-style: none;
}

.feature-item {
	width: 300px;
	text-align: center;
}

.feature-item h3 {
	position: relative;

	margin: 0;
	margin-bottom: 60px;

	font-size: 30px;
	line-height: 42px;
}

.feature-item h3::after {
	content: "";

	position: absolute;
	bottom: -30px;
	left: 50%;

	width: 20px;
	height: 20px;
	margin-left: -10px;

	background-color: #ffffff;

	transform: rotate(45deg);
}

.feature-item p {
	margin: 0 10px;
}

.index-columns {
	display: flex;
	justify-content: space-between;
	padding: 50px 80px;
	margin-bottom: 35px;

	color: #000000;

	background-color: #f8f5f2;
	background-image: 
		url("../img/line.png"),
		url("../img/pattern-light.jpg");
	background-position: center, 0 0;
	background-repeat: no-repeat, repeat;
}

.index-columns h2 {
	margin: 0;
	margin-bottom: 25px;

	font-size: 30px;
	line-height: 42px;
}

.news {
	width: 380px;
}

.news-list {
	margin: 0;
	margin-bottom: 25px;
	padding: 0;

	list-style: none;
}

.news-item {
	margin-bottom: 25px;
}

.news-item p {
	margin: 0;
}

.news-item time {
	text-transform: none;
}

.gallery {
	width: 300px;
}

.gallery-container {
	position: relative;

	height: 260px;
}

.gallery-content {
	height: 164px;
	margin: 0;

	background-color: #cccccc;
	border: 7px solid #ffffff;
}

.gallery-content img {
	width: 286px;
	height: 164px;
}

.gallery-button {
	position: absolute;
	bottom: 0;

	box-sizing: border-box;
	width: 140px;
	margin: 0;
}

.gallery-button-back {
	left: 0;
}

.gallery-button-next {
	right: 0;
}

.contacts {
	width: 380px;
}

.contacts p {
	margin: 0;
	margin-bottom: 25px;
}

.appointment {
	width: 300px;
}

.appointment-info {
	margin: 0;
	margin-bottom: 15px;
}

.appointment-form {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.appointment-item {
	width: 140px;
	margin: 0;
	margin-bottom: 10px;
}

.appointment-item label {
	display: block;
	margin-bottom: 9px;
	margin-left: 15px;
}

.appointment-item input {
	width: 140px;
	padding-top: 8px;
	padding-left: 15px;
	padding-right: 15px;
	padding-bottom: 7px;

	font: inherit;
	background-color: transparent;
	border: 2px solid #000000;

	box-sizing: border-box;
}

.appointment-item input:focus {
	border-color: #663d15;
}

.appointment .button {
	display: block;
	width: 100%;
	margin-top: 10px;
	margin-right: 0;
}

.page-title {
	margin: 0;
	margin-bottom: 15px;
	padding: 0;

	font-size: 30px;
	line-height: 42px;
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	padding: 0;
	margin: 0;
	margin-bottom: 50px;

	list-style: none;
}

.breadcrumbs li {
	position: relative;

	margin-right: 42px;
}

.breadcrumbs li:last-child {
	margin-right: 0;
}

.breadcrumbs li::after {
	content: "";

	position: absolute;
	top: 7px;
	right: -25px;

	width: 8px;
	height: 8px;

	background-color: #000000;

	transform: rotate(45deg);
}

.breadcrumbs a {
	color: #000000;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
	text-decoration: underline;
}

.breadcrumbs-current {
	color: #aba9a7;
}

.breadcrumbs-current::after {
	display: none;
}

.catalog-columns {
	display: flex;
	justify-content: space-between;
}

.filters {
	width: 180px;
}

.filter fieldset {
	padding: 0;
	margin: 0;
	margin-bottom: 30px;

	border: none;
}

.filter fieldset:first-child {
	margin-bottom: 35px;
}

.filter legend {
	margin-bottom: 26px;

	font-size: 24px;
	line-height: 30px;
}

.filter ul {
	padding: 0;
	margin: 0;

	list-style: none;
	line-height: 18px;
}

.filter-option {
	margin-bottom: 19px;
	padding-left: 45px;
}

.filter-option label {
	position: relative;

	display: block;

	cursor: pointer;
	-moz-user-select: none;
	user-select: none;
}

.filter-input:hover + label,
.filter-input:focus + label {
	color: #663d15;
}

.filter-input:focus + label::before,
.filter-input:focus + label::before {
	border-color: #663d15;
	outline: thin dotted;
	outline: 5px auto -webkit-focus-ring-color;
}

.filter-input:disabled + label,
.filter-input:checked:disabled + label,
.filter-input:disabled:hover + label,
.filter-input:disabled:focus + label {
	color: #000000;

	opacity: 0.5;
	pointer-events: none;
}

.filter-button {
	padding-left: 30px;
	padding-right: 30px;
}

.filter-input-checkbox:hover + label,
.filter-input-checkbox:focus + label {
	color: #663d15;
}

.filter-input-checkbox + label::before {
	content: "";
	position: absolute;
	left: -42px;
	top: 0;

	width: 16px;
	height: 16px;

	border: 2px solid #000000;
}

.filter-input-checkbox:checked + label::after {
	content: "";

	position: absolute;
	top: 4px;
	left: -38px;

	width: 12px;
	height: 12px;

	background-image: url("../img/cross.svg");
	background-repeat: no-repeat;
	background-position: 0 0;
}

.filter-input-radio + label::before {
	content: "";

	position: absolute;
	top: -1px;
	left: -42px;

	width: 16px;
	height: 16px;

	border: 2px solid #000000;
	border-radius: 50%;
}

.filter-input-radio:checked + label::after {
	content: "";

	position: absolute;
	top: 5px;
	left: -36px;

	width: 8px;
	height: 8px;

	background-color: #000000;
	border-radius: 50%;
}

.catalog {
	width: 700px;
}

.catalog-list {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
	margin: 0;
	margin-bottom: 25px;
	
	list-style: none;
}

.catalog-item {
	width: 220px;
	min-height: 285px;
	margin-bottom: 20px;
	margin-right: 20px;
	
	background-color: #f8f8f8;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.catalog-item:nth-child(3n) {
	margin-right: 0;
}

.catalog-item:hover {
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.catalog-item a {
	display: flex;
	flex-direction: column;

	color: #000000;
}

.catalog-item h3 {
	order: 1;
	margin-top: 17px;
	margin-bottom: 12px;
	margin-left: 16px;
	margin-right: 15px;

	font-size: 14px;
	line-height: 18px;
}

.catalog-category {
	display: block;

	text-decoration: none;
}

.catalog-item-image {
	width: 220px;
	height: 165px;
	margin: 0;
}

.catalog-item-price {
	display: flex;
	margin: 15px;
	margin-top: 0;
}

.catalog-item-price b {
	width: 112px;
	padding: 13px 25px 11px;

	font-size: 14px;
	line-height: 20px;
	text-align: center;

	background-color: #e5e5e5;

	box-sizing: border-box;
}

.catalog-item-price .button {
	width: 50px;
	padding: 13px 18px 11px;
	margin-right: 0;

	line-height: 20px;
	color: #ffffff;
}

.pagination-list {
	display: flex;
	flex-wrap: wrap;

	padding: 0;
	margin: 0;

	list-style: none;
}

.pagination-item {
	margin-right: 5px;
}

.pagination-item:last-child {
	margin-right: 0;
}

.pagination-item a {
	display: block;
	padding: 10px 19px;

	color: #ffffff;

	background-color: #000000;
}

.pagination-item a:hover,
.pagination-item a:focus,
.pagination-item a:active {
	background-color: #663d15;
}

.pagination-item-current a {
	color: #000000;

	background-color: #ffffff;
}

.pagination-item-current a:hover,
.pagination-item-current a:focus,
.pagination-item-current a:active {
	color: #000000;

	background-color: #ffffff;
}

.product-photo-preview {
	display: flex;
	padding: 0;
	margin: 0;

	list-style: none;
}

.product-photos {
	width: 460px;
}

.product-photo-preview li {
	width: 140px;
	height: 149px;
	margin-right: 20px;

	box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.1);
}

.product-photo-preview li:hover {
	box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.2);
}

.product-photo-preview li:nth-child(3n) {
	margin-right: 0;
}

.product-photo-full {
	width: 460px;
	height: 498px;
	margin: 0;
	margin-bottom: 20px;

	box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.1);
}

.product-description {
	display: flex;
	justify-content: space-between;
	padding-right: 10px;
	margin-bottom: 29px;
}

.product-description p {
	width: 200px;
}

.product-article {
	text-align: right;
	color: #aeaeae;
}

.product-price b {
	box-sizing: border-box;		//без него некоректно отображается блок с ценой на странице товара

	width: 112px;
	padding-top: 13px;
	padding-left: 36px;
	padding-right: 36px;
	padding-bottom: 11px;

	line-height: 20px;
	text-align: center;

	background-color: #e5e5e5;
}

.product-price .button {
	padding-left: 17px;
	padding-right: 17px;
}

.product-info {
	width: 390px;
	padding-top: 23px;
}

.product-info p {
	margin: 0;
}

.product-info h3 {
	margin: 0;
	margin-bottom: 27px;

	font-size: 24px;
	line-height: 30px;
}

.product-info .product-text {
	margin-bottom: 35px;
}

.product-info .product-price {
	display: flex;
	margin-bottom: 63px;
}

.product-info ul {
	margin: 0;
	padding: 0;

	list-style: none;
}

.product-info li {
	position: relative;

	padding-left: 23px;
}

.product-info li::before {
	content: "";

	position: absolute;
	top: 7px;
	left: 2px;

	width: 8px;
	height: 8px;

	background-color: #000000;

	transform: rotate(45deg);
}

.inner-content {
	margin-bottom: 75px;
}

.inner-content h2 {
	margin-top: 60px;
	margin-bottom: 30px;

	font-size: 24px;
	line-height: 30px;
}

.inner-content h3 {
	margin-top: 60px;
	margin-bottom: 30px;

	font-size: 20px;
	line-height: 24px;
}

.inner-content h2 + h3 {
	margin-top: 30px;
}

.inner-content p {
	margin: 14px 0;
}

.inner-content table {
	border-collapse: collapse;
}

.inner-content td {
	padding: 10px 15px;

	border: 2px solid #000000;
}

.inner-content .big-heading {
	display: flex;
	align-items: center;

	margin-top: 55px;
	margin-bottom: 65px;

	font-size: 48px;
	line-height: 48px;
	text-align: center;
}

.big-heading::before,
.big-heading::after {
	content: "";

	flex-grow: 1;
	flex-shrink: 0;

	width: 50px;
	height: 2px;

	background: #000000;
}

.big-heading::before {
	margin-right: 25px;
}

.big-heading::after {
	margin-left: 25px;
}

.custom-list-1 {
	margin: 14px 0;
	padding: 0;

	list-style: none;
}

.custom-list-1 li {
	position: relative;

	margin-bottom: 15px;
	padding-left: 20px;
}

.custom-list-1 li::before {
	content: "";

	position: absolute;
	top: 8px;
	left: 0;

	width: 8px;
	height: 8px;

	background-color: #000000;
	transform: rotate(45deg);
}

.custom-table-1 {
	width: 100%;
}

.custom-table-1 td {
	width: 50%;
}

.custom-table-1 td:last-child {
	text-align: center;
}

.inner-columns {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;

	margin: 60px 0;
}

.inner-column-left,
.inner-column-right {
	width: 460px;
}

.inner-column-left *:first-child,
.inner-column-right *:first-child {
	margin-top: 0;
}

.inner-column-left *:last-child,
.inner-column-right *:last-child {
	margin-bottom: 0;
}

.inner-columns > h2:first-child {
	width: 460px;
	margin-top: 0;
	margin-right: 460px;
	margin-right: calc(100% - 460px);
}

.short-text {
	padding-right: 80px;
}

.main-footer {
	margin-top: 65px;
	padding: 60px 0;

	color: #ffffff;

	background-color: #212121;
	background-image: url("../img/pattern-dark.jpg");
	background-position: 0 0;
	background-repeat: repeat;
}

.inner-page .main-footer {
	margin-top: 45px;
}

.main-footer .container {
	display: flex;
}

.footer-contacts {
	width: 320px;
	margin: 0;
	margin-right: 80px;
}

.footer-contacts a {
	color: #ffffff;
	text-decoration: underline;
}

.footer-contacts a:hover,
.footer-contacts a:focus {
	text-decoration: none;
}

.footer-social {
	width: 145px;

	text-align: center;
}

.footer-social ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	width: 141px;
	margin: 0 auto;
	padding: 0;

	list-style: none;
}

.footer-social b {
	display: block;
	margin-bottom: 15px;
}

.social-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 43px;
	height: 43px;

	background-color: #000000;
}

.social-button:hover,
.social-button:focus {
	background-color: #ffffff;
}

.social-button:hover path,
.social-button:focus path {
	fill: #000000;
}

.footer-copyright {
	width: 150px;
	margin: 0;
	margin-left: auto;
	text-align: center;
}

.footer-copyright .button {
	display: block;
	margin-right: 0;
}

.footer-copyright b {
	display: block;
	margin-bottom: 15px;
}

.footer-copyright .button:hover,
.footer-copyright .button:focus {
	color: #000000;

	background-color: #ffffff;
}

.modal {
	position: fixed;

	display: none;

	color: #000000;

	background-color: #f8f3f0;
	background-image: url("../img/pattern-light.jpg");
	background-position: 0 0;
	background-repeat: repeat;
	box-shadow: 0 30px 50px rgba(0, 0, 0, 0.7);

	z-index: 2;
}

.modal h2 {
	font-size: 30px;
	line-height: 42px;
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;

	display: none;

	background: rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.modal-login {
	top: 50%;
	left: 50%;

	width: 300px;
	/* margin-left: -230px; */
	padding: 50px 80px;
	transform: translate(-50%, -50%);
}

.modal-login h2 {
	margin: 0;
	margin-bottom: 20px;

	font-size: 30px;
	line-height: 42px;
}

.modal-description {
	margin: 0;
	margin-bottom: 10px;
}

.modal-close {
	position: absolute;
	top: 0;
	right: -34px;

	width: 22px;
	height: 22px;

	font-size: 0;

	background-color: transparent;
	border: 0;

	cursor: pointer;
}

.modal-close::before,
.modal-close::after {
	content: "";

	position: absolute;
	top: 10px;
	left: 2px;

	width: 19px;
	height: 3px;

	background-color: #d0d0d0;
}

.modal-close::before {
	transform: rotate(45deg);
}

.modal-close::after {
	transform: rotate(-45deg);
}

.login-form p {
	margin: 0;
	margin-bottom: 10px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
	box-sizing: border-box;
	width: 300px;
	padding: 10px 15px;
	padding-right: 40px;

	font: inherit;
	color: #000000;
	text-transform: uppercase;

	background-color: #f9f6f3;
	border: 2px solid #000000;
}

.login-form input:focus {
	border-color: #663d15;
}

.login-form .login-help {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 15px 0;
}

.login-icon-user {
	background-image: url("../img/user.svg");
	background-position: 270px center;
	background-repeat: no-repeat;
}

.login-icon-password {
	background-image: url("../img/lock.svg");
	background-position: 270px center;
	background-repeat: no-repeat;
}

.login-checkbox {
	position: relative;

	padding-left: 30px;

	cursor: pointer;
}

.login-checkbox:hover,
.login-checkbox:focus {
	color: #663d15;
}

.login-checkbox input[type="checkbox"] + .checkbox-indicator {
	position: absolute;
	top: 0;
	left: 0;

	width: 17px;
	height: 17px;

	border: 2px solid #000000;
}

.login-checkbox input[type="checkbox"]:focus + .checkbox-indicator {
	border-color: #663d15;
	outline: thin dotted;
	outline: 5px auto -webkit-focus-ring-color;
}

.login-checkbox input[type="checkbox"]:checked + .checkbox-indicator::before,
.login-checkbox input[type="checkbox"]:checked + .checkbox-indicator::after {
	content: "";

	position: absolute;
	top: 8px;
	left: 1px;

	width: 15px;
	height: 2px;

	background-color: #000000;
}

.login-checkbox input[type="checkbox"]:checked + .checkbox-indicator::before {
	transform: rotate(45deg);
}

.login-checkbox input[type="checkbox"]:checked + .checkbox-indicator::after {
	transform: rotate(-45deg);
}

.restore {
	color: #000000;
	text-decoration: underline;
}

.restore:hover,
.restore:focus {
	text-decoration: none;
}

.login-form .button {
	width: 100%;
	margin-right: 0;
}

@keyframes bounce {
	0% {
		transform: translateY(-2000px);
	}

	70% {
		transform: translateY(30px);
	}

	90% {
		transform: translateY(-10px);
	}

	100% {
		transform: translateY(0);
	}
}

@keyframes shake {
	0%,
	100% {
		transform: translateX(0);
	}

	10%,
	30%,
	50%,
	70%,
	90% {
		transform: translateX(-10px);
	}

	20%,
	40%,
	60%,
	80% {
		transform: translateX(10px);
	}
}

.modal-map {
	top: 50%;
	left: 50%;

	width: 766px;
	height: 560px;
	margin-top: -280px;
	margin-left: -390px;

	border: 7px solid white;
}

.modal-map p {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;

	margin: 0;
}

.modal-map iframe {
	position: relative;
	z-index: 2;

	border: none;
}

.modal-show {
	display: block;

	animation: bounce 0.6s;
}
  
.modal-error {
	animation: shake 0.6s;
}