.nav_check {
    display: none;
}

header {
	contain: content;
	scroll-snap-align: none;	
    position: sticky;
    top: 0;
    left: 0;
	height: var(--hh);
    background: #fff;
/*    background: #ffffffd0;
	backdrop-filter: blur(5px);*/
    z-index: 100;
	padding: 7px 15px 7px 20px;
    display: flex;
	gap: 3vw;
    justify-content: space-between;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,.12), inset 0 -1px 0 0 #dadce0;
	transition: box-shadow .5s, height .5s;
}
#show_menu:checked ~ header {
	box-shadow: 0 0 0 0 #fff;
}
.menu_button {
    flex: 0 1 40px;
    display: inline-flex;
    justify-content: end;
    align-items: center;
	padding-bottom: 2px;
}
.hamburger {
    border: 2px solid transparent; 
    border-radius: 100%;
    width: 38px;
    height: 38px;
    padding: 4px 0;
	position: relative;
	-webkit-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
	cursor: pointer;
}
.hamburger:active	 {
    border: 2px solid #99c; 
}
.hamburger > div {
  background-color: #000;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

#show_menu:checked ~ header .hamburger {
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

.hamburger:before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  border: 2px solid transparent;
  top: calc(50% - 19px);
  left: calc(50% - 19px);
  border-radius: 100%;
  transition: all 0.3s ease-in-out;
}

#show_menu:checked ~ header .hamburger:before {
  border: 2px solid #000;
}

#show_menu:checked ~ header .hamburger > div {
  width: 22px;
} 

#show_menu:checked ~ header .hamburger > div:nth-child(2){
  opacity: 0;
}

#show_menu:checked ~ header .hamburger > div:nth-child(1){
  transform: translateY(7px);
}

#show_menu:checked ~ header .hamburger > div:nth-child(3){
  transform: translateY(-7px) rotate(90deg);
}

nav {
	position: fixed;
	top: -100%;
	left: 0;
	min-height: 100%;
	height: 100%;
	width: 100%;
	overflow-x: hidden;
    overflow-y: auto;
	margin: 0;
	padding: 75px 20px 30px;
	background: #fff;
	transition: all 0.3s ease-in-out;
	z-index: 99;
}
#show_menu:checked ~ nav {
	top: 0;
}	

.menu_holder { 
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.menu_holder > div {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}
.main_menu {
    flex: 1 0 99%;
}
.main_menu a {
	font-size: 1.2rem;
	margin: 4px 0;
}	
.main_menu a:hover:not(.btn) {
	color: var(--color-dark-blue);
	text-decoration: underline;
}

.logo {
	height: 100%;
	width: auto;
	max-width: 100%;
	display: block;
}
.logo text:first-child {
	letter-spacing:.25px;
}	
@media (max-width: 425px) {
	.logo .txt {
		transform: translate(30px, 3px) scale(0.97, 0.98);
	}
	.logo .fig {
		stroke-width: 6; 
	}
}

.contacts {
	display: none;
}	

@media (min-width: 1400px) {
	.contacts {
		padding: 6px 4px;
		display: flex;
		justify-content: center;
		gap: 14px 30px;
		flex-wrap: wrap;
		overflow: hidden;
	}
	.contacts a {
		display: block;
		white-space: nowrap;
	}
	.contacts a:hover {
		color: var(--color-dark-blue);
	}	
	.contacts a:first-of-type {
		line-height: 1.32em;
	}
	.contacts a:last-of-type {
		text-align: center;
		font-size: .8rem;
		letter-spacing: .1px;
		line-height: 1.2em;
		margin-top: 7px;
	}
	.contacts a:last-of-type:hover {
		text-decoration: underline;
	}
}

.menu {
    display: none;
	flex-flow: column;
	justify-content: space-between;
    padding: 6px 0 7px;
    font-size: 1.1rem;
	/* width: 100%; */
}	
.menu > div {
    display: flex;
    justify-content: end;
	gap: 40px;
	white-space: nowrap;
}
.menu .lnks a {
	padding: 0 0 3px;
	border-bottom: 2px solid transparent;
}
.menu .lnks a:hover:not(:focus) {
	color: var(--color-dark-blue);
	border-bottom-color: var(--color-blue-button);
	border-radius: 0;
}
.menu .btns {
	text-align: right;
	flex-wrap: nowrap;
}
.menu .btns .btn {
	flex-shrink: 0;
}

@media (min-width: 1180px) {
 header {
	padding: 5px 20px 8px;
 }
 header > div:first-child {
	flex-shrink: 0;
 }	 
 nav, .menu_button { 
	display: none;
 }
 .menu {
    display: flex;
 } 
}

@supports (animation-timeline: scroll()) {
 .btn.hot {
	animation: button-hot-progress linear both;
	/* animation-timeline: scroll(); */
	animation-timeline: --body-scroller;
 }
 @keyframes button-hot-progress {
	to { filter: hue-rotate(115deg) brightness(1.2); } 
 }
}

.widget_holder {
	width: 120px;
	position: relative;
}	
.search_widget {
	width: 120px;
	position: absolute;
	right: 0;
	transition: width .3s ease-out;
}
.search_widget:focus-within {
	width: calc(100vw - 1054px);					/* 100vw - 20px * 2 - 578px - (526px  - 120px) - 30px[отступ] */
	outline: solid 2px #fff;
}
.search_widget input {
	font: 300 1.1rem "Roboto", arial, sans-serif;
	width: inherit;
	min-height: 42px;
	padding: 0 3rem 2px 16px;
	border: 1px solid var(--color-light-blue);
	border-radius: 999px;
	text-overflow: ellipsis;
}
.search_widget:focus-within input {
	padding-right: 5.5rem;
}
.search_widget input:focus {
	outline: none;
	border-color: var(--color-blue);
}	
.search_widget:hover input {	
	border-color: var(--color-blue);
}
.search_widget input:invalid {
    text-decoration: underline var(--color-blue) solid .15rem;
	text-underline-offset: .1em;
}
.search_widget:focus-within input:invalid {
    animation: blink_cursor 1s step-end infinite;
    caret-color: #0000;
}
@keyframes blink_cursor {	
	0%, 100% {
		text-decoration-line: none;
	}
	50% {
		text-decoration-line: underline;
	}
}
.search_widget button {
	position: absolute;
    top: 50%;
    right: 1rem;
    translate: 0 -50%;
    width: 2rem;
    height: 2rem;
	padding: 0;
	background: none;
    border: 0;
    border-radius: 10px;
	cursor: pointer;
}
.search_widget .clear {
    right: 3rem;
	display: none;
}
.search_widget:focus-within .clear {
	display: inline-block;
	opacity: 1;
}
.search_widget:invalid .clear {	
	opacity: 0;
}
.search_widget button span {
	background-color: var(--color-light-blue);
	display: inline-block;
	width: 100%;
	height: 100%;
}
.search_widget .search span {
    mask: url(/pic/xicons.svg#search) center / 1.2rem no-repeat;
}
.search_widget .clear span {
    mask: url(/pic/xicons.svg#clear) center / 1.2rem no-repeat;
}
.search_widget button:hover {
	border: 1px solid var(--color-light-blue);
}	
.search_widget button:active {
	border-color: var(--color-blue);
}	
.search_widget button.search:active {	
	background-color: var(--color-blue);
}
.search_widget:invalid button,
.search_widget:invalid button:active {
	cursor: default;
    border: 0;
	background: none;
}
.search_widget:focus-within button.search span,
.search_widget button:hover span {
    background-color: var(--color-blue);
}	
.search_widget button.search:active span {
	background-color: #fff;
}	
.search_widget:invalid button span,
.search_widget:invalid button:hover span,
.search_widget:invalid button:active span,
.search_widget:invalid:focus-within button span {
    background-color: var(--color-light-blue);
}

.dlg {
	position: fixed;
	top: -100vh;
	left: 0;
	height: 100vh;
	width: 100vw;
	z-index: 99;
	
	/* тебуется оптимизация: заменить translate на left, а top на translate + will-change 
	см. https://medium.com/outsystems-experts/how-to-achieve-60-fps-animations-with-css3-db7b98610108 */
	
	transition: top .3s linear, translate .2s step-end 1s;
	translate: -100vw;			/* во избежание появления панели при изменении высоты окна*/
	
	background: #fff;
    /* box-shadow: 0 2px 6px 0 rgba(0,0,0,.12), inset 0 -1px 0 0 #dadce0; */
}	
body.register .dlg,
.dlg:target {
	top: 0;
	transition-delay: 0s, 0s;
	translate: 0;
}
body.register header,
body:has(.dlg:target) header {
	height: var(--min-hh);
	box-shadow: none;
	transition: box-shadow .5s .3s, height .5s;
}
header > div:nth-child(n+2) {
	transition: opacity .5s .5s;
}
body.register header > div:nth-child(n+2),
body:has(.dlg:target) header > div:nth-child(n+2) {
	opacity: 0;
	transition-delay: 0s;
}

.close {
    all: unset;
	appearance: none;
    display: none;
    position: absolute;
    top: 10px;
    right: 5px;
    width: 50px;
    height: 50px;
    font-size: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	transition: transform .5s;
	-webkit-tap-highlight-color: transparent;
    cursor: pointer;
	scale: 0;
}
.close:before, 
.close:after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 25px;
    background-color: #000;
    transform: rotate(45deg) translate(-50%, -50%);
    transform-origin: top left;
    content: '';
}
.close:after {
    transform: rotate(-45deg) translate(-50%, -50%);
}
body.register header .close,
body:has(.dlg:target) header .close {
	display: block;
	animation: appear 1s ease-out forwards; 
}	
.close:hover {
    transform: rotate(180deg);
	border: 1px solid #000;
}
.close:active {
	border-color: var(--color-blue);
    background-color: var(--color-blue);
}
.close:active:before, 
.close:active:after {
    background-color: #fff;
}
@keyframes appear {
	0%,60% {
		scale: 0;
	} 
	80% {
		scale: 1.5;
	}
	100% {
		scale: 1;
	}
}

/* ******************************************************************************************************** */

.hform {
	height: 100dvh;
	padding: var(--min-hh) 20px 20px;
	overflow-x: clip;
	overflow-y: auto;
}
.hform h2 {
    text-align: center;
    margin: 1vmin 0 1.5rem;
    font: 300 max(1rem, min(2rem, 8vmin)) /1 'Roboto',arial,helvetica,sans-serif;
    min-height: 3vh;
}	
.hform > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
	min-height: 200px;
    max-width: 1000px;
    margin: 0 auto;
    overflow-y: auto;
    overflow-x: hidden;
}
.hform .form_footer {
	margin-bottom: 1rem;
}
.hform .form_field {
	padding: 0 2px;
}	
.form_container {
	width: 100%;
    height: 100%;
	min-height: 0;	
}
.form_holder {
	display: flex;
	gap: 0 22px;
	height: 100%;
	transition: .3s translate;
}
#reg_page:checked + form .form_holder,
form .form_holder:has(> div:last-child :is(input, a):focus) {
	translate: calc(-100% - 22px) 0;
}
.form_holder:has(> div:first-child input:focus),
.form_holder:has(> div:first-child input:invalid)
{
	translate: 0 !important;
}
.form_holder > div:first-child:has(input:invalid) .form_button {
	opacity: .3;
	cursor: default;
}

.form_holder > div {
    width: 100%;
    flex: 1 0 100%;
	padding-top: .4rem;
    display: flex;
    flex-direction: column;
}
.form_holder .btns {
	/* padding-top: 1rem;  - см. .form_field */
	margin-top: auto;
}
.form_holder .btns .form_button {
	border-color: var(--color-gray-border);
	color: var(--color-gray-form);
	background-color: #fff;
	cursor: pointer;
}
.form_field {
	width: 100%;
}
.njs .course_field {
	display: none;
}	
.choice_list, .choice_list .field_text {
    height: 100%;
    margin: 0;
}
.choice_list {
    flex: 1;
    min-height: 0;
}	
.choice_list .field_text {
	padding: 0 .5em;
	overflow-x: clip;
	overflow-y: auto;
	scrollbar-width: none; /* Firefox */
}
.choice_list .field_text::-webkit-scrollbar {
	width: 0;
}
.choice_list:hover .field_text {
	scrollbar-width: thin; /* Firefox */
}
.field_text:hover  .field_text::-webkit-scrollbar {
	width: initial;
}
.c_list {
    padding: 0 0 10px 0;
}
.choice_list .c_container {
	outline: 2px solid transparent;
}
.choice_list .c_container.error {
	outline: 2px solid var(--color-red-strike);
	transition: outline .5s;
}
.c_container ~ .form_label.error,
.c_container.error + .form_label {
	color: var(--color-red);
	display: none;
}
.c_container.error ~ .form_label.error {
	display: inline-block;
}
	
@media (min-width: 600px) {	
 .form_holder {
	transition: none;
	translate: none !important;
 }
 .form_holder > div {
	flex: 1;
	padding-top: 0;
 }
 .form_holder > div:last-child {
	margin-top: -59px;
 }
 .njs .form_holder > div:last-child {
	margin-top: 0;
 }	
 .course_field {
	width: calc(50% - 10px);
	align-self: start;
 }
 .form_holder .btns {
	display: none;
 }
 .c_list {
	color: var(--color-gray-text);
 }
 .c_list:hover, .c_list:focus-within {
	color: inherit;
 }	
}	

.form_field .clear {
	display: inline-block;
    position: absolute;
    top: 50%;
    right: 4px;
    translate: 0 -50%;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 10px;
	background: #fff;
    cursor: pointer;
}
.njs .form_field .clear {
	display: none;
}	
.form_field .clear:hover {
	border: 1px solid var(--color-light-blue);
}	
.form_field .clear:active {
	border-color: var(--color-blue);
}	
.form_field input:invalid ~ .clear {	
    display: none;
}
.form_field .clear span {
    display: inline-block;
    width: 100%;
    height: 100%;
    background-color: var(--color-gray-border);
    mask: url(/pic/xicons.svg#clear) center / 1.2rem no-repeat;
}
.form_field .clear:hover  span,
.form_field .clear:active  span {
	background-color: var(--color-blue);
}
.form_field:has(.clear) input {
	padding-right: calc(2rem + 4px);
}

.c_list label {
	display: flex;
	align-items: center;

	cursor: pointer;
	position: relative;
}
.c_list .section label {
	padding: 6px 8px;
	margin: 4px;
	border-radius: var(--border-radius);
}

.c_list input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.c_list label::after {
	content: "";
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	margin-left: auto;
	background-color: currentColor;
}
	
.c_list .section label::after {  
	mask: url("/pic/xicons.svg#check") no-repeat top center / contain;
	-webkit-mask: url("/pic/xicons.svg#check") no-repeat top center / contain;

	opacity: 0;
	transition: opacity 0.3s ease-out;
}

.c_list label:has(input:checked) {
	color: var(--color-blue);
}

.c_list label:has(input:checked)::after {
	opacity: 1;
}

.c_list .section label:hover {
	background: var(--color-blue-box);
	outline: 2px solid #eef6ffa1;		/* 	var(--color-blue-box); */
}

.c_list .section label:has(input:focus-visible) {
	outline: 2px solid var(--color-blue);
	outline-offset: 2px;
}

.c_list .section_title {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px 2px 6px;
    background: #fff;
    font-weight: 600;
	/* align-items: end; */
	/* white-space: nowrap;
	text-overflow: ellipsis; */
}

.c_list .section_title::after { 
	color: var(--color-gray-border);
	mask: url("/pic/xicons.svg#arrow-b") no-repeat center;
	-webkit-mask: url("/pic/xicons.svg#arrow-b") no-repeat center;
	transition: transform .3s ease-in;
}
.nav_check:checked + .section_title::after {
	transform: rotate(180deg);
}
.c_list > div:has(.section input:checked) .section_title::after {
  transform: rotate(180deg);
}
.c_list .section_title:hover::after { 
	color: var(--color-gray-text);
}
.c_list > div:has(.section input:checked) .section_title:hover::after {
	color: var(--color-gray-border);
}

.section {
	height: 0;
	overflow: hidden;
	transition: height .3s ease-in;
}
.nav_check:checked + label + .section,
.section:has(input:focus),
.section:has(input:checked)
{ 
	height: auto;
}

.form_field .clear {
  display: none;
}
.form_field:has(.field_text:not(:placeholder-shown)) .clear {
  display: block;
}

::highlight(search) {
	background: var(--color-blue-box);
	color: var(--color-blue);
}
.no-results {
  display: none;
  color: var(--color-red);
}
