/*
 * Text hero, mobile action bar, booking form and widget fixes.
 * Odessa: inc/odessa-landing.php; Kharkiv and Sumy service pages:
 * inc/eq-city-landing.php; bar and forms on every page: inc/eq-site.php.
 */

/* ---------- Hero ---------- */

.first-screen__singele_service.eq-hero {
	display: block;
	min-height: 0;
	max-height: none;
	aspect-ratio: auto;
	padding: 0;
	overflow: visible;
	background: #0f4c81 url(../img/first_screen_bg_1.png) center / cover no-repeat !important;
	color: #fff;
}

.eq-hero__in {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 56px;
	align-items: center;
	max-width: 1171px;
	margin: 0 auto;
	padding: 56px 15px 60px;
}

.eq-hero--text .eq-hero__in {
	grid-template-columns: minmax(0, 1fr);
	max-width: 900px;
}

.eq-hero__title {
	margin: 0 0 14px;
	font-size: 44px;
	line-height: 1.14;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #fff;
	text-wrap: balance;
}

.eq-hero__lead {
	max-width: 34em;
	margin: 0 0 24px;
	font-size: 19px;
	line-height: 1.5;
	color: #dce8f6;
}

.eq-hero__offer {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px 16px;
	margin: 0 0 26px;
}

.eq-hero__offer--from { gap: 6px 10px; }

.eq-hero__old {
	font-size: 24px;
	line-height: 1;
	color: #b7cde8;
	text-decoration: line-through;
}

.eq-hero__new {
	font-size: 56px;
	line-height: 1;
	font-weight: 700;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.eq-hero__new small {
	font-size: 0.42em;
	font-weight: 700;
}

.eq-hero__from,
.eq-hero__unit {
	font-size: 22px;
	line-height: 1.2;
	font-weight: 700;
	color: #dce8f6;
}

.eq-hero__until {
	align-self: center;
	padding: 6px 13px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1.3;
	color: #fff;
	white-space: nowrap;
}

.eq-hero__list {
	display: grid;
	gap: 10px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

.eq-hero__list li {
	position: relative;
	padding-left: 30px;
	font-size: 17px;
	line-height: 1.4;
	color: #fff;
}

.eq-hero__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.16em;
	width: 19px;
	height: 19px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2321a979'/%3E%3Cpath d='M5.6 10.4l3 3 5.8-6.3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.eq-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 26px;
}

.eq-hero .eq-hero__cta.btn {
	margin-top: 0;
	padding: 17px 30px;
	font-size: 16px;
	box-shadow: 0 14px 28px -14px rgba(2, 20, 45, 0.7);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.eq-hero .eq-hero__cta.btn:hover {
	background-color: #1c9369;
	transform: translateY(-1px);
}

.eq-hero__tel {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}

.eq-hero__tel:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.eq-hero a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.eq-hero__addr {
	margin: 18px 0 0;
	font-size: 15px;
	line-height: 1.4;
	color: #c6d9ef;
}

.eq-hero__addr a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.eq-hero__addr a:hover { color: #fff; }

.eq-hero__photo {
	height: 440px;
	border-radius: 14px;
	background-color: #0b3a66;
	background-repeat: no-repeat;
	box-shadow: 0 30px 50px -24px rgba(2, 16, 38, 0.75);
}

@media (max-width: 1199px) {
	.eq-hero__in { gap: 36px; }
	.eq-hero__title { font-size: 38px; }
	.eq-hero__photo { height: 400px; }
}

@media (max-width: 991px) {
	.eq-hero__in {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
		padding: 16px 15px 28px;
	}
	.eq-hero--text .eq-hero__in { padding-top: 28px; }
	.eq-hero__photo {
		order: -1;
		height: 150px;
		border-radius: 10px;
	}
	.eq-hero__title { font-size: 29px; line-height: 1.18; margin-bottom: 10px; }
	.eq-hero__lead { font-size: 16px; margin-bottom: 16px; }
	.eq-hero__offer { margin-bottom: 20px; }
	.eq-hero__old { font-size: 20px; }
	.eq-hero__new { font-size: 44px; }
	.eq-hero__from,
	.eq-hero__unit { font-size: 18px; }
	.eq-hero__list { gap: 8px; margin-bottom: 22px; }
	.eq-hero__list li { font-size: 16px; }
	.eq-hero .eq-hero__cta.btn { flex: 1 1 100%; padding: 16px 18px; }
	.eq-hero__tel { font-size: 20px; }
}

/* Sumy: the page title used to sit on the banner; now it follows the hero */
.eq-city-title { padding-top: 30px; }
.eq-city-title .title_1 { margin-bottom: 8px; color: #141414; }
.eq-city-title .title_5 {
	display: block;
	padding: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font-size: 18px;
	color: #5a6978 !important;
}

@media (max-width: 767px) {
	.eq-city-title { padding-top: 22px; }
	.eq-city-title .title_5 { font-size: 16px; }
}

/* a page that keeps its own banner: the whole banner opens the booking form */
.eq-banner-link {
	display: block;
	cursor: pointer;
	text-decoration: none;
}

.eq-banner-link:focus-visible {
	outline: 3px solid #21a979;
	outline-offset: -3px;
}

/* ---------- Odessa and Sumy home ---------- */

.eq-home-h1 {
	margin: 36px 0 0;
	font-size: 32px;
	line-height: 1.25;
	font-weight: 700;
	color: #141414;
	text-wrap: balance;
}

@media (max-width: 767px) {
	.eq-home-h1 {
		margin-top: 22px;
		font-size: 24px;
	}
}

/* ---------- Mobile action bar ---------- */

.eq-bar { display: none; }

@media (max-width: 767px) {
	.eq-bar {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: 8px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9998;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		box-shadow: 0 -8px 20px -10px rgba(2, 37, 77, 0.4);
	}
	.eq-bar--single { grid-template-columns: minmax(0, 1fr); }
	.eq-bar a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 48px;
		border-radius: 6px;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.2;
		text-decoration: none;
	}
	.eq-bar__call {
		padding: 0 16px;
		color: #0f4c81;
		background: #fff;
		border: 1px solid #0f4c81;
	}
	.eq-bar__book {
		padding: 0 12px;
		color: #fff;
		background: #21a979;
	}
	.eq-bar__book:hover,
	.eq-bar__book:focus { color: #fff; }

	body.eq-has-bar { padding-bottom: 64px; }

	/* the bar already offers a call and a booking */
	body.eq-has-bar #eyeq-cb { display: none !important; }

	body.eq-has-bar .floating-video {
		right: 10px;
		bottom: 76px;
		width: 92px;
		height: 164px;
	}
	body.eq-has-bar .floating-video.expanded {
		width: 240px;
		height: 426px;
	}
	body.eq-has-bar .floating-video:not(.expanded) .floating-video-close {
		top: 4px;
		right: 4px;
		width: 26px;
		height: 26px;
		font-size: 17px;
	}

	/* the video stays out of the first screen until the visitor scrolls on */
	body.eq-video-wait .floating-video:not(.expanded) {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

/* ---------- Floating widgets ---------- */

/* the video can be closed from the first second */
.floating-video .floating-video-close { display: flex; }

/* nothing floats over an open booking form */
body.modal-open #eyeq-cb,
body.modal-open .floating-video,
body.modal-open .eq-bar { display: none !important; }

/* ---------- Booking forms ---------- */

.wpcf7-form .eq-hide { display: none !important; }

/* the form built into the page has nothing to close */
.template-form .eq-form .eq-close-wrap { display: none !important; }

.feedback_body .eq-form textarea {
	height: 92px;
	min-height: 0;
}

.feedback_body .eq-form .eq-submit-wrap,
.feedback_body .eq-form .eq-close-wrap {
	flex: 0 0 100%;
	max-width: 100%;
}

.feedback_body .eq-form .eq-submit-wrap { order: 1; }
.feedback_body .eq-form .eq-close-wrap { order: 2; margin-bottom: 0; text-align: center; }

.feedback_body .eq-form .eq-submit-wrap .wpcf7-submit {
	width: 100%;
	color: #fff;
	background-color: #21a979;
	border-color: #21a979;
}

.feedback_body .eq-form .eq-submit-wrap .wpcf7-submit:hover {
	background-color: #1c9369;
	border-color: #1c9369;
}

.feedback_body .eq-form .eq-close-wrap .btn {
	padding: 8px 12px;
	font-weight: 400;
	letter-spacing: 0;
	color: #5a6978;
	background: none;
	border: 0;
	box-shadow: none;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.feedback_body .eq-form .eq-close-wrap .btn:hover { color: #141414; }

/* ---------- Doctors slider on phones ---------- */

@media (max-width: 767px) {
	.single_service .services-doctor { overflow-x: clip; }
	.single_service .doctor-slider .slick-dots { display: none !important; }
}
