/* Шапка, подвал и каркас страниц «О проекте», «Новости», «Контакты» и правовых. */

.iam-site--page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: #fff;
	color: #1d1d1d;
}

.iam-skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: 8px;
	background: #fff;
	color: #1d1d1d;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.iam-skip:focus { left: 8px; }

/* ---------- Шапка ---------- */

.iam-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 72px;
	padding: 0 32px;
	background: #fff;
	box-shadow: 0 3px 15px rgba(0, 0, 0, .06);
}
.iam-site-header__brand {
	min-height: 60px;
	display: flex;
	align-items: center;
	gap: 12px;
	color: #222;
	white-space: nowrap;
}
.iam-site-header__brand:hover { color: #222; }
.iam-site-header__logo { height: 55px; width: auto; display: block; }
.iam-site-header__divider { color: #000; }
.iam-site-header__subtitle { font-size: 18px; font-weight: 600; color: #222; }

.iam-site-header__nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 30px;
	flex: 1;
}
.iam-site-header__link {
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
	color: #222;
	font-size: 16px;
}
.iam-site-header__link:hover { color: #c1121f; }
.iam-site-header__link.is-active {
	color: green;
	font-weight: 600;
	border-bottom-color: green;
}
.iam-site-header__cta {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 22px;
	border-radius: 50px;
	background: #c1121f;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
}
.iam-site-header__cta:hover { background: #8f0e17; color: #fff; }

.iam-site-header__burger {
	display: none;
	margin-left: auto;
	width: 44px;
	min-height: 44px;
	padding: 10px;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none !important;
	border-radius: 8px;
}
.iam-site-header__burger span {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: #222;
}

@media (max-width: 860px) {
	.iam-site-header { flex-wrap: wrap; gap: 0 12px; min-height: 60px; padding: 0 16px; }
	.iam-site-header__logo { height: 42px; }
	.iam-site-header__subtitle { font-size: 15px; }
	.iam-site-header__burger { display: flex; }
	.iam-site-header__nav {
		display: none;
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 4px 0 14px;
	}
	.iam-site-header.is-open .iam-site-header__nav { display: flex; }
	.iam-site-header__link { padding: 12px 4px; border-bottom: 1px solid #eee; }
	.iam-site-header__link.is-active { border-bottom-color: #eee; }
	.iam-site-header__cta { justify-content: center; margin-top: 12px; }
}
@media (max-width: 340px) {
	.iam-site-header__divider, .iam-site-header__subtitle { display: none; }
}

/* ---------- Содержимое ---------- */

.iam-site-main {
	flex: 1;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	padding: 32px 20px 56px;
}
.iam-site-title {
	margin: 0 0 18px;
	font-size: 32px;
	line-height: 1.25;
	font-weight: 700;
	color: #1d1d1d;
}
@media (max-width: 600px) {
	.iam-site-main { padding: 20px 16px 40px; }
	.iam-site-title { font-size: 26px; }
}
.iam-page img { border-radius: 8px; }
.iam-page ul, .iam-page ol { padding-left: 22px; }

/* ---------- Подвал ---------- */

.iam-site-footer {
	background: #1d1d1d;
	color: #d6d6d6;
	font-size: 14px;
}
.iam-site-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 24px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 20px 16px;
}
.iam-site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.iam-site-footer__col p { margin: 0; }
.iam-site-footer__org { color: #fff; font-weight: 600; }
.iam-site-footer a { color: #d6d6d6; }
.iam-site-footer a:hover { color: #fff; text-decoration: underline; }
.iam-site-footer__link {
	all: unset;
	cursor: pointer;
	color: #d6d6d6;
}
.iam-site-footer__link:hover { color: #fff; text-decoration: underline; }
.iam-site-footer__link:focus-visible, .iam-site-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.iam-site-footer__copy {
	max-width: 1100px;
	margin: 0 auto;
	padding: 12px 20px 24px;
	border-top: 1px solid #333;
	color: #9a9a9a;
	font-size: 13px;
}
@media (max-width: 700px) {
	.iam-site-footer__inner { grid-template-columns: 1fr; }
}

/* Страница карты: те же отступы по краям, что давала тема на старом сайте. */
.iam-site--map { background: #fff; }
.iam-site--map .iam-app { margin: 0 15px; }
@media (max-width: 576px) {
	.iam-site--map .iam-app { margin: 0 -10px; max-width: none; }
}
