
:root {
  interpolate-size: allow-keywords;
  
  --color-blue: #185abc;
  --color-dark-blue: #00229b;
  --color-light-blue: #afb6d5;
  --color-blue-box: #f4f9ff;		/* #ecf4fe; */
  --color-blue-button: #3b58be;
  --color-blue-navigate: #4ea8fb33;
  --color-red: #f11d19;
  --color-red-strike: #f11d1987;
  --color-gray-text: #5f6368;
  --color-dark-gray-text: #555;
  --color-gray-form: #8591a7;
  --color-gray-border: #dadce0;
  
  --border-radius: 8px;				/* окна, элементы форм */
  --border-radius-pane: 12px;		/* border-radius: .75rem; */
}

.noselect, .btns, .pane {
  -webkit-touch-callout: none; /* iOS Safari, mobiles */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */
}
.nowrap {
	white-space: nowrap;
}
	
/* :not(:root::focus-within) ::selection {
  background: #3b58be;
  color: #fff;
  opacity: 1;
}  */

:focus-visible {
	outline: 2px solid var(--color-blue);
	outline-offset: 2px;
	border-radius: 4px;			/* for focus outline */
}


* {
	box-sizing: border-box;
}
a, .content p a.hover {
	color: currentColor;
	text-decoration: none;
	border-bottom-color: transparent;
	text-underline-offset: clamp(2px, .22em, 10px);
}

body, html {
	/* font-size: 1em; */
	font-family: arial,helvetica,sans-serif;
	text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	height: 100vh;
	height: -webkit-fill-available;
	height: 100dvh;
	overflow: hidden;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
	margin:0; 
	/* font-size: 1rem; */
	overflow: hidden;
	overflow-y: scroll;
/*	scroll-snap-type: y mandatory; */
	scroll-snap-type: y proximity;
	scroll-behavior: smooth;

	container-type: inline-size;	/* нужно только для вычисления ширины скроллбара --sbw */

	--hh: 65px;
	--min-hh: 65px;
	
	scroll-padding-top: var(--hh);
}
body:focus-within {
	scroll-behavior: smooth;
}
@media (min-width: 1180px) {
	body {
		--hh: 100px;
	}
}	
@media (min-width: 600px) {
	body {
		/* scroll-snap-type: y proximity; */
	}
} 
section {
    scroll-snap-align: start;
    contain: content;
    content-visibility: auto;
    
	padding: 2vh 20px;
    background: #fff;
    position: relative;
    z-index: 1;

	display: flex;
    height: auto;
    /* min-height: calc(100% - var(--hh)); */
	min-height: calc(100dvh - var(--hh));
}
@media (orientation:landscape) {
 section {
	 padding-bottom: 5vh;
 } 
}
@media (max-width: 600px){
 section:last-of-type {
	/* padding-bottom: calc(var(--hh) - 10px); */
	padding-bottom: 4vh;
 }
}
section > div {
    min-height: 100%;
    width: 100%;
    max-width: 1240px;
	overflow-x: clip;
    margin: auto;
}
section, section > div {	
/*	transition: min-height 0.3s 0.2s ease-out; */
}	

section.carousel {
	height: calc(100% - var(--hh));
    /* text-align: center; */
}
section.carousel > div {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* padding: 2vh 0 3.4vh; */
}

span.r {
	color: var(--color-red);
}
span.g {
	color: #1e8e3e;
}
span.b {
	color: #2039ad;
}
.nobr {
	white-space: nowrap;
}

.go-top {
    position: fixed;
    bottom: max(7vh, 50px);
  	/* --sbw: calc(100vw - 100cqw); */
	right: calc(30px + 100vw - 100cqw);
    width: 50px;
    height: 50px;
	border: 2px solid transparent;
    border-radius: 100%;
	background: padding-box var(--color-blue-navigate) url("/pic/xicons.svg#arrow-u") 50%/30px no-repeat;		/* #00417d33 */
	z-index: 5;
	transition: all .3s ease-in;
}
@media (min-width: 1024px) {
 .go-top {
	right: calc(20px + 100vw - 100cqw);
 }	
}

.go-top:hover {
	/* background-color: #4ea8fb33; */
	background-image: url("/pic/xicons.svg#arrow-ub");
}
.go-top:active {
    background-color: var(--color-blue);
    background-image: url("/pic/xicons.svg#arrow-u");
}
.go-top svg {
	position: absolute;
	top: -2px;
	left: -2px;
	stroke: #4ea8fb99;
	stroke-width: 2px;
	stroke-dasharray: 150 150;	/* ??? calc(50 - 2 * stroke-width) * 3.14 - stroke-linecap) ;  stroke-width = 1  => 151 151*/
	stroke-dashoffset: 150;
	stroke-linecap: round;
	transform: rotate(-90deg);
	transform-origin: center;

}
.go-top:hover svg {
	stroke: var(--color-blue);	
}
	
@supports (animation-timeline: scroll()) {
	body {
		timeline-scope: --section2-tl;
		scroll-timeline-name: --body-scroller;
		
		animation: show-top-arrow steps(1, start) both;
		animation-timeline: scroll(self);
		animation-range-start: 33vh;
	}

    .go-top {
		opacity: 0;
		scale: 0;
		translate: 0 100px;
		transition: all .5s ease-in .5s, background-color .3s ease-in 0s, background-image .2s ease-in 0s;		/* для этого и нужен --show-top-arrow */
	}
	@keyframes show-top-arrow {
		to {
			--show-top-arrow: true;
		}
	}
	@container style(--show-top-arrow: true) {
		.go-top {
			opacity: 1;
			scale: 1;
			translate: 0;
		}
	}
	
	.go-top svg {
		animation: show-scroll-position linear both;
		animation-timeline: --body-scroller;
	}
	
	@keyframes show-scroll-position {
		to {
			stroke-dashoffset: 0;
		}
	}
}

.mail_wiget {
	margin: 20px 0;
	color: var(--color-blue);
	font: 500 .8rem/1.5 'Roboto',arial,sans-serif;
	text-align: center;
}	
@media (min-width: 700px) and (min-height: 700px) {	
 .mail_wiget {
	font-size: 1rem;
 }
}
.flash {
    font-weight: 300;
    width: fit-content;
    margin: auto;
}
.flash:before {	
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.5em;
    vertical-align: middle;
    background: var(--color-red);
    mask: url(/pic/xicons.svg#flash) left / 1.2em 100% no-repeat;
}	

.contact {
    position: relative;
    padding-left: 30px;
}
.contact:before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1em;
    background: currentColor;
    position: absolute;
    left: 0;
    top: 50%;
	translate: 0 -50%;
}
.contact.email:before {
    mask: url(/pic/xicons.svg#email) 0 / 22px 100% no-repeat;
    top: 1px;
	translate: 0;
}
.contact.wa {
	line-height: 1.5em;
}
.contact.wa:before {
    height: 1.5em;
    mask: url(/pic/xicons.svg#tel) 0 / 22px 100% no-repeat;
}

.underlined, a.hover:hover, .content p a, .content li a {
	border-bottom: 1px solid #999;
	/* text-decoration: underline solid #999; */
}
a[href*="//"]:after {
	--icon-width: 0.8em;
    content: "";
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM2NjYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTggMTN2NmEyIDIgMCAwIDEtMiAySDVhMiAyIDAgMCAxLTItMlY4YTIgMiAwIDAgMSAyLTJoNiI+PC9wYXRoPjxwb2x5bGluZSBwb2ludHM9IjE1IDMgMjEgMyAyMSA5Ij48L3BvbHlsaW5lPjxsaW5lIHgxPSIxMCIgeTE9IjE0IiB4Mj0iMjEiIHkyPSIzIj48L2xpbmU+PC9zdmc+);
    margin-left: 0.2em;
    padding-left: var(--icon-width);
    background-size: var(--icon-width) var(--icon-width);
    background-position: center center;
    background-repeat: no-repeat;
}
/* <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg> */

abbr {
	text-decoration: underline dotted;
	text-underline-offset: clamp(2px, .22em, 10px);
	text-decoration-thickness: 1px;
	text-transform: uppercase;
	cursor: default;
}
abbr span {
	display: none;
}
abbr:focus {
	text-transform: none;
}
abbr:focus span {
	display: inline;
}
/* abbr[title]:focus::after, abbr[title]:hover::after {
  content: '\a0(' attr(title) ')';
} */

.price {
    white-space: nowrap;
}
.price > span {
    display: inline-flex;
    flex-direction: column-reverse;
	text-align: center;
	vertical-align: baseline;
    padding: 0 .2ch;
    line-height: .9;
    font-size: 1.2em;
    word-spacing: -.25ch;
}
.price > span:has(s) {
    vertical-align: middle;
}
.price s {
    font-size: .66em;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--color-red-strike);
	user-select: none;
	word-spacing: -.25ch;
}
.price s + span {
    color: var(--color-red);
    font-weight: 400;
}
.price > small {
	font-size: .9em;
}
.price > b, .descr .price {
	font-weight: 400;
    word-spacing: -.25ch;
}
/* .price.play, .price.video {
	position: relative;
	padding-left: 1.25em;
}*/

.price.icon:before {
    content: '';
    display: inline-block;
    margin-bottom: -3px;
    width: 1.2em;
    height: 1.3em;
    background-color: var(--color-light-blue);
}
.price.play:before {
    mask: url("/pic/xicons.svg#play") 0 50%/1em no-repeat;
}
.price.video:before {
    mask: url("/pic/xicons.svg#video") 0 50%/1em no-repeat;
}


time, .number {
	word-spacing: -0.25ch;
	white-space: nowrap;
}
time:after {
	content: ' мск';
	font-size: .75em;
}
.rub {
	font-size: .8em !important;
}

.opus {
    display: block;
    width: fit-content;
    margin: 0 auto;
    font-size: 10px;
}
.opus:before {
	content: '\002604\20';
	font-size: 15px;
	font-family: arial,helvetica,sans-serif; 
}

