:root {
	--mod-px-value: 40;
	--mod-mb-value: 70;
}

.clr-main {
  color: var(--clr-main);
}
.clr-orange {
	color: var(--clr-orange);
}
.clr-red {
	color: var(--clr-red);
}

.page-title {
	font-family: var(--h-font-family);
	font-style: normal;
}
h1.page-title {
	font-size: clamp(2.5rem, calc((var(--h1-size)/var(--max-width))*100*1vw), calc((var(--h1-size)/16)*1rem));
	line-height: 1.0;
	font-weight: 900;
}
h2.page-title,
.h2-like {
	font-size: clamp(2rem, calc((var(--h2-size)/var(--max-width))*100*1vw), calc((var(--h2-size)/16)*1rem));
	line-height: 1.0;
	font-weight: 900;
}
h2.page-title + * {
	/*margin-top: clamp(1rem, calc((var(--h2-size)/var(--max-width))*100*1vw), calc((var(--h2-size)/16)*1rem));*/
	margin-top: clamp(1rem, calc((var(--font-size)/var(--max-width)/2)*100*1vw), calc((var(--font-size)/16/2)*1rem));
}
h3.page-title,
.h3-like {
	font-size: clamp(1.5rem, calc((var(--h3-size)/var(--max-width))*100*1vw), calc((var(--h3-size)/16)*1rem));
	line-height: 1.0;
	font-weight: 900;
}
h3.page-title + * {
	/*margin-top: calc((var(--h3-size)/var(--max-width))*100*1vw);*/
	margin-top: clamp(1rem, calc((var(--font-size)/var(--max-width)/2)*100*1vw), calc((var(--font-size)/16/2)*1rem));
}
h4.page-title,
.h4-like {
	font-size: clamp(1.5rem, calc((var(--h4-size)/var(--max-width))*100*1vw), calc((var(--h4-size)/16)*1rem));
	line-height: 1.0;
	font-weight: 900;
}

.text-layout {
	font-size: clamp(1rem, calc((var(--font-size)/var(--max-width))*100*1vw), calc((var(--font-size)/16)*1rem));
	line-height: 1.5;
	font-weight: 400;
	/*max-width: 85ch;*/
}
.text-layout strong,
.text-layout b,
.faq__q {
	font-weight: 700;
}
.text-layout--mb {
	margin-bottom: calc(var(--font-size)*1.1px);
}
.text-layout--ch {
	max-width: 85ch;
}
.text-layout p,
.text-layout ul {

}
/*
p {
	font-size: clamp(1rem, calc((var(--font-size)/var(--max-width))*100*1vw), calc((var(--font-size)/16)*1rem));
	line-height: 1.5;
	font-weight: 300;
}
ul {
	font-size: clamp(1rem, calc((var(--font-size)/var(--max-width))*100*1vw), calc((var(--font-size)/16)*1rem));
	font-weight: 300;
	line-height: 1.5;
	padding-left: 1.5em;
}*/

.text-layout p + p {
	margin-top: 1.1em;
}
/*p + ul {
	margin-top: 0;
}*/
.text-layout li + li {
	margin-top: 0.7em;
}
.text-layout ul + * {
	margin-top: 1.8em;
}
.text-layout ul {
	--mod-px-value: 10;
	padding-left: clamp(1rem, calc((var(--mod-px-value)/var(--max-width))*100*1vw), calc((var(--mod-px-value)/16)*1rem));
}
.text-layout ul li {
	display: flex;
	gap: 0.3em
}
.text-layout ul li:before {
	content: '—';
}
a {
	text-decoration: underline!important;
}

.container {
	width: 100%;
	max-width: calc(var(--max-width) * 1px);
	margin-left: auto;
	margin-right: auto;
}

/* Утилитарные классы */
/* Уместны для обёрток, которые не являются смысловым блоком, а только группируют контент. */
.mod-mb {
	margin-bottom: clamp(2rem, calc((var(--mod-mb-value)/var(--max-width))*100*1vw), calc((var(--mod-mb-value)/16)*1rem));
}
.mod-txt-gap + * {
	margin-top: 1.1em;
}
.mod-px {
	padding-left: clamp(1rem, calc((var(--mod-px-value)/var(--max-width))*100*1vw), calc((var(--mod-px-value)/16)*1rem));
	padding-right: clamp(1rem, calc((var(--mod-px-value)/var(--max-width))*100*1vw), calc((var(--mod-px-value)/16)*1rem));
}
@media(max-width: calc(var(--max-width) * 1px)) {

}

.flex-center {
	display: flex;
	align-items: center;
	gap: var(--flex-gap, 1rem);
}


/* */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}



.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--grid-min-column-width), 1fr));
}
@media(max-width: 576px) {
	.grid {
		grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	  }	
}
.grid--gallery {
	align-items: stretch;
}
.grid--gallery img {
	height: 100%;
	width: auto;
	object-fit: cover;
}

/*.grid + .grid {
	margin-top: 0.8rem;
}*/
.grid--2-1 {
	grid-template-columns: 2fr 1fr;
	gap: 0.8rem;
}
.grid--1-2 {
	grid-template-columns: 1fr 2fr;
	gap: 0.8rem;
}
.grid--x {
	grid-template-columns: 1fr;
}
.grid--3x {
	grid-template-columns: 1fr 1fr 1fr;
	gap: 0.8rem;
}
.grid--2x {
	grid-template-columns: 1fr 1fr;
}
.--direction-rtl {
	direction: rtl;
}

/* Rows */ 
.grid--2x_x {
  grid-template-columns: 1fr 1fr;
}
.grid--2x_x > *:last-child {
  grid-column: 1 / -1;
}

@media(max-width: 767px) {
	.md\:grid--2x {
		grid-template-columns: 1fr 1fr;
	}
}
@media(max-width: 576px) {
	.sm\:grid--x {
		grid-template-columns: 1fr;
	}
}

/* Modals */
.modal__header {
	font-size: clamp(1.5rem, calc((var(--h3-size)/var(--max-width))*100*1vw), calc((var(--h3-size)/16)*1rem));
	line-height: 1.0;
	font-weight: 900;
}

/* Forms */
.form {
	display: flex;
	flex-direction: column;
	gap: 0.7em;
	font-size: clamp(1rem, calc((var(--font-size)/var(--max-width))*100*1vw), calc((var(--font-size)/16)*1rem));
}


.has-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
}
.has-arrow--after-right:after {
	content: '\27F6';
}

/* Modificators */
.text--bold-900 {
	font-weight: 900;
}
.clr--orange {
	color: var(--clr-orange);
}
.text--no-wrap {
	white-space: nowrap;
}
.text--align-center {
	text-align: center;
}



/* The pulsating point */
.--pulse-status {
	display: inline-flex;
	gap: 0.7em;
}
.--pulse-status::before {
	content: "";
	display: block;
	width: 1em;
	height: 1em;
	border-radius: 50%;
	background-color: var(--clr-main);
	box-shadow: 0px 0px 1px 1px var(--clr-main);

	animation: pulse-animation 1.5s infinite;
}
@keyframes pulse-animation {
	0% {
		box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
	}
	100% {
		box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
	}
}

/* Centered icon ::before */
.--has-icon {
  display: inline-flex!important;
  align-items: center;
  gap: 0.3em;
}
.--has-icon::before {
  content: '';
  display: block;
  height: 36px;
  width: 36px;
  background-image: var(--icon-url);
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0; /* запретить сжимать иконку */
}

/* Dropdown pointer:after */
.--dropdown {
	width: 100%;
	display: flex;
	justify-content: space-between;
}
.--dropdown::after {
	display: inline-block;
	content:'\203A';
	width: 1.5em;
	height: 1.5em;
	line-height: 1.5em;
	color: currentColor;
	border: 2px solid currentColor;
	border-radius: 50%;
	text-align: center;
	font-weight: 700;
	transition: transform 0.3s ease;
}
.--dropdown.active::after {
	transform: rotate(90deg);
}

/* Checkboxes */
.custom-checkbox {
	user-select: none;
}
.custom-checkbox__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
}
.custom-checkbox__text {
	display: flex;
	align-items: center;
	gap: 0.3em;
	cursor: pointer;
	user-select: none;
}
.custom-checkbox__text::before {
	content:'+';
	font-size: 1em;
	font-weight: 100;
}
.custom-checkbox__input:checked + .custom-checkbox__text {

}

/* Mixins */

.submenu {
  display: none;
}
.dropdown {
	position: relative;
	display: inline;
}
/* На десктопе: открываем при наведении */
.dropdown:hover .submenu {
  display: block;
}

.dropdown-toggle {
  display: none;
}
/* На мобиле: открываем при клике (через :checked) */
.dropdown-toggle:checked ~ .submenu {
  display: block;
}
  
/* Стрелка: базовая настройка */
.dropdown-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Вращение стрелки при наведении на десктопе */
.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Вращение стрелки, когда чекбокс активен (мобиль) */
.dropdown-toggle:checked ~ .dropdown-label .dropdown-arrow {
  transform: rotate(180deg);
}