.hof-main-section {
	margin: 48px 0 34px;
}

.hof-main-header {
	align-items: baseline;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.hof-main-header .h3 {
	margin: 0;
	font-size: 31px;
	line-height: 1.1;
}

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

.hof-main-tile:nth-child(n+4) {
	display: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
	.hof-main-tile:nth-child(4) {
		display: flex;
	}
}
.hof-main-tile {
	position: relative;
	border: 1px solid #d7dee9;
	border-radius: 16px;
	padding: 22px;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 18px;
	background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
	box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hof-main-tile:hover {
	transform: translateY(-2px);
	border-color: #bcc9dd;
	box-shadow: 0 12px 24px rgba(16, 24, 40, 0.1);
}

.hof-main-section-row {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
}

.hof-main-section-row--profile {
	grid-template-columns: 114px minmax(0, 1fr);
	gap: 18px;
	min-height: 152px;
	padding-bottom: 18px;
	border-bottom: 1px solid #dde4ef;
}

.hof-main-section-row--project {
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 16px;
	min-height: 88px;
	padding-bottom: 18px;
	border-bottom: 1px solid #dde4ef;
	align-items: flex-start;
}

.hof-main-section-row--facts {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0;
	min-height: 64px;
	padding-top: 2px;
	align-items: stretch;
}

.hof-main-usercol {
	min-width: 0;
	align-self: start;
}

.hof-main-profile__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.hof-main-userpic {
	width: 114px;
	height: 114px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 3px solid #e9edf5;
}

.hof-main-userpic-placeholder {
	width: 114px;
	height: 114px;
	border-radius: 50%;
	border: 1px solid #d7dce6;
	background: #f2f4f8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 10px;
	font-size: 11px;
	line-height: 1.2;
}

.hof-main-profile__name {
	font-size: 24px;
	line-height: 1.1;
	font-weight: 700;
	word-break: break-word;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hof-main-profile__name-line {
	display: block;
}

.hof-main-profile__position {
	font-size: 13px;
	line-height: 1.3;
	color: #6f757f;
	font-weight: 500;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

.hof-main-company {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin-top: 2px;
	min-height: 34px;
}

.hof-main-company-logo-stub {
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 28px;
	padding: 0 8px;
	border-radius: 7px;
	border: 1px solid #d8e0ec;
	background: #eef2f8;
	font-size: 10px;
	line-height: 1.15;
	letter-spacing: .04em;
	font-weight: 700;
	text-transform: uppercase;
	color: #4d5665;
}

.hof-main-company-name {
	font-size: 13px;
	line-height: 1.25;
	font-weight: 600;
	color: #27303f;
	word-break: break-word;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hof-main-project {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.hof-main-project__label {
	font-size: 11px;
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #738095;
	display: none;
}

.hof-main-project__title {
	font-size: 20px;
	line-height: 1.2;
	margin: 0;
	min-height: 3.6em;
	display: -webkit-box;
	-webkit-box-orient: vertical;
}

.hof-main-project__title a {
	text-decoration: none;
	color: #111827;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hof-main-project__title a:hover {
	text-decoration: underline;
}

.hof-main-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background-color: #e9eff9;
	flex-shrink: 0;
	color: #2f6fed;
}

.hof-main-icon::before {
	content: "";
	width: 22px;
	height: 22px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
}

.hof-main-icon--project {
	background-color: #e6f0ff;
	color: #2f6fed;
}

.hof-main-icon--project::before {
	-webkit-mask-image: url("/local/static/images/icons/icon-package.svg");
	mask-image: url("/local/static/images/icons/icon-package.svg");
}

.hof-main-icon--customer {
	background-color: #e6f0ff;
	color: #2f6fed;
}

.hof-main-icon--customer::before {
	-webkit-mask-image: url("/local/static/images/icons/icon-enterprise.svg");
	mask-image: url("/local/static/images/icons/icon-enterprise.svg");
}

.hof-main-icon--provider {
	background-color: #e8f6ee;
	color: #2c9a62;
}

.hof-main-icon--provider::before {
	-webkit-mask-image: url("/local/static/images/icons/icon-gear.svg");
	mask-image: url("/local/static/images/icons/icon-gear.svg");
}

.hof-main-fact {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	min-width: 0;
	height: 100%;
}

.hof-main-fact--customer {
	padding-right: 16px;
	padding-left: 2px;
}

.hof-main-fact--provider {
	padding-left: 16px;
	padding-right: 2px;
	border-left: 1px solid #dde4ef;
}

.hof-main-fact-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.hof-main-fact-label {
	font-size: 11px;
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #738095;
}

.hof-main-fact-value {
	font-size: 14px;
	line-height: 1.3;
	font-weight: 600;
	color: #1f2632;
	word-break: break-word;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 1024px) {
	.hof-main-section-row--profile {
		min-height: 170px;
	}

	.hof-main-section-row--project {
		min-height: 92px;
	}

	.hof-main-section-row--facts {
		min-height: 86px;
	}

	.hof-main-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hof-main-project__title {
		font-size: 19px;
	}

	.hof-main-profile__name {
		font-size: 22px;
	}
}

@media (max-width: 767px) {
	.hof-main-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.hof-main-header-link {
		display: none;
	}

	.hof-main-header .h3 {
		font-size: 27px;
	}

	.hof-main-grid {
		grid-template-columns: 1fr;
	}

	.hof-main-section-row--profile {
		grid-template-columns: 99px minmax(0, 1fr);
		gap: 12px;
		min-height: 0;
	}

	.hof-main-section-row--project {
		min-height: 0;
	}

	.hof-main-project__title {
		min-height: 0;
	}

	.hof-main-userpic {
		width: 99px;
		height: 99px;
	}

	.hof-main-userpic-placeholder {
		width: 99px;
		height: 99px;
		font-size: 10px;
	}

	.hof-main-profile__name {
		font-size: 20px;
	}

	.hof-main-section-row--facts {
		grid-template-columns: 1fr;
		gap: 12px;
		min-height: 0;
	}

	.hof-main-fact--customer,
	.hof-main-fact--provider {
		padding: 0;
		border-left: 0;
		padding-top: 12px;
		border-top: 1px solid #dde4ef;
		height: auto;
	}

	.hof-main-fact--customer {
		padding-top: 0;
		border-top: 0;
	}

	.hof-main-fact-value {
		font-size: 13px;
	}

	.hof-main-company-logo-stub {
		min-width: 38px;
		height: 24px;
	}
}

@media (max-width: 480px) {
	.hof-main-tile {
		padding: 16px;
		gap: 14px;
	}

	.hof-main-section-row--profile {
		grid-template-columns: 83px minmax(0, 1fr);
		gap: 10px;
		padding-bottom: 14px;
	}

	.hof-main-userpic {
		width: 83px;
		height: 83px;
		border-width: 2px;
	}

	.hof-main-userpic-placeholder {
		width: 83px;
		height: 83px;
		padding: 8px;
		font-size: 9px;
	}

	.hof-main-profile__name {
		font-size: 17px;
	}

	.hof-main-project__title {
		font-size: 17px;
		min-height: 0;
	}

	.hof-main-profile__position {
		font-size: 12px;
	}

	.hof-main-section-row--project,
	.hof-main-fact {
		grid-template-columns: 28px minmax(0, 1fr);
		gap: 10px;
	}

	.hof-main-icon {
		width: 28px;
		height: 28px;
		border-radius: 7px;
	}

	.hof-main-icon::before {
		width: 17px;
		height: 17px;
	}

	.hof-main-fact--customer,
	.hof-main-fact--provider {
		padding-left: 0;
		padding-right: 0;
	}

	.hof-main-fact--provider {
		border-left: 0;
	}

	.hof-main-middle,
	.hof-main-fact {
		gap: 12px;
	}
}
