.jm-companies-directory {
	--jm-company-primary: #2ace5e;
	--jm-company-primary-dark: #14973c;
	--jm-company-accent: #1fb74f;
	--jm-company-text: #0f172a;
	--jm-company-muted: #64748b;
	--jm-company-border: #e2e8f0;
	--jm-company-surface: #ffffff;
	--jm-company-soft: #f8fafc;
	color: var(--jm-company-text);
	margin: 0 auto;
	max-width: 1180px;
}

.jm-companies-directory *,
.jm-companies-directory *::before,
.jm-companies-directory *::after {
	box-sizing: border-box;
}

.jm-companies-banner {
	background:
		radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 18rem),
		linear-gradient(135deg, #14973c 0%, #1fb74f 60%, #2ace5e 100%);
	border: 1px solid rgba(42, 206, 94, 0.35);
	border-radius: 20px;
	box-shadow: 0 18px 40px rgba(20, 151, 60, 0.24);
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 14px;
	padding: 18px 20px;
}

.jm-companies-banner__title {
	color: #ffffff;
	font-size: 1.2rem;
	font-weight: 900;
	line-height: 1.2;
}

.jm-companies-banner__subtitle {
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
}

.jm-companies-summary {
	align-items: center;
	background: linear-gradient(135deg, rgba(42, 206, 94, 0.16), rgba(42, 206, 94, 0.08));
	border: 1px solid rgba(42, 206, 94, 0.3);
	border-radius: 18px;
	display: inline-flex;
	gap: 10px;
	margin: 0 0 18px;
	padding: 10px 14px;
}

.jm-companies-summary__label {
	color: var(--jm-company-primary-dark);
	font-size: 0.9rem;
	font-weight: 700;
}

.jm-companies-summary__value {
	color: var(--jm-company-primary-dark);
	font-size: 1.15rem;
	font-weight: 900;
}

.jm-companies-search {
	display: block;
	margin-bottom: 18px;
}

.jm-companies-search__input {
	background: #ffffff;
	border: 1px solid var(--jm-company-border);
	border-radius: 18px;
	box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
	color: var(--jm-company-text);
	font: inherit;
	min-height: 58px;
	outline: none;
	padding: 0 22px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

.jm-companies-search__input:focus {
	border-color: var(--jm-company-primary);
	box-shadow: 0 0 0 4px rgba(42, 206, 94, 0.18), 0 14px 35px rgba(15, 23, 42, 0.08);
}

.company-letters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
}

.company-letters a,
.company-letters span {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.88rem;
	font-weight: 800;
	height: 38px;
	justify-content: center;
	text-decoration: none;
	width: 38px;
}

.company-letters a {
	background: var(--jm-company-primary-dark);
	color: #ffffff;
	transition: background 0.2s ease, transform 0.2s ease;
}

.company-letters a:hover,
.company-letters a:focus {
	background: var(--jm-company-primary);
	color: #ffffff;
	transform: translateY(-2px);
}

.company-letters span {
	background: #f1f5f9;
	color: #94a3b8;
}

.companies-overview,
.company-group__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.companies-overview {
	display: grid;
	gap: 22px;
}

.company-group {
	background: var(--jm-company-soft);
	border: 1px solid var(--jm-company-border);
	border-radius: 24px;
	padding: 18px;
}

.company-letter {
	align-items: center;
	background: linear-gradient(135deg, var(--jm-company-primary), var(--jm-company-accent));
	border-radius: 18px;
	color: #ffffff;
	display: inline-flex;
	font-size: 1.2rem;
	font-weight: 900;
	height: 48px;
	justify-content: center;
	margin-bottom: 16px;
	width: 48px;
}

.company-group__list {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jm-company-card a {
	align-items: center;
	background: var(--jm-company-surface);
	border: 1px solid rgba(226, 232, 240, 0.85);
	border-radius: 18px;
	box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
	color: inherit;
	display: flex;
	gap: 14px;
	min-height: 92px;
	padding: 16px;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.jm-company-card a:hover,
.jm-company-card a:focus {
	border-color: rgba(42, 206, 94, 0.55);
	box-shadow: 0 18px 45px rgba(42, 206, 94, 0.18);
	color: inherit;
	transform: translateY(-3px);
}

.jm-company-card__avatar {
	align-items: center;
	background: #e8fdeb;
	border-radius: 16px;
	color: var(--jm-company-primary-dark);
	display: inline-flex;
	flex: 0 0 50px;
	font-weight: 900;
	height: 50px;
	justify-content: center;
	width: 50px;
}

.jm-company-card__content {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.jm-company-card__name {
	color: var(--jm-company-text);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.jm-company-card__count {
	color: var(--jm-company-muted);
	font-size: 0.88rem;
	font-weight: 700;
}

.jm-companies-empty {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 18px;
	color: #9a3412;
	display: none;
	font-weight: 700;
	margin: 24px 0 0;
	padding: 18px 20px;
	text-align: center;
}

@media (max-width: 900px) {
	.company-group__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.jm-companies-directory {
		max-width: 100%;
	}

	.company-group__list {
		grid-template-columns: 1fr;
	}

	.company-letters a,
	.company-letters span {
		height: 34px;
		width: 34px;
	}

	.company-group {
		padding: 14px;
	}
}
