/* ==========================================================================
   Подвал нового дизайна. Макет Figma: 20463:355744 (десктоп), 20497:93041 (моб.)
   Подключается тегом прямо из page_blocks/footer_newdesign.php — подвал
   рисуется, когда <head> уже отдан, и SetAdditionalCSS туда не доезжает.
   ========================================================================== */

.nd-footer {
	--nd-f-bg:      #101014;
	--nd-f-bg-alt:  #1d1d23;
	--nd-f-muted:   #a9a9b1;
	--nd-f-dim:     #8f8f9a;
	--nd-f-accent:  #e28080;

	background: var(--nd-f-bg);
	color: #fff;
	font-family: "Nunito Sans", "Nunito Fallback", Arial, sans-serif;
}

/* Тема красит ссылки и текст внутри #footer по-своему и дорисовывает пунктам
   списков красные маркеры-точки через li:before — гасим и то, и другое.
   Селекторы с #footer: у правил темы специфичность с id, иначе не перебить. */
#footer .nd-footer,
#footer .nd-footer a {
	color: #fff;
}
#footer .nd-footer a:hover {
	text-decoration: none;
}
#footer .nd-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
/* Тема задаёт b/strong свой тёмный цвет — на чёрном фоне это невидимо. */
#footer .nd-footer b,
#footer .nd-footer strong {
	color: inherit;
}
#footer .nd-footer li {
	/* Тема отбивает пункты слева под маркер — маркера у нас нет. */
	margin: 0;
	padding: 0;
}
#footer .nd-footer li:before,
#footer .nd-footer li:after {
	content: none;
	display: none;
}

.nd-footer__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 52px;
}

#footer .nd-footer .nd-link-accent {
	color: var(--nd-f-accent);
	text-decoration: none;
	cursor: pointer;
}
#footer .nd-footer .nd-link-accent:hover {
	color: #fff;
}

/* --------------------------------------------------------------------------
   Промо «Вам есть на что посмотреть»
   -------------------------------------------------------------------------- */

.nd-fpromo {
	background: #fff;
}

.nd-fpromo__bg {
	margin-top: 114px;
	background: #1a1512 url(../images/newdesign/footer/promo-bg.webp) center / cover no-repeat;
}

.nd-fpromo__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 52px;
	display: flex;
	align-items: flex-start;
	gap: 101px;
}

.nd-fpromo__media {
	flex: 0 0 261px;
	margin-left: 225px;
	margin-top: -103px;
}

.nd-fpromo__phone {
	position: relative;
	width: 261px;
	height: 541px;
	border: 5px solid #000;
	border-radius: 36px;
	overflow: hidden;
	background: #000;
}

/* Кнопки видеозвонка поверх ролика — размеры сняты с макета. */
.nd-fpromo__calls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 17px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	pointer-events: none;
}
.nd-fpromo__calls img {
	display: block;
	width: 53px;
	height: 53px;
}
.nd-fpromo__phone video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Фотография вместо видео — только на мобильном (см. медиазапрос ниже). */
.nd-fpromo__photo {
	display: none;
}

.nd-fpromo__content {
	flex: 0 1 616px;
	min-width: 0;
	padding: 74px 0;
}

.nd-fpromo__title {
	font-size: 52px;
	line-height: 57px;
	font-weight: 800;
	color: #fff;
}

.nd-fpromo__sub {
	margin-top: 24px;
	font-size: 18px;
	line-height: 25px;
	font-weight: 400;
	color: #fff;
}

.nd-footer .nd-fpromo__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 513px;
	max-width: 100%;
	height: 56px;
	margin-top: 32px;
	padding: 0 16px;
	border-radius: 4px;
	background: #fff;
	color: #101014;
	font-size: 16px;
	line-height: 24px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s;
}
.nd-footer .nd-fpromo__btn:hover {
	background: #f0f0f2;
	color: #101014;
}

.nd-fpromo__bonus {
	margin-top: 32px;
	font-size: 18px;
	line-height: 25px;
	font-weight: 500;
	color: #fff;
}
.nd-fpromo__bonus b {
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Контакты региона
   -------------------------------------------------------------------------- */

.nd-footer__contacts {
	padding: 52px 0 8px;
}

.nd-fcont {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	font-size: 16px;
	line-height: 24px;
}

.nd-fcont__col--addr   { flex: 0 1 443px; }
.nd-fcont__col--phones { flex: 0 1 303px; }
.nd-fcont__col--msg    { flex: 0 0 auto; }
.nd-fcont__col--soc    { flex: 0 0 98px; }

.nd-fcont__addr {
	color: #fff;
}
.nd-fcont__addr + .nd-fcont__muted {
	margin-top: 24px;
}

.nd-fcont__muted {
	color: var(--nd-f-muted);
}

.nd-fcont__phones + .nd-fcont__muted {
	margin-top: 14px;
}

.nd-fcont__phone {
	font-size: 22px;
	line-height: 26px;
	font-weight: 700;
}
.nd-fcont__phone + .nd-fcont__phone {
	margin-top: 14px;
}
#footer .nd-fcont__phone a {
	color: #fff;
}

/* Мессенджеры */
.nd-fcont__col--msg {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nd-footer .nd-fmsg {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	cursor: pointer;
}
.nd-footer .nd-fmsg img {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
}
#footer .nd-fmsg--max { color: #ba89ff; }
#footer .nd-fmsg--tg  { color: #89d0ff; }
#footer .nd-fmsg--wa  { color: #9affc0; }
#footer .nd-fmsg:hover { opacity: .8; }

/* Соцсети — плитки 2×2 */
.nd-fsoc {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 98px;
}
.nd-footer .nd-fsoc__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	border-radius: 4.5px;
	background: rgba(255, 255, 255, .12);
	transition: background-color .2s;
}
.nd-footer .nd-fsoc__item:hover {
	background: rgba(255, 255, 255, .22);
}
.nd-fsoc__item img {
	width: 27px;
	height: 27px;
}

/* Водяной знак LATITUDO */
.nd-footer__wordmark {
	margin-top: 52px;
}
.nd-footer__wordmark img {
	display: block;
	width: 100%;
	height: auto;
}

/* --------------------------------------------------------------------------
   Меню
   -------------------------------------------------------------------------- */

.nd-footer__menu {
	padding: 52px 0;
}

.nd-fmenu {
	display: flex;
	gap: 24px;
}

.nd-fmenu__col {
	flex: 1 1 248px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.nd-fmenu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.nd-footer .nd-fmenu__title {
	font-size: 18px;
	line-height: 22px;
	font-weight: 700;
	color: #fff;
}
#footer .nd-footer a.nd-fmenu__title:hover {
	color: var(--nd-f-accent);
}

.nd-fmenu__chev {
	display: none;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	background: url(../images/newdesign/footer/chevron.svg) center / 16px 16px no-repeat;
	transition: transform .2s;
}

.nd-fmenu__body {
	margin-top: 10px;
}

.nd-fmenu__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nd-footer .nd-fmenu__link {
	display: inline-block;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: #fff;
}
#footer .nd-footer .nd-fmenu__link:hover,
#footer .nd-footer .nd-fmenu__link.is-active {
	color: var(--nd-f-accent);
}

#footer .nd-footer .nd-fmenu__all {
	display: inline-block;
	margin-top: 8px;
	font-size: 16px;
	line-height: 24px;
	color: var(--nd-f-accent);
}
#footer .nd-footer .nd-fmenu__all:hover {
	color: #fff;
}

/* --------------------------------------------------------------------------
   Нижняя строка
   -------------------------------------------------------------------------- */

.nd-footer__bottom {
	padding: 52px 0;
	background: var(--nd-f-bg-alt);
}

.nd-fbot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.nd-fbot__copy {
	font-size: 16px;
	line-height: 24px;
	color: var(--nd-f-muted);
}

.nd-fbot__req {
	margin-top: 4px;
	font-size: 14px;
	line-height: 20px;
	color: var(--nd-f-muted);
}

.nd-fbot__links {
	margin-top: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
#footer .nd-fbot__links a {
	font-size: 16px;
	line-height: 24px;
	color: var(--nd-f-dim);
}
#footer .nd-fbot__links a:hover {
	color: #fff;
}

.nd-fbot__pay {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

/* Юридическая оговорка под нижней строкой: мелко и приглушённо, чтобы не
   спорить с копирайтом. Отбита волосяной чертой — иначе слипается с
   логотипами платёжных систем. */
.nd-fnote {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: 12px;
	line-height: 18px;
	color: var(--nd-f-dim);
}
#footer .nd-fnote a {
	color: var(--nd-f-dim);
	text-decoration: underline;
}
#footer .nd-fnote a:hover {
	color: #fff;
}

.nd-fpay {
	display: inline-flex;
	align-items: center;
}
.nd-fpay img {
	display: block;
	width: 50px;
	height: 36px;
}

.nd-fpay--text {
	height: 36px;
	padding: 0 8px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 5px;
	font-size: 16px;
	line-height: 21px;
	font-weight: 500;
	color: #fff;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   1200–1439 — те же блоки, но промо без больших отступов слева
   -------------------------------------------------------------------------- */

@media (max-width: 1439px) {
	.nd-fpromo__media {
		margin-left: 0;
	}
	.nd-fpromo__inner {
		gap: 60px;
	}
}

@media (max-width: 1199px) {
	.nd-fpromo__title {
		font-size: 40px;
		line-height: 46px;
	}
	.nd-fpromo__inner {
		gap: 40px;
	}
	.nd-fcont {
		flex-wrap: wrap;
		row-gap: 32px;
	}
	.nd-fcont__col--addr   { flex: 0 1 55%; }
	.nd-fcont__col--phones { flex: 0 1 35%; }
	.nd-fcont__col--msg    { flex: 0 1 55%; }
	.nd-fcont__col--soc    { flex: 0 0 98px; }
	.nd-fmenu {
		flex-wrap: wrap;
		row-gap: 40px;
	}
	.nd-fmenu__col {
		flex: 0 1 calc(33.333% - 16px);
	}
}

/* --------------------------------------------------------------------------
   Планшет и мобильный — промо становится фотографией с текстом поверх
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
	.nd-footer__inner {
		padding: 0 16px;
	}

	.nd-fpromo {
		background: #130b0a;
	}
	.nd-fpromo__bg {
		margin-top: 0;
		background: none;
	}
	/* По макету заголовок и подзаголовок лежат поверх нижней части фотографии,
	   а кнопка и бонус — под ней. Разметка одна на оба дизайна, поэтому кладём
	   всё в одну grid-колонку: фотография растянута на строки 1–3, заголовок и
	   подзаголовок занимают строки 2 и 3 (то есть её низ), остальное — ниже.
	   display:contents у .nd-fpromo__content нужен, чтобы его дети стали
	   элементами этой же сетки. */
	.nd-fpromo__inner {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto auto auto;
		gap: 0;
		padding: 32px 16px;
	}
	.nd-fpromo__content {
		display: contents;
	}

	.nd-fpromo__media {
		grid-row: 1 / 4;
		grid-column: 1;
		flex: none;
		margin: 0;
		position: relative;
		z-index: 0;
		border-radius: 4px;
		overflow: hidden;
	}
	/* Видео звонка тяжёлое и на узком экране не читается — в макете тут фото. */
	.nd-fpromo__phone {
		display: none;
	}
	.nd-fpromo__photo {
		display: block;
		width: 100%;
		height: auto;
	}
	/* Затемнение под текстом, чтобы заголовок читался поверх фотографии. */
	.nd-fpromo__media::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 55%;
		background: linear-gradient(180deg, rgba(19, 11, 10, 0) 0%, rgba(19, 11, 10, .9) 70%, #130b0a 100%);
		pointer-events: none;
	}

	/* Заголовок и подзаголовок ложатся на низ фотографии (строки 2 и 3),
	   кнопка и бонус идут под ней. */
	.nd-fpromo__title {
		grid-row: 2;
		grid-column: 1;
		z-index: 2;
		margin: 0 16px;
		font-size: 28px;
		line-height: 31px;
	}
	.nd-fpromo__sub {
		grid-row: 3;
		grid-column: 1;
		z-index: 2;
		margin: 16px 16px;
		font-size: 17px;
		line-height: 24px;
	}
	.nd-footer .nd-fpromo__btn {
		grid-row: 4;
		grid-column: 1;
		width: 100%;
		margin-top: 16px;
	}
	.nd-fpromo__bonus {
		grid-row: 5;
		grid-column: 1;
		margin-top: 16px;
		font-size: 14px;
		line-height: 20px;
	}

	.nd-footer__contacts {
		padding: 36px 0 0;
	}
	.nd-fcont {
		display: block;
		font-size: 15px;
		line-height: 22px;
	}
	.nd-fcont__col + .nd-fcont__col {
		margin-top: 24px;
	}
	.nd-fcont__col--addr,
	.nd-fcont__col--phones,
	.nd-fcont__col--msg,
	.nd-fcont__col--soc {
		flex: none;
	}
	.nd-fcont__col--msg {
		gap: 8px;
	}
	.nd-footer .nd-fmsg {
		min-height: 44px;
	}
	.nd-fsoc {
		width: auto;
		flex-wrap: nowrap;
	}
	.nd-footer .nd-fsoc__item {
		width: 48px;
		height: 48px;
		border-radius: 4.8px;
	}
	.nd-fsoc__item img {
		width: 28px;
		height: 28px;
	}

	.nd-footer__wordmark {
		margin-top: 36px;
	}

	.nd-footer__menu {
		padding: 36px 0;
	}
	.nd-footer__bottom {
		padding: 36px 0;
	}
	.nd-fbot {
		display: block;
	}
	.nd-fbot__copy {
		font-size: 15px;
		line-height: 22px;
	}
	.nd-fbot__links {
		margin-top: 24px;
		flex-direction: column;
		gap: 24px;
	}
	#footer .nd-fbot__links a {
		font-size: 15px;
		line-height: 22px;
	}
	.nd-fbot__pay {
		margin-top: 40px;
	}
	.nd-fpay--text {
		font-size: 15px;
	}
	.nd-fnote {
		margin-top: 32px;
		font-size: 11px;
		line-height: 16px;
	}
}

/* --------------------------------------------------------------------------
   ≤767 — колонки меню превращаются в аккордеон
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.nd-fmenu,
	.nd-fmenu__col {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}
	.nd-fmenu__col {
		flex: none;
	}

	.nd-fmenu__group {
		padding: 16px;
		border: 1px solid rgba(82, 82, 100, .5);
		border-radius: 6px;
	}

	.nd-fmenu__head {
		cursor: pointer;
	}
	.nd-footer .nd-fmenu__title {
		font-size: 17px;
		line-height: 20px;
		/* Заголовок целиком работает как переключатель — переход по ссылке
		   на мобильном мешал бы раскрыть список. */
		pointer-events: none;
	}
	.nd-fmenu__chev {
		display: block;
	}
	.nd-fmenu__group.is-open .nd-fmenu__chev {
		transform: rotate(180deg);
	}

	.nd-fmenu__body {
		display: none;
		margin-top: 16px;
	}
	.nd-fmenu__group.is-open .nd-fmenu__body {
		display: block;
	}

	.nd-fmenu__list {
		gap: 10px;
	}
	.nd-footer .nd-fmenu__link {
		font-size: 15px;
		line-height: 22px;
	}
	.nd-footer .nd-fmenu__all {
		margin-top: 16px;
	}
}

@media (max-width: 480px) {
	.nd-fbot__pay {
		gap: 8px;
	}
	.nd-fpay--text {
		width: 100%;
		justify-content: center;
	}
}
