/* vkz-site-search */
.vkz-ss,
.vkz-ss * { box-sizing: border-box; }
.vkz-ss {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px 64px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1a1a1a;
}
.vkz-ss-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 20px;
	flex-wrap: wrap;
}
.vkz-ss-head-main {
	flex: 1 1 320px;
	min-width: 0;
}
.vkz-ss-title {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
	flex-shrink: 0;
}
.vkz-ss-bar {
	position: relative;
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	flex: 1;
	min-width: 0;
}
.vkz-ss-bar input[type="search"] {
	flex: 1;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	line-height: 1.4;
	color: #111827;
	appearance: none;
	-webkit-appearance: none;
}
.vkz-ss-bar input[type="search"]::placeholder { color: #6b7280; }
.vkz-ss-q {
	position: relative;
	flex: 1 1 180px;
	min-width: 0;
}
.vkz-ss-q input[type="search"] { width: 100%; }
.vkz-ss-in {
	margin: 0;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	line-height: 1.4;
	color: #111827;
	flex: 1 1 140px;
	max-width: 220px;
	min-width: 0;
	cursor: pointer;
}
.vkz-ss-bar > button[type="submit"] {
	border: 0;
	border-radius: 8px;
	background: #3b82f6;
	color: #fff;
	font-family: Roboto, Arial, sans-serif;
	font-weight: 600;
	font-size: 14px;
	padding: 0 16px;
	cursor: pointer;
	white-space: nowrap;
	flex: 0 0 auto;
}
.vkz-ss-bar > button[type="submit"]:hover { background: #2563eb; }
.vkz-ss-hint,
.vkz-ss-empty {
	margin: 0 0 20px;
	color: #6b6b6b;
	font-size: 14px;
}
.vkz-ss-group { margin: 0 0 20px; }
.vkz-ss-group-head {
	margin: 0 0 8px;
}
.vkz-ss-group-head h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
}
.vkz-ss-items {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 12px;
}
.vkz-ss-items-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: transparent;
	border-radius: 0;
	padding: 0;
	gap: 4px 24px;
}
.vkz-ss-items-list .vkz-ss-item {
	display: block;
	background: transparent;
	border-radius: 0;
	padding: 4px 0;
}
.vkz-ss-items-list .vkz-ss-item:hover { background: transparent; }
.vkz-ss-items-list .vkz-ss-item:hover .vkz-ss-item-title { color: #2563eb; }
.vkz-ss-items-list .vkz-ss-date { margin-right: 8px; }
.vkz-ss-items-list .vkz-ss-item-title { white-space: normal; }
.vkz-ss-items-preview {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
}
.vkz-ss-items-preview .vkz-ss-item {
	align-items: flex-start;
	background: transparent;
	border-radius: 0;
	padding: 0;
	gap: 12px;
}
.vkz-ss-items-preview .vkz-ss-item:hover { background: transparent; }
.vkz-ss-items-preview .vkz-ss-item:hover .vkz-ss-item-title { color: #2563eb; }
.vkz-ss-items-preview .vkz-ss-thumb {
	width: 140px;
	height: 90px;
	border-radius: 8px;
}
.vkz-ss-items-preview .vkz-ss-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.vkz-ss-items-preview .vkz-ss-item-title { white-space: normal; }
.vkz-ss-items-photos {
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
}
.vkz-ss-photo {
	display: block;
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	background: #e8e8e8;
	text-decoration: none !important;
}
.vkz-ss-photo-img {
	display: block;
	width: 100%;
	height: 100%;
	background: #e8e8e8 center/cover no-repeat;
}
.vkz-ss-photo:hover { opacity: .92; }
.vkz-ss-item {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 6px 8px;
	border-radius: 8px;
	background: #fff;
	text-decoration: none !important;
	color: #1a1a1a !important;
}
.vkz-ss-item:hover { background: #f5f5f5; }
.vkz-ss-thumb {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	background: #e8e8e8 center/cover no-repeat;
	flex-shrink: 0;
}
.vkz-ss-thumb-empty { background: #ececec; }
.vkz-ss-date {
	flex-shrink: 0;
	font-size: 12px;
	color: #888;
	white-space: nowrap;
}
.vkz-ss-item-title {
	min-width: 0;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.3;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vkz-ss-more {
	display: inline-flex;
	align-items: center;
	margin-top: 10px;
	border: 0;
	border-radius: 8px;
	background: #3b82f6;
	color: #fff;
	font-family: Roboto, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 14px;
	cursor: pointer;
}
.vkz-ss-more:hover { background: #2563eb; }
.vkz-ss-more:disabled { opacity: .6; cursor: default; }

.vkz-ss-suggest {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 30;
	margin-top: 4px;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0,0,0,.08);
	overflow: hidden;
}
.vkz-ss-suggest button {
	display: block;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 0;
	border-radius: 0;
	padding: 10px 12px;
	color: #1a1a1a;
	font-weight: 500;
	cursor: pointer;
}
.vkz-ss-suggest button small { display: none; }
.vkz-ss-suggest button.is-on,
.vkz-ss-suggest button:hover { background: #f5f5f5; }

.vkz-ss-overlay {
	position: fixed;
	inset: 0;
	z-index: 20050;
	background: rgba(28, 28, 30, .28);
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 10vh 16px 24px;
}
.vkz-ss-overlay[hidden] { display: none !important; }
.vkz-ss-modal {
	width: min(520px, 100%);
	height: auto;
	max-height: none;
	align-self: flex-start;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	color: #1a1a1a;
	font-family: Roboto, Arial, sans-serif;
}
.vkz-ss-modal form {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	background: #fff;
}
.vkz-ss-modal input[type="search"] {
	flex: 1;
	margin: 0;
	border: 0;
	background: transparent;
	color: #1a1a1a;
	font-size: 15px;
	outline: none;
}
.vkz-ss-modal input[type="search"]::placeholder { color: #8a8a8a; }
.vkz-ss-modal-list {
	overflow: visible;
	padding: 4px;
	background: #fff;
}
.vkz-ss-modal-list a,
.vkz-ss-modal-list button.vkz-ss-hit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #1a1a1a;
	text-decoration: none !important;
	cursor: pointer;
	font-size: 14px;
}
.vkz-ss-modal-list a.is-on,
.vkz-ss-modal-list button.vkz-ss-hit.is-on,
.vkz-ss-modal-list a:hover,
.vkz-ss-modal-list button.vkz-ss-hit:hover {
	background: #f5f5f5;
}
.vkz-ss-modal-list small { display: none; }
.vkz-ss-modal-empty {
	padding: 12px;
	color: #8a8a8a;
	font-size: 13px;
}
body.vkz-ss-lock { overflow: hidden; }

body.vkz-mn-on .vkz-mn-search .vkz-ss-suggest {
	left: 12px;
	right: 12px;
	width: auto;
}
body.vkz-mn-on .vkz-mn-search .vkz-ss-suggest button {
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	padding: 10px 12px 10px 16px;
	place-items: unset;
	text-align: left;
	background: #fff;
	color: #1a1a1a;
	font-size: 14px;
	font-weight: 500;
}

@media (max-width: 1105px) {
	.vkz-ss-overlay { display: none !important; }
	.vkz-ss-suggest { right: 0; }
}
@media (max-width: 720px) {
	.vkz-ss-head {
		align-items: stretch;
	}
	.vkz-ss-title {
		font-size: 24px;
		flex-basis: 100%;
	}
	.vkz-ss-head-main {
		flex-basis: 100%;
	}
	.vkz-ss-q {
		flex: 1 1 100%;
	}
	.vkz-ss-in {
		flex: 1 1 auto;
		max-width: none;
	}
	.vkz-ss-bar > button[type="submit"] {
		min-height: 38px;
	}
	.vkz-ss-items,
	.vkz-ss-items-list,
	.vkz-ss-items-preview { grid-template-columns: 1fr; }
	.vkz-ss-items-photos { grid-template-columns: repeat(3, 1fr); }
	.vkz-ss-items-preview .vkz-ss-thumb { width: 96px; height: 64px; }
}
