.ke-rf {
	--ke-accent: #c72037;
	--ke-ink: #333;
	--ke-muted: #6b6b6b;
	--ke-line: #e4e4e4;
	--ke-panel: #f7f7f7;
	color: var(--ke-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	max-width: 1024px;
	margin: 0 auto;
}
.ke-rf *, .ke-rf *::before, .ke-rf *::after { box-sizing: border-box; }

.ke-rf .ke-rf__finder {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
	gap: 32px;
	align-items: start;
}

/* selector + result */
.ke-rf .ke-rf__label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--ke-ink);
	margin: 0 0 16px;
}
.ke-rf .ke-rf__select {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 11px 40px 11px 14px;
	font: inherit;
	font-size: 16px;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ke-ink);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c72037' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 1px solid #cfcfcf;
	border-radius: 4px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.ke-rf .ke-rf__select:focus { outline: 2px solid var(--ke-accent); outline-offset: 1px; border-color: var(--ke-accent); }

.ke-rf .ke-rf__result { min-height: 40px; }
.ke-rf .ke-rf__result:empty { display: none; }
.ke-rf .ke-rf__hint {
	margin: 0;
	padding: 16px;
	color: var(--ke-muted);
	background: var(--ke-panel);
	border-radius: 4px;
	font-size: 14px;
}
.ke-rf .ke-rf__result-title {
	margin: 0 0 10px !important;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--ke-ink);
}
.ke-rf .ke-rf__result .ke-rf__card + .ke-rf__card { margin-top: 12px; }

/* tile map */
.ke-rf .ke-rf__map {
	display: grid;
	grid-template-columns: repeat(11, minmax(0, 1fr));
	gap: 4px;
	width: 100%;
}
.ke-rf .ke-rf__tile {
	aspect-ratio: 1 / 1;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 3px;
	font: inherit;
	font-size: clamp(9px, 1.35vw, 13px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: .02em;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
	position: relative;
}
.ke-rf .ke-rf__tile:hover { transform: scale(1.08); z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.ke-rf .ke-rf__tile:focus-visible { outline: 3px solid var(--ke-accent); outline-offset: 2px; z-index: 3; }
.ke-rf.has-active .ke-rf__tile { opacity: .55; }
.ke-rf.has-active .ke-rf__tile.is-active,
.ke-rf.has-active .ke-rf__tile:hover { opacity: 1; }
.ke-rf .ke-rf__tile.is-active {
	transform: scale(1.12);
	z-index: 3;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ke-accent);
}

/* cards */
.ke-rf .ke-rf__card {
	background: #fff;
	border: 1px solid var(--ke-line);
	border-left: 5px solid var(--ke-rep, var(--ke-accent));
	border-radius: 4px;
	padding: 14px 16px;
}
.ke-rf .ke-rf__area {
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ke-accent);
}
.ke-rf .ke-rf__name {
	margin: 0 0 6px !important;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ke-ink);
}
.ke-rf .ke-rf__territory {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--ke-muted);
}
.ke-rf .ke-rf__offices {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	line-height: 1.4;
}
.ke-rf .ke-rf__offices li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2px 12px;
	margin: 0;
	padding: 5px 0;
	font-size: 14px;
	line-height: 1.4;
	border-top: 1px dashed var(--ke-line);
}
.ke-rf .ke-rf__offices li:first-child { border-top: 0; }
.ke-rf .ke-rf__office { color: var(--ke-ink); }
.ke-rf .ke-rf__phone, .ke-rf .ke-rf__email {
	color: var(--ke-accent);
	text-decoration: none;
	white-space: nowrap;
	font-weight: 500;
}
.ke-rf .ke-rf__email { display: inline-block; font-size: 14px; margin-bottom: 8px; }
.ke-rf .ke-rf__phone:hover, .ke-rf .ke-rf__email:hover { text-decoration: underline; }
.ke-rf .ke-rf__btn {
	display: inline-block;
	margin-top: 2px;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #fff !important;
	background: var(--ke-accent);
	border-radius: 3px;
	text-decoration: none !important;
	transition: background .15s ease;
}
.ke-rf .ke-rf__btn:hover, .ke-rf .ke-rf__btn:focus-visible { background: #a01a2c; }

/* directory */
.ke-rf .ke-rf__dir-title {
	margin: 44px 0 16px !important;
	padding-top: 24px;
	border-top: 1px solid var(--ke-line);
	font-size: 20px;
	font-weight: 600;
	color: var(--ke-ink);
}
.ke-rf .ke-rf__dir {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
}
.ke-rf .ke-rf__dir .ke-rf__card { display: flex; flex-direction: column; }
.ke-rf .ke-rf__dir .ke-rf__btn, .ke-rf .ke-rf__dir .ke-rf__email { align-self: flex-start; }
.ke-rf .ke-rf__dir .ke-rf__btn { margin-top: auto; }

/* jump link to international section */
.ke-rf .ke-rf__jump {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 8px;
	margin: 0 0 28px;
	padding: 12px 16px;
	background: var(--ke-panel);
	border: 1px solid var(--ke-line);
	border-radius: 4px;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
	color: var(--ke-ink);
	text-decoration: none !important;
	transition: border-color .15s ease, background .15s ease;
}
.ke-rf .ke-rf__jump strong { color: var(--ke-accent); font-weight: 600; white-space: nowrap; }
.ke-rf .ke-rf__jump:hover, .ke-rf .ke-rf__jump:focus-visible { border-color: var(--ke-accent); background: #fff; }
.ke-rf .ke-rf__jump:hover strong { text-decoration: underline; }
.ke-rf--intl { scroll-margin-top: 220px; }

/* international */
.ke-rf--intl .ke-rf__side--intl { max-width: 420px; }
.ke-rf--intl .ke-rf__dir-title { margin-top: 28px !important; }

@media (max-width: 767px) {
	.ke-rf .ke-rf__finder { grid-template-columns: 1fr; gap: 20px; }
	.ke-rf .ke-rf__map { gap: 3px; }
	.ke-rf .ke-rf__tile { font-size: 10px; border-radius: 2px; }
	.ke-rf .ke-rf__tile:hover { transform: none; box-shadow: none; }
	.ke-rf .ke-rf__dir { grid-template-columns: 1fr; }
	.ke-rf .ke-rf__dir-title { margin-top: 32px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.ke-rf .ke-rf__tile { transition: none; }
}
