.py-footer {
	position: relative;
	z-index: 80;
	height: 100svh;
	background: transparent;
	color: #fff;
	direction: rtl;
}

.py-footer__sheet {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	height: 100svh;
	padding: 28px clamp(16px, 3vw, 40px);
	background: #000;
	transform: translate3d(0, 100%, 0);
	visibility: hidden;
	pointer-events: none;
	overflow: hidden;
}

.py-footer.is-open .py-footer__sheet {
	visibility: visible;
	pointer-events: auto;
}

.py-footer__dots {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.py-footer__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	margin: 0;
}

.py-footer__card {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: min(480px, calc(100svh - 168px));
	border: 1px solid #fff;
	border-radius: 28px;
	padding: 52px 36px;
	background: transparent;
}

.py-footer__grid {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px;
	width: 100%;
	direction: rtl;
}

.py-footer__col {
	flex: 0 0 auto;
	min-width: 0;
}

.py-footer__brand {
	flex: 0 0 250px;
	width: 250px;
	max-width: 28%;
}

.py-footer__title {
	margin: 0;
	color: #fff;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.5;
}

.py-footer__logo {
	margin: 0 0 16px;
}

.py-footer__logo-img {
	display: block;
	width: auto;
	max-width: 168px;
	max-height: 56px;
	object-fit: contain;
}

.py-footer__about {
	margin: 0;
	color: #fff;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.95;
	text-align: justify;
	text-align-last: right;
}

.py-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.py-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid #fff;
	border-radius: 50%;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	background: transparent;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.py-footer__social a:hover,
.py-footer__social a:focus-visible {
	background: #fff;
	color: #000 !important;
	-webkit-text-fill-color: #000;
	transform: scale(1.04);
}

.py-footer__social svg,
.py-footer__contact svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.py-footer svg .is-fill {
	fill: currentColor;
	stroke: none;
}

.py-footer__social:empty,
.py-footer__contact:empty,
.py-footer__menu:empty {
	display: none;
}

.py-footer__menu,
.py-footer__contact {
	display: grid;
	gap: 12px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.py-footer__menu a,
.py-footer__menu span,
.py-footer__contact a,
.py-footer__contact span,
.py-footer__about,
.py-footer__title,
.py-footer__copy,
.py-footer__credit {
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}

.py-footer__menu a,
.py-footer__contact a,
.py-footer__credit a {
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	text-decoration: none;
	font-family: "Ray", "Poppins", Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.7;
}

.py-footer__menu a:hover,
.py-footer__menu a:focus-visible,
.py-footer__contact a:hover,
.py-footer__contact a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.py-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #fff;
	font-family: "Ray", "Poppins", Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.8;
}

.py-footer__contact svg {
	flex: 0 0 18px;
	margin-top: 4px;
}

.py-footer__badge-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 16px;
	direction: rtl;
}

.py-footer__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0;
	background: transparent;
}

.py-footer__badge.is-empty {
	display: none;
}

.py-footer__badge-img,
.py-footer__badge img {
	display: block;
	width: auto;
	max-width: 84px;
	max-height: 68px;
	object-fit: contain;
	background: transparent;
}

.py-footer__badge a {
	color: inherit;
	-webkit-text-fill-color: currentcolor;
}

.py-footer__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
	direction: rtl;
}

.py-footer__copy,
.py-footer__credit {
	margin: 0;
	font-family: "Ray", "Poppins", Tahoma, sans-serif;
	font-size: 15px;
	line-height: 1.8;
}

.py-footer__credit a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.py-to-top {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 45;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: #000;
	color: #fff;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.py-to-top svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.py-to-top.is-on {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

.py-to-top:hover,
.py-to-top:focus-visible {
	background: #fff;
	color: #000;
}

@media (max-width: 1100px) {
	.py-footer__grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 32px 40px;
	}

	.py-footer__brand {
		grid-column: 1 / -1;
		width: auto;
		max-width: 420px;
	}
}

@media (max-width: 700px) {
	.py-footer {
		height: auto;
	}

	.py-footer__sheet {
		position: relative;
		height: auto;
		align-items: flex-start;
		padding: 28px 16px 20px;
		overflow: visible;
		transform: none;
		visibility: visible;
		pointer-events: auto;
	}

	.py-footer__card {
		min-height: 0;
		padding: 22px 16px;
		border-radius: 18px;
	}

	.py-footer__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.py-footer__brand {
		grid-column: auto;
		width: auto;
		max-width: none;
		flex-basis: auto;
	}

	.py-footer__title {
		font-size: 17px;
	}

	.py-footer__about,
	.py-footer__menu a,
	.py-footer__contact a,
	.py-footer__contact li {
		font-size: 15px;
	}

	.py-footer__logo-img {
		max-width: 150px;
		max-height: 48px;
	}

	.py-footer__social a {
		width: 40px;
		height: 40px;
	}

	.py-footer__bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.py-footer__copy,
	.py-footer__credit {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.py-footer {
		height: auto;
	}

	.py-footer__sheet {
		position: relative;
		height: auto;
		transform: none;
		visibility: visible;
		pointer-events: auto;
	}

	.py-footer__social a,
	.py-to-top {
		transition: none;
	}
}
