/* Base — front-end only (scoped to body.yamato-body, not wp-admin). */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

:root {
	--yamato-container-max: 1440px;
	--yamato-gutter: 62px;
}

body.yamato-body {
	--yamato-font-family: 'Zen Maru Gothic', 'Montserrat', sans-serif;
	--yamato-font-body: var(--yamato-font-family);
	--yamato-font-display: var(--yamato-font-family);
	--yamato-font-nav: var(--yamato-font-family);
	--yamato-gutter: 62px;

	margin: 0;
	font-family: var(--yamato-font-body);
	font-size: 18px;
	line-height: 1.78;
	color: #595758;
	background: #fff;
}

body.yamato-body :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--yamato-font-display);
	font-weight: 400;
	line-height: 1.2;
	color: #040a1c;
}

body.yamato-body img {
	max-width: 100%;
	height: auto;
	display: block;
}

body.yamato-body :where(a) {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

body.yamato-body :where(ul, ol) {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.yamato-body :where(button) {
	font: inherit;
	cursor: pointer;
	background: none;
	border: none;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

body.yamato-body ::selection {
	background-color: #040a1c;
	color: #fff;
}

.yamato-container {
	width: 100%;
	max-width: var(--yamato-container-max);
	margin: 0 auto;
	padding-left: var(--yamato-gutter);
	padding-right: var(--yamato-gutter);
}

/* Шапка и подвал на главной — на всю ширину с боковыми отступами 62px (как в исходнике). */
.yamato-container--wide {
	max-width: 100%;
}

.yamato-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.yamato-main {
	flex: 1 0 auto;
}

body.yamato-body.woocommerce .yamato-header,
body.yamato-body.woocommerce .yamato-footer {
	font-family: var(--yamato-font-body);
	font-size: 18px;
	line-height: 1.78;
}

body.yamato-body.woocommerce .yamato-header .wp-block-heading,
body.yamato-body.woocommerce .yamato-footer .wp-block-heading {
	font-family: var(--yamato-font-display);
	font-size: inherit;
}

.yamato-logo {
	display: inline-block;
}

.yamato-logo__image {
	display: block;
	width: auto;
	max-width: 200px;
	height: 70px;
	object-fit: contain;
}

@media (max-width: 1024px) {
	body.yamato-body {
		--yamato-gutter: 24px;
	}
}

@media (max-width: 392px) {
	body.yamato-body {
		--yamato-gutter: 1rem;
	}
}
