/* ChatGPT: файл создан 20.07.2026 — карточки Companytop coursesonline по макету подборок. */
.ctop {
	width: 100%;
	padding: 18px 0 34px;
	color: #172033;
	background: #fff;
	font-family: Arial, sans-serif;
}

.ctop * {
	box-sizing: border-box;
}

.ctin {
	width: calc(100% - 40px);
	max-width: 1280px;
	margin: 0 auto;
}

.cthd {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.cttl {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
	color: #172033;
}

.ctal {
	flex-shrink: 0;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 600;
	color: #2457d6;
	text-decoration: none;
}

.ctal:hover,
.ctal:focus {
	text-decoration: underline;
}

.ctgr {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.ctcd {
	display: grid;
	grid-template-columns: 118px minmax(0, 1fr);
	min-height: 118px;
	overflow: hidden;
	border-radius: 14px;
	background: #f5f7fb;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .2s ease, transform .2s ease;
}

.ctcd:hover,
.ctcd:focus {
	box-shadow: 0 8px 22px rgba(24, 37, 56, .1);
	transform: translateY(-1px);
}

.ctim {
	display: block;
	overflow: hidden;
	background: #e8edf5;
}

.ctim img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 118px;
	object-fit: cover;
}

.ctbx {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	padding: 14px 40px 14px 16px;
	min-width: 0;
}

.ctnm {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 700;
	color: #172033;
}

.ctcy {
	font-size: 14px;
	line-height: 1.3;
	font-weight: 600;
	color: #2457d6;
}

.ctar {
	position: absolute;
	right: 14px;
	bottom: 12px;
	font-size: 18px;
	line-height: 1;
	color: #2457d6;
}

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

	.cttl {
		font-size: 24px;
	}
}

@media (max-width: 720px) {
	.ctin {
		width: calc(100% - 24px);
	}

	.cthd {
		align-items: flex-start;
		margin-bottom: 14px;
	}

	.cttl {
		font-size: 22px;
	}

	.ctgr {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.ctcd {
		grid-template-columns: 96px minmax(0, 1fr);
		min-height: 96px;
	}

	.ctim img {
		min-height: 96px;
	}

	.ctbx {
		padding: 12px 34px 12px 12px;
	}

	.ctnm {
		font-size: 15px;
		-webkit-line-clamp: 2;
	}
}
