/* Словарь терминов для OpenCart 3.0.x — Kotelnikov LAB, версия 1.0 */
/* Glossary. The colors are set in the module settings; the values below are the defaults. */
.gl,
.gl-modal {
	--gl-accent: #1a73b8;
	--gl-letter: #1a73b8;
	--gl-index-text: #1f2933;
	--gl-index-bg: #f3f5f8;
	--gl-text: #1f2933;
	--gl-muted: #5f6b7a;
	--gl-line: #e3e7ec;
	--gl-soft: #f3f5f8;
	--gl-off: #c3c9d1;
	--gl-radius: 8px;
}

.gl [hidden],
.gl-modal[hidden] {
	display: none !important;
}

.gl-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.gl-title {
	margin-top: 0;
}

.gl-intro {
	max-width: 760px;
	margin: 0 0 24px;
	color: var(--gl-muted);
	font-size: 15px;
	line-height: 1.6;
}

/* Search and alphabet switcher */
.gl-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.gl-search {
	flex: 1 1 260px;
	max-width: 420px;
}

.gl-search__input {
	box-sizing: border-box;
	width: 100%;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--gl-line);
	border-radius: var(--gl-radius);
	background: #fff;
	color: var(--gl-text);
	font-size: 15px;
}

.gl-search__input:focus {
	outline: 2px solid var(--gl-accent);
	outline-offset: 1px;
	border-color: var(--gl-accent);
}

.gl-switch {
	display: inline-flex;
	padding: 3px;
	border-radius: var(--gl-radius);
	background: var(--gl-soft);
}

.gl-switch button {
	height: 36px;
	padding: 0 16px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--gl-muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.gl-switch button:hover {
	color: var(--gl-text);
}

.gl-switch button[aria-pressed="true"] {
	background: #fff;
	color: var(--gl-accent);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14);
}

.gl-switch button:focus-visible,
.gl-abc__item:focus-visible,
.gl-modal__close:focus-visible {
	outline: 2px solid var(--gl-accent);
	outline-offset: 2px;
}

/* Alphabet index */
.gl-abc {
	padding: 14px 0;
	border-top: 1px solid var(--gl-line);
	border-bottom: 1px solid var(--gl-line);
}

.gl-abc__row {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.gl-abc__row + .gl-abc__row {
	margin-top: 6px;
}

.gl-abc__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 4px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

span.gl-abc__item,
a.gl-abc__item.is-off {
	color: var(--gl-off);
}

a.gl-abc__item {
	background: var(--gl-index-bg);
	color: var(--gl-index-text);
}

a.gl-abc__item:hover,
a.gl-abc__item:focus {
	background: var(--gl-accent);
	color: #fff;
	text-decoration: none;
}

a.gl-abc__item.is-off {
	background: transparent;
	pointer-events: none;
}

.gl-status {
	margin: 16px 0 0;
	color: var(--gl-muted);
	font-size: 14px;
}

/* Letters and terms. The letters flow down the first column, then the next one. */
.gl-list--cols-2,
.gl-list--cols-3 {
	column-gap: 48px;
}

.gl-list--cols-2 {
	column-count: 2;
}

.gl-list--cols-3 {
	column-count: 3;
}

.gl-letter {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: start;
	gap: 8px 24px;
	padding: 22px 0;
	border-bottom: 1px solid var(--gl-line);
}

.gl-list--cols-1 .gl-letter:last-child {
	border-bottom: 0;
}

.gl-letter__title {
	margin: 0;
	color: var(--gl-letter);
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
}

/* Several terms in a row; the number of columns follows the width of the page */
.gl-terms {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px 28px;
	margin: 0;
	padding: 9px 0 0;
	list-style: none;
}

.gl-term__link {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

/* SEO text under the list */
.gl-seo-text {
	max-width: 760px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--gl-line);
	font-size: 15px;
	line-height: 1.65;
}

/* Term page */
.gl-page__text {
	max-width: 760px;
	font-size: 16px;
	line-height: 1.65;
}

.gl-page__others {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--gl-line);
}

.gl-page__subtitle {
	margin: 0 0 14px;
	font-size: 20px;
}

.gl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gl-chips a {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--gl-soft);
	color: var(--gl-text);
	font-size: 14px;
	text-decoration: none;
}

.gl-chips a:hover,
.gl-chips a:focus {
	background: var(--gl-accent);
	color: #fff;
}

.gl-page__back {
	margin: 28px 0 0;
	font-weight: 600;
}

/* Popup */
.gl-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.55);
}

.gl-modal__box {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 620px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 28px 32px;
	border-radius: 12px;
	background: #fff;
	color: var(--gl-text);
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
}

.gl-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--gl-soft);
	color: var(--gl-muted);
	font-size: 22px;
	line-height: 36px;
	cursor: pointer;
}

.gl-modal__close:hover {
	color: var(--gl-text);
}

.gl-modal__title {
	margin: 0 44px 14px 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.gl-modal__body {
	font-size: 15px;
	line-height: 1.65;
}

.gl-modal__body > :last-child {
	margin-bottom: 0;
}

.gl-modal-open {
	overflow: hidden;
}

@media (max-width: 991px) {
	.gl-list--cols-3 {
		column-count: 2;
	}
}

@media (max-width: 767px) {
	.gl-list--cols-2,
	.gl-list--cols-3 {
		column-count: 1;
	}

	.gl-letter {
		grid-template-columns: 1fr;
		padding: 18px 0;
	}

	.gl-letter__title {
		font-size: 32px;
	}

	/* On a phone everything goes in a single column */
	.gl-terms {
		grid-template-columns: 1fr;
		gap: 12px;
		padding-top: 4px;
	}

	.gl-search {
		max-width: none;
	}

	.gl-modal__box {
		padding: 24px 20px;
	}
}
