/* HTML */
/* -------------------------------------------------------------------- */
html { height: 100%; font-size: var(--root-font-size); }
body {  width: 100%; min-height: 100%; vertical-align: top;	background: var(--background-color); color: var(--text-color);
	font-size: 2rem; font-family: var(--font); font-weight: normal; line-height: 1.4; }

body > .container { overflow: hidden; opacity:  0; }

.swiper-wrapper { height: auto; }

@media screen and (max-width: 768px) {
	body { font-size: 1.8rem; }
}

@media screen and (min-width: 2000px) {
	html { font-size: 13px; }
}
@media screen and (min-width: 3000px) {
	html { font-size: 20px; }
}

/* Main elements */
/* ============================================================== */
img { display: inline-block; max-width: 100%; height: auto; }
p:not(:last-child) { margin-bottom: 1em; }
b { font-weight: bold; }
a { text-decoration: none; color: inherit; }
a:hover { text-decoration: underline;  }
strong { font-weight: bold;}
i { width: auto; height: auto; }
em { font-weight: bold; font-style: normal; }
hr { display: block; margin: 4rem 0; background: 0; border-top: 2px solid #eee; }

/* ============================================================== */
h1, h2, h3, h4 { margin-bottom: 0.5em; line-height: 1.2; color: var(--heading-color); font-weight: 500; }

h1 { font-size: 5.6rem; margin-bottom: 0.6em; }
h2 { font-size: 4.6rem; margin-bottom: 1em;  border-left: 5px solid var(--color-green);  }
h3 { font-size: 3rem; }

.banner img { width: 100%; height: auto; }

/* Lists */
/* ============================================================== */
ul, ol { list-style-type: none; }
ol > li::marker  {  display: inline; }
ol > li::before,
ul > li::before { display: inline-block; }
ol > li > p { display: inline; }
ul > li > p { display: inline; }

.hidden { display: none !important; }
.clearfix { clear: both; }

/* ============================================================== */
img.-full { width: 100%; height: auto; float: none; max-width: none; margin-left: 0; margin-right: 0; }
img.-full:not(:first-child) { margin-top: 2rem; }
img.-full:not(:last-child) { margin-bottom: 2rem; }

img.-left { float: left; margin-right: var(--span); margin-bottom: var(--span); max-width: 50rem; height: auto; position: relative; }
img.-right { float: right; margin-left: var(--span); margin-bottom: var(--span); max-width: 50rem; height: auto; position: relative; }

img.-small { max-width: 38rem; }

@media screen and (max-width: 768px) {
	img.-left, img.-right { float: none; max-width: none; margin:0; margin-bottom: 2rem; width: 100%; }
}

/* ============================================================== */
table { width: 100%; margin-bottom: 4rem; background: white;   text-align: center; overflow: hidden; font-size: 1.6rem; }
table caption { background: var(--color-gray); padding: 2rem; font-size: 2rem; font-weight: bold; color: #333; text-align: center; text-transform: uppercase;  }
table td,
table th { border: 1px solid #d0d0d0; padding: 1rem 2rem; text-align: left;  vertical-align: middle; }
table th { background: #f5f5f5 ;  font-size: 1.8rem; font-weight: bold; border-bottom: 4px solid var(--color-red); }
table td { }                            
table td.value, table th.value { text-align: center; }
table td.first { font-weight: bold; }
table tr.secondary > td:first-child { padding-left: 3rem; }
table h2 { font-size: 1.8rem; }

@media screen and (max-width: 960px) {
	table { overflow: auto; max-width: 100%; }
	table td, table th { padding: 0.5rem 1rem; }
}


/* Всплывающие окна */
/* ============================================================== */
.mfp-content { --text-color: black; --heading-color: var(--color-red); color: black; padding: 4rem; overflow:hidden; background: white; display: inline-block; width: auto !important; max-width: 50rem; z-index: 52; width: 100% !important; border-radius: var(--border-radius); }
.mfp-content.-policy { max-width: 80%}
.mfp-bg { z-index: 150;}
.mfp-wrap { z-index: 151; }
.mfp-content form { width: 100%; margin:0 auto; max-width: 50rem;}
.mfp-content a { color: var(--color-blue); }
.mfp-content .form-buttons { display: flex; align-items: center; justify-content: center; margin-bottom: 0; }
.mfp-content input,
.mfp-content textarea { width: 100%; }
.mfp-content h2 { display: block; border-left: 5px solid var(--color-green);
	text-align: center; font-size: 2.5rem; text-transform: uppercase; color: black; }
.mfp-close { border-radius: 50%; width: 3.5rem; height: 3.5rem; right: 1rem; top: 1rem; line-height: 0; }
.mfp-close:hover, .mfp-close:focus { color: white; }


/* Контейнеры для различных элементов и карточек */
/* ============================================================== */
.grid-container { display: grid; grid-template-rows: auto; grid-template-columns: repeat(auto-fill, minmax(var(--item-width), 1fr)); gap: var(--container-gap); justify-content: center;  }

[data-container~="count-6"] { --item-width: 17rem; }
[data-container~="count-5"] { --item-width: 20rem; }
[data-container~="count-4"] { --item-width: 26rem; }
[data-container~="count-3"] { --item-width: 35rem; }
[data-container~="count-2"] { --item-width: 50rem; }

@media screen and (max-width: 960px) {
	.grid-container { display: flex; flex-wrap: wrap; flex-wrap: wrap; justify-content: left; }
	.grid-container > * { flex-basis: var(--item-width);  }
}

@media screen and (max-width: 768px) {
}

@media screen and (max-width: 640px) {
	.grid-container {  --item-width: 100% !important; }
}

.flex-container { display: flex; gap: var(--container-gap); flex-wrap: wrap; align-items: center; justify-content: center; }
.flex-container > * { flex-grow: 1; flex-basis: var(--item-width);  }

@media screen and (max-width: 960px) {
	.flex-container > * { max-width: none; }
	.grid-container > * { flex-grow: 1; }
}

.split-container { display: flex; gap: 3rem; flex-wrap: wrap; }
.split-container > * { flex-grow: 1;  flex-basis: 45rem; }
.split-container[data-split-container~="center"] { align-items: center; }
.split-container > .image.-large { flex-grow: 2; flex-basis: 45; }

.articles-container { display: flex; gap: 4rem; flex-wrap: wrap; }
.articles-container > * { flex-basis: 100% !important; }

.buttons-container { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; align-items: center; }
.teasers-container  {  display: grid; grid-template-columns: repeat(auto-fit, minmax(40rem,1fr)); position: relative;  gap: 2rem;  justify-content: center;  padding: 0.5rem 0; margin: 2rem 0;}

/* ============================================================== */
.side-image-container { display: flex; gap: 6rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.side-image-container > * { flex-basis: 40rem; flex-grow: 1; }
.side-image-container > .content { flex-grow: 2; }
.side-image-container > .image { lign-self: stretch; position: relative; display: flex; align-items: center; justify-content: center; }
.side-image-container > .image img { max-height: 35rem; width: 100%; height: 100%; object-fit: cover; }


/* ============================================================== */
.side-container { display: flex; align-items: center; flex-wrap: wrap; gap: 4rem;}
.side-container > .content { flex-basis: 30rem; flex-grow: 2; }
.side-container > .side { flex-basis: 20%; flex-grow: 1; min-width: 20rem; align-self: center;}

/* ============================================================== */
.button-up { --color: var(--color-dark-gray); transition: opacity .3s ease; opacity: 0.8; background-color: var(--color-light-gray); height: 5.5rem; width: 5.5rem; bottom: 3rem; right: 3rem; cursor: pointer; display: none; position: fixed; z-index: 999; align-items: flex-end;justify-content: center; border-radius: 50%;  user-select: none; box-shadow: 0 0 5px 0 #0003; }	
.button-up:before { content: "";position: absolute;top: 40%;width: 40%;height: 40%;border-left: 3px solid var(--color);border-top: 3px solid var(--color);transform: rotate(45deg); left: 27%;}
.button-up:hover {opacity: 1;}


/* ============================================================== */
.page-block { padding: var(--block-padding); position: relative; color: var(--text-color); background: var(--background-color); --text-color: inherit; --background-color: transparent;}
.page-block > .block-container { max-width: var(--page-width); margin: 0 auto; position: relative; }

.page-block[data-page-block~="narrow"] { padding-top: var(--span); padding-bottom: var(--span); }
.page-block[data-page-block~="narrower"] { padding-top: calc(var(--span) * 2); padding-bottom: calc(var(--span) * 2); }
.page-block[data-page-block~="no-padding"] { padding-top: 0; padding-bottom: 0; }
.page-block[data-page-block~="multiple"] { }

.page-block[data-page-block~="dark"] { --background-color: #444; --text-color: white; --heading-color: white; --link-color: var(--color-yellow); }
.page-block > .bg { position: absolute; right: 100%; bottom: 100%; height: 30rem; width: 30rem; z-index: 1; }

@media screen and (max-width: 960px) {
	.page-block { padding-left: 2rem; padding-right: 2rem; }
}


/* ============================================================== */
.page-section { margin: 4rem 0; }
.page-section:first-child { margin-top: 0; }
.page-section:last-child { margin-bottom: 0; }

/* ============================================================== */
.block-heading { margin: 0 auto; font-size: 5.6rem; margin-bottom: var(--span-large); line-height: 1.2; 
	text-align: center; border: none; padding: 0; max-width: 80rem;}

@media screen and (max-width: 768px) {
	.block-heading { font-size: 4rem; }
}

/* Всплывающие сообщения */
/* ============================================================== */
.message-queue { position: fixed; top: 50%; padding: 3rem; left: 50%; right: 0; background: rgba(0, 0, 0, 0.7); transform: translate(-50%, -50%); max-width: 800px; border-radius: 1rem;  z-index: 400; }
.message-queue .message { margin: 0 auto; max-width: 700px; display: block; background: white; padding: 1rem; margin-bottom: 0.5rem; border-radius: 3px; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);  }
.message-queue .message: last-child { margin-bottom: 0;  }
.message-queue .message.error { border-left: 5px solid #a6051b;  }
.message-queue .message strong { font-weight: bold; }
.message-queue .message .large { font-size: 2.5rem;}
.message-queue .message .large strong { color: #a6051b; }
.message-queue .message.critical { border-left: 5px solid transparent; color: white; background: #a6051b;  }
.message-queue .message.warning { border-left: 5px solid #ffd376;  }

@media screen and (max-width: 640px) {
	 .message-queue { padding: 1rem; bottom: 0; width: 100%; border-radius: 0; top: auto; transform: none; left:0; right:0; }
	 .message-queue .message { padding: 0.5rem; }
}

/* Блоки сносок в тексте */
/* ============================================================== */
.message-box { --text-color: var(--color-black); color: var(--text-color); --image: url("../img/icons/mb-info.png"); clear: both; position: relative; display: flex; justify-content: flex-start; align-items: flex-start; padding: 4rem; padding-left: 12rem;  text-align: left; margin: 3rem 0; flex-flow: column; min-height: 10rem; border-radius: var(--border-radius); min-height: 100px; border: 2px solid #e0e0e0; background: linear-gradient(45deg, #00000020, white 5rem); }
.message-box::after { content:''; display: block; width: 4px; position: absolute; top:-2px; left:-2px; bottom:-2px; background: var(--color-blue); }
.message-box h2 { text-align: left; font-size: 2.4rem; margin-bottom: 1rem; margin-top: 0; }
.message-box a { color: var(--text-color); text-decoration: underline; }
.message-box > * { margin-bottom: 0.5rem;}
.message-box > *:last-child { margin-bottom: 0; }
.message-box::before { content: ''; display: block; position: absolute; top: 50%; bottom: 0; left: 2rem; width: 8rem; height:8rem; transform: translateY(-50%); background: var(--color-blue);mask: var(--image) center / contain no-repeat; -webkit-mask: var(--image) center / contain no-repeat; }
.message-box.-home { --image:url(../img/icons/mb-home.png); }
.message-box.-alert { --image:url(../img/icons/mb-alert.png); }
.message-box.-alert::before { background: var(--color-red); }
.message-box.-alert::after { background: var(--color-red); }
.message-box.-center { text-align: center; align-items: center; }
.message-box.-center::before { display:none;  }
.message-box.-with-image { padding-left: 25rem; }
.message-box.-with-image .image { position: absolute; left:0; top:0; height: 100%; width: 20rem; mask: linear-gradient(to left, transparent, white 2rem); }
.message-box.-with-image .image img { position: absolute; left:0; top:0; width: 100%; height: 100%; object-fit: cover; }
@media screen and (max-width: 768px) {
	.message-box.-with-image .image { display: none; }
	.message-box.-with-image::before { display: none; }
}

@media screen and (max-width: 768px) {
	.message-box { padding: 2rem !important; }
	.message-box::before { display: none; }
}

/* Страничная навигация */
/* ============================================================== */
.pagination { display: flex; margin: 4rem 0; text-align: left; align-items: center; justify-content: left; flex-wrap: wrap; font-size: 1.6rem; margin-left: -1rem; }
.pagination .title { margin-right: 2rem; }
.pagination ul { margin-bottom: 0 !important; margin-left: 0; display: flex; flex-wrap: wrap; gap: 1rem}
.pagination li a, .pagination li span { display: flex; align-items: center; justify-content: center; min-width: 3rem; }
.pagination li.active a, .pagination li.active span { background: var(--color-red);  color: #ffffff; }
.pagination li { display: inline-flex; list-style-type: none; margin-bottom: 0; margin-left: 0; align-items: center; }
.pagination li:not(.control) a,
.pagination li:not(.control) span { min-width: 3rem; flex-shrink: 0; height: 3rem; align-items: center; justify-content: center; text-decoration: none; padding: 1rem;}
.pagination li:hover a { background: #f0f0f0; }

/* Табы */
/* ============================================================== */
.tabs {  position: relative; }
.tabs .tabs-navigation {  display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tabs .tabs-navigation a { padding: 1rem 2rem; text-decoration: none; display: inline-block; transition: .3s; font-size: 1.8rem;  
	display: inline-flex; 
	background: #f4f4f4; cursor: pointer; border: 2px solid transparent; font-weight: 500; gap: 1rem; }
.tabs .tabs-navigation a:hover { background: #f0f0f0;  }
.tabs .tabs-navigation a i { background: black; }
.tabs .tabs-navigation a.-active {  background: var(--color-red); color: white; }
.tabs .tabs-navigation a.-active i { background: white; }
.tabs .tabs-content { background: white; }
.tabs .tab { display: none; }
.tabs .tab.-active { display: block; }

@media screen and (max-width: 768px) {
	.tabs .tabs-navigation a  { padding: 0.5rem 1rem; font-size: 1.6rem; }
}

/* Иконки соцсетей */
/* ============================================================== */
.social-icons { white-space: nowrap; display: flex; align-items: center; gap: 1rem; justify-content: center; }
.social-icons a {
	--color: var(--color-blue);
	width: 4rem; height: 4rem; border-radius: 50%; background: var(--color);
	display: inline-flex; justify-content: center; align-items: center; flex-shrink:0;
	transition: .3s; top: 0; gap: 0.5rem;
	position: relative;  cursor: pointer; }
.social-icons a i { width: 60%; height: 50%; background: white; }
.social-icons a.telegram { --color: #3f95d6; }
.social-icons a.whatsapp { --color: #58bb16; }
.social-icons a:hover { background: white; }
.social-icons a:hover i { background: black !important; }


/* Оформление элементов в статьях */
/* ============================================================== */             
.article ul { list-style-type: square; margin-bottom: 1em;  }
.article ul > li { margin-bottom: 0em; }
.article ul > li::marker { color: var(--color-red); }
.article > table { margin: 4rem 0; }
.article ol { list-style-type: decimal; margin-bottom: 1em; }
.article li { margin-bottom: 0.5em; }
.article h2 { font-size: 2.8rem; margin-bottom: 1em; background: none;
	border-left: 5px solid var(--color-yellow); padding-left: 1.5rem;}
.article a:hover { text-decoration: none; }
.article img { display: block; }
.article > h2:not(:first-child) { margin-top: 2em; }
.article a { color: var(--color-red); }

/* Хлебные крошки */
/* ============================================================== */
.breadcrumbs { margin-bottom: 2rem; font-size: 1.7rem; flex-wrap: wrap; line-height: 1.2; }
.breadcrumbs ul::before { content: '';  margin-right: 1rem; display: inline-block; width: 2rem; height: 2rem; --icon: url(../img/icons/home.png); mask: var(--icon) center/contain no-repeat; -webkit-mask: var(--icon) center/contain no-repeat; background: var(--color-red); }
.breadcrumbs ul { display: flex;  color: #333; gap: 1rem; flex-wrap: wrap; align-items: center;  }
.breadcrumbs ul li { display: inline-flex; margin-right: 0.5rem; align-items: center; }
.breadcrumbs ul li:not(:last-child)::after { content: '/'; display: inline-block; margin-left: 2rem; height: 2rem; }
.breadcrumbs a { text-decoration: underline; color: #888; }
.breadcrumbs span { font-weight: 500; color: #444; }
.breadcrumbs a > span { font-weight: normal; color: #888; }
.breadcrumbs a:hover > span { color: var(--color-red); }
.breadcrumbs a:hover { text-decoration: underline; }

@media screen and (max-width: 768px) {
	.breadcrumbs { font-size: 1.4rem; }
}

/* Всплывашки */
/* ============================================================== */
.tippy-content { font-size: 1.5rem; padding: 2rem; }
.tippy-box { background: #ffffffe0; color: black; border-radius: 1rem; }
.tippy-arrow  { color: #ffffffe0;}

/* Карточка статьи */
/* ============================================================== */
.article-card { overflow: hidden;  align-items: center; gap: 4rem; flex-wrap: wrap;  position: relative; border: 2px solid var(--color-red); padding-bottom: 1rem; }

/* Карточка статьи */
/* ============================================================== */
.article-list-card { overflow: hidden;  align-items: center; gap: 4rem; display: flex; flex-wrap: wrap;  position: relative;  }
.article-list-card .image::after { display: block; content:''; position: absolute; background: linear-gradient(to top, #f6f6f6b0, transparent), url(../img/bg-lines.png) center repeat, #f6f6f6; height: 1.8rem; left: 0; right:0; bottom:0px; }
.article-list-card .image { flex-basis: 30rem; flex-grow: 0;  display: block; overflow: hidden; position: relative; }
.article-list-card .image img { width: 100%; height: auto;  }
.article-list-card .content { line-height: 1.2; font-size: 1.6rem; flex-grow: 1; flex-basis: 40rem; }
.article-list-card .title { font-size: 2rem; font-weight: 500;}
.article-list-card .button { margin-top: 1rem; }
.article-list-card .text { margin-top: 1rem; }

.article-list-card:not(:last-child) { border-bottom: 1px solid #ddd; padding-bottom: 2rem; }


/* ============================================================== */
.product-card { position: relative; line-height: 1.3; 
	border: 2px solid white; overflow:hidden; transition: .3s; z-index: 1;
	box-shadow: var(--shadow); border-radius: var(--border-radius); 
	background: white; text-align: center;
	}
.product-card .image { width: 100%; padding-top: 70%; background: #666; position: relative; }
.product-card .title { border-bottom: 1px solid #ddd; padding: 1rem 2rem; font-weight: bold; font-size: 2rem;
	text-align: center; line-height: 1.2; color: var(--color-red); display: flex; align-items: center; justify-content: center; }
.product-card .image img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card .content { padding: 2rem; font-size: 1.8rem; }
.product-card .bottom { margin-top: 1rem; }
.product-card .price-item { display: flex; gap: 1rem; text-align: left; }
.product-card .price-item > * { flex-basis: 0; flex-grow: 1; }

.products-slider { margin-left: -1rem; margin-right: -1rem; }
.products-slider .swiper-slide { padding: 1rem; }

/* Адаптивное меню */
/* ============================================================== */
.mobile-menu { background: white; color: black; display:none; position: fixed; top:0; left:0; width: 100vw; height: auto; z-index: 10000; max-height: 100%; box-shadow: 0 3px 5px 0 #0003; overflow: auto; }

.mobile-menu .close-menu-button { height: 4rem; display: flex; cursor: pointer; align-items: center; justify-content: center; background: var(--color-red); gap: 1rem; color: white; }
.mobile-menu .close-menu-button i { background: white; width: 1.5rem; height: 1.5rem; }

.mobile-menu .menu { padding: 0; z-index: 100;   text-align: left;  line-height: 1.1;  height: auto; max-height: calc(100vh); width: 100%; z-index:20; box-shadow: 0 5px 5px 0 #0003; padding-bottom: 2rem; }
.mobile-menu .menu a {  text-decoration: none; }
.mobile-menu .menu li { display: block; } 
.mobile-menu .menu > li { border-bottom: 1px solid #fff2; }
.mobile-menu .menu > li > a { font-weight: normal; }
.mobile-menu .menu li ul { position: relative; background: transparent; padding: 0 2rem;}
.mobile-menu .menu li ul li { border: none !important; }
.mobile-menu .menu li a  { display: flex; padding: 0.7rem 2rem; gap: 1rem; align-items: center; min-height: 3rem; }
.mobile-menu .menu li.-active > a { font-weight: bold;  }
.mobile-menu .menu li a > .text { flex-grow: 1; }
.mobile-menu .menu li a:hover {  background: black; color: white; }
.mobile-menu .menu li > ul { display: none;  font-size: 1.5rem; margin-left: 2rem; padding-left: 0; }

.mobile-menu .menu .opener { display: inline-block; width: 3rem; height: 2.5rem; flex-shrink: 0; background: #333; --mask: url(../img/icons/arrow-down.png) center/1.5rem no-repeat;	mask: var(--mask); -webkit-mask: var(--mask);  background: black; }

.mobile-menu .menu li.-open > a > .opener { --mask: url(../img/icons/arrow-up.png) center/1.5rem no-repeat;}
.mobile-menu .menu li.-open > ul { display: block; }
.mobile-menu .menu li.-open { border-bottom: 1px solid #fff5; margin-bottom: 1rem; padding-bottom: 1rem; background: #0002;  }
.mobile-menu .menu li.-open > a { margin-bottom: 0.5rem; background: linear-gradient(to top, #0003, transparent 1rem); padding: 1rem 2rem; font-weight: bold; }
.mobile-menu .menu li.-open > ul {  display: block; }

.mobile-menu.-open { display: block; }
.mobile-menu.-open .open-button::after { --image: url(../img/icons/close.svg) center/contain no-repeat; }
.mobile-menu.-open .mobile-menu { display: block;  }

/* ============================================================== */
.mobile-menu-button { display: none; align-items: center; gap: 1rem; justify-content: center; font-size: 1.5rem; min-height: 4rem; transition: .3s;
	cursor: pointer; border: 3px solid #eee; padding: 1rem; }
.mobile-menu-button i { background: black; }
.mobile-menu-button:hover { background: white; }

@media screen and (max-width: 640px) {
	.mobile-menu-button { display: flex; }
}

#header-group {
	position: relative; 
	background:
		linear-gradient(#fcfcfc, transparent 20rem), 
		linear-gradient(45deg, #afafaf, transparent 40rem),
		#e5e5e5;
}

#header-group .bg-image {
	position: absolute; right: 0; bottom: 0; height: 100%; width: 70%; 
	background: url(../img/bg-header.webp) bottom right no-repeat;
	background-size: contain;
}	

@media screen and (max-width: 768px) {
	#header-group .bg-image { width: 200%; opacity: 0.4; }
}

/* ============================================================== */
#header { z-index: 100;	overflow: visible; line-height: 1.2; position: relative; padding-bottom: 3rem; }
#header .block-container { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; }

#header .logo-part { flex-grow: 1; }
#header .phone-part { display: flex; gap: 1rem; flex-direction: column; }
#header .phone { font-size: 2.8rem; }

#header .site-logo { font-size: 3rem; font-weight: normal; text-transform: uppercase;  display: inline-block; text-align: center; }
#header .site-logo strong { color: var(--color-red); }
#header .site-logo .image { width: 100%; padding-top: 10%; background: url(../img/site-logo.webp) center/contain no-repeat; }

#header .contacts-part { flex-grow: 1; font-size: 1.6rem; display: inline-flex; gap: 1rem; flex-wrap: wrap; }
#header .contacts-item { display: flex; align-items: center; gap: 1rem; flex-basis: 100%; }
#header .contacts-item a { color: var(--color-red); text-decoration: underline; }
#header .contacts-item a:hover { color: inherit; text-decoration: none; }
#header .contacts-item .title { font-weight: bold; }


#header.-fixed { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 0 1rem 0 #0004; padding-bottom: 2rem; padding-top: 1rem; background: white; z-index: 100; }

@media screen and (max-width: 768px) {
	#header .site-logo { font-size: 2rem; }
	#header .logo-part { display: flex; justify-content: center; }
	#header .contacts-part { text-align: center; justify-content: center; flex-basis: 100%; }
	#header .contacts-item { flex-basis: auto; }
	#header .contacts-item i { display: none; }

	#header.-fixed .contacts-part { display: none; }
}

/* ============================================================== */
#slider { padding-top: 2rem; position: relative; z-index: 4; }

#slider .main-menu { display: inline-flex; align-items: center; justify-content: center;
	font-weight: 500; margin-left: -2rem;
	font-size: 2rem; flex-wrap: wrap;  position: relative; z-index: 100; flex-grow: 1; flex-basis: auto; }
#slider .main-menu  a { display: flex; padding: 0.7rem 2rem; text-decoration: none; width: 100%; align-items: center; gap: 1rem; }
#slider .main-menu  li:not(:last-child)::after { content: ''; display: block; width: 0.7rem; height: 0.7rem; background: var(--color-red); border-radius: 50%; flex-shrink: 0;
	position: absolute; right: -0.7rem; top: 50%; transform: translate(0, -50%);
}
#slider .main-menu li { display: flex; align-items: center; gap: 1rem; position: relative; border-radius: 99rem; }
#slider .main-menu li:hover { background: linear-gradient(#f5e3df, white), white; box-shadow: 0 0.5rem 0 0 #0001; }
#slider .main-menu li:hover::after { opacity:0; }


#slider .block-content { max-width: 60rem; display: flex; justify-content: center; gap: 2rem; align-items: start; 
	flex-direction: column; }
#slider h1 { font-size: 2.8rem; font-weight: bold; text-transform: uppercase; line-height: 1.2; }
#slider h1 strong { font-size: 4.7rem; color: var(--color-red); }
#slider .top-content { font-size: 2.4rem; }

#slider .slider-teasers { gap: 2rem; --item-width:20rem; width: 100%; margin-top: 2rem; }
#slider .teaser { background: white; border-radius: 99rem; font-size: 1.7rem; display: flex; gap: 1rem;
	text-align: left; 
	padding: 1rem 2rem; color: black; transition: .3s; align-items: center; cursor: pointer; }
#slider .teaser i { width: 5rem; height: 3rem; background: black;; }
#slider .teaser:hover { background: var(--color-red); color: white; }
#slider .teaser:hover i { background: white; }

@media screen and (max-width: 768px) {
	#slider .block-content { text-align: center; }
}

/* ============================================================== */
#about {  padding-top: 2rem; --image-size: 35rem; }

#about h2 { font-size: 4.6rem; }
#about .block-container { display: flex; gap: 4rem; align-items: center; flex-wrap: wrap; }
#about .block-container .block-content { flex-grow: 1; flex-basis: 40rem; }
#about .block-container .images { width: var(--image-size); flex-grow: 0; }

#about .images .image { width: var(--image-size); height: var(--image-size); background: #aaa; border-radius: 50%; overflow: hidden; position: relative; }
#about .images .image img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
#about .images .swiper-button-prev { left: -1rem; }
#about .images .swiper-button-next { right: -1rem; }

@media screen and (max-width: 768px) {
	#about .block-container .images { width: 100%; max-width: 100%; }
	#about .images .image { width: 100%; padding-top: 100%; height: auto; }
}

/* ============================================================== */
#how-to { background:
	linear-gradient(#0008, transparent 30%, transparent 50%, #0008),
	linear-gradient(#0002, #0002),
	url(../img/bg-how-to.jpg) repeat,
	#403f3f; }

.how-to-card:not(:last-child)::after {
	transition: .3s; 
	content: ''; display: block; position: absolute; background: white; width: 1rem; height: 3rem;
	right: -1rem; top: 50%; transform: translate(0, -50%); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.how-to-card { border-radius: var(--border-radius); padding: 4rem; background: white; display: flex; align-items: center; gap: 2rem; flex-direction: column; position: relative; transition: .3s; color: black; 
	align-self: stretch; cursor: pointer; }
.how-to-card .number { display: flex; width: 3rem; height: 3rem; border-radius: 99em; font-size: 1.8rem; 
	justify-content: center; line-height: 1; align-items: center; 
	position: absolute; top: 1rem; left: 1rem; background: #f2f2f2; font-weight: bold; transition: .3s; }
.how-to-card .image { display: flex; align-items: center; justify-content: center; }
.how-to-card .image i { width: 9rem; height: 8rem; background: var(--color-red); transition: .3s; }
.how-to-card .content { text-align: center;  font-size: 1.8rem; line-height: 1.3; }
.how-to-card .title { font-weight: bold; margin-bottom: 1rem; font-size: 2rem; }

.how-to-card:hover { background: var(--color-blue); color: white; }
.how-to-card:hover .image i { background: white; }
.how-to-card:hover .number { background: white; color: var(--color-blue); }
.how-to-card:hover:not(:last-child)::after { background: var(--color-blue); }

@media screen and (max-width: 768px) {
	.how-to-card:not(:last-child)::after { right: auto; left: 50%; bottom: -1rem; width: 3rem; height: 1rem; 
		clip-path: polygon(0 0, 100% 0, 50% 100%); transform: translate(-50%, 0); top: auto;
	}
}

/* ============================================================== */
#faq { }

.faq-card { border-radius: 1rem; position: relative; overflow: hidden; background: #f7f7f7; box-shadow: var(--shadow); transition: .3s; cursor: pointer; }
.faq-card::before { content: ''; display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 1.2rem; background: url(../img/bg-gradient.jpg) repeat, #444; }
.faq-card .heading { display: flex; gap: 2rem; font-size: 2.4rem; font-weight: bold; padding: 2rem; padding-left: 4rem; line-height: 1.2;  
	background: #f2f2f2; align-items: center; transition: .3s; }
.faq-card .heading i { width: 3rem; height: 3rem; background: black; transition: .3s; }
.faq-card .answer { padding: 2rem;  padding-left: 4rem; }

.faq-card:hover { background: white; }
.faq-card:hover .heading { background: var(--color-red); color: white; }
.faq-card:hover .heading i { background: white; }

@media screen and (max-width: 768px) {
	.faq-card .heading { font-size: 2rem; }
}

/* ============================================================== */
#contacts { 
	background:
		linear-gradient(#eee, transparent 30%, transparent 50%, #eee),
		linear-gradient(#fff6, #fff6),
		url(../img/bg-how-to.jpg) repeat,
		#403f3f;
}

#contacts .image { position: relative; }
#contacts .bg-image { display: block; position: absolute;
	bottom: -2rem; top: -6rem; left: -20rem; right: 0; 
	background: url(../img/bg-contacts-man.webp) bottom right no-repeat;
	background-size: contain; 
	}
#contacts h2 { margin-bottom: 2rem;}
#contacts .block-container { display: flex; gap: 4rem; flex-wrap: wrap; }
#contacts .block-container > * { flex-grow: 1; flex-basis: 40rem; }

@media screen and (max-width: 768px) {
	#contacts .form-part { text-align: center; }
	#contacts .image { order: 2; width: 100%; padding-top: 100%; }
	#contacts .bg-image { right: -10rem; left: -10rem; top: 0; background-position: bottom center; }
}

/* ============================================================== */
#footer { font-size: 1.8rem; }
#footer .block-container { display: flex; gap: 2rem; align-items: center; justify-content: center; flex-wrap: wrap; }
#footer .buttons { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;  margin-top: 0.5rem; font-size: 1.6rem; }
#footer .buttons .item { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;  }
#footer .buttons .item i { width: 3rem; height: 3rem; }
#footer .buttons .item span { text-decoration: underline; }
#footer .buttons .item:hover { color: var(--color-red); }
#footer .buttons .item:hover i { background: var(--color-red); }
#footer .phone { font-size: 2.8rem; white-space: no-wrap; }
#footer .copy { font-size: 2rem; }
#footer .button { min-width: 22rem; }
#footer .contacts-part a { color: var(--color-red); text-decoration: underline; }
#footer .contacts-part a:hover { text-decoration: none; color: black; }

#footer .copyright-part { flex-basis: 40rem; flex-grow: 2; }
#footer .contacts-part { flex-basis: 40rem; flex-grow: 1; text-align: center; }
#footer .phone-part { flex-basis: min-content; flex-grow: 0; }
#footer .phone-part a { display: inline-flex; }

@media screen and (max-width: 768px) {
	#footer { text-align: center; }
	#footer .buttons { justify-content: center; }
}


