/* Главный экран single кейса */
.portfolio-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 420px;
	background-color: #1a2a3a;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	margin-bottom: 2rem;
	overflow: hidden;
}

.portfolio-hero--no-image {
	background-image: linear-gradient(135deg, #1e3a5f 0%, #2c5f8a 55%, #4a90b8 100%);
}

.portfolio-hero__overlay {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.92) 0%,
		rgba(255, 255, 255, 0.78) 42%,
		rgba(255, 255, 255, 0.15) 72%,
		rgba(255, 255, 255, 0) 100%
	);
	padding: 0;
}

.portfolio-hero__inner {
	width: 100%;
}

.portfolio-hero__content {
	max-width: 36rem;
}

.portfolio-hero__h1 {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.35;
	color: #2196f3 !important;
}

.portfolio-hero__heading {
	margin: 0 0 0.85rem;
	font-size: clamp(2.35rem, 4.5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
}

.portfolio-hero__subtitle {
	margin: 0 0 1.5rem;
	font-size: 1.25rem;
	line-height: 1.45;
	color: #242424;
}

.portfolio-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: center;
}

.portfolio-hero__btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding-left: 1.35rem;
	padding-right: 1.35rem;
}

.portfolio-hero__btn-icon {
	display: inline-flex;
	line-height: 0;
}

.portfolio-hero__btn-icon .icon {
	width: 1.15em;
	height: 1.15em;
	stroke-width: 2.25;
}

.portfolio-hero__btn-secondary {
	background-color: #fff;
	padding-left: 1.35rem;
	padding-right: 1.35rem;
}

.portfolio-hero__specs {
	background: #fff;
	border-top: 1px solid #e8e8e8;
	box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.03);
}

.portfolio-hero__specs-list {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: space-between;
	gap: 0;
	margin: 0;
	padding: 1rem 0;
	list-style: none;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.portfolio-hero__spec {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	flex: 1 1 0;
	min-width: 9.5rem;
	padding: 0.25rem 1rem;
	border-right: 1px solid #e5e5e5;
}

.portfolio-hero__spec:first-child {
	padding-left: 0;
}

.portfolio-hero__spec:last-child {
	border-right: 0;
	padding-right: 0;
}

.portfolio-hero__spec-icon {
	flex-shrink: 0;
	color: #03a1ea;
	line-height: 0;
	margin-top: 0.1rem;
}

.portfolio-hero__spec-icon .icon {
	width: 1.5rem;
	height: 1.5rem;
}

.portfolio-hero__spec-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.portfolio-hero__spec-label {
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
}

.portfolio-hero__spec-value {
	font-size: 0.88rem;
	line-height: 1.3;
	color: #555;
}

@media (max-width: 991.98px) {
	.portfolio-hero {
		min-height: 0;
	}

	.portfolio-hero__overlay {
		background: linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.94) 0%,
			rgba(255, 255, 255, 0.88) 70%,
			rgba(255, 255, 255, 0.55) 100%
		);
	}

	.portfolio-hero__content {
		max-width: none;
	}

	.portfolio-hero__specs-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.85rem 0;
		overflow: visible;
	}

	.portfolio-hero__spec {
		min-width: 0;
		border-right: 0;
		padding: 0.15rem 0.5rem 0.15rem 0;
	}

	.portfolio-hero__spec:nth-child(odd) {
		padding-right: 0.75rem;
		border-right: 1px solid #e5e5e5;
	}

	/* Правая колонка: отступ от вертикального border, иконка не прилипает */
	.portfolio-hero__spec:nth-child(even) {
		padding-left: 0.75rem;
	}

	.portfolio-hero__spec:first-child {
		padding-left: 0;
		padding-right: 0.75rem;
	}

	.portfolio-hero__spec:nth-child(odd):last-child {
		border-right: 0;
	}
}

@media (max-width: 575.98px) {
	.portfolio-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.portfolio-hero__btn-primary,
	.portfolio-hero__btn-secondary {
		justify-content: center;
		width: 100%;
	}
}
