/* Светлая тема (по умолчанию) */
:root {
	/* BODY */
	--body-bg: #ffffff;
	--body-text: #424242;
	--body-link: #424242;
	--body-link-hover: #073950;

	--heading: #424242;

	/* SIDEBAR */
    --sidebar-bg: #e8e8e8;
    --sidebar-text: #424242;
    --sidebar-link-hover: #073950;
    --sidebar-hover-active-focus: #ffffff;

    /* HEADER */
    --header-button-bg: #424242;
    --header-button-color: #ffffff;
    --header-button-hover: #e8e8e8;
    
     /* OBJECT */
    --section-admonition-title-1: #6ab0de;
	--section-admonition-list-1: #e7f2fa;
	--section-admonition-title-2: #1abc9c;
	--section-admonition-list-2: #dbfaf4;

	--link-download: #d4d4d9;
	--span-bg: #e7e7e7;
	--span-color: #ff5252;
	--blockquote-border: #CBDDE7;
	--blockquote-bg: #EAF0FF;

    /*073950*/
}

/* Темная тема */
.dark-theme {
	/* BODY */
	--body-bg: #14191f;
	--body-text: #cfcfcf;
	--body-link: ;
	--body-link-hover: #00afff;

	--heading: #e9e9e9;

	/* SIDEBAR */
    --sidebar-bg: #1c232b;
    --sidebar-text: #ffffff;
    --sidebar-link-hover: #00afff;
    --sidebar-hover-active-focus: #29333d;

    /* HEADER */
    --header-button-bg: #29333d;
    --header-button-color: #acacac;
    --header-button-hover: #00afff;

    /* OBJECT */
	--section-admonition-title-1: #29333d;
	--section-admonition-list-1: #1c232b;
	--section-admonition-title-2: #29333d;
	--section-admonition-list-2: #1c232b;

	--link-download: #29333d;
	--span-bg: #29333d;
	--span-color: #fb6d6d;
	--blockquote-border: #29333d;
	--blockquote-bg: #1c232b;

}

/* Стили css */
a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

html,
body {
	color: var(--body-text);
	background: var(--body-bg);
	position: relative;
}


/* SIDEBAR */
aside {
	height: 100%;
	width: 15rem;
	position: fixed;
	inset: 0 auto 0 0;
	padding: 1rem;
	background-color: var(--sidebar-bg);
	overflow-x: hidden;
}

.logo {
	margin: 1rem;
}

nav {
	height: 100%;
	display: flex;
	flex-flow: column;
	justify-content: space-between;
}

nav ul {
	list-style: none;
	display: flex;
	flex-flow: column;
	gap: 0.25rem;
}

nav a.links {
	justify-content: space-between;
}

nav a,
nav button {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.625rem 0.875rem;
	font-size: 1.25rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	border-radius: 4px;
	transition: 
		color 0.5 ease-in-out,
		background-color 0.5 ease-in-out;
}

nav a.active,
nav button.active,
nav a:focus,
nav button:focus {
	outline: none;
	color: var(--sidebar-text);
	background-color: var(--sidebar-hover-active-focus);
}
nav a:hover{
	color: var(--sidebar-link-hover);
	background-color: var(--sidebar-hover-active-focus);
}

nav a span,
nav button span {
	font-size: 0.875rem;
}

/* Скрываем подменю */
nav .dropdown-menu{
    display: none;
    background: var(--sidebar-hover-active-focus);
    padding-left: 0.5rem;
    border-radius: 0 0 4px 4px;
}

/* Класс, который будет добавляться при открытии */
nav .dropdown.open .dropdown-menu {
    display: block;
}

nav .theme-switcher {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

nav .theme-switcher i {
	font-size: 1.25rem;
}

.sidebar-btn{
	width: 48px;
	height: 48px;
	border-radius: 100%;
	align-items: center;
	font-size: 1.1rem;
}
/* SIDEBAR */


/* HEADER */
header,
header .header-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
  	gap: 10px;
}

header .header-title {
	font-size: 14pt;
}

header .header-title a {
	color: var(--body-text);
}

header .header-title a:hover {
	color: var(--body-link-hover);
}

header .header-button {

}

.btn {
	font-size: 0.8rem;
	padding: 0 15px;
	display: flex;
	align-items: center;
	color: var(--header-button-color);
	background-color: var(--header-button-bg);
	letter-spacing: 0px;
	font-weight: 600;
	transition: all 0s ease-out;
}

.btn-down {
  display: flex;
  align-items: center;
}
.btn-down a{
  display: flex;
  align-items: center;
}

.btn-down i, .btn-vk i {
	font-size: 1.2rem;
	padding-right: 0.5rem;
}

.btn-vk a {
	display: flex;
	align-items: center;
	font-weight: 600;
}

.btn-down:hover, .btn-vk:hover {
	color: var(--header-button-hover);
}

hr{
	margin: 1rem 20px;
	border-top: 1px solid #e1e4e5;
}

/* HEADER */


/* MAIN */
	/*** text ***/
	section{
		gap: 20px;
  		display: flex;
  		flex-direction: column;
	}

	p{
		line-height: 1.8;
	}
	.span-bg{
		background: var(--span-bg);
		font-weight: 400;
		padding: 0px 2px;
		border-radius: 4px;
		color: var(--span-color);
	}
	/*** text ***/


	/*** slider img ***/
	.slider {
		position: relative;
		max-width: 800px;
		margin: 0 auto;
		overflow: hidden;         /* скрываем всё за пределами контейнера */
	}

	.slider-wrapper {
		display: flex;
		transition: transform 0.5s ease; /* плавный переход */
	}

	.slide {
		flex: 0 0 100%;           /* каждый слайд занимает всю ширину контейнера */
		box-sizing: border-box;
	}

	.slide img {
		width: 100%;
		height: auto;
		display: block;
	}

	/* Кнопки */
	.slider-btn {
		position: absolute;
		display: flex;
		align-items: center;
		top: 45%;
		background: rgba(0,0,0,0.5);
		color: white;
		border: none;
		font-size: 18px;
		padding: 10px 15px;
	 	cursor: pointer;
		z-index: 10;
	}

	.slider-btn:hover {
		background: rgba(0,0,0,0.8);
	}

	.prev {
		left: 10px;
	}
	.next {
		right: 10px;
	}

	/* Индикаторы */
	.dots-container {
		position: absolute;
		bottom: 15px;
		left: 50%;
		transform: translateX(-50%);
		display: flex;
		gap: 10px;
		z-index: 10;
	}

	.dot {
		width: 12px;
		height: 12px;
		background-color: rgba(255,255,255,0.5);
		border-radius: 50%;
		cursor: pointer;
		transition: background 0.3s;
	}

	.dot.active {
		background-color: white;
	}
	/*** slider img ***/


	/*** admonition ***/
	section .admonition {
		background-color: var(--section-admonition-list-1);
		box-shadow: 0px 3px 9px 0px rgb(0 0 0 / 29%);
	}

	section .admonition-title-1, .admonition-title-2 {
		border-radius: 4px 4px 0 0;
		font-weight: 600;
		font-size: 12pt;
		line-height: 120%;
		padding: 6px 16px;
		margin: 0;
		display: flex;
		align-items: center;
	}

	section .admonition-title-1 {
		background: var(--section-admonition-title-1);
		color: #fff;
	}

	section .admonition-list-1 {
		background-color: var(--section-admonition-list-1);
	}

	section .admonition-title-2 {
		background: var(--section-admonition-title-2);
		color: #fff;
	}

	section .admonition-list-2 {
		background-color: var(--section-admonition-list-2);
	}

	section .admonition-title-1 i, .admonition-title-2 i {
		margin-right: 5px;
		font-size: 18px;
	}

	section .admonition-list-1, .admonition-list-2 {
		padding-left: 20px;
		list-style: none;
	}
	section .admonition-list-2 a, li {
		color: var(--body-link);
	}
	section .admonition-list-2 a:hover {
		color: var(--body-link-hover);
	}

	section .admonition ul li {
		margin-top: 5px;
		margin-bottom: 5px;
	}
	.admonition-list-1 i, .admonition-list-2 i{
		font-size: 18px;
	}
	/*** admonition ***/

	/*.get-list {
		margin-bottom: 20px;
	}*/

	.get-list li {
		padding-bottom: 15px;
		margin-left: 20px;
		list-style: disc;
		color: var(--body-text);
	}

	section .link-download {
		color: var(--body-link);
	}

	section .link-download:hover {
		color: var(--body-link-hover);
	}

	section .p_link {
		background-color: var(--link-download);
		padding: 8px;
		text-align: center;
		border-bottom: 4px solid cornflowerblue;
		border-radius: 4px;
	}
/* MAIN */


/* FOOTER */
footer,
footer .footer-static_box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
  	gap: 10px;
}

footer .footer-title {
	font-size: 9pt;
}

footer .footer-copyright a:hover {
	color: var(--body-link-hover);
}
/* FOOTER */

.img, .img-box, .img-box-cs{
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.button-download{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.charact{
	display: flex;
}

.fs-14{font-size: 14px}


.ul-disc li{
padding-top: 5px;
padding-bottom: 5px;
}

/* Стили для сетки изображений */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
	padding: 20px;
}
.gallery-item {
	cursor: pointer;
	overflow: hidden;
	border-radius: 4px;
}
.gallery-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.2s;
}
.gallery-item img:hover {
    transform: scale(1.05);
}

/* Модальное окно (overlay) */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
	z-index: 1000;
}
.modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Увеличенное изображение */
.modal-content {
	max-width: 90%;
	max-height: 90%;
	border: 3px solid white;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Кнопка закрытия (опционально) */
.close-btn {
	position: absolute;
	top: 20px;
	right: 40px;
	color: white;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	user-select: none;
	z-index: 10000;
}
.close-btn:hover {
	color: #ccc;
}

.otstup li{
	padding: 5px;
}


/*.img-box{
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
	
}
*/
.img-box-cs img {
  width: 350px;
}

.img-box img{
	width: 500px;
}


/* Типография
   ==========================================================================
*/
h1, h2, h3, h4, h5, h6 {
	font-weight: bold;
	line-height: 1.1;
	color: var(--heading);
}

.h1 {font-size: 32px; line-height: 110%; margin: 2.1rem 0 1.68rem 0;}     /* размер шрифта 2rem */
.h2 {font-size: 24px; line-height: 110%; margin: 1.78rem 0 1.424rem 0;}   /* размер шрифта 1.5rem */
.h3 {font-size: 19px; line-height: 110%; margin: 1.46rem 0 1.168rem 0;}   /* размер шрифта 1.1875rem */
.h4 {font-size: 16px; line-height: 110%; margin: 1.14rem 0 0.912rem 0;}   /* размер шрифта 1rem */
.h5 {font-size: 14px; line-height: 110%; margin: 0.82rem 0 0.656rem 0;}   /* размер шрифта 0.875rem */
.h6 {font-size: 12px; line-height: 110%; margin: 0.5rem 0 0.4rem 0;}   	  /* размер шрифта 0.75rem */


/* Border line
   ==========================================================================
*/
.border{border: 1px solid #bdbdbd;}
.border-top{border-top: 1px solid #bdbdbd;}
.border-bottom{border-bottom: 1px solid #bdbdbd;}
.border-left{border-left: 1px solid #bdbdbd;}
.border-right{border-right: 1px solid #bdbdbd;}

.border-radius{border-radius: 5px}
/* Border line
   ==========================================================================
*/


/* Video - Img
   ==========================================================================
*/
img, svg,
.responsive-img,
video.responsive-video {
  max-width: 100%;
  height: auto;
}
/* Video - Img
   ==========================================================================
*/


/* Blockquote
   ==========================================================================
*/
blockquote {
	margin: 0;
	color: var(--body-text);
	padding: 30px 30px 30px 60px;
	position: relative;
	line-height: 24px;
	margin-top: 24px;
  	margin-bottom: 24px;
}

blockquote::before {
  content: "\201C";
  font-family: Arial;
  color: #CBDDE7;
  font-size: 70px;
  position: absolute;
  left: 15px;
  top: 5px;
}
.blockquote-normal {
	border-left: 8px solid var(--blockquote-border);
	background: var(--blockquote-bg);
}
/* Blockquote
   ==========================================================================
*/


/* Format text
   ==========================================================================
*/
.ul-disc {list-style:	disc;}
.ul-number {list-style: linear-gradient;}	
.ul-letters {list-style: lower-alpha;}

.uppercase {text-transform: uppercase;}
.italic {font-style: italic;}

.light{font-weight: 300;}
.regular{font-weight: 400;}
.medium{font-weight: 600;}
.bold{font-weight: 700;}

/* Format text
   ==========================================================================
*/


/* Отступы внешние и внутринее
   ==========================================================================
*/
.no-padding {padding: 0 !important;}
.no-margin {margin: 0 !important;}

.margin-10{margin: 10px;}
.margin-20{margin: 20px;}
.margin-30{margin: 30px;}
.margin-40{margin: 40px;}
.margin-50{margin: 50px;}
.mb-10{margin-bottom: 10px}
.mb-20{margin-bottom: 20px}
.mb-30{margin-bottom: 30px}
.mb-40{margin-bottom: 40px}
.mb-50{margin-bottom: 50px}

.mt-10{margin-top: 10px}
.mt-20{margin-top: 20px}
.mt-30{margin-top: 30px}
.mt-40{margin-top: 40px}
.mt-50{margin-top: 50px}

.ml-10{margin-left: 10px}
.ml-20{margin-left: 20px}
.ml-30{margin-left: 30px}
.ml-40{margin-left: 40px}
.ml-50{margin-left: 50px}

.mr-10{margin-right: 10px}
.mr-20{margin-right: 20px}
.mr-30{margin-right: 30px}
.mr-40{margin-right: 40px}
.mr-50{margin-right: 50px}

.padding-10{padding: 10px;}
.padding-20{padding: 20px;}
.padding-30{padding: 30px;}
.padding-40{padding: 40px;}
.padding-50{padding: 50px;}
.pb-05{padding-bottom: 5px}
.pb-10{padding-bottom: 10px}
.pb-20{padding-bottom: 20px}
.pb-30{padding-bottom: 30px}
.pb-40{padding-bottom: 40px}
.pb-50{padding-bottom: 50px}

.pt-05{padding-top: 5px}
.pt-10{padding-top: 10px}
.pt-20{padding-top: 20px}
.pt-30{padding-top: 30px}
.pt-40{padding-top: 40px}
.pt-50{padding-top: 50px}

.pl-10{padding-left: 10px}
.pl-20{padding-left: 20px}
.pl-30{padding-left: 30px}
.pl-40{padding-left: 40px}
.pl-50{padding-left: 50px}

.pr-10{padding-right: 10px}
.pr-20{padding-right: 20px}
.pr-30{padding-right: 30px}
.pr-40{padding-right: 40px}
.pr-50{padding-right: 50px}
/* Отступы внешние и внутринее
   ==========================================================================
*/