.header__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.header__brand .select-city {
	font-size: 14px;
	line-height: 1.2;
}
.header__contacts-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-end;
}
.header {
	padding-top: 4px;
	padding-bottom: 28px;
	height: 100px;
}

.legal-note {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	background: var(--color-primary);
	border-top: 1px solid var(--color-semi);
	color: var(--color-accent);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: .01em;
	text-align: center;
	padding: 4px 0;
}

.legal-note .container {
	padding-top: 0;
	padding-bottom: 0;
}

@media only screen and (max-width: 767px) {
	.header {
		height: 78px;
		padding-top: 4px;
		padding-bottom: 22px;
	}
	.legal-note {
		font-size: 12px;
		padding: 3px 0;
	}
	.legal-note .container {
		padding-left: 14px;
		padding-right: 14px;
	}
}

.header, .header *,
.legal-note, .legal-note *,
.footer, .footer *,
.footer-mob, .footer-mob *,
.popup, .popup *,
.requisites, .requisites *,
.formcard, .formcard *,
a[href^="mailto:"], a[href^="mailto:"] *,
a[href^="tel:"], a[href^="tel:"] * {
	-webkit-user-select: text;
	user-select: text;
}

a[href^="mailto:"],
a[href^="tel:"] {
	-webkit-user-drag: none;
}

body.page-template-template-contacts,
body.page-template-template-contacts * {
	-webkit-user-select: text;
	user-select: text;
}

body.page-template-template-contacts a {
	-webkit-user-drag: none;
}

/* 11.09.2026: виджет Envybox (fixed, z-index 9990) перекрывал галочку согласия и кнопку
   «Отправить» — на телефоне тап уходил в виджет. Опускаем виджет под формы и попапы (у обёртки формы .hero__form z-index 2)
   (попапы z 8–10): там, где виджет пересекается с формой, сверху форма. */
.ws-video-widget {
	z-index: 1 !important;
}
form.wpcf7-form {
	position: relative;
	z-index: 6;
}

/* Текст согласия стал длиннее (две ссылки) — переносится на 2–3 строки, выравниваем по верху */
.wpcf7-acceptance .wpcf7-list-item-label {
	line-height: 1.3;
}
.wpcf7-acceptance .wpcf7-list-item-label a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* 28.09.2026, формы этап 1: тёмный текст в полях (был #494949 / select #878787), подсказка — серая;
   ошибка у «Прикрепить файл» видна и не перекрывает «Отправить» (раньше .upload__main был absolute+opacity:0);
   мобильная кнопка «Получить расчет» вместо Telegram — чёрная с белым текстом (ТЗ п.4) */
input.wpcf7-form-control:not([type="submit"]),
.container .choices__inner, .popup .choices__inner {
	color: var(--color-primary);
}
input.wpcf7-form-control::placeholder,
textarea.wpcf7-form-control::placeholder {
	color: #878787; /* 01.10.2026: --color-input на городах не объявлена, placeholder наследовал #282828 — как на главном */
	opacity: 1;
}
.white__form input.wpcf7-form-control::placeholder {
	color: var(--color-secondary);
}
.choices__inner .choices__placeholder {
	color: #878787; /* 01.10.2026: --color-input на городах не объявлена, placeholder наследовал #282828 — как на главном */
	opacity: 1;
}
.upload__container {
	display: flex;
	flex-direction: column;
}
.upload__container .upload__visible {
	height: auto;
	flex: 1 1 auto;
}
.upload__main {
	position: static;
	opacity: 1;
}
.upload__main .wpcf7-form-control-wrap {
	position: static;
}
.upload__main input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}
.upload__main .wpcf7-not-valid-tip,
.upload__main .error-message {
	display: block;
	margin-top: 6px;
	padding-left: 12px;
	font-size: 12px;
	line-height: 1.3;
	margin-bottom: 6px;
	color: #dc3232;
}
.footer-mob__button._popup {
	background: #000;
	color: #fff;
	border-color: #000;
}

/* 01.10.2026 ТЗ на формы: подвал ПК — чёрная «Получить расчет» вместо Telegram; hero-форма: «Компания» = box b8, кнопка b4 на мобильном последней */
.footer__button._popup {
	background: #000;
	color: #fff;
	border-color: #000;
}
.footer__button._popup:hover {
	background: #222;
	border-color: #222;
	color: #fff;
}
@media (max-width: 992px) {
	.form__row .box:nth-child(4) { order: 0; }
	.form__row .box.b4 { order: 9; }
}

/* ТЗ п.5: выпадающее меню «Конфиденциальность» по наведению */
body.policy-opened #policy {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
body.policy-opened a[popup-target="policy"] {
	color: var(--color-accent);
}
