/* ===== INVIA site footer — чёрный фон, RTL, десктоп + мобильный ===== */

/* ── Секция над футером: купон (магазин) / ייעוץ (טיפולים) ── */
.invia-footer-cta {
	--invia-footer-cta-bg: #f7f3f0;
	--invia-footer-cta-muted: #5c5c5c;
	background: var(--invia-footer-cta-bg);
	color: #151515;
	font-family: 'Ploni', -apple-system, BlinkMacSystemFont, sans-serif;
	padding: clamp(40px, 6vw, 72px) 20px;
	text-align: center;
	box-sizing: border-box;
}

.invia-footer-cta__inner {
	max-width: 640px;
	margin: 0 auto;
}

.invia-footer-cta__title {
	margin: 0 0 12px;
	font-size: clamp(22px, 4.2vw, 32px);
	font-weight: 700;
	line-height: 1.25;
	color: #151515;
	letter-spacing: 0.01em;
}

.invia-footer-cta__lead {
	margin: 0 0 28px;
	font-size: clamp(15px, 2.2vw, 17px);
	font-weight: 400;
	line-height: 1.55;
	color: var(--invia-footer-cta-muted);
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}

.invia-footer-cta__form {
	margin: 0;
	max-width: 520px;
	margin-inline: auto;
}

.invia-footer-cta__pill {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
	min-height: 52px;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #d6d6d6;
	box-sizing: border-box;
}

.invia-footer-cta__input {
	flex: 1 1 auto;
	min-width: 0;
	border: none !important;
	background: #fff;
	padding: 14px 20px;
	font-family: 'Ploni', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	color: #151515;
	text-align: right;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

.invia-footer-cta__input:focus,
.invia-footer-cta__input:focus-visible,
.invia-footer-cta__input:active {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

/* Chrome autofill — без жёлтой/чёрной обводки, фон как у поля */
.invia-footer-cta__input:-webkit-autofill,
.invia-footer-cta__input:-webkit-autofill:hover,
.invia-footer-cta__input:-webkit-autofill:focus {
	-webkit-text-fill-color: #151515;
	box-shadow: 0 0 0 1000px #fff inset !important;
	border: none !important;
	outline: none !important;
	transition: background-color 99999s ease-out;
}

.invia-footer-cta__input::placeholder {
	color: rgba(0, 0, 0, 0.38);
}

.invia-footer-cta__submit {
	flex: 0 0 auto;
	margin: 0;
	padding: 14px 22px;
	border: none !important;
	/* без собственного радиуса — форму даёт общая обводка .invia-footer-cta__pill */
	border-radius: 0;
	background: #000 !important;
	color: #fff !important;
	font-family: 'Ploni', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.22s ease, color 0.22s ease;
}

.invia-footer-cta__submit:hover,
.invia-footer-cta__submit:focus-visible {
	background: #fff !important;
	color: #000 !important;
	opacity: 1;
	outline: none;
}

.invia-footer-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 32px;
	border-radius: 999px;
	border: 2px solid #000 !important;
	background: #000 !important;
	color: #fff !important;
	text-decoration: none !important;
	font-family: 'Ploni', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	font-weight: 600;
	transition: background 0.22s ease, color 0.22s ease;
}

.invia-footer-cta__btn:hover,
.invia-footer-cta__btn:focus-visible {
	background: #fff !important;
	color: #000 !important;
	opacity: 1;
	outline: none;
}

.invia-footer-cta--consultation .invia-footer-cta__inner {
	max-width: 560px;
}

.invia-footer-cta--tipulim .invia-footer-cta__title {
	font-size: 53px;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

@media screen and (max-width: 768px) {
	.invia-footer-cta--tipulim .invia-footer-cta__title {
		font-size: clamp(32px, 7vw, 53px);
	}
}

@media screen and (max-width: 600px) {
	.invia-footer-cta__title {
		font-size: 43px;
	}

	/* Разбиваем таблетку на два отдельных элемента */
	.invia-footer-cta__pill {
		flex-direction: column;
		gap: 12px;
		border: none;
		background: transparent;
		border-radius: 0;
		overflow: visible;
		min-height: 0;
	}

	.invia-footer-cta__input {
		border-radius: 14px;
		border: 1px solid #d6d6d6 !important;
		background: #fff;
		text-align: right;
		width: 100%;
		box-sizing: border-box;
		padding: 14px 20px;
		min-height: 52px;
	}

	.invia-footer-cta__submit {
		width: 100%;
		border-radius: 14px !important;
		min-height: 52px;
	}
}

/* screen-reader-text — если в теме нет */
.invia-footer-cta .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.invia-site-footer {
	background: #000;
	color: #fff;
	font-family: 'Ploni', -apple-system, BlinkMacSystemFont, sans-serif;
	margin-top: auto;
	/* Не обрезаем логотип снизу (раньше overflow:hidden + transform уводили картинку за экран) */
	overflow-x: hidden;
	overflow-y: visible;
}

/* Блокируем глобальное a:hover { color:#000 } — все ссылки в футере всегда белые */
html body .invia-site-footer a,
html body .invia-site-footer a:link,
html body .invia-site-footer a:visited,
html body .invia-site-footer a:hover,
html body .invia-site-footer a:focus,
html body .invia-site-footer a:active {
	color: #fff !important;
	text-decoration: none !important;
}

/* Исключение: "Read more" — у него должен быть underline */
html body .invia-site-footer__read-more,
html body .invia-site-footer__read-more:hover,
html body .invia-site-footer__read-more:focus {
	color: #fff !important;
	text-decoration: underline !important;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.invia-site-footer__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 56px 24px 0;
	box-sizing: border-box;
}

/* ── Desktop ── */
.invia-site-footer__desktop {
	display: block;
}

.invia-site-footer__mobile {
	display: none;
}

.invia-site-footer__cols {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(24px, 3vw, 48px);
	align-items: start;
	text-align: right;
}

.invia-site-footer__col-title {
	margin: 0 0 20px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #fff;
	line-height: 1.3;
}

.invia-site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.invia-site-footer__links li {
	margin: 0 0 14px;
}

.invia-site-footer__links a {
	color: rgba(255, 255, 255, 0.92) !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	position: relative;
	display: inline-block;
}

.invia-site-footer__links a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	right: 0;
	width: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.75);
	transition: width 0.3s ease;
}

.invia-site-footer__links a:hover::after,
.invia-site-footer__links a:focus-visible::after {
	width: 100%;
}

html body .invia-site-footer__links a:hover,
html body .invia-site-footer__links a:focus-visible {
	color: rgba(255, 255, 255, 0.92) !important;
	outline: none;
}

.invia-site-footer__empty {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.45);
}

.invia-site-footer__col--about .invia-site-footer__about-text {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
}

.invia-site-footer__read-more {
	display: inline-block;
	font-size: 14px;
	color: #fff !important;
	text-decoration: underline !important;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.invia-site-footer__read-more:hover {
	color: #fff !important;
	opacity: 0.8;
}

/* Утилиты под колонками, выравнивание к левому краю экрана (inline-end в RTL) */
.invia-site-footer__utils {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px 28px;
}

.invia-site-footer__utils--desktop {
	margin-top: 52px;
	margin-bottom: 8px;
	margin-inline-start: auto;
	width: fit-content;
	max-width: 100%;
}

.invia-site-footer__locale {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	row-gap: 8px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	user-select: none;
}

.invia-site-footer__locale img {
	width: 20px;
	height: 14px;
	border-radius: 2px;
	object-fit: cover;
}

.invia-site-footer__locale-switch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-inline-start: 2px;
	font-size: 14px;
	text-decoration: none !important;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.72) !important;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.invia-site-footer__locale-switch:hover,
.invia-site-footer__locale-switch:focus {
	color: #fff !important;
	opacity: 1;
}

.invia-site-footer__locale-switch img {
	flex-shrink: 0;
}

.invia-site-footer__chevron {
	width: 0;
	height: 0;
	border-inline-start: 5px solid transparent;
	border-inline-end: 5px solid transparent;
	border-top: 6px solid rgba(255, 255, 255, 0.75);
	margin-top: 2px;
}

.invia-site-footer__social {
	display: flex;
	align-items: center;
	gap: 18px;
}

.invia-site-footer__social-link {
	display: flex;
	color: #fff;
	opacity: 0.95;
	transition: opacity 0.2s ease;
}

html body .invia-site-footer__social-link:hover {
	color: #fff !important;
	opacity: 0.65;
}

/* Полоса логотипа на всю ширину футера — без сдвига вниз, полностью в зоне видимости */
.invia-site-footer__logo-ribbon {
	width: 100%;
	margin-top: clamp(36px, 7vw, 88px);
	padding-bottom: clamp(28px, 5vw, 56px);
	overflow: visible;
	line-height: 0;
	text-align: center;
	position: relative;
}

.invia-site-footer__logo-img {
	/* Масштаб по ширине футера — белая часть словомарка до краёв; высота по пропорциям, без обрезки */
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
	object-fit: contain;
	object-position: center bottom;
}

.invia-site-footer__logo-fallback {
	margin: 0;
	padding-bottom: 0.15em;
	/* Крупнее под ширину экрана, без translate */
	font-size: clamp(3.75rem, 17vw, 10.5rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
	color: #fff;
	text-transform: uppercase;
	font-family: 'Ploni', -apple-system, BlinkMacSystemFont, sans-serif;
	user-select: none;
	pointer-events: none;
}

/* ── Mobile ── */
@media (max-width: 900px) {
	.invia-site-footer__inner {
		padding: 40px 20px 0;
	}

	.invia-site-footer__desktop {
		display: none;
	}

	.invia-site-footer__mobile {
		display: block;
	}

	.invia-footer-acc {
		border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	}

	.invia-footer-acc:first-of-type {
		border-top: 1px solid rgba(255, 255, 255, 0.18);
	}

	/* LTR у ряда: иконка слева экрана, заголовок справа — иначе при dir=rtl на футере плюс прилипает к тексту */
	.invia-footer-acc__summary {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: center;
		width: 100%;
		padding: 18px 0;
		list-style: none;
		cursor: pointer;
		font-size: 16px;
		font-weight: 500;
		color: #fff;
		user-select: none;
		direction: ltr;
		gap: clamp(20px, 6vw, 32px);
	}

	.invia-footer-acc__summary::-webkit-details-marker {
		display: none;
	}

	.invia-footer-acc__label {
		flex: 1;
		text-align: right;
		direction: rtl;
		padding-inline-end: 0;
		min-width: 0;
	}

	/* Плюс у левого края экрана */
	.invia-footer-acc__plus {
		position: relative;
		width: 16px;
		height: 16px;
		flex-shrink: 0;
		margin-inline-end: 0;
	}

	.invia-footer-acc__plus::before,
	.invia-footer-acc__plus::after {
		content: '';
		position: absolute;
		background: #fff;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		transition: transform 0.25s ease, opacity 0.2s ease;
	}

	.invia-footer-acc__plus::before {
		width: 16px;
		height: 1.5px;
	}

	.invia-footer-acc__plus::after {
		width: 1.5px;
		height: 16px;
	}

	.invia-footer-acc[open] .invia-footer-acc__plus::after {
		transform: translate(-50%, -50%) scaleY(0);
		opacity: 0;
	}

	.invia-footer-acc__panel {
		padding: 0 0 20px;
	}

	.invia-site-footer__links--tight li {
		margin-bottom: 12px;
	}

	.invia-site-footer__about-mobile {
		padding: 28px 0 24px;
		text-align: right;
		border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	}

	.invia-site-footer__about-mobile .invia-site-footer__col-title {
		margin-bottom: 14px;
	}

	.invia-site-footer__utils--mobile {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin-top: 28px;
		margin-bottom: 12px;
		width: 100%;
	}

	.invia-site-footer__utils--mobile .invia-site-footer__social {
		justify-content: center;
	}

	.invia-site-footer__logo-ribbon {
		margin-top: 24px;
		padding-bottom: clamp(20px, 6vw, 40px);
	}

	.invia-site-footer__logo-fallback {
		font-size: clamp(3rem, 20vw, 6.5rem);
	}
}

@media (max-width: 1180px) and (min-width: 901px) {
	.invia-site-footer__cols {
		gap: 24px;
	}
}

/* ============================================================
   LTR overrides — English (html[lang|="en"])
   ============================================================ */

html[lang|="en"] .invia-footer-cta__input {
	text-align: left;
}

html[lang|="en"] .invia-site-footer__cols {
	text-align: left;
}

/* Link underline animation: grow from left instead of right */
html[lang|="en"] .invia-site-footer__links a::after {
	right: auto;
	left: 0;
}

@media (max-width: 900px) {
	html[lang|="en"] .invia-site-footer__about-mobile {
		text-align: left;
	}

	/* Accordion row: restore LTR for label */
	html[lang|="en"] .invia-footer-acc__label {
		direction: ltr;
		text-align: left;
	}

	html[lang|="en"] .invia-footer-cta__input {
		text-align: left;
	}
}
