/*
Theme Name: Prespa
Theme URI: https://aistnp.ru/
Author: AIST-NP
Description: Лаконичная блочная тема для сайта органа по сертификации. Содержимое главной редактируется в редакторе WordPress.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: prespa
*/

:root {
	--prespa-blue: #087eae;
	--prespa-ink: #151515;
	--prespa-muted: #707070;
	--prespa-mint: #39d9b8;
}

body {
	-webkit-font-smoothing: antialiased;
}

a {
	text-underline-offset: 0.18em;
}

a:focus-visible {
	outline: 3px solid var(--prespa-mint);
	outline-offset: 5px;
}

/* Keep previously saved Site Editor template parts off the homepage too. */
body.home .wp-site-blocks > .wp-block-template-part,
body.front-page .wp-site-blocks > .wp-block-template-part,
body.home .wp-site-blocks > header,
body.home .wp-site-blocks > footer,
body.front-page .wp-site-blocks > header,
body.front-page .wp-site-blocks > footer {
	display: none !important;
}

.prespa-home {
	width: min(calc(100% - 240px), 3200px);
	max-width: 3200px !important;
	min-height: 100svh;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	text-align: left !important;
}

.prespa-columns {
	flex: 1;
	display: grid !important;
	grid-template-columns: minmax(230px, 0.3fr) minmax(0, 1fr);
	column-gap: clamp(72px, 3.8vw, 132px) !important;
}

.prespa-columns > .wp-block-column {
	width: auto !important;
	flex-basis: auto !important;
}

.prespa-sidebar {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

.prespa-brand {
	width: clamp(250px, 16vw, 535px);
	margin-top: 14px;
}

.prespa-brand img {
	display: block;
	width: 100%;
	height: auto;
}

.prespa-menu {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin-top: clamp(400px, 39vh, 690px);
	font-size: clamp(20px, 1.45vw, 34px);
	line-height: 1.45;
	letter-spacing: -0.025em;
}

.prespa-menu .wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.prespa-menu .wp-block-navigation-item__content {
	padding: 0;
	color: #4b4b4b;
	text-decoration: none;
}

.prespa-menu .wp-block-navigation-item__content:hover { color: var(--prespa-blue); }

.prespa-content {
	padding-top: clamp(240px, 23vh, 400px);
	padding-bottom: 80px;
	text-align: left !important;
}

.prespa-content h1.prespa-title {
	margin: 0 0 clamp(52px, 2vw, 72px) !important;
	color: var(--prespa-muted) !important;
	font-size: clamp(32px, 1.7vw, 58px) !important;
	font-weight: 600 !important;
	line-height: 1.2;
	letter-spacing: -0.045em;
	text-align: left !important;
}

.prespa-details {
	display: grid;
	gap: clamp(42px, 1.6vw, 58px);
	font-size: clamp(20px, 1.15vw, 32px) !important;
	font-weight: 400 !important;
	line-height: 1.48;
	letter-spacing: -0.025em;
	text-align: left !important;
}

.prespa-details p {
	margin: 0;
}

.prespa-contacts {
	display: grid;
	gap: 26px;
	margin-top: clamp(36px, 2vw, 58px);
}

.prespa-registry {
	margin-top: clamp(20px, 1.6vw, 48px) !important;
}

.prespa-footer {
	margin-top: auto !important;
	padding: 22px 0 28px;
	font-size: clamp(18px, 1.25vw, 30px);
	font-weight: 700;
	line-height: 1.3;
}

@media (max-width: 760px) {
	.prespa-home {
		width: min(calc(100% - 40px), 560px);
		max-width: 560px !important;
	}

	.prespa-columns {
		display: flex !important;
		flex-direction: column;
	}

	.prespa-brand {
		width: min(72vw, 310px);
		margin-top: 26px;
	}

	.prespa-content {
		padding-top: 72px;
		padding-bottom: 0;
	}

	.prespa-content h1.prespa-title {
		margin-bottom: 36px !important;
		font-size: clamp(29px, 8vw, 42px) !important;
	}

	.prespa-details {
		gap: 28px;
		font-size: 18px;
		line-height: 1.55;
	}

	.prespa-contacts {
		gap: 18px;
		margin-top: 38px;
	}

	.prespa-registry {
		margin-top: 32px !important;
	}

	.prespa-menu {
		order: 2;
		margin: 56px 0 0;
		padding-top: 24px;
		border-top: 1px solid #e7edf0;
		font-size: 19px;
	}

	.prespa-footer {
		padding: 50px 0 24px;
		font-size: 18px;
	}

}
