/* reset */
@import url("../css/reset.css");

/* fonts */
@import url("../css/fonts.css");

/* fonts */
/*@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;700&display=swap');*/


/* цвета */
:root {

    --container-pd: 20px;
	--container-pd-minus: calc(-1 * var(--container-pd));
	
	--accent-font-family: 'Fira Sans Condensed', Tahoma, Arial, sans-serif;
	
	--dark-blue: #133559; /* темно-синий */
	--medium-blue: #2e629d;
	--dark-red: #9e0000;
	/*--light-bg: #F8F7F3; */
	--light-bg: #fbfaf8; 

	--error-color:#fc657e;
	--correct-color:#15d676;
	--correct-color:#8bc34a;
	--teacher-correct-hint-color: #00a955;

	--modal-bgcolor:#f0eee7;
	
    --header-font-size: 38px;
	--header-line-height: 1.05;

	--control-height: 44px;
	
}



/* MEDIA  */
@media (max-width: 900px){

    :root {
        --header-font-size: 32px;
    }


}


/* contenteditable placeholder  */
/*
[contenteditable="true"]:empty:before {
	content: attr(placeholder);
	display: block;
	line-height: 1.5;
	font-size: 16px;	
	color: #bbb;
	pointer-events: none;	
  }

  [contenteditable="true"] {
	outline: none;
  }
  */

  


/* noscroll */

html.noscroll {
	position:fixed;
	overflow: auto !important;
    overflow-y: scroll !important;
	left: 0;
    right: 0;
}


/* noscrollbar */

.noscrollbar {
	scrollbar-width: none;
	overflow: -moz-scrollbars-none;
}

.noscrollbar::-webkit-scrollbar {
    display: none !important;    
	width:0;
	height:0;
	-webkit-appearance: none;
	appearance: none !important;
}

.noscrollbar::-moz-scrollbar {
    display: none !important;    
	width:0;
	height:0;
	appearance: none !important;
}


/*** таблицы ***/

table {
	border-collapse: collapse;
	border-spacing: 0;
}

td, th {
	padding: 0;
}


mark {
	background: #ffca2a;
	padding: 2px 0;
}

/*** ШРИФТЫ  ***/

/* 
@font-face {
font-family: 'PT Sans Narrow';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local(''),
        url('/fonts/pt-sans-narrow-v10-cyrillic_latin-regular.woff2') format('woff2'),
        url('/fonts/pt-sans-narrow-v10-cyrillic_latin-regular.woff') format('woff'),
        url('/fonts/pt-sans-narrow-v10-cyrillic_latin-regular.ttf') format('truetype');
}

@font-face {
font-family: 'PT Sans Narrow';
font-style: normal;
font-weight: 700;
font-display: swap;
src: local(''),
        url('/fonts/pt-sans-narrow-v10-cyrillic_latin-700.woff2') format('woff2'),
        url('/fonts/pt-sans-narrow-v10-cyrillic_latin-700.woff') format('woff'),
        url('/fonts/pt-sans-narrow-v10-cyrillic_latin-700.ttf') format('truetype');
}

@font-face {
font-family: 'Fira Sans Condensed';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local(''),
        url('/fonts/fira-sans-condensed/fira-sans-condensed-v10-latin_cyrillic-regular.woff2') format('woff2'),
        url('/fonts/fira-sans-condensed/fira-sans-condensed-v10-latin_cyrillic-regular.woff') format('woff'),
        url('/fonts/fira-sans-condensed/fira-sans-condensed-v10-latin_cyrillic-regular.ttf') format('truetype');
}

@font-face {
font-family: 'Fira Sans Condensed';
font-style: normal;
font-weight: 500;
font-display: swap;
src: local(''),
        url('/fonts/fira-sans-condensed/fira-sans-condensed-v10-latin_cyrillic-500.woff2') format('woff2'),
        url('/fonts/fira-sans-condensed/fira-sans-condensed-v10-latin_cyrillic-500.woff') format('woff'),
        url('/fonts/fira-sans-condensed/fira-sans-condensed-v10-latin_cyrillic-500.ttf') format('truetype');
}

@font-face {
font-family: 'Fira Sans Condensed';
font-style: normal;
font-weight: 600;
font-display: swap;
src: local(''),
        url('/fonts/fira-sans-condensed/fira-sans-condensed-v10-latin_cyrillic-600.woff2') format('woff2'),
        url('/fonts/fira-sans-condensed/fira-sans-condensed-v10-latin_cyrillic-600.woff') format('woff'),
        url('/fonts/fira-sans-condensed/fira-sans-condensed-v10-latin_cyrillic-600.ttf') format('truetype');
}

@font-face {
font-family: 'Fira Sans Condensed';
font-style: normal;
font-weight: 700;
font-display: swap;
src: local(''),
        url('/fonts/fira-sans-condensed/fira-sans-condensed-v10-latin_cyrillic-700.woff2') format('woff2'),
        url('/fonts/fira-sans-condensed/fira-sans-condensed-v10-latin_cyrillic-700.woff') format('woff'),
        url('/fonts/fira-sans-condensed/fira-sans-condensed-v10-latin_cyrillic-700.ttf') format('truetype');
}
*/

body, div, dl, dt, dd, h1, h2, h3, h4, ol, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

html{
	/* запрет скролла вверх - на мобильных */
	/*touch-action:pan-down;*/

	/* Use overscroll-behavior to stop the "bounce" or refresh effect you get on mobile
  	browsers when getting to the top or bottom scroll limits of the page */
	overscroll-behavior: none;
}

body {
    background: var(--light-bg);
}

body.is_sorting_lock {
    user-select: none;
}

h1,.h1,
h2,.h2,
h3,.h3,
h4,.h4,
h5,.h5 {		
	font-family: 'Fira Sans Condensed', Tahoma, Arial, sans-serif;		
	color: #222;
}

h1,.h1 {
	color: #0e2b4b;
	font-weight: 700;
	font-size: var(--header-font-size);
	line-height: 1.05;
	margin: 35px 0 15px 0;
}

h2,.h2 {
	font-weight: 500;
	font-size: calc( 0.8 * var(--header-font-size));
	line-height: 1.15;
	margin: 25px 0 10px 0;
}

h3,.h3 {
	font-weight: 500;
	font-size: calc( 0.66 * var(--header-font-size));
	line-height: 1.15;
	margin: 25px 0 10px 0;
    text-wrap: balance;
}

h4,.h4 {
	font-weight: 500;
	font-size: calc( 0.57 * var(--header-font-size));
	line-height: 1.15;
	margin: 20px 0 10px 0;	
}

h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
    margin-top: 0;
}



/* ссылки */

a {
	color: #0f70af;
	cursor:pointer;
}

a.dashed {
	border-bottom: dashed 1px #709fbe;
    text-decoration: none;
}

/* ховер ссылок только на десктопах */
@media screen and (min-width:700px){
	
	a:active,
	a:hover {	
		color:#A41412;
		text-decoration:none;
		outline: 0;
	}

	a.dashed:active, 
	a.dashed:hover {
		border-bottom: dashed 1px #d09291;
	}

}

a.red {
    color:var(--dark-red);
}

a.red:hover {
    color:#222;
}


.underline-dotted {
	text-decoration:none;
	border-bottom:1px dashed #bdd8e5;
}

.no-underline {
	text-decoration:none;
}


/* контролы */

input, select, textarea  {
	margin:0;
	border: none;
	background-color:#fff;	
	padding: 0 12px;
	color: #222;	
	outline:none;
	resize: none;
	font-size:16px;
	border-radius: 4px;
	font-family:Arial, Helvetica, sans-serif;
	touch-action: manipulation;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='password'] {
	height: var(--control-height);
}

textarea {
	padding: 9px 12px;
}

select {            
    box-shadow: inset 1px 1px 1px rgb(208, 207, 200);
    line-height: 1.4;
    height: var(--control-height);
    outline:none;
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9Ijk2MHB4IiBoZWlnaHQ9IjU2MHB4IiB2aWV3Qm94PSIwIDAgOTYwIDU2MCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgOTYwIDU2MCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PGc+PHBhdGggZmlsbD0iIzc3NyIgZD0iTTQ4MCwzNDQuMTgxTDI2OC44NjksMTMxLjg4OWMtMTUuNzU2LTE1Ljg1OS00MS4zLTE1Ljg1OS01Ny4wNTQsMGMtMTUuNzU0LDE1Ljg1Ny0xNS43NTQsNDEuNTcsMCw1Ny40MzFsMjM3LjYzMiwyMzguOTM3YzguMzk1LDguNDUxLDE5LjU2MiwxMi4yNTQsMzAuNTUzLDExLjY5OGMxMC45OTMsMC41NTYsMjIuMTU5LTMuMjQ3LDMwLjU1NS0xMS42OThsMjM3LjYzMS0yMzguOTM3YzE1Ljc1Ni0xNS44NiwxNS43NTYtNDEuNTcxLDAtNTcuNDMxcy00MS4yOTktMTUuODU5LTU3LjA1MSwwTDQ4MCwzNDQuMTgxeiIvPjwvZz48L3N2Zz4=);
    background-repeat: no-repeat;
    background-size: 15px;
    background-position: right 10px center;
    padding-right: 30px;
    outline: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}


/* validate error */

input[type=text].error, 
input[type=email].error, 
input[type=tel].error, 
input[type=file].error, 
input[type=password].error, 
select.error, 
textarea.error,
.editor.error {
    background-color: rgb(255,221,213) !important;
}


/*** СЕТКА ***/

.container {
	margin-left: auto;
	margin-right: auto;	
	max-width: 940px;
	width:100%;
	padding-left: var(--container-pd);
	padding-right: var(--container-pd);
}

.container_wide {
	max-width: 1180px;
}

.notice {
	padding: 10px;
	border:1px solid #f6e129;
	background-color: #fff5a1;
}

h6.tip {
	color:#888;
	font-size:14px;
}

/* КНОПКИ */

button,
.btn {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    gap:8px;

	background: #2e547c; 
    border-radius: 6px;
    padding: 0 20px;
    height: 40px;
	color: #fff;
	cursor: pointer;
	user-select:none;
}

button.secondary,
.btn_secondary {
	background: #e1e4e5;
    color: #1e242b;
}

button.nostyle,
.btn_nostyle {
	background: none;
    color: inherit;
	padding: 0;
	border: none;
	width: auto;
	height: auto;
}

button.outline,
.btn.outline {
	background:none;
	border:2px solid #d4d4d4;
	color:#333;
	transition: border-color .15s;
}

button.red,
.btn.red {
	background: var(--dark-red);
}

button.is_disabled,
button:disabled,
.btn.is_disabled {
	opacity:0.3;
	pointer-events: none;
}

button.is_buzy,
.btn.is_buzy {
	opacity:0.3;
	pointer-events: none;
}

button.is_loading,
.btn.is_loading {
	color: transparent;
	position: relative;
    pointer-events:none;
}

button.is_loading::after,
.btn.is_loading::after {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	border: 3px solid transparent;
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: button-loading-spinner 1s ease infinite;
	pointer-events: none;
}

@keyframes button-loading-spinner {
	from {
	  transform: rotate(0turn);
	}
  
	to {
	  transform: rotate(1turn);
	}
  }


/* hover */

/*
button:not(.is_loading):hover,
.btn:not(.is_loading):hover {
	background: #133559;  
	color:#fff;     
}
*/

button:hover,
.btn:hover {
	background: #133559;  
	color:#fff;     
}


button.red:hover,
.btn.red:hover {
	background: #8a0000;  
}

button.secondary:hover,
.btn_secondary:hover {
	background: #c8cccf;  
	color: #1e242b;   
}

button.outline:hover,
.btn.outline:hover {
	border-color: #b7b1b1;
	color:#000;
	background:none;
}

button.nostyle:hover,
.btn_nostyle:hover {
	background: none;
    color: inherit;
	padding: 0;
	border: none;
    /*
	width: auto;
	height: auto;
    */
}



button.play {
    position: relative;
    background:none;
    width: 40px;
    height: 40px;
    font-size:22px;
    color:#222;
}

button.play:after {
    content:'\f028';
    font-family: fontawesome;

}

button.play:hover {
    color:#A41412;
}


/* для визуального скрытия элемента со страницы */
.invisible {
    opacity: 0;
    position: absolute;
    z-index: -1;
    top: -2000px;
	width: 1px;
	height: 1px;
	overflow:hidden;
}


/* number_selector */


.number_selector_wr {
    --height: 28px;
    display: inline-flex;
    border: 1px solid #d7d2c3;
    border-radius:6px;     
    margin: 0 3px;   
    vertical-align: middle;
    user-select:none;
}

.number_selector_wr input {
    background:none;
    border:none;
    padding: 0;
    width: 20px;
    height: var(--height);
    text-align:center;
    pointer-events:none;
}

.number_selector_wr button {
    position: relative;
    border:none;
    border-radius:0;
    background: none;
    padding: 0;
    height: auto;   
    color: #222;
    width: 24px;
    font-size: 16px;
}

.number_selector_wr button:hover {
    color:#000;
    background: #eae7dd;
}

.number_selector_wr button[disabled] {
    pointer-events:none;
    opacity:0.5;
}

.number_selector_wr button[data-plus] {

}

.number_selector_wr button[data-plus]:before, 
.number_selector_wr button[data-plus]:after {
    display: block;
    content: '';
    height: 1px;
    width: 9px;
    background: currentColor;
}

.number_selector_wr button[data-plus]:before {
    position: absolute;
    transform: rotate(90deg);
}

.number_selector_wr button[data-minus]:hover {
    border-radius: 6px 0px 0px 6px;
}

.number_selector_wr button[data-plus]:hover {
    border-radius: 0px 6px 6px 0px;
}

.number_selector_wr button[data-minus]:after {
    display: block;
    content: '';
    height: 1px;
    width: 9px;
    background: currentColor;
}


/* tabpanel_wr */

.tabpanel_wr {
    margin: 20px 0;
    display: flex;
    gap: 0px;
    height: 40px;
}

.tabpanel_item {
    flex-shrink:0;
    /*background: #f0eee7;*/
    padding: 0 18px;
    display: flex;
    align-items: center;   
    font-size: 18px;
    border: 1px solid #ebebea;
    margin-right: -1px;
    line-height: 1;
}

.tabpanel_item:first-of-type {
    border-radius: 6px 0 0 6px;
}

.tabpanel_item:last-of-type {
    border-radius: 0 6px 6px 0;
}

.tabpanel_wr a.is_active {
    color: #222;
	cursor: default;
	background: #f0eee7;
    pointer-events:none;
}

.tabpanel_big .tabpanel_item {
    font-size: 20px;
    padding: 0 25px;
}

.tabpanel_big {
    height: 48px;
}


/*** CONTROLS STYLED ***/
input.styled,
select.styled,
.styled:not(label) {
	font-size: 16px;
	border: none;
	background: #fff;
	padding: 0 12px;
	-webkit-box-shadow: inset 1px 1px 1px rgb(208, 207, 200);
    box-shadow: inset 1px 1px 1px rgb(208, 207, 200);
    
	-webkit-appearance: none;
    appearance: none;
	
	line-height: 1.4;
	height: 44px;
	border-radius: 4px;
	color:#222;
}

select.styled {
	background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9Ijk2MHB4IiBoZWlnaHQ9IjU2MHB4IiB2aWV3Qm94PSIwIDAgOTYwIDU2MCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgOTYwIDU2MCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PGc+PHBhdGggZmlsbD0iIzc3NyIgZD0iTTQ4MCwzNDQuMTgxTDI2OC44NjksMTMxLjg4OWMtMTUuNzU2LTE1Ljg1OS00MS4zLTE1Ljg1OS01Ny4wNTQsMGMtMTUuNzU0LDE1Ljg1Ny0xNS43NTQsNDEuNTcsMCw1Ny40MzFsMjM3LjYzMiwyMzguOTM3YzguMzk1LDguNDUxLDE5LjU2MiwxMi4yNTQsMzAuNTUzLDExLjY5OGMxMC45OTMsMC41NTYsMjIuMTU5LTMuMjQ3LDMwLjU1NS0xMS42OThsMjM3LjYzMS0yMzguOTM3YzE1Ljc1Ni0xNS44NiwxNS43NTYtNDEuNTcxLDAtNTcuNDMxcy00MS4yOTktMTUuODU5LTU3LjA1MSwwTDQ4MCwzNDQuMTgxeiIvPjwvZz48L3N2Zz4=);
	background-repeat: no-repeat;
	background-color: #fff;
	background-size: 15px;
	background-position: right 10px center;
	padding-right: 27px;
	outline: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

textarea.styled {
	font-size: 16px;
	border: none;
	background: #fff;
	box-shadow: inset 1px 1px 1px rgb(208, 207, 200);
	border-radius: 4px;
	padding: 10px 12px;
}


label.styled {
	
	/* dark blue */ 
	--checkbox_bg: #123254;
	--checkbox_border: #123254;

	/* blue */ 
	--checkbox_bg: #2e629d;
    
	--checkbox_border: #2e629d;
	--checkbox_border: #496585;

    --checkbox_border_disabled: #12325436;
	--checkbox_bg_active: #adb5bd36;
	--checkbox_bg_disabled: #1232540d;
	--checkbox_size: 18px;
	--checkbox_marker_size: 10px;
      
    --check_lite: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
    --check_dark: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2312325466' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
  
    --dot_lite: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    --dot_dark: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2312325466'/%3e%3c/svg%3e");
}

label.styled.sm {
	--checkbox_size: 15px;
	--checkbox_marker_size: 9px;
}


input.styled[readonly] {
	background:#ffffff6e;
}

/* RADIO */

/* radio default  */

/* checkbox 
https://codepen.io/wtaype/pen/pNXwMW
*/

input[type=radio] {
    margin-right: 8px;
    width: 20px;
    height: 20px;
    padding: 0;    
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
    transition: all 0.15s ease-out 0s;
    background: var(--light-bg);
    border: 2px solid #cbd1d8;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    position: relative;
}

input[type=radio]:after {
    border-radius: 50%;
}

input[type=radio]:checked::before {
	width: 8px;
	height: 8px;
	display:flex;
	content: '';
	position: absolute;
	align-items:center;
	justify-content:center;
	background:#656a70;
	border-radius:50%;
	left:4px;
	top:4px;
  }



/* radio .styled */

label.styled > input {
	position: absolute;
	z-index: -1;
	opacity: 0;
	left: -9999px;
}

label.styled > span {
	display: inline-flex;
	align-items: center;
	user-select: none;
    /*
    position: relative;
    top: 3px;
    */
}

label.styled > span:before {
	content: '';
	display: inline-block;
	width: var(--checkbox_size);
	height: var(--checkbox_size);
	flex-shrink: 0;
	flex-grow: 0;
	border: 1px solid var(--checkbox_border);
	border-radius: 50%;
	margin-right: 0.5em;
	background-repeat: no-repeat;
	background-position: center;
	background-size: var(--checkbox_marker_size);
}

/* radio: hover */
/*
label.styled > input:not(:disabled):not(:checked) + span:hover:before {
	border-color: var(--checkbox_border_hover);
}
*/

/* radio: active */
/*
label.styled > input:not(:disabled):active + span:before {
	background-color: var(--checkbox_bg_active);
	border-color: var(--checkbox_bg_active);
}
*/

/* radio: checked */
label.styled > input:checked + span:before {
	border-color: var(--checkbox_bg);
	background-color: var(--checkbox_bg);
	background-image: var(--dot_lite);
}

/* radio: disabled */
label.styled > input:disabled + span:before {
	background-color: var(--checkbox_bg_disabled);
	border-color: var(--checkbox_border_disabled);
}

/* radio: disabled + checked */
label.styled > input[type=radio]:disabled:checked + span:before {
	background-color: var(--checkbox_bg_disabled);
    background-image: var(--dot_dark);
}


/* CHECKBOX */

label.styled > input[type=checkbox] + span:before {
  content: '';
  display: inline-block;
  width: var(--checkbox_size);
  height: var(--checkbox_size);
  flex-shrink: 0;
  flex-grow: 0;
  border: 1px solid var(--checkbox_border);
  border-radius: 0.25em;
  margin-right: 0.5em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: var(--checkbox_marker_size);
}

/* checkbox: checked */
label.styled > input[type=checkbox]:checked + span:before {  
  background-image: var(--check_lite);
}

/* checkbox: disabled */
label.styled > input[type=checkbox]:disabled + span:before {
    border-color: var(--checkbox_border_disabled);
}
  
/* checkbox: disabled + checked */
label.styled > input[type=checkbox]:disabled:checked + span:before {
	background-color: var(--checkbox_bg_disabled);
    background-image: var(--check_dark);
}


/*
checkbox v2 (2024)
*/

input[type="checkbox"].styled2 {
    --size: 20px;
    width: var(--size);
    height: var(--size);
    padding: 0;
    vertical-align: text-bottom;
    margin-right: 3px;
    position: relative;
    /*top: -1px;*/
    appearance: none;
    background: #d7d2c3;
    box-shadow: inset 1px 1px 1px #a8a59b;
}

input[type="checkbox"].styled2:checked:before {
    content: '';
    position: absolute;
    width: 11px;
    height: 3px;
    background: #222;
    transform: rotate(-45deg);
    left: 6px;
    top: 8px;
}

input[type="checkbox"].styled2:checked:after {
    content: '';
    position: absolute;
    width: 6px;
    height: 3px;
    background: #222;
    transform: rotate(45deg);
    left: 4px;
    top: 9px;
}








/* css-tooltip */

[data-tooltip]{
    --tooltip-color: #fff;
    --tooltip-bgcolor: #222;
    position: relative;    
}

[data-tooltip]:before {
    content: "";
    position: absolute;
    top:-9px;
    left:50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: var(--tooltip-bgcolor) transparent transparent transparent;
    z-index: 100;
    opacity:0;
    visibility: hidden;
    transition: all .1s ease-in;
}

[data-tooltip]:after {
    content: attr(data-tooltip);
    position: absolute;
    left:50%;
    top:-8px;
    transform: translateX(-50%)   translateY(-100%);
    background: var(--tooltip-bgcolor);    
    color: var(--tooltip-color);
    padding: 6px 12px 8px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: normal;
    min-width: 80px;    
    max-width: 300px;
    width: max-content;
    border-radius: 5px;
    z-index: 100;    
    transition: all .1s ease-in;
    line-height: 1.3;
    user-select: none;
    opacity:0;
    visibility: hidden;
} 

[data-tooltip]:hover:before {
   opacity:1;
   visibility: visible;
   top:-13px;
}

[data-tooltip]:hover:after {
   opacity:1;
   visibility: visible;
   top:-12px;
}


/* jquery tooltip */

@keyframes tooltip-show {
    from { transform: translateX(-50%) translateY(5px); opacity:0;visibility: hidden;}      
    to { transform: translateX(-50%) translateY(0px); opacity:1; visibility: visible;}
}

.tooltip_content {
    --tooltip-color: #fff;
    --tooltip-bgcolor: #222;
    background: var(--tooltip-bgcolor);
    font-weight: normal;
    font-size: 14px;
    padding: 8px 12px 10px 12px;
    border-radius: 5px;
    width: max-content;
    min-width: 80px;
    max-width: 300px;
    color: var(--tooltip-color);
    line-height: 1.3;
    user-select: none;
    position: absolute;    
    bottom: calc(100% + 10px);
    left:50%;
    transform: translateX(-50%);
    z-index: 100;

    animation: tooltip-show .1s;
}

.tooltip_content.is_hiding {
    animation: tooltip-show reverse .1s forwards;
}

.tooltip_content:before {
    content: "";
    position: absolute;
    bottom:-7px;
    left:50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: var(--tooltip-bgcolor) transparent transparent transparent;
    z-index: 100;    
}


div.tippy-popper {
    font-weight: normal;
}

div.tippy-content {
    padding: 8px 12px 10px 12px;
    font-size:14px;
    line-height: 1.4;
}



/* кастомный <select> */

.selectbox_wr {
	position: relative;
    /*display: inline-block;*/
	display: inline-flex;
	align-items: center;	
    margin: 0 5px;
}

.selectbox {
	padding: 5px 30px 5px 0;
	background: #fff;
	color: #222;
	text-align: left;
	cursor: pointer;
	min-width: max-content;
	display: inline-block;
	position: relative;
	border-radius:8px;
	font-family:arial;
	font-size:16px;
	border: 2px solid #d4d4d4;
	user-select:none;
}

.selectbox:hover,
.selectbox.open {
    border-color:#a9a5a5;
}

.selectbox.error {
    border-color:var(--error-color);
}

.selectbox.correct {
    border-color:var(--correct-color);
}

.selectbox div {
  padding: 0;
  text-indent: 1em;
  position: relative;
}

.selectbox div .selectbox_options {
  display: block;
  list-style-type: none;
  padding: 0;
  margin: 0 0 0 0;
  background: transparent;
  position: absolute;
  z-index:2;
  width: 100%;
  max-height: 0px;
  overflow: hidden;
  top: 32px;
  left: 0;
  transition: all ease 0.1s;
  border-radius:4px;
  min-width: max-content;
  box-shadow: 0 0 16px 0 rgba(184, 184, 202, 0.5);
}

.selectbox div .selectbox_options div {
  padding: 7px 17px 7px 0;
  border-bottom: 1px solid #f2f2f2;
  min-width: max-content;
}

.selectbox div .selectbox_options div:hover {
  background: #f2f2f2;
}

.selectbox div .selectbox_options div:last-of-type {
  border-bottom: 0;
}

.selectbox div .selectbox_options div.is_correct {
	color: #0c910c;
    font-weight: bold;
}

.selectbox div .selectbox_options.open {
  background: #fff;
  max-height: 1000%;
  border-top: 1px solid transparent;
}


/* arrow down*/
.selectbox:before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #999;
  position: absolute;
  top: 14px;
  right: 10px;
  transition: all ease 0s;
}

/* arrow up */
.selectbox.open:before {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid #999;
  border-top: 0;
}



/* tg_group_wr */

.tg_group_wr {
    display: flex;
    gap: 20px;
    max-width: 620px;
    margin-top: 50px;
    margin-bottom: 50px;
    text-wrap: balance;
    text-align:left;
}

.tg_group_wr img {
    width: 140px;
    height: 140px;
    padding: 10px;
    border-radius: 6px;
    background: linear-gradient(45deg, #97ddf7, #cdfff3);
}


/* tips */

div.tip {
    background-color: #d4dde2;    
    margin: 5px 0;
    border-radius: 4px;
    padding: 5px 10px;
}

div.tip .tip_error {
    background-color: #ef3124;
    color: #fff;    
}

div.tip .tip_info {
    background-color: #4caf50;
    color: #fff;    
}


.tip_italic {
    font-size: 14px;
    color: #424e54;
    font-style: italic;
}


/* zeditor */

.zeditor_wr {
    position: relative;
}

.zeditor_outer {
	position: relative;
}

.zeditor {
    padding: 10px;
    border-radius:6px;
    min-height: 90px;
    outline:none;
	display: inline-block;
	width: 100%;
	box-shadow: inset 1px 1px 1px rgb(208, 207, 200);
	border: none;
    background: #fff;
}

.zeditor_placeholder {
	position: absolute;
    top: 10px;
    left: 12px;
	pointer-events:none;
	user-select:none;
	color:#757575;
}

.zeditor:focus {
    /*border-color:red;*/
}

.zeditor_toolbar {
    position: sticky;
    top: 0;
    user-select:none;
    background:#ccc;  
    display: flex;
    padding: 10px;
    gap: 10px;
    z-index: 1;
}

button.zeditor_button {
    width: 32px;
    height: 32px;
    border:none;
    border-radius:6px;
    cursor: pointer;
    font-weight:bold;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zeditor_button.brackets {
    letter-spacing: 1.5px;	
}

.zeditor_button.slash {
    line-height: 0;	
}

.zeditor_button.italic {
    font-style: italic;  
}

.zeditor_button.underline {
    text-decoration: underline;
}

.zeditor_button.strikethrough {
    text-decoration: line-through;
}

button.zeditor_button.is_active {
    /*background:#aaa;*/
    color:#ffeb3b;
}

.zeditor_wr .relative_toolbar {
    user-select:none;
    position: absolute;
    opacity:0;
    left:0;
    top:0;
    border-radius: 6px;
    padding: 5px;
    background:#555;
    color:#eee;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    gap:5px;
}

.zeditor_wr .relative_toolbar button {
    background:#555;
    color:#eee;
}

.zeditor_wr .relative_toolbar button.is_active {
    color:#ffeb3b;
    background:#666;
}

/*
.zeditor_wr .relative_toolbar:after {
    content: '';
    left: 50%;
    margin-left: -8px;
    position: absolute;
    display: inline-block;
    border: 8px solid transparent;
    border-bottom: 8px solid #555;
    top: -15px;
}
*/

.zeditor_wr .relative_toolbar .relative_toolbar_corner {
	--width: 8px;
	left: 50%;
    margin-left: calc(-1 * var(--width));
    position: absolute;
    display: inline-block;
    border: var(--width) solid transparent;
    border-bottom: var(--width) solid #555;
    top: -15px;
}

.zeditor_wr .relative_toolbar.is_active {
    display: flex;
    opacity:1;
}

mark {
    background: #ffca2a;
    padding: 2px 0;
}

@media (hover: hover) and (pointer: fine) {

    .zeditor_toolbar button:hover {
        background:#0c1f34;
    }

    .zeditor_wr .relative_toolbar button:hover {  
        color:#fff;
        background:#666;
    }

}


/* модалка CROP IMAGE */

.modal_image_crop {
    max-width: 470px;
}

.modal_image_crop_action_wr  {
    display: flex;
    gap: 15px;
}

.modal_image_crop_action_wr button {
    flex-basis: 50%;
}

.modal_image_crop_loader {
    position: absolute;
    left: 50%;
    margin-top: 10px;    
    margin-left: -18px;
    color: #333;
}

.modal_image_crop_manager {
    position: relative;
    margin-top: 20px;
    margin-bottom: 30px;
    min-height: 50px;
    text-align: center;
}

/* cropper */

.cropper_img_wr {
    --crop-marker-size: 14px;
    --crop-marker-margin: -5px;
}

img.cropper_img {
    max-width: 100%;
}

.cropper-point.point-e,
.cropper-point.point-s,
.cropper-point.point-n,
.cropper-point.point-w {
    display: none;
}

.cropper-point {
    width: var(--crop-marker-size);
    height: var(--crop-marker-size);
    border-radius:4px;
    opacity: 1;
    background-color: #fff;
    box-shadow: 0px 0px 4px #427298;
}

.cropper-point.point-ne {
    right: var(--crop-marker-margin);
    top: var(--crop-marker-margin);
}

.cropper-point.point-sw {
    left: var(--crop-marker-margin);
    bottom: var(--crop-marker-margin);
}

.cropper-point.point-nw {
    left: var(--crop-marker-margin);
    top: var(--crop-marker-margin);
}

.cropper-line {
    background-color: #fff;
    opacity: 0;
}

.cropper-view-box {
    /*outline: 1px dashed #fff;*/
}

.cropper-point.point-se {
    width: var(--crop-marker-size);
    height: var(--crop-marker-size);
    right: var(--crop-marker-margin);
    bottom: var(--crop-marker-margin);
}

@media (max-width: 700px){

    .cropper_img_wr {        
        --crop-marker-size: 24px;
        --crop-marker-margin: -9px;
    }

    .cropper-view-box {
        outline-width: 2px;
    }

}







/* modal_tabs  */

.modal_tabs_wr {
    margin-top: 20px;
    margin-bottom: 20px;
    --tab-border-color: #dcd9d0;
}

.modal_tabs {
    border-bottom: 1px solid var(--tab-border-color);
}

.modal_tabs button {
    height: auto;
    background:none;
    color:#222;
    font-size: 18px;
    /*font-weight: 700;*/
    padding: 10px 20px;
    border-radius: 10px 10px 0 0;
    border-color: var(--tab-border-color);
}

.modal_tabs button:not(.is_active):hover {
    background: #dcd9d052;
}

.modal_tabs button.is_active {
    background: linear-gradient(to bottom, #dcd9d06b 0%, rgba(255, 255, 255, 0) 100%);
    cursor: default;
    border-radius: 10px 10px 0 0;
    border: 1px solid var(--tab-border-color);
    border-bottom-color: #f0eee7;
    margin-bottom: -1px;
}

.modal_tabs_content:not(.is_active) {
    display: none;
}

.modal_tabs_content {
    /*
    border: 1px solid #dcd9d0;
    padding: 20px;
    border-radius: 0 0px 8px 8px;
    */
    margin-top: 20px;
}


/* checkbox button */

.checkbox_btn {
    --height: 32px;
    --margin: 10px;
    --padding: 0px 10px;
    --font-size: inherit;
    --bg: #eae7db;
    --bg-active: #d9d7ce;
    display: inline-block;
    margin: 0 var(--margin) var(--margin) 0;
    user-select: none;
    white-space: nowrap;
    position: relative;    
}

.checkbox_btn input[type=checkbox] {
    z-index: -1;
    opacity: 0;
    display: none;
    width: 0;
    height: 0;
}

.checkbox_btn > span {
    display: inline-block;
    cursor: pointer;
    padding: var(--padding);
    border: 1px solid var(--bg-active);
    /* background: var(--bg); */
    font-size: var(--font-size);
    border-radius: 6px;
    transition: background 0.0s ease;
    color: #333;
    height: var(--height);
    line-height: var(--height);
    display: flex;
    align-items: center;
}

.checkbox_btn > span:hover {
    border-color: #858275;
}

.checkbox_btn input[type=checkbox]:checked + span {
    background: var(--bg-active);
    border-color: var(--bg-active);
    border-top: 1px solid #c9c6b594;
    border-left: 1px solid #c9c6b594;
}