/**
 * Zima default footer.
 */

.zm-footer {
	--zm-footer-text: #7f7f88;
	--zm-footer-soft: #9f9aa1;
	--zm-footer-card: #180c1e;
	--zm-footer-line: #1d1123;
	--zm-footer-wave: 31px;
	position: relative;
	margin-top: var(--zm-section-gap, 64px);
	color: var(--zm-footer-text);
}

.zm-footer--art {
	padding-top: 92px;
}

.zm-footer .zm-i {
	display: block;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
}

/* ---------- Image on the curved edge ---------- */

.zm-footer__art {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 2;
	width: 260px;
	transform: translateX(-50%);
	pointer-events: none;
}

.zm-footer__art-img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Dark body with the curved top ---------- */

.zm-footer__body {
	position: relative;
	padding-top: 124px;
	background: var(--zm-color-footer);
	isolation: isolate;
}

.zm-footer:not(.zm-footer--art) .zm-footer__body {
	padding-top: 72px;
}

/* The curve: higher at the sides, lowest in the middle. */
.zm-footer__body::before {
	content: "";
	position: absolute;
	bottom: calc(100% - 1px);
	left: 0;
	right: 0;
	height: var(--zm-footer-wave);
	background: var(--zm-color-footer);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q50 20 100 0V10H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q50 20 100 0V10H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

/* Faint grid on both sides. */
.zm-footer__body::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 99px 99px;
	background-position: center 24px;
	-webkit-mask-image: linear-gradient(90deg, #000 0, transparent 30%, transparent 72%, #000 100%), linear-gradient(#000 40%, transparent 85%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, #000 0, transparent 30%, transparent 72%, #000 100%), linear-gradient(#000 40%, transparent 85%);
	mask-composite: intersect;
	pointer-events: none;
}

:where(.zm-footer) a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

/* ---------- Top row: about, links, newsletter ---------- */

.zm-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 405px) minmax(0, 1fr) minmax(0, 313px);
	gap: 44px;
	align-items: start;
	padding-bottom: 76px;
}

.zm-footer__brand {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	color: #ffffff;
}

.zm-footer a.zm-footer__brand:hover {
	color: #ffffff;
}

.zm-footer__brand-title {
	font-family: var(--zm-font-heading);
	font-size: var(--zm-fs-lg);
	font-weight: var(--zm-fw-bold);
	line-height: 1.5;
}

.zm-footer__brand-subtitle {
	font-size: var(--zm-fs-lg);
	font-weight: var(--zm-fw-medium);
	line-height: 1.3;
	letter-spacing: 0.01em;
}

.zm-footer__logo {
	display: block;
	width: auto;
	max-width: 220px;
	height: auto;
	max-height: 64px;
}

.zm-footer__text {
	margin: 18px 0 0;
	font-size: 13px;
	line-height: 2;
	text-align: justify;
}

.zm-footer__links {
	display: flex;
	justify-content: center;
	gap: 69px;
}

.zm-footer__col {
	min-width: 143px;
}

.zm-footer__title {
	margin: 0 0 24px;
	font-family: var(--zm-font-heading);
	font-size: var(--zm-fs-md);
	font-weight: var(--zm-fw-medium);
	line-height: 1.5;
	color: #ffffff;
}

.zm-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: 40px;
}

.zm-footer__menu li {
	break-inside: avoid;
	padding-bottom: 8px;
}

.zm-footer__menu a {
	display: inline-block;
	font-size: var(--zm-fs-sm);
	line-height: 22px;
}

.zm-footer__menu a:hover,
.zm-footer__menu a:focus-visible,
.zm-footer__menu .current-menu-item > a {
	color: #ffffff;
}

.zm-footer__menu .current-menu-item > a {
	font-weight: var(--zm-fw-bold);
}

/* ---------- Newsletter ---------- */

.zm-footer__news {
	padding-top: 30px;
	padding-inline-start: 20px;
}

.zm-news__title {
	position: relative;
	margin: 0 0 30px;
	font-size: 15px;
	font-weight: var(--zm-fw-medium);
	line-height: 1.6;
	color: #ffffff;
}

/* Three small strokes before the title. */
.zm-news__title::before {
	content: "";
	position: absolute;
	top: -18px;
	inset-inline-start: -20px;
	width: 20px;
	height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M17 4.5 11.5 9M18.5 11l-6 .8M10.8 1.5 8.6 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.zm-news__form {
	position: relative;
	display: flex;
	align-items: center;
	height: 64px;
	padding: 9px;
	border: 1px solid #332838;
	border-radius: 999px;
	transition: border-color 0.2s;
}

.zm-news__form:focus-within {
	border-color: color-mix(in srgb, var(--zm-color-primary) 70%, #ffffff);
}

.zm-news__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 12px;
	font-family: inherit;
	font-size: var(--zm-fs-sm);
	color: #ffffff;
	text-align: right;
	background: transparent;
	border: 0;
	outline: 0;
}

.zm-news__input::placeholder {
	color: #ffffff;
	opacity: 1;
}

.zm-news__submit {
	flex-shrink: 0;
	height: 100%;
	min-width: 98px;
	padding: 0 22px;
	font-family: inherit;
	font-size: var(--zm-fs-sm);
	font-weight: var(--zm-fw-medium);
	color: var(--zm-color-heading);
	background: #ffffff;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.zm-news__submit:hover,
.zm-news__submit:focus-visible {
	color: #ffffff;
	background: var(--zm-color-primary);
}

.zm-news__submit[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.zm-news__hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.zm-news__captcha:not(:empty) {
	margin-top: 12px;
}

.zm-news__msg {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.8;
	color: var(--zm-footer-soft);
}

.zm-news__msg.is-ok {
	color: #5ee0a0;
}

.zm-news__msg.is-error {
	color: #ff7b9c;
}

/* ---------- Contacts and trust badges ---------- */

.zm-footer__info {
	display: flex;
	align-items: center;
	gap: 40px;
	padding-block: 12px;
	border-top: 1px solid var(--zm-footer-line);
	border-bottom: 1px solid var(--zm-footer-line);
}

.zm-footer__contacts {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zm-footer__contact {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 63px;
}

.zm-footer__contact-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.zm-footer__label {
	font-size: 13px;
	line-height: 1.5;
}

.zm-footer__value {
	font-size: var(--zm-fs-md);
	font-weight: var(--zm-fw-medium);
	line-height: 1.5;
	color: #ffffff;
	unicode-bidi: plaintext;
}

.zm-footer__contact--address .zm-footer__value {
	font-size: var(--zm-fs-sm);
}

.zm-footer a.zm-footer__value:hover,
.zm-footer a.zm-footer__value:focus-visible {
	color: color-mix(in srgb, var(--zm-color-primary) 45%, #ffffff);
}

.zm-footer__contact-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 63px;
	height: 63px;
	color: #ffffff;
	background: var(--zm-footer-card);
	border-radius: 50%;
}

.zm-footer__contact-icon .zm-i {
	width: 26px;
	height: 26px;
}

.zm-footer__badges {
	display: flex;
	flex-shrink: 0;
	gap: 14px;
	margin-inline-start: auto;
}

.zm-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 117px;
	height: 63px;
	overflow: hidden;
	background: var(--zm-footer-card);
	border-radius: 12px;
	transition: transform 0.2s var(--zm-ease);
}

.zm-footer a.zm-badge:hover {
	transform: translateY(-2px);
}

.zm-badge__img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ---------- Bottom row ---------- */

.zm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding-block: 30px 34px;
}

.zm-footer__copyright {
	margin: 0;
	font-size: 13px;
	line-height: 1.8;
	color: var(--zm-footer-soft);
}

.zm-footer__follow {
	display: flex;
	align-items: center;
	gap: 26px;
}

.zm-footer__follow-text {
	font-size: var(--zm-fs-xs);
}

.zm-footer__socials {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zm-footer__social {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: #6b6474;
	border-radius: 50%;
}

.zm-footer__social .zm-i {
	width: 27px;
	height: 27px;
	stroke-width: 1.8;
}


.zm-footer__social-mark {
	display: block;
	width: 26px;
	height: 26px;
	background: currentColor;
	-webkit-mask: var(--zm-mark) center / contain no-repeat;
	mask: var(--zm-mark) center / contain no-repeat;
}

.zm-footer__social-img {
	display: block;
	width: 27px;
	height: 27px;
	object-fit: contain;
	opacity: 0.55;
	transition: opacity 0.2s;
}

.zm-footer a.zm-footer__social:hover,
.zm-footer a.zm-footer__social:focus-visible {
	color: #ffffff;
}

.zm-footer__social:hover .zm-footer__social-img,
.zm-footer__social:focus-visible .zm-footer__social-img {
	opacity: 1;
}

.zm-footer a:focus-visible,
.zm-footer button:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--zm-color-primary) 60%, #ffffff);
	outline-offset: 3px;
}

/* ---------- Narrow desktops (992–1199px) ----------
 * Keep the three columns side by side, like the full-size design:
 * about on one side, menus in the middle, newsletter on the other side.
 * Each menu becomes a single list so its items don't break into two lines.
 */

@media (max-width: 1199.98px) {
	.zm-footer--art .zm-footer__body {
		padding-top: 150px;
	}

	.zm-footer__top {
		grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1fr);
		gap: 36px;
		padding-bottom: 60px;
	}

	.zm-footer__links {
		justify-content: center;
		gap: 36px;
	}

	.zm-footer__col {
		min-width: 0;
	}

	.zm-footer__title {
		margin-bottom: 18px;
	}

	.zm-footer__menu {
		columns: 1;
	}

	.zm-footer__info {
		flex-wrap: wrap;
		gap: 20px 32px;
	}

	.zm-footer__contacts {
		gap: 12px 28px;
	}

	.zm-footer__contact {
		gap: 16px;
	}

	.zm-footer__contact-icon {
		width: 54px;
		height: 54px;
	}

	.zm-footer__contact-icon .zm-i {
		width: 22px;
		height: 22px;
	}
}

/* ---------- Tablets (768–991px) ----------
 * About on its own row (with a comfortable line length), menus and newsletter beside each other below it.
 */

@media (max-width: 991.98px) {
	.zm-footer__top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 44px 40px;
	}

	.zm-footer__about {
		grid-column: 1 / -1;
	}

	.zm-footer__text {
		max-width: 640px;
	}

	.zm-footer__links {
		justify-content: flex-start;
	}

	.zm-footer__badges {
		margin-inline-start: 0;
	}
}

/* ---------- Phones ---------- */

@media (max-width: 767px) {
	.zm-footer {
		--zm-footer-wave: 14px;
	}

	.zm-footer--art {
		padding-top: 80px;
	}

	.zm-footer__art {
		width: 210px;
	}

	.zm-footer--art .zm-footer__body {
		padding-top: 125px;
	}

	.zm-footer__body::after {
		background-size: 72px 72px;
		-webkit-mask-image: linear-gradient(#000 0, transparent 40%);
		mask-image: linear-gradient(#000 0, transparent 40%);
	}

	.zm-footer__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		padding-bottom: 40px;
	}

	.zm-footer__text {
		max-width: none;
	}

	.zm-footer__brand-title,
	.zm-footer__brand-subtitle {
		font-size: var(--zm-fs-md);
	}

	.zm-footer__text {
		margin-top: 14px;
		font-size: 12.5px;
		line-height: 1.95;
	}

	.zm-footer__links {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 16px;
	}

	.zm-footer__col {
		min-width: 0;
	}

	.zm-footer__title {
		margin-bottom: 18px;
	}

	.zm-footer__menu {
		columns: 2;
		column-gap: 16px;
	}

	.zm-footer__menu li {
		padding-bottom: 10px;
	}

	.zm-footer__menu a {
		font-size: 13px;
	}

	.zm-footer__news {
		padding-top: 14px;
		padding-inline-start: 0;
	}

	.zm-news__title {
		margin-bottom: 26px;
		font-size: var(--zm-fs-sm);
	}

	.zm-news__title::before {
		top: -18px;
		inset-inline-start: 0;
		width: 18px;
		height: 18px;
	}

	.zm-news__form {
		height: 62px;
		padding: 8px;
	}

	.zm-news__submit {
		min-width: 94px;
	}

	.zm-footer__info {
		display: block;
		padding: 0;
		border: 0;
	}

	.zm-footer__contacts {
		flex-direction: column;
		align-items: stretch;
		gap: 30px;
	}

	.zm-footer__contact {
		min-height: 0;
	}

	.zm-footer__contact-icon {
		display: none;
	}

	.zm-footer__contact-text {
		flex: 1;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.zm-footer__contact--address {
		order: 3;
	}

	.zm-footer__contact--address .zm-footer__contact-text {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.zm-footer__label {
		font-size: 12.5px;
	}

	.zm-footer__value {
		font-size: var(--zm-fs-md);
	}

	.zm-footer__contact--address .zm-footer__value {
		font-size: var(--zm-fs-sm);
	}

	.zm-footer__badges {
		justify-content: center;
		margin-top: 32px;
	}

	.zm-footer__bottom {
		flex-direction: column;
		gap: 26px;
		padding-block: 40px 30px;
		text-align: center;
	}

	.zm-footer__copyright {
		font-size: 12px;
	}

	.zm-footer__follow-text {
		display: none;
	}

	.zm-footer__socials {
		justify-content: center;
		gap: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zm-badge {
		transition: none;
	}
}