:root {
	--text-color: #111111;
	--gray-800: #3c4043;
	--gray-700: #5f6368;
	--gray-600: #757575;
	--gray-500: #9e9e9e;
	--gray-300: #e5e5e5;
	--gray-200: #f2f3f5;
	--gray-100: #f7f8fa;

	--yellow-color: #ffd400;
	--light-yellow-color: #fff6cc;
	--opacity-light-yellow-color: #fff6cc50;
	--dart-blue-color: #0a379a;
	--background-modal: #0000006b;

	--gray-hover: #f7f8fa;
	--gray-hover-text: #5f6368;

	--container-width: 1320px;

	--container-padding-x: 20px;
	--container-padding-y: 10px;

	--border-radius-1: 12px;
	--border-radius-2: 20px;

	--default-padding: 12px 32px;
	--default-gap: 20px;

	--gradient-1: linear-gradient(270deg, rgba(247, 249, 250, 0) 0%, #f7f9fa 50%);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: Geologica;
	font-weight: 400;
	color: var(--text-color);
	text-decoration: none;
	line-height: 110%;
	font-size: 16px;
	font-style: normal;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	max-height: 100vh;
	overflow-x: hidden;
}

body:has(.modal__container) {
	overflow-y: hidden;
}

main {
	margin-bottom: auto;
}

ol,
ul,
li,
summary {
	list-style: none;
}

/* Определение базовых классов */

.container {
	margin: 0 auto;
	max-width: var(--container-width);
	padding: var(--container-padding-y) var(--container-padding-x);
}

.container.container--columns {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

main .container {
	padding-top: 0;
	padding-bottom: 0;
}

.row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.row.row--sb {
	justify-content: space-between;
}

.row--column {
	flex-direction: column;
}

.text-gray-small {
	color: var(--gray-600);
}

.b1 {
	font-size: 20px;
}

.b2 {
	font-size: 18px;
}

.b3 {
	font-size: 16px;
}

.b4 {
	font-size: 14px;
}

.b5 {
	font-size: 14px;
}

.b7 {
	font-size: 18px;
	font-weight: 500;
	line-height: 120%;
}

h1,
.h1 {
	font-size: 48px;
	font-weight: 600;
	line-height: 100%;
}

h2,
.h2 {
	font-size: 32px;
	line-height: 120%;
	font-weight: 600;
}

h3,
.h3 {
	font-size: 26px;
	line-height: 120%;
	font-weight: 600;
}

.h--title {
	margin-bottom: 20px;
}

h4,
.h4 {
	font-size: 26px;
	line-height: 120%;
	font-weight: 500;
}

h5,
.h5 {
	font-size: 24px;
	font-weight: 500;
	line-height: 120%;
}

h6,
.h6 {
	font-size: 20px;
	line-height: 120%;
	font-weight: 500;
}

.h7 {
	font-size: 18px;
	line-height: 120%;
	font-weight: 500;
}

.h9 {
	font-weight: 500;
	font-size: 17px;
}

.description {
	margin-bottom: auto;
}

.description--10-20 {
	margin: 10px 0 20px;
}

.description--20-40 {
	margin: 20px 0 40px;
}

.description a,
.description {
	color: var(--gray-700);
}

.link--underline {
	position: relative;
}

.link--underline::after {
	content: "";
	display: block;
	height: 1px;
	bottom: 3px;
	width: 100%;
	left: 0;
	position: absolute;
	background: var(--text-color);
}

/* Общая модалок */

.modal__container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--background-modal);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 300;
}

.modal {
	position: relative;
	background-color: #fff;
	border-radius: var(--border-radius-2);
	padding: 40px;
}

.modal--close {
	display: block;
	position: absolute;
	top: 20px;
	right: 20px;
	background-image: url(/assets/img/icons/close-multiply.svg);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	width: 16px;
	aspect-ratio: 1;
	cursor: pointer;
}

@media (max-width: 1279px) {
	:root {
		--default-gap: 10px;
		--gradient-1: linear-gradient(
			270deg,
			rgba(247, 249, 250, 0) 0%,
			#f7f9fa 75%
		);
		--gradient-3: linear-gradient(
			270deg,
			rgba(247, 249, 250, 0) 0%,
			#f7f9fa 40%
		);
	}

	.onlyDesktop {
		display: none !important;
	}

	h1,
	.h1 {
		font-size: 44px;
	}

	.h7-tablet {
		font-size: 18px;
		line-height: 120%;
		font-weight: 500;
	}

	.b3-tablet {
		font-size: 16px;
	}

	.b5-tablet {
		font-size: 12px;
	}
}

@media (max-width: 835px) {
	:root {
		--container-padding-x: 10px;
		--gradient-1: linear-gradient(
			270deg,
			rgba(247, 249, 250, 0) -500px,
			#f7f9fa 50%
		);
		--border-radius-2: 12px;
	}

	.container.container--columns {
		gap: 10px;
	}

	.h1 {
		font-size: 26px;
	}

	.h2 {
		font-size: 26px;
	}

	.h4 {
		font-size: 20px;
	}

	.h5 {
		font-size: 20px;
	}

	.h1,
	.h2,
	.h3 {
		line-height: 100%;
	}

	.h--title {
		margin-bottom: 10px;
	}

	.b1,
	.h7-tablet {
		font-size: 16px;
	}

	.b2 {
		font-size: 14px;
	}

	.b4 {
		font-size: 12px;
	}

	.description--20-40 {
		margin: 10px 0 20px;
	}

	.description--10-20 {
		margin: 5px 0 10px;
	}

	.table td, .table th {
		padding: 5px 10px;
	}

	.table {
		margin-bottom: 10px;
	}
	
	/* Модалка */

	.modal {
		max-width: 90%;
	}
}