img {
	max-width: 100%;
	height: auto !important;
}

/* ======= FLEX ======= */
.dan_flex_row, .dan_flex_row_start {
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	align-content: center;
}

.dan_flex_v_end {
    align-items: flex-end !important;
}

.dan_flex_row {
	justify-content	:center;
}

.dan_flex_nowrap {
	flex-wrap: nowrap;
}

.dan_flex_column {
	display: flex;
	flex-direction:column;
}

.dan_flex_column_reverse {
	display: flex;
    flex-flow: column-reverse;
}


.dan_flex_center {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    overflow: hidden;
}

.dan_flex_v_center {
    display: flex;
    align-items: center;
}

.dan_flex_between {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
}

.dan_flex_grow_250 {
    flex-basis: 250px;
    flex-grow: 1;
    box-sizing: border-box;
}

.dan_flex_grow_1 {
    flex-basis: 320px;
    flex-grow: 1;
    box-sizing: border-box;
}

.dan_flex_grow_1 img {
    display: block;
}


.dan_flex_row_start {
	justify-content: flex-start;
}

.dan_flex_v_end {
	align-items: flex-end;
}

/* ======= DAN_MODAL ======= */
#dan_modal_black {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	z-index: 1000;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.75);
}

#dan_show_black {
	display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 990;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.62);
}

#dan_modal_white {
	position: relative;
	width: calc(100% - 90px);
	max-height: 100vh;
	box-shadow: 0px 0px 50px #000;
	height: auto;
	box-sizing:border-box;
	border-radius: 30px;
	background: rgba(245, 245, 245, 1);
	overflow: hidden;
	/*transform:scale(0);
	animation:open .2s ease;*/
	animation-fill-mode: forwards;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.dan_modal_content_inner {
	position: fixed;
    bottom: 0;
    left: 0;
    background: #f5f5f5;
    width: 100%;    
    box-shadow: 0px 0px 50px #000;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    z-index: 999;    
    overflow-y: auto;	
	height: 100vh;
}

/*
#dan_modal_content h2 {
	width: 100%;
	text-align: center;
	font-size: 28px;
	font-weight: 600;
	margin: 0px 0px 20px 0px;
}
*/
.dan_modal_wrap {
	display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow: hidden;
    align-content: center;
}

.dan_modal_cross, 
#e_cpanel_close {
    position: sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    top: 0;
    width: 100%;
    padding: 20px 10px 20px 30px;
    text-align: center;
    color: #222;
    font-family: sans-serif;
    font-weight: 300;
    box-sizing: border-box;
    transition: background 0s, transform 0.3s;
    gap: 10px;
    background: rgb(245 245 245 / 70%);
    backdrop-filter: blur(10px);
	min-height: 60px;
}

.modal_del_button {
    padding: 10px;
    border-radius: 50%;
	cursor: pointer;
	flex-shrink: 0;
	transition: all .2s ease;
}

.modal_del_button:hover {
	background:#ddd;	 
}

#e_cpanel_close:hover {
	background:#444;	 
	color:#fff;
}

#dan_modal_save {
	padding: 20px;
    box-sizing: border-box;
	text-align: center;
}

.dan_modal_cross svg, #e_cpanel_close svg {
    width: 15px;
    height: 15px;
    fill: #222;
}

#e_cpanel_close:hover svg {
    fill: #ffffff;
}

.dan_modal_title {
	font-size: 16px;  
    flex-grow: 1;
    text-align: center;
}

.dan_modal_content {
	padding: 0 30px 30px 30px;
	box-sizing: border-box;
	flex: 1;
	position: relative;
}

.dan_modal_content_center_mobile > div {
	width: 100%;
	box-sizing: border-box;
}

.dan_modal_content_center_mobile {	
	width: 100%;
	text-align: center;	
	margin: auto;
	max-width: 490px;
}

@media screen and (min-width: 1001px) {
	#dan_modal_black {
		background-color: rgba(0, 0, 0, 0);
		animation:blur .2s ease;
		animation-fill-mode: forwards;  
	}
	
	#dan_modal_white::-webkit-scrollbar, .dan_modal_content_inner::-webkit-scrollbar {
		width: 10px;
	}

	#dan_modal_white::-webkit-scrollbar:window-inactive, .dan_modal_content_inner::-webkit-scrollbar:window-inactive {
		width: 10px;
	}

	#dan_modal_white::-webkit-scrollbar-track, .dan_modal_content_inner::-webkit-scrollbar-track {
		border-radius: 10px;
		padding:20px;
		margin:20px 0;
	}

	#dan_modal_white::-webkit-scrollbar-thumb, .dan_modal_content_inner::-webkit-scrollbar-thumb {
		border-radius: 10px;
		background-color:#555
	}
}


@media screen and (max-width: 600px) {
	#dan_modal_white {
		width: 100%;
		max-width: 100% !important;
		max-height: 100%;
		height: 100%;	
		border-radius: 0;		
	}

	.dan_modal_content {
		height: 100%;
		max-height: calc(100vh - 80px);
        padding: 0 10px 10px 10px;
	}
	
	.dan_modal_content h2 {
		font-size: 20px;		
	}
	
	/*#dan_modal_cross {
		position: fixed;
	}*/
	
	.dan_modal_content_center_mobile .flex_row {
	    flex-wrap: nowrap;
	}
	
	.dan_modal_content_center_mobile {
		width: calc(100% - 20px);
		display: flex;
		align-items: center;
		align-content: center;
		height: 100%;
		position: fixed;
	}
	
	.dan_modal_cross {
		padding: 10px;		
	}
	
	.dan_modal_title {
		font-size: 14px;
	}
}


/* ======= SHOW ======= */
#dan_show_wrap {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

#dan_show_image {
	display: block;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    border-radius: 5px;
    box-sizing: border-box;
    border: 10px solid #fff;
    box-shadow: 0px 0px 50px #000000;
    -webkit-user-select: none;	
	user-select: none;
}

#dan_show_nav_left, #dan_show_nav_right, #dan_show_nav_play {
	width: 50px;
	height: 50px;
	z-index: 1000;
	cursor: pointer;
}

#dan_show_nav_left {
	margin-right: -60px;
}

#dan_show_nav_play {
    position: fixed;
	top: calc(50% - 25px);
	left: calc(50% - 25px);
	opacity: 0.5;	
}

#dan_show_nav_right {
	margin-left: -60px;
}

.dan_show_nav {
	width: 50px;
	height: 50px;
	opacity: 0.5;
}

#dan_show_cross {
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 999;
	height: 20px;
	width: 20px;
	right: 10px;
	top: 20px;
	text-align: center;
	color: #222;
	font-family: sans-serif;
	font-size: 32px;
	cursor :pointer;
	overflow: hidden;
	font-weight: 300;
	box-sizing:border-box;
	border-radius: 50%;
	transition: background 0s, transform 0.3s;
}


/* --- INPUT --- */
.dan_input {
	width: 100% !important;
	min-height: 40px;
	box-sizing: border-box;
	/*margin: 10px 0;*/
	padding: 0px 10px;
	font-size: 14px;
	font-weight: 400;
	border-radius: 7px;
	border: 1px solid transparent;
	background-color: #ffffff;
}

select {
	cursor:pointer;
}

.dan_input_short {
	width: auto !important;
}

.dan_input_short[type='number'] {
    width: 80px !important;
	text-align:center;
}

.dan_list {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #dddddd;
	max-height: 150px;
    overflow-y: auto;
}

.dan_list_option {
	padding: 5px;
	cursor:pointer;
}

.dan_search {
	box-sizing: border-box;
	width:100%;
	min-height: 40px;
	padding: 10px;
	font-size: 14px;
	font-weight: 400;
	border-radius: 10px;
    border: none;
    background-color: #eee;
}

input[type='number'].dan_input {
	padding-right: 0px !important;
	font-size: 14px;
	font-weight: 400;
}

.dan_input:out-of-range,
input.dan_input:required:invalid,
input[type='text'].dan_input:invalid,
input[type='email'].dan_input:invalid,
input[type='number'].dan_input:invalid,
input[type='url'].dan_input:invalid,
textarea.dan_input:not(:valid) {
    border-left: 7px solid #fb695c;
    transition: border 0.3s;
}

input[type='color'].dan_input {
	width: 38px;
	padding-left: 3px;
	padding-right: 3px;
}

input[type='submit'].dan_input {
	cursor: pointer;
	font-weight: bold;
}

input[type='radio'].dan_input {
	display: none;
}

input[type='radio'].dan_input +label {
    position: relative;
	margin-left: 30px;
	cursor: pointer;
	display: inline-block;
	height: 30px;
	line-height: 30px;
}

input[type='radio'].dan_input +label:before {
	position: absolute;
	left: -30px;
	top:4px;
	display: inline-block;
    content:' ';
    width: 20px;
    height: 20px;
    border: 1px solid #CDD1DA;
    border-radius: 50%;
    background: #FFF;
}

input[type='radio'].dan_input +label:after {
	position: absolute;
	left: -27px;
	top: 7px;
	display: inline-block;
    content: ' ';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.5);
    opacity: 0;
	background-color: #00d900;
}

input[type='radio'].dan_input:checked + label:after {
    opacity: 1;
}

input[type='checkbox'].dan_input {
	display: none;
}

input[type='checkbox'].dan_input_2 {
    width: 21px;
    height: 21px;
}

input[type='checkbox'].dan_input +label {
	cursor: pointer;
	display: inline-block;
	text-align: left;
	width: 60px;
	height: 30px;
	line-height: 30px;
	margin: 0px 10px 0px 0px;
	border-radius: 30px;
	background-color: #ddd;
}

input[type='checkbox'].dan_input:checked +label {
	background-color: var(--color-1);   
}

input[type='checkbox'].dan_input +label:after {
	margin-top: 1px;
	margin-left: 1px;
	display: inline-block;
	width: 28px;
	height: 28px;
	border-radius: 28px;
	content: ' ';
	background: #fff;
    transition: margin-left 0.2s ease;
}

input[type='checkbox'].dan_input:checked +label:after {
	margin-left: 31px;
}

.dan_input_file {
	position: relative;
	display: flex;
    min-height: 40px;
    align-items: center;
	cursor:pointer;
}

.dan_input_file svg{
    width: 20px;
}

.dan_input_file span {
	position: relative;
	display: inline-block;
	cursor: pointer;
	outline: none;
	text-decoration: none;
	font-size: 14px;
	vertical-align: middle;
	text-align: center;
	border-radius: 7px;
	background-color: #fff;
	padding: 5px 10px;
	box-sizing: border-box;
	border: 1px solid #dddddd;
	margin: 0;
}

.dan_input_file input[type=file] {
	position: absolute;
	z-index: -1;
	opacity: 0;
	display: block;
	width: 0;
	height: 0;
}

select[multiple].dan_input {
    height:100px;
	font-size: 14px;
	font-weight: 400;
}

textarea.dan_input {
	width: 207px;	
	padding: 10px;
	height: auto;
	line-height: 20px;
	font-size: 14px;
	font-weight: 400;
	resize: none;
}


textarea.dan_input {
      overflow: auto;
      -ms-overflow-style: none;
      scrollbar-width: none;
}

textarea.dan_input::-webkit-scrollbar {
      width: 0;
      height: 0;
}


.dan_button_green, .dan_button_orange, .dan_button_gray, .dan_button_white, .dan_button_red, .dan_button_blue {
	cursor: pointer;
	display: inline-block;
	padding: 10px 25px;
	font-size: 18px;
	font-weight: normal;
	text-decoration	:none !important;
	text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
	border-radius: 10px;
	transition: background 0.5s;
	box-sizing: border-box;
	-webkit-appearance: none;
}

.dan_button_green {
    border: 1px solid #4CAF50;
    background: #4CAF50;
    color: #fff;
}

.dan_button_green:hover {
    border: 1px solid #43A047;
    background: #43A047;
}

.dan_button_orange {
    border: 1px solid #E56200;
    background: #FF6D00;
    color:#fff;
}

.dan_button_orange:hover {
    border: 1px solid #FF740B;
    background: #FF8020;
}

.dan_button_gray {
	color: #3E3E3E !important;
	border: 1px solid #E2E2E2;
	background: #EEEEEE;
}

.dan_button_gray:hover {
	border: 1px solid #E3E3E3;
	background: #D4D4D4;
}

.dan_button_white {
	color: #777;
	border: 1px solid #eee;
	background: #fff;
}

.dan_button_white:hover {
	border: 1px solid #eee;
	background: #eee;
}

.dan_button_red {
	color: #fff !important;
	border: 1px solid #f44336;
	background: #f44336;
}

.dan_button_red:hover {
	border: 1px solid #e53935;
	background: #e53935;
}

.dan_button_blue {
    border: 1px solid #03a9f4;
    background: #03a9f4;
    color: #fff;
}

.dan_button_blue:hover {
    border: 1px solid #2196f3;
    background: #2196f3;
}




/* ======= TABLE ======= */
/* --- table_list--- */
.dan_table_list {
	width:100%;
	border-width: 0px;
	border-collapse: collapse;
	border-spacing: 0px;
}

.dan_table_list tr {
	border-bottom: 1px solid #D1D1D1;
}

.dan_table_list tr:last-child {
	border-bottom: 0px;
}

.dan_table_list th {
	border-bottom: 2px solid #D1D1D1;
	font-weight: bold;
}

.dan_table_list th, .dan_table_list td {
	padding				:8px;
	padding: 15px;
	text-align: left;
}


/* --- table_border --- */
.dan_table_border {
	border-width: 0px;
	border-collapse: collapse;
	border-spacing: 0px;
}

.dan_table_border, .dan_table_border th, .dan_table_border td {
	border: 1px solid #ddd;
	vertical-align: middle;
}

.dan_table_border td:not(:first-child) {
	text-align: center;
}

.dan_table_border th, .dan_table_border td {
	padding: 0px 10px;
	text-align: left;
}

.dan_table_border th {
	padding: 5px;
}

.dan_table_border td {
	padding: 5px;
}

.dan_table_border tr:nth-child(even) {
	background: #f5f5f5;
}


/* --- table_m --- */
.dan_table_m {
	border-collapse: collapse;
	border-width: 0;
	border-spacing: 0;

}

.dan_table_m > tbody > tr > td {
	vertical-align: middle;
	padding: 12px;
	border :solid 1px #dddddd;
}

.dan_table_m > tbody > tr:first-child > td {
	font-weight: bold;
}


.dan_table_m > tbody > tr:nth-child(odd) {
	background-color: #FFFFFF;
}

.dan_table_m > tbody > tr:nth-child(even) {
	background-color: #F5F5F5;
}


/* --- table_0 --- */
.dan_table_0 {
	width				:100%;
	border-width		:0px;
	border-collapse		:collapse;
	border-spacing		:0px;
}

.dan_table_0 td {
	vertical-align		:middle;
	padding				:0px;
}


@media screen and (max-width: 767px) {
	/**/
	.dan_table_m > tbody > tr:first-child > td:nth-child(n+3) {
		display: none;
	}

	/**/
	.dan_table_m > tbody > tr {
		border-right: 1px solid #ddd;
		border-bottom: 1px solid #ddd;
	}

	.dan_table_m > tbody > tr:first-child > td:nth-child(2) > * {
		display: none;
	}

	/**/
	.dan_table_m > tbody > tr:first-child > td:nth-child(2):before {
		content: attr(data-text);
	}


	.dan_table_m > tbody > tr > td:first-child {
		border: 1px solid #ddd;
	}

	/**/
	.dan_table_m > tbody > tr:nth-child(n+2) > td:nth-child(n+2) {
		display: block;
		border: 0;
		border-bottom: 1px solid #ddd;
	}

	.dan_table_m > tbody > tr:nth-child(n+2) > td:nth-child(n+2):last-child {
		border: 0;
	}

	/**/
	.dan_table_m > tbody > tr:nth-child(n+2) > td:nth-child(n+2)[data-text]:before {
		content: attr(data-text);
		margin-right: 5px;
		color: #878787;
	}
    
    
    .dan_table_mobile,
	.dan_table_mobile > tbody {
		display				:block;
	}

	.dan_table_mobile > tbody > tr,
	.dan_table_mobile > tr {
		display				:flex;
		flex-wrap			:wrap;
		justify-content		:center;
		align-content		:center;
	}

	.dan_table_mobile > tbody > tr > th,
	.dan_table_mobile > tr > th {
		display				:none;
	}

	.dan_table_mobile > tbody > tr > td,
	.dan_table_mobile > tr > td {
		display				:block;
		height				:auto !important;
		flex-basis			:100%;
		padding				:15px;
	}
	
	
	.dan_table_list th, .dan_table_list td, .tr_small_text td {
		padding: 5px !important;
	}
	
}


/**/
.dan_even_odd > div:nth-child(odd),
.dan_even_odd tr:nth-child(odd) {
    background-color: #fff
}

.dan_even_odd > div:nth-child(even),
.dan_even_odd tr:nth-child(even) {
    background-color: #f3f4f5
}


/* ======= SPINER ======= */
#dan_spinner {
    display: block;
	position: absolute;
	left: calc(50% - 35px);
	top: calc(50% - 35px);
	width: 70px;
	height: 70px;
	font-size: 70px;
	fill: #bbb;
	animation: dan_spinner_rotate 2s infinite linear;
}

@keyframes dan_spinner_rotate { 
	100% { 
		transform: rotate(360deg);
	}		
}

#dan_modal_progress {
	width: 100%;
    height: 0;
}




/* --- YouTube adaptive --- */
.dan_youtube {
	position: relative;
	padding-bottom: 56.25%; /* 16/9 */
	padding-top: 30px;
	height: 0;
	overflow: hidden;
}

.dan_youtube iframe {
	position: absolute;
	top: 0;
	left: 0;
	border: none;
	width: 100% !important;
	height: 100% !important;
}


/* --- Error --- */
.dan_textB_1 {
	background-color	:#dcefff;
	border				:1px solid #b4ddff;
	border-radius		:10px;
	padding				:5px 10px 5px 10px;
}

.dan_textB_2 {
	background-color	:#e8e8e8;
	border				:1px solid #d2d2d2;
	border-radius		:10px;
	padding				:5px 10px 5px 10px;
}

.dan_textB_3 {
	background-color	:#b1ffad;
	border				:1px solid #7aff73;
	border-radius		:10px;
	padding				:5px 10px 5px 10px;
}

.dan_textB_4 {
	background-color	:#f5ffb4;
	border				:1px solid #e1f847;
	border-radius		:10px;
	padding				:5px 10px 5px 10px;
}

.dan_error {
	padding: 20px;
	color: #780000;
	background-color: #ffc9c9;
	border: 1px solid #ff9a9a;
	border-radius: 10px;
}

.dan_textB_6 {
	background-color 	:#ffffc7;
    border 				:1px solid #f7f727;
	border-radius		:10px;
	padding				:5px 10px 5px 10px;
}


/* --- Other --- */
.overflow_y_auto {
	overflow-y: auto;
}

.p10_0 {
	padding:10px 0;
}

.gap5 {
	gap:5px;
}

.gap10 {
	gap:10px;
}

.gap20 {
	gap:20px;
}

.m0 {
	margin:0 !important;
}

.mt0 {
	margin-top:0 !important;
}

.mt10 {
	margin-top:10px !important;
}

.mb10 {
	margin-bottom:10px !important;
}

.mt20 {
	margin-top:20px !important;
}

.hidden {
	display:none !important;
}

.hidden_05 {
	opacity:0.5;
}

.hidden_30 {
	opacity:0.3;
}

/*Стилизация ссылок */
.tel, 
a[href^="mailto:"],
a[href^="tel:"] {
	text-decoration: none;
    border-bottom: 1px dotted #ccc;
    color: #222;
    font-weight: 400;
}

@keyframes open {
	0% {
	}
	
	100% {
		box-shadow: 0px 0px 50px #000;		
		transform:scale(1);
		opacity:1;
	}
}


@keyframes blur {
	0% {
	}
	
	100% {
		backdrop-filter: blur(5px);
		background-color: rgba(0, 0, 0, 0.75);
	}
}

/**/

.slider {
  border-radius: 30px;
  background: #fff;
  width: 100%;
  height: 40px;
}

.thumb {
  width: 100px;
  height: 40px;
  border-radius: 30px;
  position: absolute;
  left: 0;
  top: 0;
  background: var(--color-1);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index:10;
}

.thumb svg {
    fill: #fff;
}

.slider_progress {
	height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--color-1);
    border-radius: 30px;
}

#dan_save {
	position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;    
	animation:top 1s, top 1s 3s reverse;
	animation-fill-mode:forwards;
	background:#fff;
	padding: 10px 20px;
	border-radius:30px
}


#spinner_inner {
	background:#fff;
	border-radius:50%;
	position: fixed;
    width: 50px;
    height: 50px;
    z-index: 1001;
    top: 10px;
    left: 10px;
	transition:.3s;
}

#spinner_inner #dan_spinner {
	width: 30px;
    height: 30px;
    top: 10px;
    left: 10px;
}

#dan_save > div {
	position: relative;
	height: 20px;
	min-width: 10px;
	background: #fff;
    display: flex;
    justify-content: center;
    padding: 10px 20px;
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    font-family: 'font_bold', sans-serif !important;
}


@keyframes top {
	0% {
		margin-top:-100%;
		opacity:0;
	}
		
	100% {
		margin-top:0;
		opacity:1;
	}	
	
}