.project-catalog {
	padding: 45px 55px 30px;
	background: var(--light-blue-color);
	box-shadow: var(--shadow-inset);
	border-radius: var(--border-radius-xl);
	margin-bottom: 40px;
	position: relative;
	overflow: hidden;
	animation: fadeInUp 0.8s ease-out;
}

.project-catalog:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
	pointer-events: none;
}
.project-catalog__container {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -10px;
}
.project-catalog__col{
	width: 25%;
	padding: 0 10px 20px;
}
.project-item{
	padding: 20px 20px 20px 36px;
	background: #F2F6F9;
	/* Neomorphism base */
	box-shadow: 8px 8px 20px rgba(163, 177, 198, 0.35), -8px -8px 20px rgba(255, 255, 255, 0.9);
	position: relative;
	border-radius: var(--border-radius-lg);
	transition: all var(--transition-normal);
	transform: translateY(0);
	border: 0;
	animation: fadeInUp 0.6s ease-out;
	backface-visibility: hidden;
	will-change: transform;
}

/* Анимации появления с задержкой */
.project-catalog__col:nth-child(1) .project-item { animation-delay: 0.1s; }
.project-catalog__col:nth-child(2) .project-item { animation-delay: 0.2s; }
.project-catalog__col:nth-child(3) .project-item { animation-delay: 0.3s; }
.project-catalog__col:nth-child(4) .project-item { animation-delay: 0.4s; }
.project-catalog__col:nth-child(5) .project-item { animation-delay: 0.5s; }
.project-catalog__col:nth-child(6) .project-item { animation-delay: 0.6s; }
.project-catalog__col:nth-child(7) .project-item { animation-delay: 0.7s; }
.project-catalog__col:nth-child(8) .project-item { animation-delay: 0.8s; }

.project-item:hover {
	transform: translateY(-6px);
	box-shadow: 12px 12px 28px rgba(163, 177, 198, 0.38), -12px -12px 28px rgba(255, 255, 255, 0.95);
	background: #F2F6F9;
	z-index: 10;
}
.project-item:after{
	/* Remove glass glow for strict neo look */
	display: none;
}

/* Left index bar removed */
.project-item:before{content:none;}
.project-item__number {
    display: flex;
    justify-content: center;
    align-items: center;
	width: 26px;
	height: 26px;
    background: #F2F6F9;
    box-shadow: 6px 6px 12px rgba(163,177,198,0.28), -6px -6px 12px rgba(255,255,255,0.95), inset 2px 2px 3px rgba(163,177,198,0.25), inset -2px -2px 3px rgba(255,255,255,0.9);
    border-radius: 50%;
    font-family: 'Tomorrow';
    font-weight: 700;
	font-size: 13px;
    line-height: 1;
    color: #437B94;
    position: absolute;
    top: 8px;
    left: 9px;
    z-index: 3;
    transition: all var(--transition-fast);
    animation: scaleIn 0.5s ease-out;
}

.project-item:hover .project-item__number { transform: translateY(-1px); }
.project-item__head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
    margin-bottom: 11px;
}
.project-item__headline {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}
	/* Avatar with neomorphic ring */
.project-item__image {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	margin-right: 15px;
	position: relative;
}
.project-item__image:before{
	content: '';
	position: absolute;
	top: -8px;
	left: -8px;
	right: -8px;
	bottom: -8px;
	border-radius: 50%;
	background: #F2F6F9;
	box-shadow: 8px 8px 16px rgba(163,177,198,0.35), -8px -8px 16px rgba(255,255,255,0.9);
	z-index: 0;
}
.project-item__image img{
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: var(--shadow-light);
	transition: all var(--transition-normal);
	position: relative;
	z-index: 1;
}

.project-item:hover .project-item__image img {
	transform: scale(1.05);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-item__title {
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	transition: all var(--transition-normal);
	grid-column: 1 / -1;
}

.project-item__title a {
	text-decoration: none;
	color: var(--text-primary);
	transition: all var(--transition-normal);
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: normal;
    max-height: 2.6em; /* visually caps height for 2 lines */
}

/* Guarantee space between first row (rating) and second row (headline) */
.project-item__head{row-gap:6px}

.project-item__title a:hover {
	color: var(--blue-title-color);
}
.project-item__title a{
	text-decoration: none;
}

.project-item__rating {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #F2F6F9;
    /* inner + outer for pill */
    box-shadow: inset 2px 2px 5px rgba(163, 177, 198, 0.28), inset -2px -2px 5px rgba(255, 255, 255, 0.9), 6px 6px 14px rgba(163, 177, 198, 0.2), -6px -6px 14px rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0; /* hide label text node by default */
    line-height: 1;
    text-transform: none;
    color: #616E77;
    flex-shrink: 0;
    margin: 0;
    justify-self: end;
    transition: all var(--transition-normal);
    animation: fadeInUp 0.6s ease-out;
}

/* Animated label reveal on hover */
.project-item__rating::before{
    content: 'рейтинг';
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    margin-right: 0;
    font-size: 11px; /* label size */
    color: #616E77;
    transition: max-width var(--transition-normal), opacity var(--transition-normal), margin-right var(--transition-normal);
}
.project-item__rating:hover{ padding: 6px 12px; }
.project-item__rating:hover::before{
    max-width: 70px;
    opacity: 1;
    margin-right: 6px;
}

.project-item:hover .project-item__rating {
	color: var(--blue-title-color);
	transform: scale(1.03);
}
.project-item__rating span{
    display: block;
    font-family: 'Tomorrow';
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    color: #437B94;
}
.project-item_red .project-item__rating span{color: #CC6363;}
.project-item_gray .project-item__rating span{color: #7298A6;}
.project-item_blue .project-item__rating span{color: #437B94;}
.project-item__content .project-item__image{
	display: none;
}
.project-item__list {
	font-size: 15px;
	line-height: 21px;
	color: #616E77;
	margin-bottom: 10px;
	animation: fadeInUp 0.6s ease-out;
	animation-delay: 0.2s;
}

.project-item:hover .project-item__list {
	color: var(--text-primary);
}
.project-item__list li{
	position: relative;
	padding-left: 19px;
	margin-bottom: 1px;
	transition: all var(--transition-normal);
}

.project-item__list li:hover {
	transform: translateX(3px);
	color: var(--blue-title-color);
}
.project-item__list li:before{
	content: '';
	display: block;
	width: 11px;
	height: 8px;
	background: url("data:image/svg+xml,%3Csvg width='11' height='8' viewBox='0 0 11 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.73609 7.84288L0.161085 4.35628C-0.0536949 4.14681 -0.0536949 3.80718 0.161085 3.59769L0.938884 2.8391C1.15366 2.62961 1.50193 2.62961 1.71671 2.8391L4.125 5.18782L9.28329 0.157101C9.49807 -0.0523671 9.84634 -0.0523671 10.0611 0.157101L10.8389 0.915689C11.0537 1.12516 11.0537 1.46479 10.8389 1.67428L4.51391 7.8429C4.29911 8.05237 3.95087 8.05237 3.73609 7.84288Z' fill='%23437B94'/%3E%3C/svg%3E%0A") no-repeat 0 0 / 100% auto;
	position: absolute;
	top: 6px;
	left: 0;
}
.project-item__list strong{
	color: #111;
}
.project-item__btns {
	display: flex;
}
.project-item__social {
	width: 50%;
	padding-right: 10px;
}
.project-item__social span{
	display: flex;
	justify-content: center;
	align-items: center;
	height: 40px;
	background: linear-gradient(135deg, var(--blue-title-color) 0%, var(--footer-main) 100%);
	box-shadow: var(--shadow-button);
	border-radius: var(--border-radius-md);
	font-weight: 600;
	font-size: 14px;
	line-height: 18px;
	text-decoration: none;
	color: #fff;
	cursor: pointer;
	transition: all var(--transition-normal);
	position: relative;
	overflow: hidden;
}

.project-item__social span:before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left var(--transition-slow);
}

.project-item__social span:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(67, 123, 148, 0.4);
}

.project-item__social span:hover:before {
	left: 100%;
}
.project-item__social span i{
	display: block;
	line-height: 0;
	margin-left: 8px;
}
.project-item__social span svg{
	fill: #fff;
}
.project-item__btns em{
	font-style: normal;
}
.project-item__reviews {
	width: 50%;
}
.project-item__reviews a{
	display: flex;
	justify-content: center;
	align-items: center;
	height: 40px;
	background: #F2F6F9;
	/* neo secondary button */
	box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.25), -6px -6px 14px rgba(255, 255, 255, 0.9);
	border-radius: var(--border-radius-md);
	font-weight: 700;
	font-size: 14px;
	line-height: 18px;
	text-align: center;
	text-decoration: none;
	color: #437B94;
	transition: all var(--transition-normal);
	position: relative;
	overflow: hidden;
}

.project-item__reviews a:before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left var(--transition-slow);
}

.project-item__reviews a:hover {
	transform: translateY(-2px);
	box-shadow: 10px 10px 20px rgba(163, 177, 198, 0.28), -10px -10px 20px rgba(255, 255, 255, 0.95);
}

.project-item__reviews a:hover:before {
	left: 100%;
}
.project-item__reviews a span{
	display: block;
	font-family: 'Tomorrow';
	font-weight: 500;
	font-size: 10px;
	line-height: 18px;
	position: relative;
	margin-left: 15px;
}
.project-item__reviews a span:before{
	content: '';
	display: block;
	background: linear-gradient(135deg, #5A7A8A 0%, #4A6A7A 100%);
	border-radius: 50%;
	position: absolute;
	top: -3px;
	right: -3px;
	bottom: -3px;
	left: -3px;
	opacity: 0.8;
}
.project-item__reviews a i{
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	position: relative;
	width: 24px;
	height: 24px;
	background: linear-gradient(135deg, #5A7A8A 0%, #4A6A7A 100%);
	box-shadow: 0 2px 8px rgba(90, 122, 138, 0.4);
	color: #fff;
	font-weight: 600;
	font-size: 9px;
	transition: all var(--transition-fast);
}

.project-item__reviews a i svg{
	fill: #fff;
}

/* Focus visibility for accessibility */
.project-item__social span:focus-visible,
.project-item__reviews a:focus-visible{
	outline: 3px solid rgba(67, 123, 148, 0.5);
	outline-offset: 2px;
}

.page-title h2 {
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-title-color) 0%, var(--footer-main) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
    margin: 0;
    align-self: start;
}


/* Responsive
-----------------------------------------------------------------------------*/
@media only screen and (max-width: 1310px){
	.project-catalog {
		padding: 45px 35px 30px;
	}
}
@media only screen and (max-width: 1200px){
	.project-catalog__col{
		width: 33.333333333%;
	}
}
@media only screen and (max-width: 992px){
	.project-catalog{
		padding: 15px 15px 10px;
		margin: 0 -15px;
		border-radius: 0;
	}
	.project-catalog__container{
		width: 746px;
		max-width: 100%;
		margin: 0 auto;
	}
	.project-catalog__col{
		width: 50%;
	}
	.project-item {
		padding: 15px 15px 15px;
	}
	.project-item__number{
		left: -5px;
	}
	.project-item__image{
		width: 75px;
		height: 75px;
	}
	.project-item__head{
		margin-bottom: 13px;
	}
	.project-item__title{
		font-size: 22px;
		line-height: 30px;
		margin: 0 20px 0 0;
	}
	.project-item__rating{
		margin: -3px 0px 0 0;
	}
	.project-item__rating span{
		font-size: 28px;
		line-height: 32px;
	}
	.project-item__list{
		font-size: 16px;
		line-height: 23px;
		margin-bottom: 16px;
	}
	.project-item__list li:before{
		top: 8px;
	}
	.project-item__social{
		width: 38%;
	}
	.project-item__reviews{
		width: 62%;
	}
	.project-item__social span{
		font-size: 13px;
		font-weight:600;
	}
	.project-item__reviews a span{
		margin-left: 12px;
	}
	.project-item__reviews a {
		font-weight:600;
	}
	
}
@media only screen and (max-width: 767px){
	.project-catalog__container{
		width: 354px;
	}
	.project-catalog__col{
		width: 100%;
		padding: 0 0 15px;
	}
	/*  */
	
}
@media only screen and (max-width: 411px){

	
}
@media only screen and (max-width: 383px){
	.project-item{
		padding: 12px 15px 15px;
	}
	.project-item__number {
		left: -5px;
		top: 15px;
	}
	.project-item__image{
		display: none;
	}
	.project-item__content{
		padding-left: 85px;
		position: relative;
	}
	.project-item__content .project-item__image{
		width: 70px;
		height: 70px;
		margin: 0;
		display: block;
		position: absolute;
		top: 0;
		left: 0;
	}
	.project-item__head {
		margin: 0 0 11px 0;
	}
	.project-item__number + .project-item__head{
		margin-left: 15px;
	}
	.project-item__title{
		font-size: 20px;
		line-height: 30px;
	}
	.project-item__rating{
		display: flex;
		align-items: baseline;
		margin: -4px 0 0 0;
		font-size: 10px;
	}
	.project-item__rating span{
		font-size: 25px;
		line-height: 30px;
		margin: 0 0 0 4px;
	}
	.project-item__list{
		min-height: 65px;
		font-size: 15px;
		line-height: 21px;
		margin-bottom: 17px;
	}
	.project-item__btns{
		margin-left: -85px;
	}
	.project-item__social{
		width: 34%;
	}
	.project-item__social span{
		font-size: 14px;
	}
	.project-item__social span i{
		display: none;
	}
	.project-item__reviews{
		width: 66%;
	}
	.project-catalog__container{
		width: auto;
		max-width: calc(100% + 10px);
		margin: 0 -5px;
	}
}
@media only screen and (max-width: 359px){
	.project-item{
		padding: 12px 10px 15px;
	}
	.project-item__head{
		margin: 0 0 11px;
	}
	.project-item__number + .project-item__head{
		margin-left: 20px;
	}
	.project-item__title{
		font-size: 18px;
		line-height: 30px;
		margin: 0 10px 0 0;
	}
	.project-item__rating{
		margin: -7px 0 0 0;
	}
	.project-item__content {
		padding-left: 80px;
	}
	.project-item__list{
		font-size: 13px;
		line-height: 19px;
		padding-top: 2px;
		margin-bottom: 12px;
	}
	.project-item__list li{
		margin-bottom: 3px;
	}
	.project-item__list li:before{
		top: 5px;
	}
	.project-item__btns{
		margin-left: -80px;
	}
	.project-item__social {
		width: 35%;
	}
	.project-item__reviews {
		width: 65%;
	}
	.project-item__reviews a{
		font-size: 13px;
	}
	.mobile-sidebar{
		padding: 15px 0 5px;
		margin: 0 -5px;
	}
	.aside-links__list {
		font-size: 15px;
		line-height: 22px;
	}
}

/* Анимации для project-catalog */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Улучшенные переходы для мобильных устройств */
@media (hover: none) {
	.project-item:hover {
		transform: none;
	}
	
	.project-item:hover .project-item__image img {
		transform: none;
	}
	
	.project-item:hover .project-item__number {
		transform: none;
	}
	
	.project-item:hover .project-item__rating {
		transform: none;
	}
	
	.project-item__list li:hover {
		transform: none;
	}
	
	.project-item__social span:hover {
		transform: none;
	}
	
	.project-item__reviews a:hover {
		transform: none;
	}
}
