.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(--black);
	border-radius: 20px;
}

.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: 40px;
}

.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(--white);
	cursor: pointer;

	transition: color .23s ease-out;
}

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

.modal_nav.gap {
	gap: 0;
}

.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: 28px;
	height: 28px;
	margin-top: 0;
	margin-left: 12px;
	border-radius: 50%;
	cursor: pointer;

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

.modal_close img {
	width: 100%;
	height: auto;
	opacity: 1;

	transition: opacity .23s ease-out;
}

.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: rgba(0, 0, 0, .8);
	z-index: 99000;
	zoom: 1;

	-webkit-backdrop-filter: blur(40px);
			backdrop-filter: blur(40px);

	-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: 12px;
		right: 12px;

		margin: 0;
		background-color: rgba(0, 0, 0, .12);
	}

	.modal_close:hover {
		background-color: rgba(0, 0, 0, .24);
	}

	.modal_close img {
		opacity: 1;
	}

	.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[type="text"],
.modal_field input[type="number"],
.modal_field select {
	width: 100%;
	height: 52px;
	border: 2px solid var(--corp);
	border-radius: 4px;
	padding: 0 16px;
	font-size: var(--label);
	font-weight: 400;
	font-family: 'Akrobat', sans-serif;
	color: var(--white);
	background: var(--light_black);
	outline: none;
	box-sizing: border-box;
	transition: border-color .2s;
	appearance: none;
	-webkit-appearance: none;
}
.modal_field input[type="text"]:focus,
.modal_field input[type="number"]:focus,
.modal_field select:focus {
	border-color: var(--blue);
}
.modal_field input.err,
.modal_field select.err {
	border-color: var(--red);
}
.modal_err span {
	display: block;
	font-size: var(--note);
	color: var(--red);
	margin-top: 4px;
}

/* Select стрілка */
.modal_field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FFF' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	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 {
	font-size: var(--h3);
	color: var(--green);
	font-weight: 600;
}

/* ============================================================
   JQUERY UI DATEPICKER OVERRIDE
   ============================================================ */
#ui-datepicker-div {
    display: none;
}
.ui-datepicker {
	border: 2px solid var(--corp) !important;
	border-radius: 4px !important;
	background-color: var(--black);
	box-shadow: 0 8px 24px var(--black_60) !important;
	font-family: inherit !important;
	font-size: var(--label) !important;
	padding: 12px !important;
}
.ui-datepicker-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;

	background: var(--corp) !important;
	border: none !important;
	border-radius: 2px !important;
	color: var(--white) !important;
	padding: 8px !important;
}
.ui-datepicker-title {
	width: 100%;
	font-weight: 600 !important;
	letter-spacing: .05em !important;
}
.ui-datepicker-prev,
.ui-datepicker-next {
	top: 6px !important;
	cursor: pointer !important;
}
.ui-datepicker-prev span,
.ui-datepicker-next span {
	background-image: none !important;
}
.ui-datepicker th {
	color: var(--white_60) !important;
	font-size: var(--note) !important;
	padding: 6px 4px !important;
}
.ui-datepicker td a,
.ui-datepicker td span {
	display: inline-block;
	min-width: 28px;
	text-align: center !important;
	border-radius: 2px !important;
	transition: background .15s !important;
}
.ui-datepicker td .ui-state-default {
	background: transparent !important;
	border: none !important;
	color: var(--corp) !important;
	font-weight: 500 !important;
}
.ui-datepicker td .ui-state-hover,
.ui-datepicker td .ui-state-active {
	background: var(--corp) !important;
	color: var(--white) !important;
}
.ui-datepicker td.ui-datepicker-today .ui-state-default {
	border: 2px solid var(--corp) !important;
	color: var(--corp) !important;
}
.ui-datepicker td.ui-state-disabled span {
	color: #424D5D !important;
}

/* ============================================================
   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;
	}
}