/* Normalization (block model) */

*,
::before,
::after {
	box-sizing: border-box;
}

/**
	Убираем внутренние отступы слева тегам списков,	у которых есть атрибут class
 */
:where(ul, ol):where([class]) {
	padding-left: 0;
}

/**
	Убираем внешние отступы body и двум другим тегам, у которых есть атрибут class
 */
body,
:where(blockquote, figure):where([class]) {
	margin: 0;
}

/**
	Убираем внешние отступы вертикали нужным тегам, у которых есть атрибут class
 */
:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl):where([class]) {
	margin-block: 0;
}

:where(dd[class]) {
	margin-left: 0;
}

:where(fieldset[class]) {
	margin-left: 0;
	padding: 0;
	border: none;
}

/**
	Убираем стандартный маркер маркированному списку, у которого есть атрибут class
 */
:where(ul[class]) {
	list-style: none;
}

:where(address[class]) {
	font-style: normal;
}

/**
	Обнуляем вертикальные внешние отступы параграфа, объявляем локальную переменную для внешнего отступа вниз, чтобы избежать взаимодействие с более сложным селектором
 */
p {
	--paragraphMarginBottom: 24px;

	margin-block: 0;
}

/**
	Внешний отступ вниз для параграфа без атрибута class, который расположен не последним среди своих соседних элементов
 */
p:where(:not([class]):not(:last-child)) {
	margin-bottom: var(--paragraphMarginBottom);
}

/**
	Упрощаем работу с изображениями и видео
 */
img,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

/**
	Наследуем свойства шрифт для полей ввода
 */
input,
textarea,
select,
button {
	font: inherit;
}

html {
	/**
		Пригодится в большинстве ситуаций (когда, например, нужно будет "прижать" футер к низу сайта)
	 */
	height: 100%;


}

/**
	Плавный скролл
 */
html {
	scroll-behavior: smooth;
}

body {
	scrollbar-gutter: stable;
	/**
		Пригодится в большинстве ситуаций (когда, например, нужно будет "прижать" футер к низу сайта)
	 */
	min-height: 100%;
	/**
		Унифицированный интерлиньяж
	 */
	line-height: 1.5;

}

/**
	Нормализация высоты элемента ссылки при его инспектировании в DevTools
 */
a:where([class]) {
	display: inline-flex;
}

/**
	Курсор-рука при наведении на элемент
 */
button,
label {
	cursor: pointer;
}

/**
	Приводим к единому цвету svg-элементы (за исключением тех, у которых уже указан атрибут fill со значением 'none' или начинается с 'url')
 */
:where([fill]:not([fill^="#"], [fill="none"], [fill^="url"])) {
	fill: currentColor;
}

/**
	Приводим к единому цвету svg-элементы (за исключением тех, у которых уже указан атрибут stroke со значением 'none')
 */
:where([stroke]:not([fill^="#"], [stroke="none"], [stroke^="url"])) {
	stroke: currentColor;
}

/**
	Чиним баг задержки смены цвета при взаимодействии с svg-элементами
 */
svg * {
	transition-property: fill, stroke;
}

/**
	Приведение рамок таблиц в классический 'collapse' вид
 */
:where(table) {
	border-collapse: collapse;
	border-color: currentColor;
}

/**
	Удаляем все анимации и переходы для людей, которые предпочитают их не использовать
 */

@media (prefers-reduced-motion: no-preference) {
	.smooth-scroll {
		scroll-behavior: smooth;
	}
}

/* Core */

:root {
	/* Colors */
	--primary-color: #0178c8;
	--primary-dark: #3a6395;
	--primary-light: #6d96d0;
	--text-color: #333;
	--light-text: #fff;
	--gray-bg: #efefef;
	--border-color: #e0e0e0;
	--header-height: 80px;

	/* Icons */
	--font-size-icon: 2rem;
	--font-size-icon-nav: 1.5rem;
	--trial: gray;
	--basic: green;
	--standard: blue;
	--optimal: red;
	--advanced: gold;


	/* Font size */
	--font-size: 1.1rem;

	/* Fonts */
	--font-family-Roboto: "Roboto", sans-serif;
}

body {
	font-family: var(--font-family-Roboto);
	font-size: var(--font-size);
	color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--primary-color);
}

h1 {
	font-size: 1.7em;
	margin: 15px 0px 10px 0px;
	line-height: 1.3;
}

.icon {
	padding-right: 5px;
	vertical-align: top;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Header */

.header {
	background-color: var(--primary-color);
	color: var(--light-text);
	padding: 5px 10px;
	position: sticky;
	height: 80px;
	width: 100%;
	height: var(--header-height);
	top: 0;
	z-index: 97;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

nav {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 10px;
	background-color: var(--primary-color);
}

nav ul {
	display: flex;
	align-items: center;
	list-style: none;
	white-space: nowrap;
}

nav ul li {
	margin-left: 5px;
}

nav ul li a {
	color: var(--light-text);
	text-decoration: none;
	font-weight: 700;
	transition: opacity 0.3s;
	padding: 7px 5px;
	align-items: center;
}

nav ul li a:hover svg {
	fill: var(--primary-color);
}

nav ul li a:hover {
	color: var(--primary-color);
	text-decoration: none;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.3s;
	background-color: var(--light-text);
}

nav ul li a:active,
nav ul li a.active {
	color: var(--primary-color);
	text-decoration: none;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.3s;
	background-color: var(--light-text);
}

.contacts {
	display: block;
	align-items: center;
	list-style: none;
	white-space: nowrap;
}

.mobileMenuBtn {
	display: none;
	background: none;
	border: none;
	color: var(--light-text);
	font-size: var(--font-size-icon-nav);
	cursor: pointer;
}

.contact-item a {
	color: var(--light-text);
	text-decoration: none;
	font-weight: 700;
	transition: opacity 0.3s;
	padding: 5px 2px;
}

.contact-item a:hover {
	color: var(--primary-color);
	border-radius: 4px;
	/*transition: background-color 0.3s;*/
	background-color: var(--light-text);
}

.contact-item a:hover svg {
	fill: var(--primary-color);
}

.logo {
	display: flex;
	align-items: center;
	font-size: var(--font-size-icon-nav);
	font-weight: 500;
}

.logo img {
	max-height: 70px;
	width: 100%;
	margin-right: 5px;
}

/* Header end */

section {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 5px 10px;
	display: block;
	scroll-margin-top: var(--header-height);
}

section h2 {
	text-align: center;
	margin-bottom: 20px;
	margin-top: 20px;
}

section h3 {
	text-align: center;
	margin-bottom: 5px;
	margin-top: 25px;
}

/* Buttons */

.btn {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--light-text);
	padding: 12px 25px;
	border: none;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 500;
	transition: background-color 0.3s;
}

.btn:hover {
	background-color: var(--primary-dark);
}

/* Buttons end */

/* Promo Section */

.promo {
	max-width: 100%;
	padding: 10px 0px;
	/*background-color: var(--gray-bg);*/
}

.promo-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
	column-gap: 13px;
	justify-content: space-between;
	justify-items: center;
	align-items: center;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 10px;
	text-align: center;
}

.promo p.promo-text {
	margin-bottom: 20px;
	font-size: 1.1rem;
}

#promo-left {
	order: 1;
}

#promo-right {
	order: 2;
}

.promo img {
	width: 540px;
	height: 100%;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.promo-reestr {
	display: flex;
	align-content: center;
	justify-content: center;
	align-items: center;
	color: var(--primary-color);
	margin-bottom: 20px;
	text-transform: uppercase;
	font-size: 1rem;
}

.promo-reestr_logo {
	line-height: 1;
}

.promo-reestr_logo svg {
	width: 70px;
	height: 70px;
}

.promo-reestr_text {
	font-weight: bold;
	display: inline;
	vertical-align: middle;
	width: 270px;
}


/* Promo Section end*/

.container {
	align-items: center;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 10px;
}

/* Features Section */

.features-flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.feature-card {
	flex-basis: 360px;
	background-color: var(--light-text);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	padding: 15px;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column
}

.feature-icon {
	font-size: var(--font-size-icon);
	padding-right: 5px;
	color: var(--primary-color);
	display: inline-block;
	vertical-align: -webkit-baseline-middle;
	text-align: center;
}

.feature-card h3 {
	display: inline-block;
	margin-top: 12px;
}

.feature-text {
	margin: 10px 0 10px 0;
	display: block;
}

.feature-card p {
	text-align: justify;
}

.feature-details-btn {

	width: 100%;
	padding: 10px 15px;
	background-color: var(--primary-color);
	color: var(--light-text);
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
	text-align: center;
	margin-top: auto;
}

.feature-details-btn:hover {
	background-color: var(--primary-dark);
}

/* Features Section end */

/* About Section */

.about-section-content {
	display: grid;
	padding-top: 5px;
	justify-content: space-between;
	justify-items: center;
	align-items: center;
	grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
	gap: 50px;
}

.about-header p {
	padding-bottom: 10px;
	text-align: justify;
}

.about-right {
	order: 2;
}

.about-left {
	order: 1;
}

.about img {
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	display: block;
	margin: 0 auto;
}

.about-left p,
.about-right p {
	padding-bottom: 10px;
	text-align: justify;
}

/* About Section end */

/* Price Section */

.price-flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.price-card {
	flex-basis: 370px;
	background-color: var(--light-text);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	padding: 15px;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
}

.price-card-header {
	text-align: center;
}

.price-card h3 {
	vertical-align: middle;
	margin-top: 12px;
}

.price-text {
	margin: 10px 0 10px 0;
	display: block;
	text-decoration: dotted underline;
	text-underline-offset: 5px;
}

.price-details-btn {
	width: 100%;
	padding: 10px 15px;
	background-color: var(--primary-color);
	color: var(--light-text);
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
	text-align: center;
	margin-top: auto;
}

.price-details-btn:hover {
	background-color: var(--primary-dark);
}

.off::before {
	content: url('../img/icons/off.svg');
	vertical-align: text-top;
	padding-right: 5px;
}

.on::before {
	content: url('../img/icons/on.svg');
	vertical-align: text-top;
	padding-right: 5px;
}

/* Основной стиль для элемента с подсказкой */
.tooltip {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

/* Скрытый элемент подсказки */
.tooltip .tooltiptext {
	visibility: hidden;
	width: 300px;
	background-color: var(--gray-bg);
	color: var(--primary-color);
	text-align: left;
	border: dotted;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
	padding: 5px 5px;
	position: absolute;
	z-index: 1;
	/* Позиционирование подсказки */
	left: 50%;
	margin-left: -145px;
	opacity: 0;
	transition: opacity 0.3s;
}

/* Показ подсказки при наведении */
.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
	background-color: var(--gray-bg);
	color: var(--primary-color);
}

.tooltiptext p {
	margin-bottom: 0px;
}

.tooltiptext ul {
	margin: 10px 0;
}


/* Price Section end */

/* Awards Section*/

.awards-conteiner {
	display: grid;
	padding-top: 5px;
	gap: 10px;
	justify-content: space-between;
	justify-items: center;
	align-items: center;
	grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
	gap: 30px;
}

.awards-left {
	order: 1;
	width: 100%;
}

.awards-right {
	order: 2;
	width: 100%;
}

.awards img {
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	display: block;
	margin: 0 auto;
}

.awards p {
	text-align: justify;
	padding-bottom: 10px;
}

/* Awards Section end */

/* Feedback Section */

.feedback {
	max-width: 800px;
	margin: 0 auto;
}

.feedbackForm {
	background-color: var(--light-text);
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.form-group {
	margin-bottom: 20px;
	color: var(--primary-color);
	font-family: "Roboto", sans-serif;
	font-size: 1.2rem;
	font-weight: 500;
}

.form-group-inline {
	margin-bottom: 20px;
}

.messagedatayes:hover,
input[type="checkbox"]:focus+label {
	background-color: var(--gray-bg);
	cursor: pointer;
}

.messagedatayes {
	display: block;
	padding: 5px;
	margin-bottom: 10px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.messagedatayes a {
	color: var(--primary-color);
	text-decoration: none;
}

.messagedatayes a svg {
	vertical-align: text-bottom;
}

.messagedatayes a:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

.form-text {
	color: var(--primary-color);
	font-family: "Roboto", sans-serif;
	font-size: 1.2rem;
	font-weight: 500;
}

.form-text-agreement a {
	color: var(--primary-color);
	text-decoration: none;
}

.form-text-agreement a:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid var(--border-color);
	border-radius: 4px;
	font-family: "Roboto", sans-serif;
	font-size: 1rem;
}

.form-group textarea {
	min-height: 120px;
	resize: vertical;
}

.submit-btn {
	background-color: var(--primary-color);
	color: var(--light-text);
	border: none;
	padding: 12px 25px;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.3s;
}

.submit-btn:hover {
	background-color: var(--primary-dark);
}

/* Features Modal */

.modal-content-featureDetails {
	background-color: var(--light-text);
	padding: 15px 20px 20px 20px;
	border-radius: 8px;
}

.modalTitle {
	margin-top: 0px;
	margin-bottom: 0px;
	display: inline-block;
}

.modalDescription p {
	text-align: justify;
	margin-bottom: 10px;
}

#close-btn {
	position: sticky;
	float: right;
	margin-right: -40px;
	top: 5px;
}

@media (max-width: 767px) {
	#close-btn {
		margin-right: 0px;
		margin-top: 10px;
		top: 10px;
	}
}

/* Features Modal end */

/* Feedback Modal */

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 100;
	justify-content: center;
	align-items: center;
}

.modal-content {
	background-color: var(--light-text);
	padding: 40px;
	border-radius: 8px;
	max-width: 700px;
	width: 90%;
	text-align: center;
	position: relative;
}

.close-modal {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: var(--font-size-icon-nav);
	cursor: pointer;
	color: var(--primary-color);
}

.modal-header {
	align-items: center;
	margin-bottom: 15px;
}

.modal-icon {
	font-size: var(--font-size-icon);
	color: var(--primary-color);
	vertical-align: -webkit-baseline-middle;
	display: inline-block;
	padding-right: 5px;
}

/* Feedback Modal end */

/* Feedback Section end*/

/* Footer */

footer {
	background-color: var(--primary-color);
	color: var(--light-text);
	padding: 5px;
	margin: 20px 0 0 0;
}

.footer-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	column-gap: 10px;
	row-gap: 5px;
	text-align: center;
}

.footer-column h3 {
	margin-bottom: 20px;
	color: var(--light-text);
	background: none;
	border: none;
	cursor: none;
	height: 0;
	margin: 0;
	opacity: 0;
	outline: none;
	overflow: hidden;
	padding: 0;
	pointer-events: none;
	position: absolute;
	user-select: none;
	visibility: hidden;
	white-space: nowrap;
	width: 0;
	z-index: -1;
}

.footer-column ul {
	list-style: none;
	margin: 0px;
	text-align: center;
	padding-inline-start: 0;
	display: block;
}

.footer-info a:hover {
	text-decoration: underline;
}

.footer-contacts a:hover svg {
	fill: var(--primary-color);
}

.external-link {
	vertical-align: text-bottom;
}

.external-link-dark {
	fill: var(--primary-color);
}

.footer-column ul li a {
	color: var(--light-text);
	text-decoration: none;
	transition: opacity 0.3s;
	padding: 5px 2px;
}

.footer-column ul li {
	padding: 0px 0px;
}

.footer-info ul li a {
	text-decoration: underline;
}

.footer-contact-item {
	padding-bottom: 0px;
	padding-top: 0px;
}

.footer-contacts {
	display: flex;
	color: var(--light-text);
	font-weight: 500;
	transition: opacity 0.3s;
	padding: 0px 2px;
}

.footer-contacts .footer-contact-item a:hover {
	color: var(--primary-color);
	border-radius: 4px;
	background-color: var(--light-text);
}

.copyright {
	text-align: center;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright a {
	text-decoration: none;
	color: var(--light-text);

}

.copyright a:hover {
	text-decoration: underline;
}

/* Footer end */

/* Cookies */

.warning {
	position: fixed;
	bottom: 0px;
	display: none;
	justify-content: flex-end;
	align-items: center;
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	background-color: var(--gray-bg);
	border-style: dotted;
	color: var(--primary-color);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	line-height: normal;
	font-size: 1rem;
}

.warning--active {
	display: flex;
}

.warning__text {
	margin-right: 5px;
	overflow-wrap: break-word;
}

.warning__read {
	display: block;
	margin-left: 15px;
}

.warning__text a:hover {
	color: var(--primary-color);
}

.warning__text a {
	color: var(--primary-color);
	transition: opacity 0.3s;
	padding: 5px 2px;
}

.warning__text svg {
	margin-left: 2px;
}

/* Cookie end */

/* Mobile styles */

@media (max-width: 1200px) {

	.logo {
		display: none;
	}
}

@media (max-width: 1020px) {

	.promo {
		padding: 0px;
	}

	.promo img {
		display: none;
	}

	.promo-container {
		grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
	}
}

@media (max-width: 885px) {

	.about-section-content,
	.awards-conteiner {
		display: block;
	}

	.header {
		padding: 5px 0px;
	}

	nav {
		flex-wrap: wrap;
	}

	nav ul {
		flex-direction: column;
	}

	nav ul li {
		margin: 5px 0;
		text-align: center;
		margin: 5px 0;

	}

	nav ul li a {
		padding: 2px 5px;
	}

	.mobileMenuBtn {
		display: block;
		order: 1;
	}

	.logo {
		display: flex;
		order: 2;
		width: calc(100% - 50px);
		justify-content: center;

	}

	.menu {
		order: 3;
		width: 100%;
		margin-top: 5px;
		display: none;
	}

	.contacts {
		order: 4;
		width: 100%;
		justify-content: center;
		margin-top: 5px;
		display: none;
	}

	#top_menu.active {
		display: block;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	#contacts.active {
		display: flex;
		flex-direction: row;
		justify-content: space-evenly;
	}

	.warning--active {
		flex-direction: column;
	}
}

@media (max-width: 450px) {
	#contacts.active {
		flex-direction: column;
	}
}

@media (max-width: 350px) {
	.logo {
		display: none;
	}

	.header {
		height: 25px;
	}
}