/* ===================== Сонник — фронтенд ===================== */
.sonnik-wrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 20px 15px 60px;
}
.sonnik-title {
	font-size: 28px;
	margin-bottom: 20px;
}
.sonnik-breadcrumbs {
	font-size: 13px;
	color: #777;
	margin-bottom: 16px;
}
.sonnik-breadcrumbs a {
	color: #777;
	text-decoration: none;
}
.sonnik-breadcrumbs a:hover {
	text-decoration: underline;
}

/* Поиск */
.sonnik-search-form {
	display: flex;
	gap: 8px;
	position: relative;
	margin: 18px 0 26px;
}
.sonnik-search-input {
	flex: 1;
	padding: 12px 14px;
	font-size: 15px;
	border: 1px solid #d8d8de;
	border-radius: 8px;
}
.sonnik-search-btn {
	padding: 12px 22px;
	background: #4a3f8f;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
}
.sonnik-search-btn:hover {
	background: #382f70;
}
.sonnik-search-suggest {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e2e2e8;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0,0,0,.08);
	z-index: 20;
	max-height: 320px;
	overflow-y: auto;
}
.sonnik-search-suggest a {
	display: block;
	padding: 9px 14px;
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #f1f1f4;
}
.sonnik-search-suggest a:hover {
	background: #f6f5ff;
}

/* Категории */
.sonnik-categories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin: 20px 0;
}
.sonnik-category-block {
	background: #f8f8fc;
	border: 1px solid #ececf3;
	border-radius: 10px;
	padding: 16px 18px;
}
.sonnik-category-title {
	margin: 0 0 10px;
	font-size: 16px;
	color: #4a3f8f;
}
.sonnik-category-sections {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sonnik-category-sections li {
	margin-bottom: 6px;
}
.sonnik-category-sections a {
	color: #333;
	text-decoration: none;
}
.sonnik-category-sections a:hover {
	color: #4a3f8f;
	text-decoration: underline;
}

/* Разделы (сетка карточек) */
.sonnik-sections-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin: 20px 0;
}
.sonnik-section-card {
	display: block;
	padding: 16px;
	background: #fff;
	border: 1px solid #ececf3;
	border-radius: 10px;
	text-decoration: none;
	transition: box-shadow .15s, transform .15s;
}
.sonnik-section-card:hover {
	box-shadow: 0 6px 16px rgba(0,0,0,.08);
	transform: translateY(-2px);
}
.sonnik-section-name {
	display: block;
	font-weight: 600;
	color: #2b2b33;
	margin-bottom: 4px;
}
.sonnik-section-count {
	display: block;
	font-size: 12px;
	color: #999;
}

/* Алфавит */
.sonnik-alphabet {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 18px 0;
}
.sonnik-alphabet a {
	display: inline-block;
	min-width: 30px;
	text-align: center;
	padding: 6px 8px;
	background: #f2f2f6;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
	font-size: 14px;
}
.sonnik-alphabet a.active,
.sonnik-alphabet a:hover {
	background: #4a3f8f;
	color: #fff;
}

/* Списки толкований */
.sonnik-article-list {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 30px;
}
.sonnik-article-list li {
	break-inside: avoid;
	margin-bottom: 8px;
}
.sonnik-article-list a {
	text-decoration: none;
	color: #333;
}
.sonnik-article-list a:hover {
	color: #4a3f8f;
	text-decoration: underline;
}
.sonnik-random-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 8px 20px;
}
.sonnik-random-list a {
	text-decoration: none;
	color: #333;
}
.sonnik-random-list a:hover {
	color: #4a3f8f;
	text-decoration: underline;
}

/* Пагинация */
.sonnik-pagination {
	display: flex;
	gap: 6px;
	margin: 20px 0;
}
.sonnik-pagination a {
	padding: 6px 12px;
	background: #f2f2f6;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
}
.sonnik-pagination a.active {
	background: #4a3f8f;
	color: #fff;
}

/* Статья толкования */
.sonnik-article-body {
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 24px;
}
.sonnik-keywords {
	margin-bottom: 24px;
}
.sonnik-tag {
	display: inline-block;
	background: #f2f2f6;
	border-radius: 20px;
	padding: 4px 12px;
	margin: 0 6px 6px 0;
	font-size: 13px;
	color: #555;
}

/* FAQ */
.sonnik-faq-list {
	margin: 16px 0 30px;
}
.sonnik-faq-item {
	border-bottom: 1px solid #ececf3;
	padding: 14px 0;
}
.sonnik-faq-question {
	font-weight: 600;
	color: #2b2b33;
	margin-bottom: 6px;
}
.sonnik-faq-answer {
	color: #555;
}

/* Информер */
.sonnik-informer {
	background: #f8f8fc;
	border: 1px solid #ececf3;
	border-radius: 10px;
	padding: 16px 18px;
	max-width: 360px;
}
.sonnik-informer-title {
	font-weight: 700;
	margin-bottom: 8px;
	color: #4a3f8f;
}
.sonnik-informer-link {
	display: block;
	margin-bottom: 10px;
	text-decoration: none;
	color: #333;
}
.sonnik-informer-link:hover {
	color: #4a3f8f;
}
.sonnik-informer .sonnik-search-form {
	margin: 8px 0 0;
}

/* ===================== Админка ===================== */
.sonnik-admin .sonnik-filter-form {
	display: flex;
	gap: 8px;
	margin: 14px 0;
}
.sonnik-admin .sonnik-form .form-table th {
	width: 220px;
}
.sonnik-admin a.sonnik-del {
	color: #b32d2e;
}
