/*
Theme Name: Металл-Дом НН
Theme URI: https://metalldom-nn.ru
Author: URSA
Author URI: https://ursa.agency
Description: Официальный сайт компании ООО "Металл-Дом НН".
Version: 1.0.1
*/

/* Fonts ------------------------------ */

@font-face {
	font-family: "Montserrat";
	src: url(fonts/Montserrat-Regular.ttf) format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: "Montserrat";
	src: url(fonts/Montserrat-Medium.ttf) format('truetype');
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: "Montserrat";
	src: url(fonts/Montserrat-Bold.ttf) format('truetype');
	font-weight: 700;
	font-style: normal;
}

/* Global ------------------------------ */

body {
	font-family: Montserrat, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

h1,
h2,
h3 {
	font-weight: 700;
}

h1 {
	font-size: 36px;
	line-height: 1.25;
	text-align: left;
}

h2 {
	margin-bottom: 55px;
	font-size: 28px;
	text-align: center;
}

h3 {
	margin-bottom: 10px;
}

a {
	text-decoration: none;
	transition: color 0.25s;
}

.button,
.button-transparent {
	display: inline-block;
	margin: 0;
	padding: 15.5px 30px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	border: none;
	border-radius: 2px;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
	transition: color 0.25s, background-color 0.25s, box-shadow 0.25s;
	cursor: pointer;
}

.button-transparent {
	padding: 13.5px 30px;
}

.button:hover {
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.button:active {
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.button-transparent {
	border-width: 2px;
	border-style: solid;
	background-color: transparent;
	-webkit-filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.15));
	        filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.15));
	box-shadow: none;
}

/* -------------------------------------------------------------------------------- */
/*	Site Header
/* -------------------------------------------------------------------------------- */


header {
	margin-bottom: 110px;
	padding-top: 25px;
}

header .container,
header .menu-wrap,
header .menu-wrap .menu {
	display: flex;
	align-items: center;
}


header .container,
header .menu-wrap {
	justify-content: space-between;
	column-gap: 32px;
}

header .menu-wrap .phone,
header .menu-wrap .button,
header #menu-btn {
	display: none;
}

header .menu-wrap .menu li:not(:last-child) {
	margin-right: 25px;
}

header .callback-wrap .phone {
	margin-right: 30px;
	font-weight: 700;
}


/* -------------------------------------------------------------------------------- */
/*	Main
/* -------------------------------------------------------------------------------- */

.home {
	background-image: url("media/background.svg");
	background-repeat: repeat-y;
	background-position: center;
}


.home .wrap-banner .banner,
.home .wrap-contacts .contacts-border  {
	position: relative;
	width: 960px;
	margin: 0 auto 110px;
	padding: 65px;
	border-width: 10px;
	border-style: solid;
}

.home .wrap-banner .banner .banner-content {
	width: 560px;
}

.home .wrap-banner .banner .banner-content h1,
.home .wrap-banner .banner .banner-content p {
	margin-bottom: 20px;
}

.home .wrap-banner .banner .banner-content .contacts-wrap,
.home .wrap-banner .banner .banner-content .contacts-wrap .soc-wrap,
.home .wrap-banner .banner .banner-content .contacts-wrap .soc-wrap .soc {
	display: flex;
	align-items: center;
}

.home .wrap-banner .banner .banner-content .contacts-wrap {
	justify-content: space-between;
}

.home .wrap-banner .banner .banner-content .contacts-wrap .soc-wrap span {
	font-size: 14px;
	font-weight: 500;
}

.home .wrap-banner .banner .banner-content .contacts-wrap .soc-wrap a {
	height: 25px;
	margin-left: 15px;
}

.home .wrap-banner .img-wrap {
	position: absolute;
	z-index: 1;
	top: -30px;
	right: 35px;
}

.home .img-wrap::before,
.home .img-wrap::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0;
	display: block;
	width: 100%;
	height: 15px;
}

.home .wrap-banner .img-wrap::before,
.home .wrap-contacts .contacts-border .img-wrap::before {
	top: 17px;
}

.home .wrap-banner .img-wrap::after {
	bottom: 30px;
}

.home .wrap-banner .img-wrap img {
	width: 245px;
	height: auto;
}

.home .wrap-advantages {
	margin-bottom: 85px;
}

.home .wrap-advantages .advantage {
	max-width: calc((100% - 55px * 4) / 5);
	margin-right: 55px;
	margin-bottom: 25px;
}

.home .wrap-advantages .advantage:last-child {
	margin-right: 0;
}

.home .wrap-advantages .advantage .title {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.home .wrap-advantages .advantage .title svg {
	flex-shrink: 0;
	height: 12px;
	margin-right: 10px;
}

.home .wrap-advantages .advantage .title h3 {
	margin-bottom: 0;
}

.home .price-list {
	padding-top: 55px;
	padding-bottom: 50px;
}

.home .price-list .card {
	margin-bottom: 25px;
	padding: 25px 15px;
	border-radius: 2px;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.25s, transform 0.33s;
}

.home .price-list .card:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.home .price-list .card .title {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 5px;
}

.home .price-list .card .title svg {
	flex-shrink: 0;
	height: 14px;
	margin-right: 10px;
}

.home .price-list .card .title h3 {
	margin-bottom: 0;
}

.home .price-list .card p {
	margin-bottom: 15px;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
}

.home .price-list .prices li {
	display: flex;
	margin-bottom: 8px;
	font-weight: 500;
}

.home .price-list .prices li:last-child {
	margin-bottom: 0;
}

.home .price-list .prices li .divider {
	flex-grow: 1;
	height: 20px;
	margin: 0 10px;
	border-bottom-width: 1px;
	border-bottom-style: dotted;
}

.home .price-list .price-list-text {
	margin: 0 110px;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
}

.home .price-list .price-list-text span {
	font-weight: 700;
}

.home .price-list .buttons-wrap {
	margin-top: 25px;
	text-align: center;
}

.home .price-list .buttons-wrap .button:first-child {
	margin-right: 25px;
}

.home .wrap-about {
	padding-top: 55px;
	background: url("media/zsk.svg") no-repeat center;
}

.home .wrap-about .about-info {
	margin-bottom: 55px;
}

.home .wrap-about p {
	margin-bottom: 25px;
}

.home .wrap-about ul {
	padding-left: 25px;
}

.home .wrap-about ul li {
	position: relative;
	margin-bottom: 15px;
	padding-left: 31px;
}

.home .wrap-about ul li:last-child {
	margin-bottom: 0;
}

.home .wrap-about ul li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 16px;
	height: 22px;
	background: url("media/marker.svg") no-repeat center;
}

.home .wrap-about .side-icon-box {
	display: flex;
	margin-bottom: 15px;
	align-items: center;
	padding: 5px;
	border-radius: 4px;
}

.home .wrap-about .side-icon-box:last-child {
	margin-bottom: 0;
}

.home .wrap-about .side-icon-box .icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	padding-left: 10px;
	padding-right: 15px;
}

.home .wrap-about .side-icon-box .icon svg {
	height: 45px;
}

.home .wrap-about .side-icon-box .content {
	flex-grow: 1;
	padding: 10px 15px;
	font-weight: 500;
	border-radius: 2px;
}

.home .wrap-about .side-icon-box .content .title {
	font-size: 14px;
}

.home .wrap-about .gallery {
	display: flex;
	justify-content: space-between;
}

.home .wrap-about .gallery .img-box {
	margin-bottom: 25px;
	padding: 10px;
	border-radius: 4px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.home .wrap-about .gallery .img-box img {
	display: block;
	height: 176px;
	border-radius: 2px;
	-o-object-fit: cover;
	   object-fit: cover;
	cursor: pointer;
}

.home .wrap-about .gallery .img-box:nth-child(1) img,
.home .wrap-about .gallery .img-box:nth-child(3) img,
.home .wrap-about .gallery .img-box:nth-child(5) img {
	width: 242px;
}

.home .wrap-about .gallery .img-box:nth-child(2) img,
.home .wrap-about .gallery .img-box:nth-child(4) img {
	width: 127px;
}

.home .wrap-contacts {
	padding-top: 50px;
}

.home .wrap-contacts .contacts-border {
	height: 483px;
	margin-bottom: 75px;
	padding: 0;
}

.home .wrap-contacts .contacts-border .map-wrap {
	position: absolute;
	top: 45px;
	left: -110px;
	width: 450px;
	height: 373px;
	padding: 10px;
	border-radius: 4px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.home .wrap-contacts .contacts-border .map-wrap #map {
	width: 100%;
	height: 100%;
	border-radius: 2px;
}

.home .wrap-contacts .contacts-border .img-wrap {
	position: absolute;
	z-index: 1;
	top: -30px;
	right: 200px;
}

.home .wrap-contacts .contacts-border .img-wrap::after {
	bottom: 16px;
}

.home .wrap-contacts .contacts-border .img-wrap .about-img {
	width: 350px;
	height: auto;
}

.home .wrap-contacts .contacts-border .contacts {
	position: absolute;
	top: 45px;
	right: -110px;
	padding: 55px;
	border-radius: 4px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.home .wrap-contacts .contacts-border .contacts .contact:not(:last-child) {
	margin-bottom: 25px;
}

.home .wrap-contacts .contacts-border .contacts .contact .title {
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
}

.home .wrap-contacts .contacts-border .contacts .contact .text {
	font-weight: 500;
}

footer {
	padding-bottom: 55px;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
}

footer #privacy-policy-link:target {
	text-decoration: underline;
}

/* Modal windows ------------------------------ */

.modals-wrap {
	position: fixed;
	z-index: 200;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: none;
	justify-content: center;
	align-items: center;
	background-color: rgba(241, 242, 243, 0.95);
	cursor: pointer;
}

.modal {
	display: none;
	z-index: 210;
	width: 460px;
	margin-bottom: 0;
	cursor: auto;
}

.modal.main-box {
	position: relative;
	margin-bottom: 0;
	padding: 55px;
	text-align: center;
	border-radius: 4px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.modal.main-box h2 {
	word-wrap: break-word;
	margin-bottom: 25px;
}

.modal.main-box p {
	margin-bottom: 25px;
}

.modal.main-box p a {
	text-decoration: underline;
}

.modal.main-box p a:hover {
	text-decoration: none;
}

.modal.main-box .button {
	width: 100%;
}

#modal-success .top-icon-box .icon {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100px;
	height: 100px;
	margin: 0 auto 25px;
	border-radius: 50%;
}

#modal-success .top-icon-box .icon svg {
	height: 40px;
}

#modal-success p {
	margin-bottom: 0;
}

#modal-privacy-policy {
	width: 1180px;
}

.modal-content article {
	height: 500px;
	margin-bottom: 25px;
	overflow-y: scroll;
}

.modal-content article > * {
	text-align: left;
}

#modal-lightbox {
	width: auto;
	padding: 10px;
}

#modal-lightbox img {
	display: block;
	max-width: 1160px;
	max-height: calc(100vh - 100px);
	border-radius: 2px;
	-o-object-fit: cover;
	   object-fit: cover;
}

/* CF7 ------------------------------ */

.wpcf7 input[type="tel"] {
	width: 100%;
	padding: 8.5px 30px;
	margin-bottom: 25px;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	border-width: 2px;
	border-style: solid;
	border-radius: 2px;
	text-align: center;
}

.wpcf7 p {
	font-size: 14px;
}

/* Medium ------------------------------ */

@media only screen and (max-width: 1279px) {

	/* -------------------------------------------------------------------------------- */
	/*	Site Header
	/* -------------------------------------------------------------------------------- */

	header {
		margin-bottom: 55px;
		padding-top: 45px;
	}

	header .container {
		position: relative;
	}

	header .callback-wrap {
		display: flex;
		align-items: center;
	}

	header .callback-wrap .button {
		display: none;
	}

	header .menu-wrap {
		position: absolute;
		z-index: 100;
		top: calc(100% + 25px);
		right: 0;
		display: block;
		visibility: hidden;
		opacity: 0;
		padding: 25px;
		border-radius: 2px;
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
		transition: visibility 0.25s, opacity 0.25s;
	}

	header.menu-active .menu-wrap {
		visibility: visible;
		opacity: 1;
	}

	header .menu-wrap .menu {
		display: block;
	}

	header .menu-wrap .menu li {
		margin-bottom: 10px;
		text-align: center;
	}

	header .menu-wrap .menu li:not(:last-child) {
		margin-right: 0;
	}

	header .menu-wrap .button {
		display: block;
		margin-top: 15px;
	}

	header #menu-btn {
		position: relative;
		display: block;
		width: 25px;
		height: 30px;
		cursor: pointer;
	}

	header #menu-btn > div {
		position: absolute;
		width: 25px;
		height: 3px;
		border-radius: 1px;
		transition: top 0.25s, bottom 0.25s, transform 0.25s;
	}

	header #menu-btn .part-1 {
		top: 9px;
	}

	header #menu-btn .part-2 {
		bottom: 9px;
	}

	header.menu-active #menu-btn .part-1 {
		top: 13.5px;
		transform: rotate(45deg);
	}

	header.menu-active #menu-btn .part-2 {
		bottom: 13.5px;
		transform: rotate(-45deg);
	}


	/* -------------------------------------------------------------------------------- */
	/*	Main
	/* -------------------------------------------------------------------------------- */


	.home .wrap-banner .banner,
	.home .wrap-banner .banner .banner-content,
	.home .wrap-contacts .contacts-border {
		width: 100%;
	}

	.home .wrap-banner .banner {
		margin-bottom: 55px;
	}

	.home .wrap-banner .banner .banner-content p {
		margin-bottom: 35px;
	}

	.home .wrap-banner .img-wrap {
		display: none;
	}

	.home .wrap-banner .img-wrap::before,
	.home .wrap-contacts .contacts-border .img-wrap::before,
	.home .wrap-contacts .contacts-border .img-wrap::after {
		display: none;
	}

	.home .wrap-banner .img-wrap::after {
		bottom: 173px;
	}

	.home .wrap-advantages {
		margin-bottom: 45px;
	}

	.home .wrap-advantages .row {
		justify-content: center;
	}

	.home .wrap-advantages .advantage {
		max-width: calc((100% - 55px * 2) / 3);
		margin-bottom: 45px;
	}

	.home .wrap-advantages .advantage:nth-child(3) {
		margin-right: 0;
	}

	.home .price-list .row {
		justify-content: center;
	}

	.home .price-list .card:first-child {
		padding-right: 14px;
		padding-left: 14px;
	}

	.home .price-list .card:last-child {
		margin-right: 0;
	}

	.home .wrap-about {
		background-position: center top 25px;
		background-size: 90%;
	}

	.home .price-list .card .prices {
		padding: 0 10px;
	}

	.home .price-list .price-list-text {
		margin: 0 55px;
	}

	.home .wrap-about .about-info .about-article {
		margin-bottom: 55px;
	}
	
	.home .wrap-about .gallery {
		flex-wrap: wrap;
	}

	.home .wrap-about .gallery .img-box:first-child {
		order: 5;
		margin-right: auto;
	}

	.home .wrap-about .gallery .img-box:last-child {
		margin-left: auto;
		margin-right: 55px;
	}

	.home .wrap-contacts .contacts-border {
		height: 425px;
		margin-top: 230px;
		margin-bottom: 230px;
	}

	.home .wrap-contacts .contacts-border .img-wrap {
		display: none;
	}

	.home .wrap-contacts .contacts-border .map-wrap {
		top: -190px;
		left: calc(50% - 225px);
		height: 370px;
	}

	.home .wrap-contacts .contacts-border .contacts {
		top: auto;
		right: calc(50% - 152.5px);
		bottom: -197px;
	}

	/* Modal windows ------------------------------ */

	#modal-privacy-policy {
		width: 688px;
	}

	#modal-lightbox img {
		max-width: 668px;
	}
}

/* Small ------------------------------ */

@media only screen and (max-width: 767px) {

	/* -------------------------------------------------------------------------------- */
	/*	Site Header
	/* -------------------------------------------------------------------------------- */

	header {
		margin-bottom: 40px;
		padding-top: 35px;
	}

	header .callback-wrap .phone {
		display: none;
	}

	header .menu-wrap .phone {
		display: block;
		margin-bottom: 10px;
		text-align: center;
	}

	header .menu-wrap {
		right: 20px;
	}

	
	/* -------------------------------------------------------------------------------- */
	/*	Main
	/* -------------------------------------------------------------------------------- */


	h1,
	h2 {
		margin-bottom: 25px;
	}

	.home .wrap-banner .banner {
		margin-bottom: 200px;
		padding: 55px 25px 290px 25px;
	}

	.home .wrap-banner .banner .banner-content h1,
	.home .wrap-banner .banner .banner-content p {
		text-align: center;
	}

	.home .wrap-banner .banner .banner-content p {
		margin-bottom: 20px;
	}
	
	h1,
	h2 {
		font-size: 24px;
	}

	.home .wrap-banner .banner .banner-content .contacts-wrap,
	.home .wrap-banner .banner .banner-content .contacts-wrap .soc-wrap {
		flex-wrap: wrap;
	}

	.home .wrap-banner .banner .banner-content .contacts-wrap .soc-wrap {
		justify-content: center;
		width: 100%;
		margin-bottom: 25px;
	}

	.home .wrap-banner .banner .banner-content .contacts-wrap .soc-wrap .soc {
		justify-content: center;
	}

	.home .wrap-banner .banner .banner-content .contacts-wrap .button {
		order: 1;
		width: 100%;
	}

	.home .wrap-banner .img-wrap {
		top: calc(100% - 265px);
		right: calc(50% - 122.5px);
		display: block;
	}

	.home .wrap-advantages {
		margin-bottom: 25px;
	}

	.home .wrap-advantages .advantage {
		max-width: 100%;
		margin: 0 25px 25px;
	}

	.home .price-list .card,
	.home .price-list .card:first-child {
		padding: 25px 35px;
	}

	.home .price-list .card .prices {
		padding: 0;
	}

	.home .price-list .price-list-text {
		margin: 0;
	}

	.home .price-list .buttons-wrap > button {
		width: 100%;
	}

	.home .price-list .buttons-wrap .button:first-child {
		margin-right: 0;
		margin-bottom: 15px;
	}

	.home .wrap-about {
		background-position: center top 300px;
	}

	.home .wrap-about .about-info {
		margin-bottom: 45px;
	}

	.home .wrap-about .gallery {
		flex-wrap: nowrap;
		overflow-x: scroll;
		padding: 10px 15px 0 15px;
	}

	.home .wrap-about .gallery .img-box {
		margin-right: 25px !important;
	}

	.home .wrap-contacts {
		padding-top: 30px;
	}

	.home .wrap-contacts .contacts-border {
		height: 970px;
		margin-top: 180px;
		margin-bottom: 210px;
	}

	.home .wrap-contacts .contacts-border .map-wrap {
		top: -165px;
		left: 10px;
		width: calc(100% - 20px);
	}

	.home .wrap-contacts .contacts-border .img-wrap {
		top: 50%;
		left: 10px;
		display: block;
		width: calc(100% - 20px);
		transform: translateY(-50%);
	}

	.home .wrap-contacts .contacts-border .img-wrap .about-img {
		width: 100%;
	}
	
	.home .wrap-contacts .contacts-border .contacts {
		right: calc(50% - 142.5px);
		bottom: -165px;
		padding: 55px 45px;
	}

	/* Modal windows ------------------------------ */

	.modal,
	#modal-privacy-policy,
	#modal-lightbox {
		width: calc(100% - 40px);
	}

	#modal-privacy-policy article {
		height: 300px;
	}

	.modal.main-box {
		padding: 25px;
	}

	#modal-lightbox img {
		max-width: 100%;
	}

}

/* Extra small ------------------------------ */

@media only screen and (max-width: 374px) {

	/* -------------------------------------------------------------------------------- */
	/*	Site Header
	/* -------------------------------------------------------------------------------- */


	header .menu-wrap {
		right: 10px;
	}


	/* -------------------------------------------------------------------------------- */
	/*	Main
	/* -------------------------------------------------------------------------------- */


	.home .wrap-advantages .advantage {
		margin: 0 15px 15px;
	}

	.home .wrap-banner .banner .banner-content .contacts-wrap {
		flex-wrap: wrap;
	}

	.home .wrap-banner .banner .banner-content .contacts-wrap .soc-wrap .soc {
		width: 100%;
		margin-top: 10px;
	}

	.home .wrap-banner .banner .banner-content .contacts-wrap .soc-wrap a:first-child {
		margin-left: 0;
	}

	.home .wrap-contacts .contacts-border .contacts {
		right: calc(50% - 127.5px);
		padding: 35px 30px;
	}

	/* Modal windows ------------------------------ */

	.modal,
	#modal-privacy-policy,
	#modal-lightbox {
		width: calc(100% - 20px);
	}

}
