.ddg-directory-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	margin: 0 auto;
	width: 100%;
}

.ddg-card {
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
	color: #121212;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 10px;
}

.ddg-card,
.ddg-card * {
	box-sizing: border-box;
}

.ddg-card__media {
	position: relative;
}

.ddg-card__image-link {
	display: block;
	overflow: hidden;
	text-decoration: none;
}

.ddg-card__image {
	aspect-ratio: 4 / 3;
	background: #eef4f6;
	display: block;
	height: auto;
	object-fit: cover;
	object-position: top center;
	width: 100%;
}

.ddg-card__image--placeholder {
	min-height: 220px;
}

.ddg-card__badge {
	align-items: center;
	display: flex;
	height: clamp(76px, 26%, 120px);
	justify-content: center;
	position: absolute;
	right: 0;
	top: 0;
	width: clamp(76px, 26%, 120px);
	z-index: 2;
}

.ddg-card__badge-image {
	border-radius: 999px;
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.ddg-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.ddg-card__title {
	border-bottom: 1px solid rgba(128, 128, 128, 0.18);
	font-size: clamp(20px, 2vw, 25px);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 10px;
	padding: 20px 8px 24px;
	text-align: center;
}

.ddg-card__title a {
	color: rgba(0, 188, 212, 0.7);
	font-weight: 700;
	text-decoration: none;
}

.ddg-card__title a:hover,
.ddg-card__title a:focus {
	color: #00bcd4;
	text-decoration: none;
}

.ddg-card__rating {
	border-bottom: 1px solid rgba(128, 128, 128, 0.17);
	padding: 0 8px 22px;
	text-align: center;
}

.ddg-card__rating-label {
	color: #34343d;
	font-size: 18px;
	line-height: 1.3;
	margin-bottom: 10px;
}

.ddg-card__stars {
	color: #d9dfee;
	font-size: 30px;
	letter-spacing: 0;
	line-height: 1;
	white-space: nowrap;
}

.ddg-card__star {
	color: #d9dfee;
	display: inline-block;
	margin: 0 2px;
	position: relative;
}

.ddg-card__star--filled {
	color: #ffc300;
}

.ddg-card__star--half {
	color: #d9dfee;
}

.ddg-card__star--half::before {
	color: #ffc300;
	content: "\2605";
	inset: 0 50% 0 0;
	overflow: hidden;
	position: absolute;
}

.ddg-card__details {
	border-bottom: 1px solid rgba(128, 128, 128, 0.17);
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 20px 8px;
}

.ddg-card__details li {
	align-items: flex-start;
	color: #121212;
	display: grid;
	font-size: 16px;
	gap: 10px;
	grid-template-columns: 22px minmax(0, 1fr);
	line-height: 1.45;
	margin: 0;
	padding: 0;
}

.ddg-card__details strong {
	font-weight: 700;
}

.ddg-card__icon {
	fill: #00bcd4;
	height: 20px;
	margin-top: 2px;
	width: 20px;
}

.ddg-card__actions {
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin-top: auto;
	padding: 20px 0 10px;
}

.ddg-card__button {
	align-items: center;
	border-radius: 3px;
	color: #fff;
	display: inline-flex;
	font-size: 16px;
	font-weight: 400;
	gap: 10px;
	justify-content: center;
	line-height: 1.2;
	min-height: 48px;
	padding: 12px 14px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.ddg-card__button:hover,
.ddg-card__button:focus {
	color: #fff;
	text-decoration: none;
}

.ddg-card__button--phone {
	background: rgba(0, 188, 212, 0.7);
}

.ddg-card__button--phone:hover,
.ddg-card__button--phone:focus {
	background: #121212;
}

.ddg-card__button--profile {
	background: #121212;
}

.ddg-card__button--profile:hover,
.ddg-card__button--profile:focus {
	background: rgba(0, 188, 212, 0.7);
}

.ddg-card__button-icon {
	fill: currentColor;
	height: 20px;
	width: 20px;
}

.ddg-card__arrow {
	font-size: 22px;
	line-height: 1;
}

.ddg-directory-empty {
	grid-column: 1 / -1;
	margin: 0;
	text-align: center;
}

@media (max-width: 991px) {
	.ddg-directory-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ddg-directory-grid {
		grid-template-columns: 1fr;
	}

	.ddg-card__actions {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 380px) {
	.ddg-card__button {
		font-size: 15px;
		white-space: normal;
	}
}
