* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	color: #fff;
	background: #111;
}

a {
	color: inherit;
	text-decoration: none;
}

header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 80px;
	padding: 0 4vw;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
}

.logo {
	display: block;
	width: 120px;
	height: 44px;
	background-image: url('../img/svg/geomine-logo-white.svg');
	background-size: 100% auto;
}

nav ul {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

nav a {
	font-size: 14px;
	font-weight: 600;
}

nav a.active {
	color: #ebe4a4;
}

main {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
}

.main.slider,
.about.slider {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	min-height: 100vh;
	overflow: hidden;
	background: #111;
}

.main.slider:before,
.about.slider:before {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 2;
	content: "";
	display: block;
	width: 100%;
	height: 100vh;
	background: linear-gradient(135deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
}

.main.slider::after,
.about.slider::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 5;
	background: rgba(0, 0, 0, .24);
	pointer-events: none;
}

.mainSlide,
.aboutSlide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 100vh;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.01);
	transition: opacity 1.8s ease, visibility 1.8s ease, transform 7s ease;
	will-change: opacity, transform;
}

.mainSlide.active,
.aboutSlide.active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.main.slider::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 5;
	background: rgba(0, 0, 0, .24);
	pointer-events: none;
}

.wrapper {
	position: relative;
	z-index: 10;
	min-height: 100vh;
}

div#certificates.wrapper {
	overflow-y: scroll;
	height: fit-content;
	padding-bottom: 200px;
	margin-bottom: 200px;
}

.promo.text {
	position: relative;
	top: 200px;
	left: 4%;
	max-width: 950px;
}

h1.animated.main {
	margin: 0;
	font-size: 48px;
	font-weight: 700;
	line-height: .98;
	letter-spacing: -.04em;
}

h1 .row {
	display: block;
}

h1 .row.two,
h1 .row.three {
	margin-top: 12px;
	font-size: .54em;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.seo.text {
	position: relative;
	top: 200px;
	left: 4%;
	max-width: 760px;
	margin-top: 45px;
}

.seo.text .content p {
	margin: 0 0 15px;
	font-size: 15px;
	line-height: 1.55;
}

.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
	vertical-align: top;
}

.buttons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	transition: .25s ease;
	vertical-align: top;
}

.buttons a span.hidden {
	margin-left: 5px;
}

.buttons a:hover {
	background: #fff;
	color: #111;
}

.buttons .cta {
	background: #fff;
	color: #111;
}

.buttons .cta:hover {
	background: transparent;
	color: #fff;
}

footer {
	position: fixed;
	max-width: 400px;
	left: calc(50% - 200px);
	bottom: 10px;
	z-index: 100;
	text-align: center;
}

footer * {
	display: inline-block;
	font-size: 12px;
	font-style: normal;
	color: #cdcdcd;
}

@media (max-width: 900px) {
	header {
		min-height: 68px;
		padding: 0 5vw;
	}

	nav {
		display: none;
	}

	.logo {
		width: 100px;
		height: 38px;
		background-image: url('../img/svg/geomine-logo-white.svg');
		background-size: auto 100%;
		background-repeat: no-repeat;
		background-position: 0 0;
	}

	.wrapper {
		width: calc(100% - 10px);
		padding: 80px 0 60px 0;
	}

	h1.animated.main {
		font-size: clamp(38px, 10vw, 64px);
	}

	.main.slider::after {
		background: rgba(0, 0, 0, .45);
	}

	main .promo.text {
		position: relative;
		top: 20px;
		left: 20px;
		max-width: calc(100% - 40px);
	}

	main .seo.text {
		position: relative;
		top: 0;
		left: 20px;
		max-width: calc(100% - 40px);
		margin-top: 45px;
	}

	body footer {
		position: fixed;
		max-width: 140px;
		left: calc(50% - 51px);
		bottom: 10px;
		z-index: 100;
		text-align: center;
	}
}

@media (max-width: 600px) {
	main,
	.wrapper {
		min-height: 100svh;
	}

	.wrapper {
		justify-content: flex-end;
		padding-bottom: 50px;
	}

	h1.animated.certificates {
		width: calc(100% - 30px);
		margin: 0;
		font-size: 32px;
		font-weight: 700;
		line-height: .98;
		letter-spacing: -.04em;
	}

	h1.animated.main {
		font-size: 32px;
		line-height: 1;
	}

	h1 .row.two,
	h1 .row.three {
		font-size: .52em;
	}

	.seo.text {
		margin-top: 28px;
	}

	.buttons {
		display: block;
	}

	.buttons a {
		display: inline-flex;
		width: 100%;
		max-width: 160px;
		padding: 0 10px;
	}

	.buttons a:first-child {
		margin-right: 15px;
	}

	.buttons a.more span.hidden {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mainSlide {
		transition: none;
	}
}

.certificates.bg {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	min-height: 100vh;
	background-image: url('../img/slider/about/about-slide-3.webp');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.certificates.bg:before {
	position: absolute;
	inset: 0;
	z-index: 2;
	content: "";
	display: block;
	background: linear-gradient(135deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .18) 100%);
}

h1.animated.certificates {
	margin: 0;
	font-size: clamp(42px, 5.5vw, 88px);
	font-weight: 700;
	line-height: .98;
	letter-spacing: -.04em;
}

h1.animated.certificates .row {
	display: block;
}

h1.animated.certificates .row.two {
	margin-top: 12px;
	font-size: .54em;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.certificatesText {
	max-width: 950px;
}

.coreCertificates {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 28px;
	margin-top: 25px;
}

.coreCertificateItem a {
	display: block;
}

.coreCertificateItem img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 4px;
}

.coreCertificateItem strong,
.coreCertificateItem span {
	display: block;
	margin-top: 7px;
}

.coreCertificateItem strong {
	font-size: 14px;
	line-height: 1.35;
}

.coreCertificateItem span {
	font-size: 13px;
	color: #ddd;
}

.protocolPreview {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

@media (max-width: 700px) {
	.coreCertificates {
		grid-template-columns: 1fr;
		max-width: 360px;
	}

	.protocolPreview {
		grid-template-columns: 1fr 1fr;
	}
}

a.telegramHelper {
	position: fixed;
	right: 30px;
	bottom: 60px;
	z-index: 10;
	width: 48px;
	max-width: 48px;
	height: 48px;
	padding: 0;
	background-color: #089ce0;
	border-radius: 100px;
	border: 1px solid #1b98d5;
	opacity: 1;
	transform: scale(1);
	animation: telegramHelperPulse 4s ease-in-out 10s infinite;
	will-change: transform, box-shadow;
}

a.telegramHelper i {
	display: block;
	width: 24px;
	height: 24px;
	margin: 12px 11px;
	border: none;
	background-image: url('https://metalval.ru/img/svg/telegram-sprite.svg');
	background-position: 0 -25px;
	background-size: 24px auto;
}

@keyframes telegramHelperPulse {
	0%,
	15%,
	30%,
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(8, 156, 224, 0);
	}

	7% {
		transform: scale(1.07);
		box-shadow: 0 0 0 7px rgba(8, 156, 224, 0.16);
	}

	22% {
		transform: scale(1.04);
		box-shadow: 0 0 0 4px rgba(8, 156, 224, 0.1);
	}
}

a.telegramHelper:hover {
	animation-play-state: paused;
	transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
	a.telegramHelper {
		animation: none;
	}
}

/* ----------------------------------------------------------
   Фотогалерея
---------------------------------------------------------- */

body.galleryPage {
	color: #fff;
	background: #111;
}

body.galleryPage main {
	position: relative;
	min-height: 100vh;
	overflow-x: hidden;
	overflow-y: visible;
	isolation: isolate;
	background: #111;
}

body.galleryPage main::before {
	position: absolute;
	inset: -20px;
	z-index: 0;
	content: "";
	display: block;
	background-image: url('../img/gallery/kernovye-yashchiki-tundra-4-hq-nq-na-territorii-kariera.webp');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	filter: blur(6px);
	opacity: .28;
	transform: scale(1.04);
	pointer-events: none;
}

body.galleryPage main::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
	display: block;
	background:
		linear-gradient(135deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .42) 60%, rgba(0, 0, 0, .72) 100%),
		linear-gradient(to bottom, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .6) 100%);
	pointer-events: none;
}

.kernGallery {
	position: relative;
	z-index: 10;
	min-height: 100vh;
	padding: 130px 0 110px;
	color: #fff;
}

.kernGallery * {
	box-sizing: border-box;
}

.kernGallery__wrapper {
	width: 92%;
	margin: 0 auto;
}

.kernGallery__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 26px;
}

.kernGallery__eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #ebe4a4;
}

.kernGallery h1 {
	max-width: 950px;
	margin: 0;
	font-size: clamp(38px, 4vw, 58px);
	font-weight: 700;
	line-height: .98;
	letter-spacing: -.04em;
	text-transform: none;
	color: #fff;
}

.kernGallery__controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.kernGallery__counter {
	min-width: 68px;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: center;
	color: rgba(255, 255, 255, .72);
}

.kernGallery__button {
	display: grid;
	width: 46px;
	height: 46px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 4px;
	background: rgba(0, 0, 0, .16);
	color: #fff;
	backdrop-filter: blur(6px);
	cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, opacity .25s ease;
}

.kernGallery__button:hover:not(:disabled) {
	border-color: #ebe4a4;
	background: #ebe4a4;
	color: #111;
	transform: translateY(-2px);
}

.kernGallery__button:focus-visible,
.kernGallery__viewport:focus-visible {
	outline: 2px solid #ebe4a4;
	outline-offset: 4px;
}

.kernGallery__button:disabled {
	opacity: .25;
	cursor: default;
}

.kernGallery__button svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.kernGallery__viewport {
	width: calc(100% + 4vw);
	overflow-x: auto;
	overflow-y: hidden;
	padding: 18px 6px 32px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: rgba(235, 228, 164, .7) rgba(255, 255, 255, .08);
	overscroll-behavior-inline: contain;
	cursor: grab;
	touch-action: pan-x pan-y;
}

.kernGallery__viewport::-webkit-scrollbar {
	height: 5px;
}

.kernGallery__viewport::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, .08);
}

.kernGallery__viewport::-webkit-scrollbar-thumb {
	border-radius: 20px;
	background: rgba(235, 228, 164, .7);
}

.kernGallery__viewport.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
	user-select: none;
}

.kernGallery__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(310px, 28vw, 390px);
	gap: clamp(18px, 2vw, 28px);
	width: max-content;
	padding-right: max(24px, calc(96vw - clamp(310px, 28vw, 390px) - 12px));
}

.kernGallery__card {
	display: flex;
	min-width: 0;
	padding: 10px 10px 24px;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	background: #f5f2e9;
	color: #171717;
	box-shadow: 0 18px 42px rgba(0, 0, 0, .4), 0 3px 10px rgba(0, 0, 0, .28);
	transform: rotate(-.35deg);
	transform-origin: 50% 65%;
	transition: box-shadow .3s ease, transform .3s ease;
}

.kernGallery__card:nth-child(even) {
	transform: rotate(.35deg);
}

.kernGallery__card:nth-child(3n) {
	transform: rotate(-.15deg);
}

.kernGallery__card:hover {
	box-shadow: 0 24px 55px rgba(0, 0, 0, .52), 0 5px 14px rgba(0, 0, 0, .3);
	transform: translateY(-5px) rotate(0deg);
}

.kernGallery__card figure {
	display: flex;
	flex: 1;
	flex-direction: column;
	margin: 0;
}

.kernGallery__image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
	background: #252525;
}

.kernGallery__image::after {
	position: absolute;
	inset: 0;
	content: "";
	display: block;
	border: 1px solid rgba(0, 0, 0, .12);
	pointer-events: none;
}

.kernGallery__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s ease;
}

.kernGallery__card:hover .kernGallery__image img {
	transform: scale(1.025);
}

.kernGallery figcaption {
	padding: 19px 9px 0;
}

.kernGallery__card h2 {
	margin: 0 0 9px;
	font-size: clamp(18px, 1.55vw, 22px);
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -.025em;
	text-transform: none;
	color: #171717;
}

.kernGallery figcaption p {
	margin: 0;
	font-size: 14px;
	line-height: 1.52;
	color: #4a4a46;
}

.kernGallery__hint {
	margin: 12px 0 0;
	font-size: 12px;
	color: rgba(255, 255, 255, .62);
}

@media (max-width: 900px) {
	body.galleryPage main {
		min-height: 100svh;
	}

	.kernGallery {
		min-height: 100svh;
		padding: 100px 0 110px;
	}

	.kernGallery__wrapper {
		width: 90%;
	}

	.kernGallery__viewport {
		width: calc(100% + 5vw);
	}

	.kernGallery__track {
		grid-auto-columns: min(72vw, 380px);
		gap: 18px;
		padding-right: max(24px, calc(95vw - min(72vw, 380px) - 12px));
	}
}

@media (max-width: 600px) {
	body.galleryPage main::before {
		background-position: 60% center;
		opacity: .22;
	}

	.kernGallery {
		padding-top: 92px;
	}

	.kernGallery__header {
		display: block;
		margin-bottom: 16px;
	}

	.kernGallery h1 {
		font-size: 32px;
		line-height: 1;
	}

	.kernGallery__controls {
		justify-content: flex-end;
		margin-top: 18px;
	}

	.kernGallery__counter {
		margin-right: auto;
		text-align: left;
	}

	.kernGallery__button {
		width: 42px;
		height: 42px;
	}

	.kernGallery__track {
		grid-auto-columns: calc(100vw - 54px);
		padding-right: 40px;
	}

	.kernGallery__card,
	.kernGallery__card:nth-child(even),
	.kernGallery__card:nth-child(3n) {
		transform: none;
	}

	.kernGallery figcaption {
		padding: 17px 6px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.galleryPage main::before {
		filter: none;
	}

	.kernGallery__viewport {
		scroll-behavior: auto;
	}

	.kernGallery__button,
	.kernGallery__card,
	.kernGallery__image img {
		transition: none;
	}
}