.modal {
	display: none;
	position: relative;

	width: 100%;
	margin: 12px auto;
	border-radius: 8px;
}

.modal.send {
	width: 880px;
}

.modal.request {
	width: 520px;
}

.modal.size_s {
	max-width: 520px;
}

.modal.size_l {
	max-width: 960px;
}

.modal.request .contacts_form {
	width: 100%;
}

.modal_bone {
	overflow: hidden;

	padding: 40px;
	background-color: var(--bg);
}

.modal_wrapper {
	
}

.modal_bone iframe {
	width: 100%;
	min-height: 660px;
	border: 0 none;
}

.modal_bar {
	position: absolute;
	top: 0;
	bottom: 0;

	width: 59px;
}

.modal_text {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	gap: 20px;

	margin-top: 20px;
	color: var(--white);
	font-size: 16px;
	line-height: 180%;
}

.modal_text h2 {
	font-size: 18px;
	font-weight: 500;
}

.modal_text p {

}

.modal_text a {
	color: var(--white);
	text-decoration: underline;
}

.modal_image {

}

.modal_image img {
	border-radius: 8px;
}

.modal_title.padding {
	padding-bottom: 20px;
}

.modal_title:first-child {
	margin-top: 0;
}

.modal_nav {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	gap: 20px;

	padding-top: 40px;
}

.modal_nav_li {
	color: var(--accent);
	cursor: pointer;

	transition: color .23s ease-out;
}

.modal_nav_li:hover {
	color: var(--black);
}

.modal_descr {
	margin-top: 12px;
	font-size: var(--text);
	line-height: 180%;
}

.modal_label {
	font-size: var(--label);
}

.modal_input {
	margin-top: 4px;
}

.modal_block {
	margin-top: 16px;
}

.modal_button {
	margin-top: 16px;
}

.modal_note {
	padding-top: 16px;
	color: var(--white);
	font-size: 12px;
	text-align: center;
	line-height: 160%;
	opacity: .6;
}

.modal_note a {
	color: var(--white);
	text-decoration: underline;
}

.modal_note a:hover {
	text-decoration: none;
}

.modal_bar.left {
	left: -59px;
}

.modal_bar.right {
	right: -59px;
}

.modal_close {
	position: fixed;
	top: 85px;

	width: 40px;
	height: 40px;
	margin-top: 0;
	margin-left: 0;
	padding: 14px;
	background-color: var(--accent);
	cursor: pointer;

	transition: background-color .23s ease-out;
}

.modal_close:hover {
	background-color: var(--black);
}

.modal_close img {
	width: 100%;
	height: auto;
}

.modal_close.absolute {
	position: sticky;
	top: 0;
}

.modal_director {
	color: var(--blue);
	font-size: 12px;
	line-height: 160%;
}

.modal_address {
	margin-top: 16px;
	color: var(--blue);
	font-size: 21px;
	font-weight: 700;
}

.modal_region {
	margin-top: 16px;
	color: var(--blue);
	font-size: 12px;
	line-height: 160%;
}

.modal_region span {
	text-decoration: underline;
}

.modal_subtitle {
	margin-top: 24px;
	color: var(--blue);
	font-size: 18px;
	font-weight: 700;
}

.modal_p {
	margin-top: 24px;
	color: var(--blue);
	font-size: 18px;
	font-weight: 500;
	line-height: 180%;
}

.modal_p span {
	color: var(--red);
}

.modal_licens {
	margin-top: 24px;
	color: var(--red);
	font-size: 21px;
}

.modal_hover {
	position: absolute;
	bottom: 0;

	width: 59px;
	cursor: pointer;
}

.modal_hover.left {
	top: 0;
}

.modal_hover.right {
	top: 49px;
}

.modal_arrow {
	position: fixed;
	top: 50%;

	width: 59px;
	height: 59px;
	background: url('/images/arrow.svg') center center no-repeat;
	background-size: 30px auto;
	opacity: .5;

	transition: opacity .25s ease-out;
}

.modal_arrow.left {
	transform: translateY(-50%);
}

.modal_arrow.right {
	transform: translateY(-50%) rotate(180deg);
}

.modal_hover:hover .modal_arrow {
	opacity: 1;
}

.modal_lock {
	overflow: hidden;
	position: fixed;

	width: 100%;
	height: 100%;
}

.modal_overlay {
	overflow: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	background-color: var(--bg);
	background-image: url('../images/separator.dots.svg');
	background-position: center;
	background-repeat: repeat;
	z-index: 99000;
	zoom: 1;

	-webkit-overflow-scrolling: touch;
}

.modal_overlay > *:not(.modal_arrow.right),
.modal_overlay > *:not(.modal_arrow.left) {
	-webkit-transform: translateZ(0px);
}

@media only screen and (max-width: 940px) {
	.modal.size_l {
		width: calc(100% - 24px);
	}

	.modal_bone {
		padding: 24px;
	}

	.modal_bar {
		position: absolute;
		top: -59px;
		right: 0;
		bottom: auto;

		height: 59px;
	}

	.modal_bar.left {
		left: 0;
	}

	.modal_bar.right {
		top: 0;
		right: 0;
	}

	.modal_close,
	.modal_close.absolute {
		position: absolute;
		top: 0;
		right: 0;

		margin: 0;
	}

	.modal_hover {
		bottom: auto;

		height: 59px;
	}

	.modal_hover.right {
		top: 0;
	}

	.modal_arrow {
		position: absolute;
		top: 0;

		background: url('../images/arrow_m.svg') center center no-repeat;
		background-size: 19px auto;
	}

	.modal_arrow.left {
		transform: translateY(0);
	}

	.modal_arrow.right {
		transform: translateY(0) rotate(180deg);
	}

	.modal_bone {
/*		padding: 60px 0 0;*/
	}
}

@media only screen and (max-width: 480px) {
	
}

/* Booking. */

/* ============================================================
   FIELDS
   ============================================================ */

.modal_field {
	margin-bottom: 20px;
}
.modal_field_row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 20px;
}
.modal_field_row .modal_field {
	margin-bottom: 0;
}
.modal_label {
	padding-bottom: 8px;
	font-size: var(--label);
}
.modal_field input.err,
.modal_field select.err {
	border-color: var(--red);
}
.modal_err span {
	display: block;

	margin-top: 8px;
	color: var(--red);
	font-size: var(--note);
}

/* Select стрілка */
.modal_field select {
	background-image: url('../images/icons/select.arrow.svg');
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 8px;
	padding-right: 40px;
	cursor: pointer;
}

/* ============================================================
   PHONE FIELD
   ============================================================ */

.phone_field {
	position: relative;
	display: flex;
	border: 2px solid var(--corp);
	border-radius: 4px;
	overflow: visible;
	transition: border-color .2s;
}
.phone_field:focus-within {
	border-color: var(--blue);
}
.phone_field input.err {
	border-color: transparent;
}
.phone_field.err-wrap {
	border-color: var(--red);
}

.phone_country {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 12px;
	background: var(--light_black);
	border-right: 2px solid var(--corp);
	cursor: pointer;
	white-space: nowrap;
	user-select: none;
	min-width: 90px;
}
.phone_country img {
	width: 22px;
	height: 15px;
	object-fit: cover;
	border-radius: 2px;
}

#phone_code {
	color: var(--white);
	font-size: var(--label);
}

.phone_arrow {
	font-size: 10px;
	color: var(--white_60);
	margin-left: 2px;
}

.phone_field input[type="text"] {
	border: none;
	border-radius: 0;
	flex: 1;
}
.phone_field input[type="text"]:focus {
	border-color: transparent;
}

/* Dropdown */

.iti {
	width: 100%;
}

.iti__country-list {
	background-color: var(--black);
	border-color: var(--corp);
}

.iti-mobile .iti--container {
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	z-index: 99999;
}

/* ============================================================
   TIME FIELD
   ============================================================ */

.time_field {
	display: flex;
	align-items: center;
	gap: 8px;
}
.time_field select {
	flex: 1;
}
.time_field span {
	font-size: var(--h3);
	font-weight: 700;
	color: var(--black);
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */

#booking_form .button {
	width: 100%;
	text-align: center;
	margin-top: 8px;
	cursor: pointer;
}

/* ============================================================
   SUCCESS
   ============================================================ */

.modal_success {
	padding-top: 40px;
}

.modal_success_image {
	border-bottom: 1px solid var(--black);
}

.modal_success_image img {
	width: 198px;
	margin: 0 auto -6px;
}

.modal_success_title {
	padding-top: 40px;
	text-align: center;
}

.modal_success_subtitle {
	padding-top: 12px;
	font-size: 19px;
	text-align: center;
	line-height: 160%;
}

/* ============================================================
   JQUERY UI DATEPICKER OVERRIDE
   ============================================================ */

#ui-datepicker-div {
	display: none;
}

.ui-datepicker {
	padding: 12px;
	font-size: var(--label);
	background-color: var(--dark_bg);
}

.ui-datepicker-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;

	padding: 8px 8px 16px;
	border-bottom: 5px dotted var(--bg);
}

.ui-datepicker-title {
	width: 100%;
	padding-top: 8px;
	color: var(--black);
}

.ui-datepicker-prev,
.ui-datepicker-next {
	color: var(--accent);
	cursor: pointer;
}

.ui-datepicker th {
	color: var(--black);
	font-size: var(--note);
	padding: 16px 2px 12px;
}

.ui-datepicker td {
	padding: 2px;
}

.ui-datepicker td a,
.ui-datepicker td span {
	display: inline-block;

	min-width: 28px;
	padding: 5px 0 2px;
	text-align: center;

	transition: background .23s;
}

.ui-datepicker td .ui-state-default {
	color: var(--accent);
}

.ui-datepicker td .ui-state-hover,
.ui-datepicker td .ui-state-active {
	background-color: var(--bg);
}

.ui-datepicker td.ui-datepicker-today .ui-state-default {
	color: var(--black);
}

.ui-datepicker td.ui-state-disabled span {
	color: var(--bg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
	.modal_window {
		padding: 40px 20px 28px;
		max-height: 100vh;
		border-radius: 0;
		margin: 0;
	}
	.modal_field_row {
		grid-template-columns: 1fr;
	}
	.modal_title {
		font-size: 28px;
	}
}