/* ==========================================================================
   ОВиК Сервис — исправления по аудиту 12.2026
   CSS: мобильная соцпанель, кнопка запроса цены, модальное окно,
        формы согласия, единый футер, фикс CLS карусели.
   ========================================================================== */

/* ---------- 1. Фикс CLS главной ----------------------------------------- */
/* Пустая строка WPBakery схлопывалась и разворачивалась — резервируем высоту. */
.main-content .vc_row > .vc_column_container > .wpb_wrapper.vc_column-inner:empty {
	min-height: 35px;
}

/* Блок подписки Mailchimp вставляется поверх WPBakery уже после первой
   отрисовки и сдвигает карусель вниз на 60px. Резервируем место под него,
   чтобы он занимал свою позицию без сдвига соседей. */
.main-content .vc_row.vc_custom_1576070120488 {
	min-height: 60px;
}

/* Анимация слайдов не должна считаться сдвигом контента. */
.vc_carousel-slideline-inner {
	will-change: transform;
}

/* ВАЖНО: высоту самой карусели не трогаем — WPBakery пересчитывает её из JS
   (data-auto-height), и любое значение из CSS только увеличивает CLS.
   Замерено: min-height на .vc_carousel-inner поднимал CLS с 0,33 до 0,39. */

/* ---------- 2. Соцпанель: не перекрывать контент ------------------------ */
/* На мобильных панель «Поделиться» закрывала H1 и хлебные крошки.
   Убираем её до 992px. */
@media (max-width: 991px) {
	.page-share,
	.share-links {
		display: none !important;
	}
}

/* На десктопе оставляем, но сдвигаем так, чтобы не наезжать на контент */
@media (min-width: 992px) {
	.page-share {
		left: 0;
		z-index: 100;
	}
}

/* ---------- 3. Кнопка «Запросить цену» ---------------------------------- */
.ovik-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0 8px;
}
.ovik-btn-request,
.ovik-btn-wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-align: center;
	transition: background-color .15s ease, transform .15s ease;
}
.ovik-btn-request {
	background: #0066a5;
	border: 1px solid #0066a5;
	color: #fff;
}
.ovik-btn-request:hover { background: #00548a; }
.ovik-btn-wa {
	background: #25d366;
	border: 1px solid #25d366;
	color: #fff;
	text-decoration: none;
}
.ovik-btn-wa:hover { background: #1eb958; color: #fff; }
.ovik-btn-request:active,
.ovik-btn-wa:active { transform: translateY(1px); }

@media (max-width: 767px) {
	.ovik-cta-row { flex-direction: column; }
	.ovik-btn-request,
	.ovik-btn-wa { width: 100%; min-height: 50px; font-size: 16px; }
}

/* ---------- 4. Модальное окно запроса цены ------------------------------ */
.ovik-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.ovik-modal.is-open { display: flex; }
.ovik-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(12, 20, 30, .55);
}
.ovik-modal__box {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 8px;
	padding: 26px 24px 22px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}
.ovik-modal__box h3 {
	margin: 0 0 6px;
	font-size: 21px;
	line-height: 1.25;
	color: #12233a;
}
.ovik-modal__sub {
	margin: 0 0 18px;
	font-size: 14px;
	color: #5a6673;
}
.ovik-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	font-size: 30px;
	line-height: 1;
	color: #8a97a5;
	cursor: pointer;
}
.ovik-modal__close:hover { color: #12233a; }

.ovik-request-form label {
	display: block;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 600;
	color: #33414f;
}
.ovik-request-form input[type="text"],
.ovik-request-form input[type="tel"],
.ovik-request-form textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 11px 13px;
	border: 1px solid #d3dbe3;
	border-radius: 4px;
	font-size: 16px; /* 16px — чтобы iOS не зумил при фокусе */
	font-weight: 400;
	color: #12233a;
	background: #fff;
	box-sizing: border-box;
}
.ovik-request-form input:focus,
.ovik-request-form textarea:focus {
	outline: none;
	border-color: #0066a5;
	box-shadow: 0 0 0 3px rgba(0, 102, 165, .15);
}
.ovik-btn-submit {
	width: 100%;
	min-height: 50px;
	border: 0;
	border-radius: 4px;
	background: #0066a5;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}
.ovik-btn-submit:hover { background: #00548a; }
.ovik-btn-submit[disabled] { opacity: .6; cursor: default; }
.ovik-form-status {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.45;
}
.ovik-form-status.is-error { color: #c0392b; }
.ovik-form-status.is-ok { color: #1e8449; }

/* ---------- 5. Согласие на обработку ПД -------------------------------- */
.ovik-consent-wrap { margin: 14px 0 12px; }
.ovik-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 400;
	color: #4a5866;
}
.ovik-consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
}
.ovik-consent a { color: #0066a5; text-decoration: underline; }

/* ---------- 6. Единый футер на главной --------------------------------- */
.ovik-home-footer {
	background: #23282d;
	color: #c8d2dc;
	padding: 40px 0 28px;
	font-size: 14px;
	line-height: 1.6;
}
.ovik-home-footer h3 {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #fff;
}
.ovik-home-footer p { margin: 0 0 8px; }
.ovik-home-footer a { color: #7cc4ff; text-decoration: none; }
.ovik-home-footer a:hover { text-decoration: underline; }
.ovik-home-footer ul { margin: 0; padding: 0; list-style: none; }
.ovik-home-footer li { margin-bottom: 8px; }
.ovik-home-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}
@media (max-width: 767px) {
	.ovik-home-footer__cols { grid-template-columns: 1fr; gap: 24px; }
	.ovik-home-footer { padding: 28px 0 20px; }
}

/* ---------- 7. Реквизиты ------------------------------------------------ */
.ovik-requisites {
	padding: 16px 0;
	font-size: 12px;
	line-height: 1.6;
	color: #8a97a5;
	border-top: 1px solid rgba(255, 255, 255, .08);
}
.ovik-requisites p { margin: 0 0 4px; }

/* ---------- 8. Кликабельные телефоны ----------------------------------- */
.ovik-tel,
.ovik-tel-link,
.ovik-wa-link {
	color: inherit;
	text-decoration: none;
}
.ovik-tel:hover,
.ovik-tel-link:hover,
.ovik-wa-link:hover { text-decoration: underline; }

/* ---------- 9. Тап-зоны не меньше 44px на мобильных -------------------- */
@media (max-width: 767px) {
	.header-social a,
	.share-links a,
	.product .links-on-image a,
	.mobile-menu a {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}
}

/* ---------- 10. Cookie-баннер: не занимать пол-экрана ------------------ */
@media (max-width: 767px) {
	#ovik-cookie-notice {
		font-size: 12px !important;
		padding: 10px 14px !important;
	}
	#ovik-cookie-notice > div { flex-direction: column; align-items: stretch !important; gap: 10px !important; }
	#ovik-cookie-accept { width: 100%; min-height: 44px; }
}
