

/* Start:/bitrix/templates/ascompany/components/bitrix/news.list/ambassadory/style.css?17289222006506*/
.ambassadory {
	.ambassadory__list {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		row-gap: 48px;
		column-gap: 24px;

		@media screen and (max-width: 1024px) {
			grid-template-columns: repeat(3, 1fr);
		}

		@media screen and (max-width: 768px) {
			grid-template-columns: repeat(2, 1fr);
			row-gap: 30px;
			column-gap: 16px;
		}

		@media screen and (max-width: 325px) {
			grid-template-columns: repeat(1, 1fr);
		}

		.ambassadory__item {
			width: 100%;
			cursor: pointer;
			transition: .3s;
			box-shadow: 5px -5px 8.5px 0px transparent;

			display: flex;
			flex-direction: column;
			row-gap: 20px;

			@media screen and (max-width: 768px) {
				row-gap: 10px;
			}

			&:hover {
				box-shadow: 5px -5px 8.5px 0px #76767640;
			}

			.ambassadory__photo {
				position: relative;
				overflow: hidden;
				width: 100%;
				padding-top: 124%;

				img {
					height: 100%;
					width: 100%;
					object-fit: cover;
					position: absolute;
					left: 50%;
					top: 50%;
					transform: translate(-50%, -50%);

					&.no-photo {
						object-fit: contain;
					}
				}
			}

			.ambassadory__info {
				.ambassadory__name {
					font-weight: 400;
					font-size: 24px;
					color: #333333;

					@media screen and (max-width: 525px) {
						font-size: 18px;
					}
				}

				.ambassadory__personal {
					margin-top: 6px;
					display: flex;
					align-items: baseline;
					column-gap: 16px;

					@media screen and (max-width: 525px) {
						flex-direction: column;
						row-gap: 4px;
					}

					.ambassadory__city {
						font-weight: 400;
						font-size: 14px;
						color: #828282;

						@media screen and (max-width: 525px) {
							font-size: 12px;
						}
					}

					.ambassadory__social {
						white-space: nowrap;

						@media screen and (max-width: 525px) {
							order: -1;
						}
						
						span {
							font-weight: 400;
							font-size: 14px;
							color: #E04A8B;

							@media screen and (max-width: 525px) {
								font-size: 12px;
							}
						}
					}
				}
			}

			.ambassadory__more {
				padding-top: 10px;
				margin-top: auto;
				font-weight: 400;
				font-size: 14px;
				color: #333333;

				display: flex;
				align-items: center;
				column-gap: 12px;

				@media screen and (max-width: 525px) {
					padding-top: 5px;
					font-size: 12px;
				}

				.icon-arrow {
					width: 17px;
					height: 8px;
					background-size: 100%;
					transition: .3s;
					transform: translateX(0);

					.ambassadory__item:hover & {
						transform: translateX(4px);
					}

					@media screen and (max-width: 525px) {
						width: 13px;
						height: 6px;
					}
				}
			}

			.ambassadory__description {
				display: none;
			}
		}
	}
}

.popup {
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -50%);
	transition: opacity .3s, margin-top .3s;
	width: 1072px;
	max-width: calc(100vw - 40px);
	margin-top: -20px;

	display: flex;
	align-items: center;
	justify-content: center;

	@media screen and (max-width: 768px) {
		max-width: calc(100vw - 20px);
	}

	&.popup--show {
		opacity: 1;
		pointer-events: all;
		margin-top: 0;
	}

	.popup__background {
		position: absolute;
		left: 50%;
		top: 50%;
		z-index: -1;
		background-color: rgba(52, 52, 52, 0.22);
		transform: translate(-50%, -50%);
		width: 100vw;
		height: 100vh;
	}

	.popup__container {
		background-color: #fff;
		padding: 40px 70px;
		position: relative;

		width: 100%;
		max-height: calc(100% - 40px);
		overflow: hidden;
		overflow-y: auto;

		@media screen and (max-width: 1024px) {
			padding: 40px;
		}

		@media screen and (max-width: 768px) {
			padding: 25px;
		}

		.popup__close {
			width: 22px;
			height: 22px;
			position: absolute;
			z-index: 1;
			right: 30px;
			top: 30px;
			cursor: pointer;
			background-size: 32px;
			background-repeat: no-repeat;
			background-position: center;
			background-image: url(/bitrix/templates/ascompany/icon/close.svg);

			@media screen and (max-width: 768px) {
				width: 33px;
				height: 33px;
				right: 0px;
				top: 0px;
				background-size: 22px;
			}
		}

		.popup__html {
			/* max-height: calc(100vh - 120px); */
			/* max-height: calc(100% - 120px);
			overflow: hidden;
			overflow-y: auto; */

			@media screen and (max-width: 768px) {
				/* max-height: calc(100vh - 70px); */
				/* max-height: calc(100% - 70px); */
			}

			.ambassadory__item {
				display: flex;
				align-items: center;
				column-gap: 24px;

				@media screen and (max-width: 525px) {
					align-items: start;
					flex-direction: column;
					row-gap: 10px;
				}

				.ambassadory__photo {
					width: 100%;
					max-width: 44%;
					position: relative;
					overflow: hidden;

					@media screen and (max-width: 525px) {
						max-width: 100%;
					}

					&::before {
						content: '';
						display: block;
						padding-top: 124%;
					}

					img {
						position: absolute;
						left: 50%;
						top: 50%;
						object-fit: cover;
						width: 100%;
						height: 100%;
						transform: translate(-50%, -50%);
					}
				}

				.ambassadory__info {
					.ambassadory__name {
						font-weight: 400;
						font-size: 30px;
						color: #333333;

						@media screen and (max-width: 768px) {
							font-size: 18px;
						}
					}

					.ambassadory__personal {
						margin-top: 8px;
						display: flex;
						align-items: baseline;
						column-gap: 24px;
						flex-wrap: wrap;

						.ambassadory__city {
							font-weight: 400;
							font-size: 18px;
							color: #828282;

							@media screen and (max-width: 768px) {
								font-size: 12px;
							}
						}

						.ambassadory__social {
							order: -1;
							
							span {
								font-weight: 400;
								font-size: 18px;
								color: #E04A8B;

								@media screen and (max-width: 768px) {
									font-size: 12px;
								}
							}
						}
					}

					.ambassadory__description {
						margin-top: 20px;
						font-weight: 400;
						font-size: 18px;
						color: #333333;

						@media screen and (max-width: 768px) {
							font-size: 12px;
						}
					}
				}

				.ambassadory__more {
					display: none;
				}
			}
		}
	}
}
/* End */
/* /bitrix/templates/ascompany/components/bitrix/news.list/ambassadory/style.css?17289222006506 */
