/* Служебная страница выбора шрифтовых иконок; подключается только на /icon-list/. */
.icon-list {
	padding: 40px 0 72px;
	background: #f7f4ee;
}

.icon-list__container {
	box-sizing: border-box;
}

.icon-list__layout {
	display: grid;
	grid-template-columns: 228px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.icon-list__sidebar {
	position: sticky;
	top: 24px;
	padding: 16px 12px;
	border: 1px solid #ddd7cc;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 3px 12px rgb(42 35 24 / 6%);
}

.icon-list__title,
.icon-list__pane-title {
	margin: 0;
	color: #24211d;
	font-weight: 600;
}

.icon-list__title {
	margin: 0 8px 12px;
	font-size: 18px;
}

.icon-list__nav {
	display: grid;
	gap: 3px;
	max-height: calc(100vh - 160px);
	overflow-y: auto;
}

.icon-list__nav-button {
	width: 100%;
	position: relative;
	padding: 9px 12px 9px 16px;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: #514d46;
	font: inherit;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
}

.icon-list__nav-button:hover,
.icon-list__nav-button:focus-visible {
	background: #eee9df;
	color: #24211d;
	outline: none;
}

.icon-list__nav-button.is-active {
	background: #168e8c;
	color: #fff;
	box-shadow: 0 2px 5px rgb(22 142 140 / 24%);
}

.icon-list__nav-button.is-active::before {
	position: absolute;
	top: 50%;
	left: 0;
	width: 4px;
	height: 20px;
	border-radius: 0 3px 3px 0;
	background: #0f5f5e;
	content: '';
	transform: translateY(-50%);
}

.icon-list__pane {
	display: none;
}

.icon-list__pane.is-active {
	display: block;
}

.icon-list__pane-title {
	margin-bottom: 20px;
	font-size: 24px;
}

.icon-list__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.icon-list__item {
	display: grid;
	min-height: 124px;
	padding: 16px 10px 12px;
	border: 1px solid #ddd7cc;
	border-radius: 8px;
	background: #fff;
	color: #24211d;
	font: inherit;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.icon-list__item:hover,
.icon-list__item:focus-visible {
	border-color: #8a7558;
	box-shadow: 0 4px 14px rgb(42 35 24 / 12%);
	outline: none;
	transform: translateY(-2px);
}

.icon-list__glyph {
	align-self: center;
	font-size: 30px;
	line-height: 1;
}

.icon-list__class {
	align-self: end;
	margin-top: 14px;
	color: #70695f;
	font-size: 9px;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.icon-list__notice {
	min-height: 20px;
	margin: 16px 0 0;
	color: #3f6d40;
	font-size: 13px;
}

@media (max-width: 767px) {
	.icon-list {
		padding: 24px 0 48px;
	}

	.icon-list__layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.icon-list__sidebar {
		position: static;
	}

	.icon-list__nav {
		max-height: 240px;
	}

	.icon-list__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
