@import url("https://meyerweb.com/eric/tools/css/reset/reset.css");

/****************************************************************
 *
 *  GLOBAL — общая обвязка (хедер/футер/контентные страницы)
 *  Цветовая гамма сайта: тёмно-синий #1446A0, белый текст,
 *  акцент — светло-голубой #7E9ACB.
 *
 ****************************************************************/

:root {
	/* Одна ширина на весь сайт: шапка, подразделы, подвал и содержимое
	   страниц выстраиваются по общей вертикали. Раньше их было три —
	   1200 у шапки, 1120 у статистики, 880 у страниц, — и левый край
	   содержимого не совпадал с логотипом ни на одной странице. */
	--container: 112rem;

	/* Внешняя подложка страницы: светлая, с полями. Внутри неё лежит
	   белый лист с содержимым — два уровня глубины на всех разделах. */
	--shell: #e9eef8;

	--mpp-blue: #1446A0;
	--mpp-blue-dark: #0F3578;
	--mpp-accent: #7E9ACB;
	--mpp-line: #E5E5EA;
	--mpp-muted: #8E8E93;
}

html {
	font-size: 62.5%;
}

body {
	font-family: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Noto Sans", "Ubuntu", "Droid Sans", "Helvetica Neue", sans-serif;

	font-size: 1.6rem;
	font-weight: 400;
	font-style: normal;
	line-height: 1.4;

	-webkit-font-feature-settings: "kern";
	font-feature-settings: "kern";
	-webkit-font-kerning: normal;
	font-kerning: normal;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;

	text-rendering: optimizeLegibility;

	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;

	color: white;
	background: var(--mpp-blue);
	min-height: 100vh;
	overflow-x: hidden;
}

/****************************************************************
 *
 *  BACKGROUND — фирменный анимированный фон-канвас (как на
 *  главной и на странице продукта), общий для новых страниц.
 *
 ****************************************************************/

.bg-canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background: var(--mpp-blue);
}

/****************************************************************
 *
 *  HEADER — сквозной хедер на всех страницах
 *
 ****************************************************************/

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(15, 53, 120, 0.92);
	-webkit-backdrop-filter: saturate(160%) blur(8px);
	backdrop-filter: saturate(160%) blur(8px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 2.4rem;
	height: 6.4rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-header__logo {
	display: inline-flex;
	align-items: center;
	color: white;
	text-decoration: none;
	white-space: nowrap;
}

.site-header__logo-img {
	display: block;
	height: 2.6rem;
	width: auto;
	color: inherit;
}

.site-header__logo:hover {
	color: var(--mpp-accent);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 2.8rem;
}

.site-nav a {
	color: white;
	text-decoration: none;
	font-size: 1.6rem;
	font-weight: 400;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
	color: var(--mpp-accent);
}

/* гамбургер — скрыт на десктопе */
.nav-toggle {
	display: none;
}

.nav-burger {
	display: none;
	width: 4rem;
	height: 4rem;
	cursor: pointer;
	border: 0;
	background: transparent;
	flex-direction: column;
	justify-content: center;
	gap: 0.5rem;
}

.nav-burger span {
	display: block;
	height: 0.2rem;
	width: 2.4rem;
	background: white;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/****************************************************************
 *
 *  PAGE — контентные страницы (белая карточка на синем фоне)
 *
 ****************************************************************/

.page {
	max-width: var(--container);
	/* Отступ сверху — внешним полем, а не внутренним: иначе светлая
	   подложка уходила бы под фиксированную шапку. */
	margin: 10.4rem auto 4.8rem;
	padding: 2.2rem;
	background: var(--shell);
	border-radius: 2.8rem;
}

.doc {
	background: white;
	color: #1c1c1e;
	border-radius: 2.4rem;
	padding: 4.8rem;
	box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.25);
}

.doc h1 {
	font-size: 3.2rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--mpp-blue);
	margin-bottom: 0.8rem;
}

.doc .doc__lead {
	font-size: 1.8rem;
	color: #3a3a3c;
	margin-bottom: 2.4rem;
}

.doc h2 {
	font-size: 2.2rem;
	font-weight: 600;
	color: var(--mpp-blue);
	margin: 3.6rem 0 1.2rem;
}

.doc h3 {
	font-size: 1.8rem;
	font-weight: 600;
	color: #1c1c1e;
	margin: 2.4rem 0 0.8rem;
}

.doc p {
	margin-bottom: 1.4rem;
	line-height: 1.5;
}

.doc ul,
.doc ol {
	list-style: disc;
	margin: 0 0 1.4rem 2.2rem;
}

.doc ol {
	list-style: decimal;
}

.doc li {
	margin-bottom: 0.8rem;
	line-height: 1.5;
}

.doc a {
	color: var(--mpp-blue);
	text-decoration: none;
	word-break: break-word;
}

.doc a:hover {
	text-decoration: underline;
}

.doc__updated {
	display: inline-block;
	font-size: 1.8rem;
	font-weight: 600;
	color: var(--mpp-blue);
	background: #eef2fb;
	padding: 0.8rem 1.6rem;
	border-radius: 0.8rem;
	margin-bottom: 2.4rem;
}

.doc__sep {
	border: 0;
	border-top: 1px solid var(--mpp-line);
	margin: 3.2rem 0;
}

/* Таблица реквизитов */
.reqs {
	margin: 0 0 1.4rem;
}

.reqs div {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.2rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--mpp-line);
}

.reqs div:last-child {
	border-bottom: 0;
}

.reqs dt {
	flex: 0 0 22rem;
	color: var(--mpp-muted);
}

.reqs dd {
	flex: 1 1 24rem;
	font-weight: 500;
}

/* Карточки-кнопки магазинов приложений */
.stores {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
	align-items: center;
	list-style: none !important;
	margin-left: 0 !important;
}

.stores li {
	margin-bottom: 0;
}

.stores img {
	height: 4.8rem;
	display: block;
}

/* Блоки партнёров / контактов */
.info-block {
	background: #f5f7fb;
	border-radius: 1.2rem;
	padding: 2rem 2.4rem;
	margin-bottom: 1.6rem;
}

.info-block h3 {
	margin-top: 0;
}

/****************************************************************
 *
 *  FOOTER — сквозной футер на всех страницах
 *
 ****************************************************************/

.site-footer {
	background: var(--mpp-blue-dark);
	color: rgba(255, 255, 255, 0.82);
	position: relative;
	z-index: 500;
}

.site-footer__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 4.8rem 2.4rem 2.4rem;
	display: grid;
	grid-template-columns: 1.8fr 1fr;
	gap: 3.2rem 6rem;
}

.site-footer h2,
.site-footer h4,
.site-footer .site-footer__h {
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: white;
	margin-bottom: 1.4rem;
}

.site-footer p {
	font-size: 1.4rem;
	line-height: 1.6;
	margin-bottom: 0.6rem;
}

.site-footer strong {
	color: white;
	font-weight: 600;
}

.site-footer ul {
	list-style: none;
	margin: 0;
}

.site-footer li {
	margin-bottom: 0.9rem;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	font-size: 1.4rem;
	transition: color 0.15s ease;
}

.site-footer a:hover {
	color: white;
	text-decoration: underline;
}

.site-footer__brand p {
	font-size: 1.4rem;
}

.site-footer__brand-name {
	color: white;
	font-weight: 700;
	font-size: 1.8rem;
	margin-bottom: 1rem;
}

.site-footer h2.mt,
.site-footer h4.mt,
.site-footer .site-footer__h.mt { margin-top: 2.4rem; }

.site-footer__map {
	margin-top: 1.6rem;
	font-size: 1.2rem;
}

.site-footer__map a {
	font-size: 1.2rem;
	color: rgba(255, 255, 255, 0.6);
}

.site-footer__map a:hover { color: rgba(255, 255, 255, 0.9); }

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	text-align: center;
	padding: 1.8rem 2.4rem;
	font-size: 1.3rem;
	color: rgba(255, 255, 255, 0.6);
}

/****************************************************************
 *
 *  MEDIA QUERIES
 *
 ****************************************************************/

@media screen and (max-width: 60em) {

	/* мобильный хедер: гамбургер + выпадающее меню */
	.nav-burger {
		display: flex;
	}

	.site-nav {
		position: absolute;
		top: 6.4rem;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: rgba(15, 53, 120, 0.98);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
	}

	.site-nav a {
		padding: 1.6rem 2.4rem;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		font-size: 1.7rem;
	}

	.nav-toggle:checked ~ .site-nav {
		max-height: 40rem;
	}

	.nav-toggle:checked ~ .nav-burger span:nth-child(1) {
		transform: translateY(0.7rem) rotate(45deg);
	}

	.nav-toggle:checked ~ .nav-burger span:nth-child(2) {
		opacity: 0;
	}

	.nav-toggle:checked ~ .nav-burger span:nth-child(3) {
		transform: translateY(-0.7rem) rotate(-45deg);
	}

	.doc {
		padding: 2.8rem 2rem;
		border-radius: 1.6rem;
	}

	.doc h1 {
		font-size: 2.6rem;
	}

	.page {
		padding: 8.8rem 1.6rem 3.2rem;
	}

	.reqs dt {
		flex-basis: 100%;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
		gap: 2.8rem;
		padding: 3.6rem 2rem 2rem;
	}
}

@media screen and (min-width: 100em) {
	html {
		font-size: 0.66vmax;
	}
}

/* ─── Второй уровень меню: разделы статистики ДТП ──────────────────────
   Светлая полоса под тёмной шапкой: она подчинена ей по контрасту, но
   отделена от содержимого, чтобы не читаться его частью. Появляется
   только внутри раздела статистики. */
.site-subnav {
	position: sticky;
	margin-top: 6.4rem;
	top: 6.4rem;
	z-index: 900;
	background: #fff;
	border-bottom: 1px solid var(--mpp-line);
}

.site-subnav__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 2.4rem;
	display: flex;
	align-items: center;
	gap: 2.4rem;
	height: 4.4rem;
	overflow-x: auto;
	scrollbar-width: none;
}

.site-subnav__inner::-webkit-scrollbar { display: none; }

.site-subnav a {
	color: var(--mpp-blue-dark);
	text-decoration: none;
	font-size: 1.45rem;
	white-space: nowrap;
	padding: 0.4rem 0;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.site-subnav a:hover { color: var(--mpp-blue); }

.site-subnav a.is-active {
	color: var(--mpp-blue);
	border-bottom-color: var(--mpp-blue);
	font-weight: 500;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .site-subnav {
		background: #161a1d;
		border-bottom-color: #252b31;
	}
	:root:not([data-theme="light"]) .site-subnav a { color: #b9c7de; }
	:root:not([data-theme="light"]) .site-subnav a:hover,
	:root:not([data-theme="light"]) .site-subnav a.is-active { color: #7E9ACB; }
	:root:not([data-theme="light"]) .site-subnav a.is-active { border-bottom-color: #7E9ACB; }
}

@media (max-width: 720px) {
	.site-subnav { top: 5.6rem; margin-top: 5.6rem; }
	.site-subnav__inner { padding: 0 1.6rem; gap: 1.8rem; }
}
