
.content {
	scroll-snap-align: none;
	/* min-height: calc(100dvh - var(--hh)); */
	
	padding: 2vh 20px 0;
	font: 300 1rem/1.6 var(--font-r);

	contain: style;
	content-visibility: initial;
	z-index: 2;
}

@property --show-contents-scrollbars {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
.content > div {
	display: flex;
	flex-wrap: wrap;
	/* align-content: flex-start; */
	gap: 1vh;
	margin: 0 auto;
	
	--show-contents-scrollbars: 0;
	transition: --show-contents-scrollbars .1s step-end;
}
#show_contents:checked + .content > div {
	--show-contents-scrollbars: 1;
	transition-delay: 1s;
}

.content_header {
	flex: 0 0 100%;
	width: 100%;
	margin-bottom: 4vh;
}
main {
	max-width: 100%;
}
.contents {
	height: 0;
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 3;
	margin: calc(var(--hh) + 2.5rem) 20px 20px;
	max-height: calc(100vh - var(--hh) - 2.5rem - 20px);
	overflow: clip;
	background: #fff;
	transition: height .3s ease-in .5s, box-shadow .5s ease-in, top .1s step-end 1s;
}
@container style(--show-contents-scrollbars: 1) {
	.contents {
		overflow-y: auto;
	}	
}

.contents_title {
	display: none;
}

.contents ul { 
	margin: 0;
	padding: 0;
	list-style: none;
	/* font-size: 1rem; */
}
.contents li { 
	padding: 0; 
}
.contents li a {
	text-decoration: none;
	border-radius: 0;
	border: 0;
	width: 100%;
	overflow-wrap: break-word;
	color: #333;
	font-weight: 400;
	display: inline-block;
	padding: 10px 20px;
}
.contents > label {
	display: none;
}

article {
	flex: 1 3 60%;
	max-width: 100%;
	/* height: stretch;
	padding-bottom: 8vh; */
}

aside, .ads {
	flex: 1 1 250px;
	max-width: 350px;
	font: 300 .9rem/1.5 "Roboto",arial,sans-serif;
	padding-top: 10px;
}

/* article .ad_pane > div > div {
	align-self: self-start;
} */

.bigpic {
	width: 100%;
	height: auto;
}	

aside .ad {
    padding: 35px 20px 20px;
    border: 1px solid rgb(175, 182, 213);
    border-radius: 12px;
	position: relative;
}
aside .ad b:first-letter {
    text-transform: uppercase;
}
aside .ad:before {
	content: 'Объявление';
	font-size: .66rem;
	position: absolute;
	top: 4px;
	left: 4px;
	padding: 2px 6px;
	background: #eff4fb;
	border-radius: 8px;
}

section.carousel {
	/* background-color: #f8f9fa; */
	padding: 2vh 20px 4vh;
}

.ads:before {
    content: "\261E";
    padding: 0 10px 0 0;
    font-size: x-large;
}

article ul, article ol {
	padding-left: 22px;
}
main ul, main ol {
	padding-left: 17px;
}


.content hr {
	height: 1px;
	border: 0;
    border-bottom: 1px solid rgb(175, 182, 213);
}
.content h1 {
    margin: 0;
    font-weight: 300;
    font-size: 1.9rem;
	line-height: 1;
	scale: 1 1.2;
	text-align: left;
}
.content.ml h1 {
	margin-bottom: 4rem;
}
section h2 {
    font: 300 2rem / 1 "Roboto", arial, san-serif;
	margin: 0 0 4vh;
	padding-top: 2vh;	/* нужно для якорных ссылок, чтобы был отступ заголовка от границы окна */
}
.content h3 {
	font-weight: 400;
	font-size: 1.5rem;
	margin: 0 0 3vh;
}
.content h4 {
    font: 400 1.15em / 1 "Roboto", arial, san-serif;
    margin: .75em 0;
}	
@media (min-width: 1024px) and (min-height: 600px) {
 section h2 {
    font-size: 2.75rem;
 }	
 .content h3 {
    font-size: 1.75rem;
 }	
}
section h2 img {
    vertical-align: bottom;
    height: 1.3em;
    width: 1.2em;
    margin-right: 20px;
	display: none;
}	
@media (min-width: 800px) and (min-height: 480px) {	
 section h2 img {
	display: inline-block;
 }
}

.subtitle {
	position: sticky;
	top: var(--hh);
	z-index: 2;
	container-type: scroll-state;
	container-name: sticky-heading;	
}
.subtitle h2 {
	font: 400 1.4rem/1.5 "Roboto", Helvetica, Arial, sans-serif;
	margin: 0;
	padding: 5px 0;
	overflow-x: clip;
	background: #fff;
	border-bottom: 1px solid #fff;
	box-shadow: 0px 8px 12px 5px #ffffffdd;
	transition: 0.3s border-bottom;
}
@container sticky-heading scroll-state(stuck: top) {
	.subtitle h2 {
		padding: 5px 50px 5px 0;
		border-bottom: 1px solid #ddd;
		/* font-size: 1.33rem; */
		white-space: nowrap;
		text-overflow: ellipsis;
	}	
}
.contents_switch {
	container-type: scroll-state;
	container-name: sticky-switch;	
	display: block;
	z-index: 3;
    position: sticky;
    top: calc(var(--hh) + 6px);
	left: 100%;
	margin-right: -6px;
    padding: 5px 5px 10px;
    text-align: center;
    float: right;
    width: 40px;
	line-height: 0;
    border-radius: 999px;
	cursor: pointer;
}
.contents_switch label {
	display: block;
	visibility: hidden;
	opacity: 0;
	transition: .5s opacity linear;
}
@container sticky-switch scroll-state(stuck: top) {
	.contents_switch label {
		visibility: visible;
		opacity: 1;
	}
}
.contents_switch img {
    opacity: .8;
    transition: transform .5s ease-in;
}

#show_contents:checked + .content .contents_switch img {
    transform: rotate(180deg);
}
#show_contents:checked + .content .contents {
	transition-delay: 0s, 0s, 1s;
	height: auto;
	box-shadow: 0 0 0.5px 0.5px rgba(24,39,75,.08), 0 6px 12px 0 rgba(24,39,75,.08);
}
#show_contents:checked ~ .go-top {
	visibility: hidden;
	opacity: 0;
	transition-delay: 0s;
}
#show_contents:checked + .content .contents > label {
	display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
}

.part:not(:last-child), .infopane {
	margin-bottom: 50px;
}	
/* .part > a {					// anchor 
	position: relative;
	top: calc(-1 * var(--hh));
} */

.infopane {
	display: flex;
	flex-wrap: wrap-reverse;
	justify-content: space-between;
	gap: 3vh 4vw;
	flex: 0 0 100%;
}
.infopane > div {
    flex: 1 2 60%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.infopane > picture {
 	flex: 2 1 calc(40% - 4vw);
	align-self: stretch;
	min-width: 150px;
	text-align: center;
}
.infopane > picture > img {
    height: auto;
    width: 100%;
	max-width: 250px;
	margin: 3vh auto;
}	
.infopane a {
	text-decoration: underline;
}
.infopane a:not(.btn):hover {
	color: var(--color-dark-blue);
}
.infopane .btns {
	padding-top: 30px;
}
.content .btn {
	font-weight: 400;
}
.priceholder {
    display: flex;
    flex-wrap: wrap;
	align-items: baseline;
    gap: 10px 15px;
}

.infos > div {
    display: flex;
	flex-wrap: wrap;
    justify-content: space-between;
	align-items: end;
    gap: 0 10px;
	width: 100%;
    margin-bottom: 10px;
    font-size: .975rem;
}
.infos > div > div:first-child {
	flex: 1 1 0;
}	
.infos > div > div:last-child {
	text-align: right;
}




/* .discount {
	display: inline-block;
	margin-top: 1em;
}
.discount > span {
    position: relative;
	color: #777;
}
.discount > span:after {
    content: '';
    position: absolute;
    inset: 0 .7em 0 1.1em;
    height: 100%;
    background: url("/pic/xicons.svg#cross-out-line") 0 50% no-repeat;
} */
	
.price button {
	padding: 0;
	border: 0;
	background: none;
    color: currentColor;
    font-weight: 400;
    font-size: 1em;
	word-spacing: -.25ch;
}

.info_popup {
	opacity: 0;
	transition: opacity 0.5s;
}
.info_popup:popover-open {
	opacity: 1;
	overflow-y: visible;
	overflow-x: clip;
	max-width: calc(100vw - 40px);
	text-wrap-mode: wrap;
	text-align: center;
	padding: .75rem 1rem;
	line-height: 1.25;
	color: #fff;
	background: var(--color-red);
	border: 0;
	border-radius: .75rem;
	/* box-shadow: 0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15); */
	box-shadow: 0 3px 5px 0 rgba(60,64,67,.3),0 5px 8px 3px rgba(60,64,67,.15);
}
@starting-style {
  .info_popup:popover-open {
	opacity: 0;
  }
}

@supports (anchor-name: --myanchor) {

	.price button {
		position: relative;
		cursor: pointer;
	}

	.price button:after {
		content: '?';
		position: absolute;
		left: 100%;
		top: -30%;
		height: 6px;
		width: 6px;
		line-height: 6px;
		font-weight: 600;
		font-size: 11px;
		border: 1px solid #f11d19aa; 	/* var(--color-red) */
		border-radius: 50%;
		text-align: center;
		padding: 3px 4px 3px 2px;
		transition: all 0.5s;
	}
	.info_popup:popover-open {
		--s: 1.2em;
		--d: 1em;
		margin: var(--hh) 20px var(--d);
		width: min-content;
		/* position: absolute; */
		position-area: top;
		position-visibility: anchors-visible;
		position-try: --bottom-pos;
		justify-self: anchor-center;
		anchor-name: --popup;
	}
	@position-try --bottom-pos {
		margin: calc(var(--hh) - var(--d)) 20px 0;
		top: calc(2.25em + var(--d) - var(--hh));
		position-area: bottom;
	}

	.info_popup:before {
		content: "";
		position: fixed;
		z-index: -1;
		width: var(--s);
		height: calc(anchor-size(height) + var(--d));
		top: calc(anchor(top) - var(--hh));
		left: calc(anchor(--anchor center) - var(--s)/2);
		/* transition: left 0.3s; */
		margin-top: inherit;
		background: inherit;
		clip-path: polygon(50% .2em,100% var(--d),100% calc(100% - var(--d)),50% calc(100% - .2em),0 calc(100% - var(--d)),0 var(--d));
		/* justify-self: inherit; */
		position-anchor: --popup;
	} 

	.info_popup b {
		font-size: 1.5rem;
	}
	.info_popup:popover-open + button {
		anchor-name: --anchor;
	}
	.info_popup:popover-open + button:after {
		opacity: 0;
		scale: 0;
	}

	@supports (animation-timeline: scroll()) {
		div.price{
			animation: hide-popup steps(1, start) both;
			animation-timeline: view();
			animation-range: exit calc(1.5rem - var(--hh));
		}
		@keyframes hide-popup {
			to {
				--hide-popup: true;
			}
		}
		@container style(--hide-popup: true) {
			.info_popup:popover-open {
				display: none;
				/* color: green; */
			}
		}
	}
	
} /* supports */

/* .content .btn {
    font-size: 1rem;
} */
/* .part p a {
	text-decoration: underline #666 solid 1px;
} */
.part p a:hover {
	color: var(--color-dark-blue);
}
.part p a.hover:hover {
	border-bottom: 1px solid var(--color-dark-blue);
}
.content p:has(+ul,+ol), hr:has(+.comment) {
	margin-bottom: .25em;
}
.content p+:is(ul,ol), hr+.comment {
	margin-top: .25em;
}
.important {
	margin-inline: 0;
	padding-left: 50px;
	position: relative;
}
.course .important {
	font-style: italic;
	font-weight: 400;
	letter-spacing: .1px;
	color: #333;
}	
.important.blue {
	padding: 20px 15px 20px 50px;
	background-color: var(--color-blue-box);
	border-radius: var(--border-radius);
	color: #000;
}
.important:before {
    content: '';
    position: absolute;
	top: -2px;
	left: 0px;
    width: 33px;
    height: 33px;
    mask: url("/pic/xicons.svg#pointer") 0 no-repeat;
    background-color: #333;
}
.important.blue:before {
	top: 16px;
	left: 7px;
}	
.course .important strong {
    white-space: nowrap;
    display: inline-block;
    border: 1px dashed var(--color-red);
    padding: 1px 5px 0;
    line-height: 1.5;
    border-radius: var(--border-radius);
}
/* .offer {
    padding-left: 50px;
    position: relative;
    font-style: italic;
    font-weight: 400;
    color: var(--color-red);
}
li .offer {
    margin: 0 0 1.25em -20px;
}
p:has(+.offer) {
	margin-bottom: .25em;
}	
.offer:before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 33px;
    height: 33px;
    mask: url("/pic/xicons.svg#discount") 0 no-repeat;
    background-color: var(--color-red);
} */
.descr {
    font-size: .9rem;
    font-weight: 400;
    color: var(--color-dark-blue);
    margin-top: -5px;
}	
.comment {
    font-size: .75em;
    line-height: 1.3;
    margin-left: 1em;
    text-indent: -1em;
}
.comment:before {
    content: '*';
    margin-right: .5em;
    text-indent: initial;
}

.content :is(p,ol,ul) + .btns {
	margin-top: 2rem;
}
/* .courses article:has(#prices) .afterall {
	display: none;
}*/
.afterall {
	margin-top: 20px;
	padding-top: 40px;
	border-top: 1px solid var(--color-gray-form);
}
.courses article .mail_wiget {
	margin-top: 20px;
}


.tariffs {
    display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	margin: 2em 0;
}
.tariffs > div {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: start;
    flex: 10 1 200px;
    /* max-width: 350px; */
    padding: 24px 16px 16px;
    border: 1px solid var(--color-light-blue);
    border-radius: var(--border-radius-pane);
}
.tariffs > div:hover {
	border-color: var(--color-blue);
	outline: 1px solid var(--color-blue);
	/* background: #ecf4fe; */
}
.tariffs > div::after {
    position: absolute;
	z-index: 1;
    right: 15px;
    top: -1.1em;
    width: fit-content;
    height: 1.66em;
    line-height: 1.7em;
    padding: 3px 8px 2px 33px;
    border: 1px solid var(--color-light-blue);
    border-radius: 999px;
    font-size: .9rem;
    text-transform: uppercase;
}
.tariffs > div.recommend::after {
    content: attr(data-content);
    background: #fff url("/pic/xicons.svg#thumbs-up") 7px -2px / 1.45em no-repeat;
}
.t_name {
	font: 400 1.375rem Roboto, arial, sans-serif;
	margin-bottom: 1em;
	container-type: inline-size;
	overflow-x: clip;
}
.t_remark {
    font-size: .9rem;
    color: var(--color-gray-text);
    margin-top: .5em;
	line-height: 1.25;
    text-align: center;
}
.t_details {
	font-size: 1rem;
	line-height: 1.33;
	padding-left: 25px;
	margin: .5em 0;
}	
.t_details li {
	margin: 10px 0;
	list-style: none;
}
.t_details li:before {
	content: '';
	display: inline-block;
	width: 25px;
	height: 1em;
	margin-left: -25px;
	background: url(/pic/xicons.svg#check) 0/1em no-repeat;
}
.content .tariffs .btns {
	margin-top: auto;					/*прижимаем последнюю строку к низу*/
}
.tariffs .btn:not(:hover) {	
	background-color: #fff;
	color: var(--color-blue-button);
}
.t_name.icon {
	padding-left: 30px;
    background: top left / 1em 1.2em no-repeat;
}
.t_name.video {
    background-image: url("/pic/xicons.svg#video");
}
.t_name.play {
    background-image: url("/pic/xicons.svg#play");
}
.t_name.star {
    background-image: url("/pic/xicons.svg#star");
}
.t_name span {
    float: right;
    font-size: 1rem;
    background: var(--color-red);
    color: #fff;
    padding: 4px 8px;
    border-radius: 999px;
	user-select: none;
}
.t_name span:before {
	content: '–';
}	
.tariffs > .scroller {
    --height: 390px;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0!important;
    min-width: 200px;

    flex-grow: 11;
}

.tariffs > .scroller:after {
    content: attr(data-content);
	padding-left: 35px;
    background: #fff url("/pic/xicons.svg#discount") 8px 0 / 1.4em no-repeat;
	font-weight: 400;
} 
.tariffs .slider {
	padding: 0;
	scroll-padding-inline: 0;
}
.tariffs .slide {
	width: 100%;
}
@container slideContainer (width > 540px) {
 .tariffs .slide {
	width: calc(round(down, 50%, 1px) - 10px);
 }	
}
.tariffs .pane {	
	outline: 0!important;
}

@media (min-width: 320px) {
 .tariffs > div {
	min-width: 280px;
 }	
 .t_name span:before {
	content: 'Скидка ';
 }
}	
@container (width < 200px) {
 .t_name span:before {
	content: '–';
 }
}

.t_price {
    text-align: center;
    font-size: 1.5rem;
}

.tariffs > div:hover .btn {
	border-color: var(--color-blue);
}
.tariffs > div.recommend:hover:after {
	border-color: var(--color-blue);
}
.tariffs .pane > div {
    height: 100%;
    display: flex;
    flex-direction: column;
	overflow: hidden;
}
.tariffs h4 {
	margin: 0;
}	
.tariffs .pic_holder {
	flex: 1 1 33%;
	min-height: 0;
	padding: 10px;
}
.tariffs .pic {
	height: 100%;
}	
.tariffs .pic > img {
    margin: 0 auto;
    display: block;
	height: 100%;
}
.tariffs .flag {
	inset: 0 auto auto 20px;
}	

.timetable {
    display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 2rem;
}
.tt_card {
    display: flex;
    flex-flow: column wrap;
	justify-content: space-between;
	position: relative;
	max-width: 200px;
	padding: 2.5rem 0 0;
    font-size: .9rem;
	line-height: normal;
	text-align: center;
	border-radius: var(--border-radius-pane);
	--tt-border-color: #444;
	transition: scale .33s, --tt-border-color .33s;
}
/* .tt_card:focus {
    scale: 1.2;
    --tt-border-color: var(--color-blue-button);
} */
.tt_card:only-child {
	flex: none;
}	
.tt_card, .tt_card:before, .tt_card:after {
	background: #fff;
	border: 1px solid var(--tt-border-color);
}
.tt_card:before, .tt_card:after {
	content: "";
	position: absolute;
	top: -2px;
	height: 12.5px;
	translate: 0 .5px;
	width: 20px;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	border-top: 0;
}
.tt_card:before {	
	left: 18%;
}
.tt_card:after {
	right: 18%;
}
.tt_card > span {
	padding: .5em 10px;
}
.timetable .tt_card > span:nth-last-child(2) {
	padding-bottom: 1rem;
}
.tt_start {
	scale: 1 1.5;
	letter-spacing: .1px;
	font-weight: 500;
}

.timetable .tt_card .tt_action {
    background: var(--tt-border-color);
    color: #efefef;
    font-weight: 500;
    text-align: center;
    padding-top: .75em;
    padding-bottom: .75em;
	margin-bottom: -1px;
    border-bottom-left-radius: var(--border-radius-pane);
    border-bottom-right-radius: var(--border-radius-pane);
}
.tt_notice {
	color: var(--color-red);
}

.pane .timetable {
	align-items: flex-start;
	margin: .5rem 5px;
	gap: 1.5rem 1rem;
}
.pane .tt_card {
	max-width: 100px;
	padding: 1.5rem 0 0;
	font-size: .8rem;
}	
.pane .tt_card > span {
    padding: .5em 8px;
}
.sheet.lessons .pane {
	width: auto;
	max-width: 100%;
}

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

@media (min-width: 1024px) {	

 .content, .content .btn {
	font-size: 1.2rem;
 }
 .course .content > div {
	gap: 4vh 2.5vw;
 }
 .content.ml > div {
	gap: 0 2.5vw;
 }	
 .contents {
	position: static;
    flex: 0 2 17%;
	height: auto;
	max-height: 100%;
	margin: 0;
	overflow-y: unset;
	top: -200%;						/* для предотвращения появления сжимающейся панели при изменении размеров окна */
	box-shadow: none !important;	/* для удаления тени при оставшемся включённом чекбоксе при изменении размеров окна */
 }
 .contents > div {
	position: sticky;
	top: calc(var(--hh) + 10px);
	max-height: calc(100vh - var(--hh) - 20px);
	display: flex;
	flex-flow: column nowrap;
 }
 .contents ul {
	overflow-x: clip;
	overflow-y: hidden;
 }
 .contents li a {
	padding: 10px 10px 10px 20px;
 }
 .contents li a:hover {
	text-decoration: underline;
	color: var(--color-dark-blue);
 } 
 .contents:hover ul {
	overflow-y: auto;
 }
 .contents li { 
	background: linear-gradient(90deg, #d1d9f1, #d1d9f1 4px, #fff 4px, #fff) no-repeat 100%;
 }
 .contents li a {
	font-weight: 300;
 }
 .contents_switch {
	display: none;
 }
 .contents_title {
	display: block;
	padding: 0 10px 20px 0;
	margin-top: -4px;
	font-size: 1.1rem;
	font-weight: 400;
	color: #9aa4c5;
 }	
 .contents_title:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 13px;
    mask: url("/pic/xicons.svg#list") 0 /16px no-repeat;
    background-color: #b5c3ed;
 } 
 .content h1 {
	font-size: 3.5rem;
	font-weight: 300;
	/* margin-top: -.5rem; */
 }
 
 main {
    flex: 1 3 50%;
    /* max-width: calc(80% - 3vw); */
    /* font-weight: 400; */
    display: flex;
    flex-wrap: wrap;
    gap: 0 2.5vw;
 }
 main ul, main ol {
    padding-left: 2ch;
 }
 main ul ul {
	list-style-type: disc;
 }
 main li > ol, main li > ul {
	margin-top: 0;				/* .5em; */
	margin-bottom: .5em;
}	
 .subtitle {
	position: static;
 }
 .subtitle h2 {
	font-size: 1.75rem;
 }	
 .infopane > picture > img {
	max-width: 400px;
 }
 .descr {
    line-height: 1.4;
 }
 .important {
	padding-left: 55px;
 }	
 .important:before {
	width: 45px;
 }
.important.blue:before {
	top: 18px;
	left: 3px;
 }
 li .offer {
    margin: 0 0 1.25em -36px;
 }
 .courses article {
	flex: 0 1 60ch;
 }
 .courses aside {
	flex: 1 1 250px;
	/* border: 1px dotted red; */
 }
 .tt_card:hover {
	scale: 1.2;
	--tt-border-color: var(--color-blue-button);
 }
 .tt_card:active {
	transition: none;
 } 
 .priceholder {
    flex-wrap: nowrap;
 }	
}

@media (min-width: 700px) {
  .infopane > picture > img {
	margin: 0 auto;
 } 
 .sheet.lessons .pane {
    width: min-content;
    min-height: 500px;
    min-width: 300px;
 }
 .pane .timetable {
	flex-wrap: nowrap;
 }
}

@media (min-width: 360px) {
 .infos {
    display: table;
    width: 100%;
    cursor: default;
    border-spacing: 0 12px;
    margin-top: -12px;
    line-height: 1.33;
 }
 .infos > div {
	display: table-row;
    font-size: 1rem;
 }
 .infos > div > div {
	display: table-cell;
 }
 .infos > div > div:first-child {
	padding-right: 2vw;
 }
 .infos > div > div:last-child {
	font-weight: 400;
	text-align: left;
 }
 .infopane > picture > img {
	max-width: 330px;
 } 
}

a.pdf:before {
    content: '';
    display: inline-block;
    height: 1.5em;
    width: 1.5em;
    background: #fff url(/pic/xicons.svg#pdf) 0 / 1em no-repeat;
    vertical-align: middle;
}	

.top_part {
    height: 450px;
    margin-bottom: 4vh;
}
.top_part + .btns {
    margin-bottom: 4vh;
}
.blog_part {
    height: 500px;
    margin-bottom: 4vh;
}

body.blog h3 {
    margin: .5em 0;
    font-size: 2rem;
}	
body.blog h2 {
    margin: .75em 0;
}
.content_type {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
}
.content_date {
    font-size: .9em;
    margin-bottom: 20px;
}	
.topshift {
	margin: -20px 0 20px;
}


/* ******************************************************************************************************************************** */
/*  Плавное выделение в меню активного раздела с учётом направления прокрутки - только CSS       									*/
/* -------------------------------------------------------------------------------------------------------------------------------- */

@supports (animation-timeline: scroll()) {

	@property --scroll-velocity {
	  syntax: "<number>";
	  inherits: true;
	  initial-value: 0;
	}
	@property --scroll-position {
	  syntax: "<number>";
	  inherits: true;
	  initial-value: 0;
	}
	@property --scroll-position-delayed {
	  syntax: "<number>";
	  inherits: true;
	  initial-value: 0;
	}
	@property --scroll-speed {
	  syntax: "<number>";
	  inherits: true;
	  initial-value: 0;
	}
	@property --scroll-direction {
		syntax: "<number>";
		inherits: true;
		initial-value: 0;
	}
	@property --scroll-max-speed {
	  syntax: "<number>";
	  inherits: true;
	  initial-value: 10;
	}

	body {
		  animation: show-top-arrow steps(1, start) both, /* одна анимация уже есть - см. common.css */
					 adjust-pos linear both;
		  animation-timeline: scroll(self), scroll(self);
		  animation-range-start: 33vh, normal;
	}
	@keyframes adjust-pos {
	  to {
		--scroll-position: 1;
		--scroll-position-delayed: 1;
	  }
	}
	.content {
		transition: --scroll-position-delayed 0.15s linear;

		--scroll-velocity: calc( var(--scroll-position) - var(--scroll-position-delayed) );
		--scroll-speed: max(var(--scroll-velocity), -1 * var(--scroll-velocity));
		--scroll-direction: calc(var(--scroll-velocity) / var(--scroll-speed));
		--scroll-max-speed: max(10, calc(var(--scroll-speed) * 100));
		
		timeline-scope: --tl-sec-1, --tl-sec-2, --tl-sec-3, --tl-sec-4, --tl-sec-5, --tl-sec-6, --tl-sec-7, --tl-sec-8, --tl-sec-9, --tl-sec-10;
	}


	.part {
		view-timeline-inset: 25% 30%;
	}
	.part:nth-of-type(1){ view-timeline-name: --tl-sec-1; view-timeline-inset: 25% 50%; }
	.part:nth-of-type(2){ view-timeline-name: --tl-sec-2; }
	.part:nth-of-type(3){ view-timeline-name: --tl-sec-3; }
	.part:nth-of-type(4){ view-timeline-name: --tl-sec-4; }
	.part:nth-of-type(5){ view-timeline-name: --tl-sec-5; }
	.part:nth-of-type(6){ view-timeline-name: --tl-sec-6; }
	.part:nth-of-type(7){ view-timeline-name: --tl-sec-7; }
	.part:nth-of-type(8){ view-timeline-name: --tl-sec-8; }
	.part:nth-of-type(9){ view-timeline-name: --tl-sec-9; }
	.part:nth-of-type(10){ view-timeline-name: --tl-sec-10; }

	.contents li {
		animation: show-pos steps(1, start);
	}
	.contents li:nth-of-type(1) { animation-timeline: --tl-sec-1; }
	.contents li:nth-of-type(2) { animation-timeline: --tl-sec-2; }
	.contents li:nth-of-type(3) { animation-timeline: --tl-sec-3; }
	.contents li:nth-of-type(4) { animation-timeline: --tl-sec-4; }
	.contents li:nth-of-type(5) { animation-timeline: --tl-sec-5; }
	.contents li:nth-of-type(6) { animation-timeline: --tl-sec-6; }
	.contents li:nth-of-type(7) { animation-timeline: --tl-sec-7; }
	.contents li:nth-of-type(8) { animation-timeline: --tl-sec-8; }
	.contents li:nth-of-type(9) { animation-timeline: --tl-sec-9; }
	.contents li:nth-of-type(10) { animation-timeline: --tl-sec-10; }

	.contents li a {
		background: linear-gradient(90deg, var(--color-blue), var(--color-blue) 4px, var(--color-blue-box) 4px, var(--color-blue-box)) no-repeat;
		background-size: 100% 0%;
		background-position: 0% 100%;
		transition: background-size .3s linear;	
	}

	@keyframes show-pos {
	  to {
		--show_pos: 1;
	  }
	}
	@container style(--scroll-direction: 0) 
	{
		.contents li a {
			transition: none;
		}
	}
	@container style(--scroll-direction: -1) 
	{
		.contents li a {
			background-position: 0% 0%;
		}
	}
	@container style(--show_pos: 1)
	{
		.contents li a {
			background-size: 100% 100%;
			background-position: 0% 0%;
			color: #000;
		}
	}	
	@container style(--show_pos: 1) and style(--scroll-direction: -1) 
	{
		.contents li a {
			background-size: 100% 100%;
			background-position: 0% 100%;
			color: #000;
		}
	} 
	@container not style(--scroll-max-speed: 10) 	/* чтобы не было мелькания при быстрой прокрутке */
	{
		.contents li a {
			transition: none;
		}
	}
	/* для отладки: 	
				.content::after {	
				  content: counter(cnt);
				  counter-reset: cnt calc(var(--scroll-velocity) * 100);
				  font-size: 40px;
				  position: fixed;
				  inset: 0;
				  width: fit-content;
				  height: fit-content;
				  padding: 20px;
				  margin: auto;
				  background:#fee;
				  z-index: 999;
				}  */

}/* @supports animation-timeline */

