/**
 * Новая версия страницы месторождения (template-parts/mestorozhdenie.php),
 * по макету mestorozhdenie.html. Заголовки секций, карточки изделий, кейсы
 * и форма — текущие стили сайта.
 */

/* --- Общее --------------------------------------------------------------- */

.vozr-md-eyebrow {
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #cc2040;
}

.vozr-md-btn {
	display: inline-flex;
	align-items: center;
	padding: 15px 28px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	transition: 0.18s;
}

.vozr-md-btn--red {
	background: #cc2040;
	color: #fff;
}

.vozr-md-btn--red:hover {
	background: #b01b36;
	color: #fff;
}

.vozr-md-btn--white {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.1);
	color: #1b1c20;
}

.vozr-md-btn--white:hover {
	border-color: #cc2040;
	color: #cc2040;
}

.vozr-md-fins .head_section p,
.vozr-md-prods .head_section p {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

/* --- Первый экран ---------------------------------------------------------- */

.vozr-md-hero {
	padding: 24px 0 56px;
}

.vozr-md-hero__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 520px;
	gap: 56px;
	align-items: center;
}

.vozr-md-hero h1 {
	margin: 12px 0 16px;
	font-weight: 700;
	font-size: 54px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #1b1c20;
}

.vozr-md-hero__lead {
	max-width: 600px;
	font-size: 17px;
	line-height: 1.6;
	color: #3a3d45;
}

.vozr-md-specs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 28px 0 30px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.vozr-md-specs div {
	padding: 14px 16px 14px 0;
}

.vozr-md-specs div + div {
	padding-left: 16px;
	border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.vozr-md-specs small {
	display: block;
	font-size: 12px;
	line-height: 1.6;
	color: #6b6e76;
}

.vozr-md-specs b {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.5;
	color: #1b1c20;
}

.vozr-md-hero__acts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.vozr-md-hero__vis {
	position: relative;
	height: 440px;
}

.vozr-md-hero__q {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 70px;
	overflow: hidden;
	border-radius: 10px;
	background: #ccc;
}

.vozr-md-hero__q img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vozr-md-hero__sw {
	position: absolute;
	left: 0;
	bottom: 36px;
	width: 180px;
	height: 180px;
	overflow: hidden;
	border: 8px solid #fff;
	border-radius: 50%;
	background: #9c9a95;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.vozr-md-hero__sw img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vozr-md-hero__cap {
	position: absolute;
	left: 196px;
	bottom: 46px;
	padding: 8px 12px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	font-size: 12.5px;
	line-height: 1.5;
	color: #1b1c20;
}

/* --- Разделы страницы ------------------------------------------------------ */

.vozr-md-anchors {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.vozr-md-anchors .container {
	display: flex;
	gap: 30px;
	overflow-x: auto;
}

.vozr-md-anchors a {
	padding: 16px 0;
	border-bottom: 2px solid transparent;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.4;
	white-space: nowrap;
	color: #3a3d45;
}

.vozr-md-anchors a:hover {
	border-color: #cc2040;
	color: #cc2040;
}

#about,
#tech,
#fins,
#prods,
#projects,
#others,
#cta {
	scroll-margin-top: 60px;
}

/* --- О камне и характеристики --------------------------------------------- */

.vozr-md-about {
	padding: 80px 0;
}

.vozr-md-about__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.vozr-md-about h2 {
	margin: 12px 0 20px;
	font-weight: 700;
	font-size: 36px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #1b1c20;
}

.vozr-md-about p {
	margin-bottom: 14px;
	font-size: 16px;
	line-height: 1.6;
	color: #3a3d45;
}

.vozr-md-tech {
	margin-top: 36px;
}

.vozr-md-tech h3 {
	margin-bottom: 8px;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.15;
	color: #1b1c20;
}

.vozr-md-tt {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
	line-height: 1.5;
	color: #1b1c20;
}

.vozr-md-tt td {
	padding: 14px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.vozr-md-tt td:last-child {
	padding-left: 16px;
	font-weight: 600;
	text-align: right;
}

.vozr-md-docs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.vozr-md-gal {
	position: sticky;
	top: 76px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.vozr-md-gal figure {
	position: relative;
	height: 210px;
	margin: 0;
	overflow: hidden;
	border-radius: 10px;
	background: #e7e5e0;
}

.vozr-md-gal figure:first-child {
	grid-column: span 2;
	height: 260px;
}

.vozr-md-gal img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vozr-md-gal figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 12px 14px;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
	font-size: 12.5px;
	line-height: 1.4;
	color: #fff;
}

/* --- Виды обработки -------------------------------------------------------- */

.vozr-md-fins {
	padding: 80px 0;
	background: #faf9f7;
}

.vozr-md-fins__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

.vozr-md-fin {
	flex: 0 0 calc((100% - 64px) / 5);
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
}

.vozr-md-fin__t {
	aspect-ratio: 1 / 1;
	background: #e7e5e0;
}

.vozr-md-fin__t img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vozr-md-fin__b {
	padding: 14px 16px;
}

.vozr-md-fin__b b {
	display: block;
	margin-bottom: 4px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
	color: #1b1c20;
}

.vozr-md-fin__b p {
	font-size: 13px;
	line-height: 1.45;
	color: #6b6e76;
}

.vozr-md-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	margin-top: 28px;
	padding: 24px 28px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
}

.vozr-md-cta > div {
	flex: 1;
	min-width: 260px;
}

.vozr-md-cta b {
	display: block;
	margin-bottom: 4px;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	color: #1b1c20;
}

.vozr-md-cta span {
	font-size: 14px;
	line-height: 1.5;
	color: #6b6e76;
}

/* --- Изделия, объекты ------------------------------------------------------ */

.vozr-md-prods {
	padding: 80px 0;
}

/* Кнопка текущего блока — шириной по тексту: подпись длиннее «Смотреть весь каталог». */
.vozr-md-prods .more a {
	width: auto;
	padding: 0 28px;
	white-space: nowrap;
}

@media (max-width: 575px) {
	.vozr-md-prods .more a {
		white-space: normal;
		text-align: center;
	}
}

.vozr-md-projects {
	padding-bottom: 80px;
}

.vozr-md-projects .head_section p a {
	color: #cc2040;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- Другие месторождения -------------------------------------------------- */

.vozr-md-others {
	padding: 0 0 80px;
}

.vozr-md-others__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.vozr-md-oth {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	color: #1b1c20;
	transition: 0.15s;
}

.vozr-md-oth:hover {
	border-color: #cc2040;
	color: #1b1c20;
}

.vozr-md-oth__sw {
	width: 54px;
	height: 54px;
	flex: none;
	overflow: hidden;
	border-radius: 50%;
	background: #9c9a95;
}

.vozr-md-oth__sw img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vozr-md-oth b {
	display: block;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
}

.vozr-md-oth small {
	display: block;
	font-size: 12.5px;
	line-height: 1.4;
	color: #6b6e76;
}

/* --- Адаптив: контейнер сайта уже макетного до 1310px ----------------------- */

@media (max-width: 1309px) {
	.vozr-md-hero__row {
		grid-template-columns: minmax(0, 1fr) 420px;
		gap: 40px;
	}

	.vozr-md-hero__vis {
		height: 380px;
	}

	.vozr-md-hero__sw {
		width: 150px;
		height: 150px;
	}

	.vozr-md-hero__cap {
		left: 166px;
	}

	.vozr-md-fin {
		flex-basis: calc((100% - 32px) / 3);
	}

	.vozr-md-others__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.vozr-md-hero__row,
	.vozr-md-about__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.vozr-md-hero__vis {
		height: 320px;
	}

	.vozr-md-gal {
		position: static;
	}
}

@media (max-width: 767px) {
	.vozr-md-hero h1 {
		font-size: 40px;
	}

	.vozr-md-specs {
		grid-template-columns: minmax(0, 1fr);
	}

	.vozr-md-specs div + div {
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid rgba(0, 0, 0, 0.1);
	}

	.vozr-md-fin {
		flex-basis: calc((100% - 16px) / 2);
	}

	.vozr-md-others__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vozr-md-about,
	.vozr-md-fins,
	.vozr-md-prods {
		padding: 60px 0;
	}

	.vozr-md-projects,
	.vozr-md-others {
		padding-bottom: 60px;
	}
}

@media (max-width: 575px) {
	.vozr-md-hero h1 {
		font-size: 34px;
	}

	.vozr-md-hero__vis {
		height: 260px;
	}

	.vozr-md-hero__q {
		left: 40px;
	}

	.vozr-md-hero__sw {
		width: 110px;
		height: 110px;
		bottom: 20px;
		border-width: 6px;
	}

	.vozr-md-hero__cap {
		left: 120px;
		bottom: 28px;
	}

	.vozr-md-about h2 {
		font-size: 28px;
	}

	.vozr-md-fin__b {
		padding: 12px;
	}

	.vozr-md-fin__b b {
		font-size: 13px;
		overflow-wrap: anywhere;
		hyphens: auto;
	}

	.vozr-md-gal figure,
	.vozr-md-gal figure:first-child {
		height: 200px;
	}

	.vozr-md-others__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
