/*
 * Sibgeocom base styles.
 * Global theme layer: palette, layout container, header/footer, Gutenberg widths.
 * Block-specific styles live in assets/css/lazyblock-<slug>.css.
 */

:root {
	--container: 1224px;
	--gutter: 24px;

	/* База — графит / сталь / синий */
	--ink-900: #0e141f;
	--ink-800: #131b27;
	--steel-700: #1b2a3f;
	--line: rgba(255, 255, 255, .14);
	--text: #eef2f7;
	--text-dim: rgba(232, 238, 246, .72);

	/* Акцент — медь / охра */
	--accent: #c8742f;
	--accent-bright: #e08a3c;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	font-family: 'Inter', system-ui, Arial, sans-serif;
	color: #1a2230;
	background: #f4f6f9;
	-webkit-font-smoothing: antialiased;
}

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

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

/* ── Layout container ───────────────────────────────── */
.container {
	width: min(calc(100% - var(--gutter) * 2), var(--container));
	margin-inline: auto;
}

/* ── Header (global, adaptive) ──────────────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--ink-900);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner {
	display: flex;
	align-items: center;
	height: 72px;
	color: #fff;
}

.brand {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	color: #fff;
	line-height: 1.05;
}

.brand__mark {
	font-weight: 800;
	font-size: 22px;
	letter-spacing: .01em;
}

.brand__mark b {
	color: var(--accent-bright);
}

.brand__tag {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.brand img {
	max-height: 44px;
	width: auto;
}

.site-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.site-nav__menu {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
}

.site-nav__menu a {
	color: var(--text-dim);
}

.site-nav__menu a:hover {
	color: #fff;
}

/* Контакты в шапке */
.header-contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	margin-left: 32px;
	text-align: right;
	line-height: 1.2;
}

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	letter-spacing: .01em;
}

.header-phone svg {
	width: 15px;
	height: 15px;
	color: var(--accent-bright);
	flex: none;
}

.header-phone:hover {
	color: var(--accent-bright);
}

.header-addr {
	font-size: 12px;
	color: var(--text-dim);
	letter-spacing: .01em;
}

/* Бургер */
.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	margin-left: auto;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 6px;
}

.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
	transition: .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
	.nav-toggle {
		display: inline-flex;
	}

	.header-contacts {
		display: none;
	}

	.site-nav {
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		margin-left: 0;
		background: rgba(14, 20, 31, .98);
		border-top: 1px solid rgba(255, 255, 255, .1);
		display: none;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav__menu a {
		display: block;
		padding: 13px var(--gutter);
		color: var(--text);
	}

	.site-nav__menu a:hover {
		background: rgba(255, 255, 255, .05);
	}
}

/* ── Footer (skeleton) ──────────────────────────────── */
.site-footer {
	background: var(--ink-900);
	color: var(--text-dim);
	padding: 40px 0;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gutter);
	flex-wrap: wrap;
}

.footer-nav__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav__menu a:hover {
	color: #fff;
}

/* ── Gutenberg / Lazy Blocks content width ──────────── */
.page-content {
	overflow-x: clip;
}

.page-content > * {
	width: min(calc(100% - var(--gutter) * 2), var(--container));
	margin-inline: auto;
}

.page-content > .alignwide {
	width: min(calc(100% - var(--gutter) * 2), 1440px);
}

.page-content > .alignfull,
.page-content > .section,
.page-content > [class*="lazyblock-"] {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

/* Inner pages: keep page title in container */
.simple-main {
	padding: 56px 0 80px;
}

.simple-main .page-title {
	width: min(calc(100% - var(--gutter) * 2), var(--container));
	margin: 0 auto 24px;
	font-size: clamp(26px, 3vw, 40px);
}
