.portfolio-section {
	padding: 60px 0;
	color: var(--text-main, black);
}

.container {
	max-width: 1348px;
	margin: 0 auto;
	padding: 0 20px;
}

.portfolio-header {
	margin-bottom: 48px;
}

.portfolio-title {
	font-size: 48px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 48px;
	margin: 0 0 16px;
}

.portfolio-description {
	width: 543px;
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	color: var(--text-main, black);
}

.portfolio-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin-bottom: 48px;
}

.portfolio-card {
	width: 100%;
	display: flex;
	flex-direction: column;
}

.portfolio-image-wrapper {
	position: relative;
	height: 428px;
	background: black;
	overflow: hidden;
	margin-bottom: 12px;
}


.portfolio-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1);
	transition: all 0.3s ease-in-out !important;
}

.portfolio-image-wrapper:hover .portfolio-image {
	transform: scale(1.1);
}

.portfolio-content {
	padding-right: 40px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.portfolio-project-title {
	font-size: 20px;
	font-weight: 400;
	line-height: 24px;
	margin: 0;
	color: var(--text-main, black);
}

.portfolio-date {
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	color: var(--text-caption, rgba(0, 0, 0, 0.40));
	display: block;
}

.portfolio-button-wrapper {
	display: flex;
	justify-content: center;
	margin-bottom: 32px;
}

.portfolio-show-more {
	padding: 16px 24px;
	border-radius: 3px;
	border: 1px solid var(--border-control, rgba(0, 0, 0, 0.12));
	background: transparent;
	color: var(--text-main, black);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 24px;
	letter-spacing: 1.28px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.portfolio-show-more:hover {
	background: var(--bg-btn-light-hover, #f5f5f5);
}

.portfolio-navigation {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

/* Адаптивность */
@media (max-width: 1200px) {
	.portfolio-list-container {
		width: 100%;
		overflow-y: auto;
	}
	.portfolio-list {
		display: inline-flex;
		gap: 32px;
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-y: auto;
	}
	.portfolio-card {
		width: 320px;
	}
}

@media (max-width: 768px) {
	.portfolio-title {
		font-size: 36px;
		line-height: 36px;
	}

	.portfolio-description {
		width: 100%;
	}

	.portfolio-list {
		grid-template-columns: 1fr;
	}

	.portfolio-image-wrapper {
		height: 300px;
	}
}

/* Адаптивные стили для кнопки */
.load-more-container {
	width: 100%;
	margin-top: 20px;
}

.button-light {
	width: 100%;
	justify-content: flex-start;
	align-items: flex-start;
	display: inline-flex;
}

.btn-s.load-more-button {
	flex: 1 1 0;
	padding: 16px 24px;
	border-radius: 3px;
	outline: 1px solid var(--border-control, rgba(0, 0, 0, 0.12));
	outline-offset: -1px;
	justify-content: center;
	align-items: center;
	gap: 8px;
	display: flex;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-s.load-more-button:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.button-text {
	color: var(--text-main, black);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 24px;
	letter-spacing: 1.28px;
	word-wrap: break-word;
}

.button-spinner {
	display: none;
}

/* Анимация для новых элементов */
.portfolio-card {
	transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
	.btn-s.load-more-button {
		padding: 14px 20px;
	}

	.button-text {
		font-size: 14px;
		line-height: 20px;
		letter-spacing: 1.12px;
	}
}

@media (max-width: 480px) {
	.btn-s.load-more-button {
		padding: 12px 16px;
	}

	.button-text {
		font-size: 12px;
		line-height: 18px;
		letter-spacing: 0.96px;
	}
}