:root {

	/* База (очень тёмная, почти чёрная) */
	--bg-color: #0d1117;
	--header-bg: #010409;
	--surface-color: #161b22;

	/* Текст */
	--text-color: #c9d1d9;
	--text-muted: #8b949e;

	/* Акцент (github blue) */
	--accent-color: #2f81f7;

	/* Границы и состояния */
	--border-color: #30363d;
	--hover-bg: #161b22;
	--active-bg: #21262d;

	/* Размеры */
	--header-height: 70px;
	--sidebar-width: 250px;

	/* Шрифт */
	--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	background-color: var(--bg-color);
	font-family: var(--font-family);
	color: var(--text-color);
}

/* Header */
header {
	position: sticky;
	top: 0;
	width: 100%;
	height: var(--header-height);
	background-color: var(--header-bg);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	z-index: 1000;
	user-select: none;
	border-bottom: 2px solid var(--border-color);
}

.header__l-content {
	font-size: 24px;
	color: var(--text-color);
	padding: 5px;
}

.header__r-content {
	display: flex;
	height: 100%;
}

.header__r-content a {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 15px;
	font-size: 20px;
	text-decoration: none;
	color: var(--text-color);
	position: relative;
	overflow: hidden;
	transition: background-color 0.3s;
}

.header__r-content a:hover {
	background-color: var(--hover-bg);
	filter: brightness(130%);
}

.header__r-content a .material-symbols-outlined {
	opacity: 0;
	transform: translateX(-5px);
	margin-right: 8px;
	transition: all 0.3s ease;
	font-size: 20px;
	display: inline-flex;
	color: var(--accent-color);
	align-items: center;
}

.header__r-content a:hover .material-symbols-outlined {
	opacity: 1;
	transform: translateX(0) scale(1.1);
}

/* Menu (phone) */
.menu-button {
	display: none;
	cursor: pointer;
	position: relative;
	z-index: 1002;
}

.menu-button span {
	font-size: 32px;
	color: var(--accent-color);
	cursor: pointer;
}

/* Sidebar (phone) */
.sidebar {
	position: fixed;
	top: 0;
	right: calc(-1 * var(--sidebar-width));
	width: var(--sidebar-width);
	height: 100vh;
	background-color: var(--header-bg);
	display: flex;
	flex-direction: column;
	padding-top: var(--header-height);
	transition: right 0.3s ease;
	z-index: 1001;
	border-left: 1px solid var(--border-color);
}

.sidebar.active {
	right: 0;
}

.sidebar a {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	font-size: 18px;
	color: var(--text-color);
	text-decoration: none;
	transition: background 0.2s;
}

.sidebar a:hover {
	background-color: var(--hover-bg);
	filter: brightness(130%);
}

.sidebar a .material-symbols-outlined {
	margin-right: 10px;
	font-size: 24px;
	color: var(--accent-color);
}


@media screen and (max-width: 767px) {
	.header__r-content {
		display: none;
	}

	.menu-button {
		display: flex;
		align-items: center;
	}
}
