html, body {
	font-family: 'Arial';
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
	color: #444;
}

a {
	color: #0059b2;
	text-decoration: none;
}
a:hover {
	color: #CC0000;
	text-decoration: underline;
}

img {max-width: 100%; height: auto;}

img.img-article-left {
	max-width: 100%;
	height: auto;
	float: left;
	padding: 0 10px 10px 0;
}

img.img-article-left.thumb {
	max-width: 150px;
	height: auto;
}

p {
    margin-bottom: 20px; /* Устанавливаем отступ между абзацами */
    text-indent: 0px;
}

p.link-read-post {
	text-align: right;
}
p.link-read-post a {
	padding: 10px;
	min-width: 100px;
	background: #333671;
	color: #fff;
	text-decoration: none;
}

div.article-panel {
    background: #eee;
    padding: 5px 10px 5px 10px;
    box-sizing: border-box;
    overflow: hidden;
    color: #555;
}
div.article-panel p.first {
    margin: 0;
    float: left;
}
div.article-panel p.last {
    margin: 0;
    float: right;
}

ul.list-articles {
	list-style: none;
	margin: 0;
	padding: 0;
}
ul.list-articles li {
	border-bottom: 1px solid #ccc;
}

.table-page {
    max-width: 1300px; /* Максимальная ширина таблицы */
    margin: 0 auto; /* Центрирование таблицы */
    padding: 20px; /* Внутренний отступ */
    border-collapse: collapse; /* Убираем промежутки между ячейками */
}
.table-page tr {height: 100%;}

.clear {clear: both;}

.header {
	background: #2F4538;
	height: 60px;
}



ul.mainmenu {
	list-style: none;
	margin: 0;
	padding: 0;
	height: 60px;
	color: white;
	font-size: 20px;
	overflow: hidden;
}
ul.mainmenu li {
	float: left;
	margin: 18px 40px 0 30px;
}
ul.mainmenu li.logo {margin: 0;}
ul.mainmenu li.last {float: right;}

ul.mainmenu li a {
	color: white;
	text-decoration: none;
}
ul.mainmenu li a:hover {
	color: #FDA83D;
}

.panelitems {
	text-align: center;
}

ul.langitem {
	list-style: none;
	display: inline-block;
	margin: 30px;
	padding: 0;
	max-width: 300px
}
ul.langitem li {
	margin: 10px 0 0 0;
	width: 100%;
}
ul.langitem li.image {
	margin: 0;
	text-align: center;
	width: 100%;
	height: 250px;
	overflow: hidden;
}
ul.langitem li.descr {
	color: #777;
	height: 170px;
	overflow: hidden;
}
ul.langitem li a {
	color: #fdc073;
	text-decoration: none;
	font-size: 20px;
}
ul.langitem li a:hover {
	color: #FDA83D;
}
div.button {
	background: #3F4137;
	max-width: 200px;
	margin: 0 auto;
	padding: 5px 20px 5px 20px;
	border-radius: 10px;
	font-size: 20px;
}

.table-content {
	width: 100%;
	min-height: 100%;
	height: 100%;
}

.left-chapters {
	margin: 0;
	background: #eee;
	border-right: 1px solid #ccc;
}
.left-chapters ul {
	width: 230px;
	margin: 0;
	padding: 20px 10px 10px 20px;
	list-style: none;
	font-size: 20px;
}
.left-chapters ul li {
	margin: 15px 0 0 0;
	color: #999;
}
.left-chapters ul li.selected {color: #0059b2; }
.left-chapters ul li a {
	color: #444;
	text-decoration: none;
}
.left-chapters ul li a:hover { color: #CC0000; }
.left-chapters ul li.share {margin: 60px 0 0 0;}
.left-chapters ul li.share p {margin: 30px 0 30px 0;}
.left-chapters ul li.share a {
	display: inline-block;
	width: 40px;
	height: 40px;
	margin: 0 20px 0 0;
}
.left-chapters ul li.share a.share-yt {
	width: 100%;
	height: 30px;
	background: url('../images/share_yt.png') no-repeat 0 0
}
.left-chapters ul li.share a.share-yt:hover {
	width: 100%;
	height: 30px;
	background: url('../images/share_yt.png') no-repeat 0 -30px
}

ul.tags-list {
    width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.tags-list li {
	margin: 0;
	padding: 0 0 10px;
    display: inline-block;
}

ul.tags-list li a {
	padding: 5px;
	font-size: 16px;
	border: 1px solid #aaa;
}

.content {
	padding: 5px 10px 10px 10px;
	width: 100%;
	box-sizing: border-box;
}

ul.breadcrumbs {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 20px;
	font-family: Sans-serif, Arial, Tahoma;
}
ul.breadcrumbs li {
	display: inline-block;
}
ul.breadcrumbs li a {
	color: #0059b2;
	text-decoration: none;
}
ul.breadcrumbs li a:hover { color: #CC0000; }
ul.breadcrumbs li:after{
	padding: 0 10px 0 10px;
	content: "\2192";
}
ul.breadcrumbs li.last:after {content: "";}

ul.control {
	margin: 0;
	padding: 60px 0 0 0;
	list-style: none;
	font-family: Sans-serif, Arial, Tahoma;
	font-size: 18px;
	width: 100%;
}
ul.control li {	float: left; padding: 0 0 0 10px;}
ul.control li.first:before {content: "\2190"; padding: 0 10px 0 0;}
ul.control li.last {float: right; padding: 0 40px 0 0;}
ul.control li.last:after {content: "\2192"; padding: 0 0 0 10px;}
ul.control li a { color: #0059b2; text-decoration: none; }
ul.control li a:hover { color: #CC0000; }

ul.content-table {
	margin: 0;
	padding: 60px 0 0 30px;
	list-style: none;
	font-family: Sans-serif, Arial, Tahoma;
	font-size: 28px;
}
ul.content-table li {
	margin: 0 0 40px 0;
}
ul.content-table li a {
	color: #BB5715;
	text-decoration: none;
}
ul.content-table li a:hover {color: #F0711C;}

.content-text {
	margin: 30px 0 0 30px;
	color: #000;
	font-size: 22px;
	font-family: Yandex Sans Display Light;
}
.content-text h1 {font-size: 32px; margin: 0;}

ul.lang-list {
	list-style: none;
	margin: 0;
	padding: 14px 0 0 0;
	background: #3F4137;
	width: 100%;
	height: 50px;
	border-top: 1px solid #959A82;
	box-sizing: border-box;
	font-size: 18px;
	font-family: Sans-serif, Arial, Tahoma;
}
ul.lang-list li {
	display: inline-block;
	margin-left: 40px;
}
ul.lang-list li.selected {color: #fdc073; border-bottom: 1px solid #fdc073;}
ul.lang-list li a {
	color: #eee;
	text-decoration: none;
}
ul.lang-list li a:hover {color: #fdc073;}

.topic-subject .topic-line {
	border-bottom: 1px solid #CC0000;
	margin-top: -16px;
}

.topic-subject .topic-text {
	display: inline-block;
	font-size: 28px;
	color: #777;
	padding: 0 10px 0 10px;
	margin-left: 30px;
	background: #fff;
	font-family: Sans-serif, Arial, Tahoma;
}

.list-topic {
	margin: 40px 0 60px 0;
	font-family: Sans-serif, Arial, Tahoma;
}
.list-topic p {
	margin: 0;
	font-size: 28px;
}
.list-topic ol {
	columns: 2;
	-webkit-columns: 2;
	column-gap: 40px;
}
.list-topic ol li {
	display: list-item;
	margin: 10px 10px 0 0px;
	padding: 0 0 0 10px;
}
.list-topic ol li a {
	color: #0059b2;
	text-decoration: none;
}
.list-topic ol li a:hover {color: #CC0000;}

.highlight {
	max-width: 350px;
	padding: 0 10px 0 10px;
	margin: 0;
	overflow: auto;
	overflow-y: hidden;
	background: #f0f0f0;
}
.highlight p { margin: 0; }
.highlight .block {
	width: 100%;
	margin: 0;
}
.highlight .block p { margin: 0; }

.quote {
	background: url('../images/blockquote.png') no-repeat 0 10px;
	padding: 5px 5px 5px 70px;
	font-family: Sans-serif, Arial, Tahoma;
	font-style: italic;
}

#footer {
	box-sizing: border-box;

	background: #3F4137;
	padding: 5px;
	color: #aaa;
	font-size: 14px;
	font-family: Verdana, Geneva, Arial, Helvetica;
	text-align: left;
	overflow: hidden;
}
#footer a {
	text-decoration: underline;
	color: #aaa;
}

.form-input {
    width: 300px;
    font-size: 16px;
}

.form-label {
    display: inline-block;
    min-width: 150px;
    vertical-align: top;
}

.form-error ul {
    list-style: none;
    padding: 0;
    color: #CC0000;
}

.form-button {
    min-width: 200px;
    font-size: 16px;
}

/*
* Формируем базовый контейнер аккордеона
*/
.accordion {
    width: 100%;
/*
ширина произвольная выбирается
*в зависимости от места размещения
*/
    max-width: 1000px;
    min-height: 0;
    display: block;
/* относительное позиционирование */
    position: relative;

    padding: 0;
    background-color: #fefffa;
    overflow: hidden;
}
/* заголовки панелей аккордеона */
.accordion h2 {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 1px;
    display: block;
    margin: 0;
    padding: 10px 25px;
    cursor: pointer;
    color: #f4f4f4;
    background: #2980b9;
    border-top: 1px solid #3face4;
    border-bottom: 1px solid #2479a5;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Формируем блоки с содерханием */
.msg {
  position: relative;
  background: #f0f1f1;
  font-size: 22px;
  border: 1px solid #ddd;
  overflow: hidden;
  opacity: 1;
  transform: translate(0, 0);
}

/* оформляем параграфы */
.msg p {
  color: #000000;
  font-size: 22px;
  line-height: 20px;
  letter-spacing: 1px;
  padding: 0 20px
}

/* Позаботимся о небольших экранах */
@media (max-width: 550px) {
  .accordion {
    box-sizing: border-box;
    transform: translate(0, 0);
    max-width: 100%;
    min-height: 100%;
    margin: 0;
    left: 0;
  }
}

/* Формируем неупорядоченный список */
.accordion ul {
  list-style: none;
  perspective: 900;
  padding: 0;
  margin: 0;
}

/* Определяем и формируем отдельный элемент списка
 * в который поместим скрытый флажек,
 * заголовок панелей и блок с содержанием
*/
.accordion ul li {
  position: relative;
  padding: 0;
  margin: 0;
}

/* Сформируем  указатель переключения состояния аккордеона */
.accordion ul li i {
  position: absolute;
  transform: translate(-6px, 0);
  margin-top: 16px;
/* расположим указатель на панели заголовка справа */
  right: 25px;
}

/* "Рисуем " сам указатель */
.accordion ul li i:before, .accordion ul li i:after {
  content: "";
  position: absolute;
  background-color: #eee;
  width: 3px;
  height: 9px;
}
/* Добавляем элемент трансформации указателя при переключении */
.accordion ul li i:before {
  transform: translate(-2px, 0) rotate(45deg);
}
.accordion ul li i:after {
  transform: translate(2px, 0) rotate(-45deg);
}

/* Делаем чекбокс скрытым*/
.accordion ul li input[type=checkbox] {
  position: absolute;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
}
/* Когда у флажка установлен checked
 * блок с содержанием скрыт
*/
.accordion ul li input[type=checkbox]:checked ~ div.msg {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  transform: translate(0, 50%);
}
/* А указатель показывает вниз */
.accordion ul li input[type=checkbox]:checked ~ i:before {
  transform: translate(2px, 0) rotate(45deg);
}
.accordion ul li input[type=checkbox]:checked ~ i:after {
  transform: translate(-2px, 0) rotate(-45deg);
}

        .container1 {
            display: flex;
            flex-wrap: wrap;
            gap: 1px; /* Используем gap для отступов между элементами */
        }

        .element1,
        .element2 {
            width: calc(50% - 5px); /* Учитываем отступы в ширине */
            padding: 10px; /* Внутренний отступ для элементов */
            box-sizing: border-box; /* Чтобы padding не увеличивал ширину */
        }

        /* Медиазапрос для узких экранов */
        @media (max-width: 900px) {
            .element1,
            .element2 {
                width: 100%; /* Растягиваем элементы на всю ширину */
            }
        }

.table_catalog {
    border-collapse: collapse; /* Объединение границ */
    border: 1px solid #eee;
    table-layout: fixed;
    width: 100%;
    margin-bottom: 20px;
}

.table_catalog th {
    font-weight: bold;
    padding: 5px;
    background: #efefef;
    border: 1px solid #dddddd;
}

.table_catalog td {
    padding: 5px 10px;
    border: 1px solid #eee;
    text-align: left;
}

.table_catalog tbody tr:nth-child(odd) {
    background: #fff;
}

.table_catalog tbody tr:nth-child(even) {
    background: #F7F7F7;
}


.accordion2 {
    max-width: 1200px; /* Максимальная ширина аккордеона */
    margin: 0 left; /* Центрирование аккордеона */
}

.accordion-item2 {
    margin: 0; /* Убираем отступы между элементами */
    border: 1px solid #ccc;
    border-radius: 0; /* Убираем скругленные углы */
    overflow: hidden;
}

.accordion-header2 {
    background-color: #2980b9;
    color: #f4f4f4;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    position: relative; /* Для размещения псевдоэлемента */
}

.accordion-header2::after {
    content: "";
    position: absolute;
    right: 10px; /* Отступ от правого края */
    top: 50%;
    transform: translateY(-50%) rotate(0deg); /* Начальное состояние */
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s ease; /* Плавный переход для поворота */
    transform-origin: center; /* Центр вращения */
}


.accordion-content2 {
    padding: 10px;
    display: none;
}

.accordion-content2.show {
    display: block;
}

.accordion-item2.active .accordion-header2 {
    background-color: #2980b9;
}

.accordion-item2.active .accordion-header2::after {
    transform: translateY(-50%) rotate(180deg); /* Поворачиваем стрелку на 180 градусов при открытии */
}

.accordion2-title {
    background-color: #003153; /* Тёмно-зелёный фон */
    color: #fff; /* Цвет текста */
    padding: 15px; /* Поля */
    margin: 0; /* Убираем отступы */
}



.container_3 {
    display: flex;
    flex-wrap: wrap;
    gap: 1px; /* Используем gap для отступов между элементами */
}

.element_3_1,
.element_3_2,
.element_3_3,
.element_3_4 {
    width: calc(25% - 5px); /* Учитываем отступы в ширине */
    padding: 10px; /* Внутренний отступ для элементов */
    box-sizing: border-box; /* Чтобы padding не увеличивал ширину */
}

/* Медиазапрос для узких экранов */
@media (max-width: 900px) {
    .element_3_1,
    .element_3_2,
    .element_3_3,
    .element_3_4 {
        width: 100%; /* Растягиваем элементы на всю ширину */
    }
}

.btn {
    padding: 0.5em 1.5em; /* Поля по вертикали и горизонтали */
    background-color: #4cb050; /* Цвет фона */
    color: #fff; /* Белый цвет текста */
    font-size: 0.9em; /* Размер текста */
    border-width: 0; /* Убираем рамку */
    margin-bottom: 1rem; /* Отступ снизу */
    cursor: pointer; /* Меняем курсор на pointer по умолчанию */
}

.btn:hover {
    background-color: #388e3c; /* Тёмно-зелёный цвет при наведении */
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.main-nav {
  display: flex; /* Используем Flexbox для выравнивания */
  justify-content: center; /* Центрируем элементы */
  align-items: center; /* Выравниваем элементы по вертикали */
  background-color: #f0f0f0; /* Пример фона */
  padding: 10px 20px;
}

.logo img {
  height: 40px; /* Пример высоты логотипа */
  padding-right: 50px;
}

.burger {
  display: none; /* Скрываем бургер-меню по умолчанию */
  flex-direction: column;
  cursor: pointer;
}

.line {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
}

/* Стили для навигационных ссылок */
.nav-links {
  display: flex; /* По умолчанию показываем ссылки в строку */
}

/* Убираем ненужные стили для списка, если они есть */
.main-nav ul {
  list-style: none; /* Убираем маркеры списка */
  margin: 0;
  padding: 0;
  display: flex;
}

/* Убираем отступы между кнопками */
.dropdown {
  margin: 0 5px; /* Устанавливаем небольшой отступ между кнопками */
}

.dropbtn {
  background-color: #4CAF50;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
}

/* Остальные стили остаются без изменений */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {background-color: #ddd;}

.dropdown:hover .dropdown-content {display: block;}

.dropdown:hover .dropbtn {background-color: #3e8e41;}


footer {
    background-color: #333; /* Темный фон для подвала */
    color: white;           /* Белый цвет текста */
    text-align: center;
    padding: 10px 0;
}

@media (max-width: 650px) { /* Установите максимальную ширину по вашему усмотрению */
    .table_catalog th:nth-child(n+2),
    .table_catalog td:nth-child(n+2) {
        display: none; /* Скрываем все столбцы, начиная со второго */
    }
  .burger {
    display: flex; /* Показываем бургер-меню на мобильных устройствах */
  }

  .nav-links {
    display: none; /* Скрываем навигационные ссылки по умолчанию */
    flex-direction: column; /* Меняем направление на вертикальное */
    width: 100%; /* Занимаем полную ширину */
    background-color: #f0f0f0; /* Фон меню */
    position: absolute; /* Абсолютное позиционирование */
    top: 60px; /* Располагаем под логотипом */
    left: 0;
    z-index: 1; /* Устанавливаем уровень над другими элементами */
  }

  .nav-links.active {
    display: flex; /* Показываем ссылки при активном состоянии */
  }

}