:root {
	--site-font-family: "Tahoma", sans-serif;
	--site-red-accent: #f20000;
	--site-red-accent-2: #be0000;
	--site-blue-accent: #0070c7;
	--site-light-blue-accent: #2e74b5;
	--site-light-blue-menu: #036cfd;
	--site-dark-blue-accent: #1f4e79;
	--site-bg-block: #f0f4fa;
	--site-table-odd-cell: #deeaf6;
	--site-table-even-cell: #f2f7fc;
	--site-text-color: #000;
	--site-text-color-inverse: #fff;
	--site-border-radius: 4px;
	--site-transition: all 0.3s ease;
	--site-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
	--site-modal-z-index: 1000;
	--site-modal-overlay-z-index: 200;
	--site-dropdown-z-index: 100;
	--site-overlay-z-index: 99;
	/*
	--site-blue-color: #204494;
	--site-red-color: #dc143c;
	--site-yellow-color: #fdfe00;
	--site-orange-color: #f9a743;
	--site-light-blue-color: #637db5;
	--site-green-color: #0eaa6f;
*/
}

/* title, text */

h1 {
	font-weight: 700;
	font-size: 26px;
	line-height: 30px;
	margin-bottom: 30px;
}

h2 {
	font-weight: 700;
	font-size: 24px;
	line-height: 28px;
	margin-bottom: 30px;
}

h3 {
	font-size: 20px;
	line-height: 24px;
	font-weight: 700;
	margin-bottom: 20px;
}

h3.download-title {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--site-light-blue-accent);
	cursor: pointer;
}

h3.download-title::before {
	content: url("../img/Download-logo.png");
	display: block;
	width: 35px;
	height: 28px;
}

h4 {
	font-weight: 700;
	font-size: 18px;
	line-height: 22px;
	margin-bottom: 20px;
}

.title-decoration {
	background: linear-gradient(to bottom, #fff2df, #ffdd9d);

	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

	color: var(--site-dark-blue-accent);
	text-transform: uppercase;

	padding: 20px;
	border-radius: var(--site-border-radius);
	display: inline-block;
}

p {
	margin: 1em 0;
}

strong {
	font-weight: 700;
}

p em {
	font-style: italic;
}

p.text-flex {
	display: flex;
	gap: 10px;
	align-items: center;
}

p.text-flex-top {
	align-items: start;
}

a.normal-url {
	color: var(--site-dark-blue-accent);
	border-bottom: 1px solid var(--site-dark-blue-accent);
}

a.anchor-url {
	color: var(--site-light-blue-accent);
	font-weight: 700;
}

@media (max-width: 767px) {
	h1,
	h2,
	h3,
	h4 {
		font-size: 18px;
		line-height: 22px;
		margin-bottom: 15px;
	}

	.title-decoration {
		padding: 10px;
	}
}

/* list */

ul {
	list-style-type: disc;
	list-style-position: outside;
	margin-left: 0;
	padding-left: 40px;
}

ol {
	list-style-type: decimal;
	list-style-position: outside;
	margin-left: 0;
	padding-left: 40px;
}

ul li,
ol li {
	margin-bottom: 1rem;
}

ul ul,
ol ul {
	list-style-type: circle;
}

ol ol,
ul ol {
	list-style-type: lower-latin; /* Вложенные ol могут иметь буквенную нумерацию (a, b, c) */
}

ol li:last-child,
ul li:last-child {
	margin-bottom: 0;
}

ul.checkmark {
	list-style-type: none;
}

ul.checkmark li {
	position: relative;
}

ul.checkmark li::before {
	content: "✓";
	position: absolute;
	left: -20px;
}

ul.no-space li,
ol.no-space li,
.no-space ul li,
.no-space ol li {
	margin-bottom: 0;
}

.no-all-space ul,
.no-all-space ol {
	padding-left: 0px;
}

@media (max-width: 767px) {
	ul,
	ol {
		padding-left: 30px;
	}
}

/* text decorators */

.accent-red-span {
	color: var(--site-red-accent);
	font-weight: 700;
}

.accent-red-text {
	color: var(--site-red-accent-2);
	font-weight: 700;
	font-size: 14px;
	line-height: 20px;
	text-align: center;
}

.accent-blue-span {
	color: var(--site-dark-blue-accent);
}

.accent-coursive-span {
	font-style: italic;
	font-size: 16px;
	line-height: 20px;
}

.accent-border {
	margin: 30px auto;
	padding: 20px;
	border-radius: var(--site-border-radius);
	border: 4px solid var(--site-blue-accent);
	position: relative;
	width: fit-content;
}

.accent-border strong {
	color: var(--site-blue-accent);
}

.accent-border.red-border {
	border-color: var(--site-red-accent);
}

.accent-border.red-border strong {
	color: var(--site-red-accent);
}

.accent-border.text-blue {
	color: var(--site-light-blue-accent);
}

.images-flex {
	gap: 15px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
}

.accent-border > *:last-child {
	margin-bottom: 0 !important;
}

.accent-border > *:first-child {
	margin-top: 0 !important;
}

.g-img {
	border-radius: var(--site-border-radius);
	box-shadow: var(--site-shadow);
	object-fit: cover;
}

@media (max-width: 767px) {
	.accent-border {
		padding: 15px;
		margin: 20px auto;
	}

	.accent-coursive-span {
		font-size: 13px;
		line-height: 16px;
	}

	.accent-red-text {
		font-size: 12px;
		line-height: 16px;
	}
}

/* buttons */

.g-button {
	border-radius: var(--site-border-radius);
	text-transform: uppercase;
	padding: 15px 20px;
	background-color: var(--site-blue-accent);
	display: flex;
	justify-content: center;
	width: fit-content;
	color: var(--site-text-color-inverse);
	transition: var(--site-transition);
	box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.3);
	font-weight: 700;
	font-size: 18px;
	line-height: 22px;
}

.g-button:hover {
	background-color: var(--site-dark-blue-accent);
}

@media (max-width: 767px) {
	.g-button {
		padding: 10px 20px;
		font-size: 15px;
		line-height: 20px;
	}
}

/* sections */

.g-section {
	padding: 15px 0;
	margin: 15px 0;
}

.btg-section {
	background-color: var(--site-bg-block);
	border-radius: var(--site-border-radius);
	padding: 30px;
	margin: 30px 0;
	margin-top: 60px;
}

.bg-article {
	background-color: var(--site-bg-block);
	border-radius: var(--site-border-radius);
	margin: 1rem 0;
	padding: 2rem;
	position: relative;

	font-style: italic;
	color: var(--site-dark-blue-accent);
}

.bg-article .title {
	color: var(--site-dark-blue-accent);
	font-weight: 700;
	margin-bottom: 20px;
	display: block;
}

.bg-article.normal {
	font-style: normal;
	color: var(--site-text-color);
}

.g-article {
	padding: 15px 0;
	margin: 15px 0;
}

.g-section > *:last-child,
.btg-section > *:last-child,
.g-article > *:last-child,
.bg-article > *:last-child {
	margin-bottom: 0 !important;
}

.bg-article > *:first-child,
.g-article > *:first-child {
	margin-top: 0 !important;
}

@media (max-width: 767px) {
	.btg-section {
		padding: 15px;
	}

	.bg-article {
		padding: 1rem;
	}

	.g-article {
		padding: 10px 0;
		margin: 10px 0;
	}
}

/* table */

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
	overflow: hidden;

	text-align: center;

	border: 1px solid var(--site-dark-blue-accent);
}

table th,
table td {
	border: 1px solid #1f4e79;
}

table tbody tr:nth-child(odd) {
	background-color: var(--site-table-odd-cell);
}

table tbody tr:nth-child(even) {
	background-color: var(--site-table-even-cell);
}

table tbody td {
	padding: 14px 12px;
	vertical-align: middle;
}

table tbody tr:last-child td {
	border-bottom: none;
}

/* Адаптивность */
@media (max-width: 768px) {
	.table-wrapper {
		overflow-x: auto;
	}

	table tbody td {
		padding: 10px 8px;
	}
}

/* modal */

.modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 100vh;
	display: none;
	justify-content: center;
	padding: 100px 0 0;
	overflow-y: auto;
	z-index: var(--site-modal-z-index);
	color: var(--site-dark-accent-color);
}

.modal[aria-hidden="false"] {
	display: flex;
}

.modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(14, 33, 71, 0.8);
	z-index: var(--site-modal-overlay-z-index);
}

.modal__content {
	position: relative;
	width: 100%;
	max-width: 1080px;
	z-index: var(--site-modal-z-index);
	display: flex;
	flex-direction: column;

	margin: auto 0;
}

.modal-wrapper {
	position: relative;
}

.modal__close {
	position: absolute;
	top: -47px;
	right: 1px;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	cursor: pointer;
	transition: var(--site-transition);
}

.modal__close:hover {
	transform: scale(1.15);
}

.modal__body {
	overflow: visible;
	border-radius: var(--site-border-radius);
	background: var(--site-white-color);
	margin-bottom: 100px;
}

body.modal-open {
	overflow: hidden;
}

.directory-modal h3 {
	text-align: center;
}

.modal-title {
	height: 26px;
	line-height: 1;
	text-align: center;
	margin: 0 0 10px;
}

.modal-description {
	font-weight: 700;
	padding: 30px 50px;
}

.photo-modal .modal__content {
	width: auto;
}

.photo-modal h4 {
	color: var(--site-white-color);
	text-align: center;
}

.photo-modal .modal__body {
	background: transparent;
}

.photo-content {
	display: flex;
	flex-direction: column;
	gap: 35px;
}

@media (max-width: 767px) {
	.modal__close {
		right: 16px;
	}

	.modal__body {
		padding: 0 16px;
	}
}

/* helpers classes */

.only-mobile {
	display: none;
}

@media (max-width: 767px) {
	.only-mobile {
		display: block;
	}

	.only-desktop {
		display: none;
	}
}

/* Некоторый конструктор для блоков, позволяет выводить блок с текстом и блок со списком */

.loop-block {
}

.loop-block__text p:first-child {
	margin-top: 0 !important;
}
.loop-block__text p:last-child {
	margin-bottom: 0 !important;
}

.loop-block__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.note {
	text-wrap-style: balance;
	color: var(--site-dark-blue-accent);
	font-weight: 700;
	text-align: center;
}
