@charset "UTF-8";
/* Основные стили */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f9fc;
    margin: 0;
    padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* Шапка сайта */
header {
    background: linear-gradient(to right, #0077b6, #0096c7);
    color: white;
    padding: 30px 0 0 0;
    text-align: center;
}

.header-content span {
    font-size: 30px;
    font-weight: bold;
}

.main-navigation {
    background: linear-gradient(to right, #0069a1, #0089b5);
    padding: 10px 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Тень для чёткости */
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    display: flex;
	flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0;
}

.main-navigation ul li {
    display: inline;
}

.main-navigation ul li a {
    text-decoration: none;
    color: #0077b6;
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 5px; /* Скруглённые кнопки */
    font-weight: bold;
    transition: all 0.3s ease;
}

.main-navigation ul li a:hover {
    background: rgba(255, 255, 255, 0.8);
}

.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    max-width: 1200px; /* Ограничение ширины контейнера */
    margin: 20px auto;
}

main, aside {
    min-height: 640px; /* Чтобы не было схлопывания при малом контенте */
}


/* Основной контент */
main {
	width: 75%;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #0069a1;
	border-bottom: 2px solid #00b4d8;
    padding-bottom: 15px;
}

h2, h3, h4 {
    color: #0069a1;
}

.b-section {
      padding: 12px 24px;
      margin-bottom: 15px;	  
	  border-radius: 8px;
	  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px;
    }

/* Циклические цвета для блоков */
.b-section:nth-of-type(4n+1) {
  background-color: #fffbdc; 
  border-left: 2px solid #ffeb4d;
}

.b-section:nth-of-type(4n+2) {
  background-color: #f7f7f7; 
  border-left: 2px solid #7681d6;
}

.b-section:nth-of-type(4n+3) {
  background-color: #fff5d9; 
  border-left: 2px solid #ffb351;
}

.b-section:nth-of-type(4n+4) {
  background-color: #f0fef1; 
  border-left: 2px solid #5bc762;
}

p {
	line-height: 1.6;
}

/* Оформление детализирующих списков */
.extol {
    padding-left: 20px;
}

.extol h3, .extol h4 {
    background-color: rgba(231, 244, 255, 0.8);
    color: rgb(0, 105, 161);
    font-size: 1.2em;
    margin-bottom: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 3px;
    padding: 10px;
    border-radius: 5px;
    border-left: 2px solid #0077b6;
}

.extol li {
    background: #f9feff;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px;
    padding: 15px;
    border-left: 2px solid #0077b6;
    margin-bottom: 15px;
    border-radius: 5px;
}

main li {
	margin-bottom: 15px;
}

/* Оглавление статей */
.table-of-contents {
    background: #f8f9fa;
	border-left: 5px solid #0077b6;
    border-radius: 8px;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.table-of-contents .toc-title {
    color: #2c3e50;
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
	font-weight: bold;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin: 0.5rem 0;
    line-height: 1.4;
}

.toc-item a {
    color: #34495e;
    text-decoration: none;
    transition: color 0.2s;
	
}

.toc-item a:hover {
    color: #3498db;
}

/* Вложенность для уровней */
.toc-item.level-3 { padding-left: 1rem; }
.toc-item.level-4 { padding-left: 2rem; }

/* Боковая панель */
.sidebar {
    width: 25%;
	min-width: 220px;
    margin: 20px auto;
    padding: 51px 15px 15px 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/*
.sidebar_title {
	display:block;
	font-size: 24px;
	font-weight: bold;
    color: #0069a1;
    text-align: center;
	border-bottom: 2px solid #00b4d8;
    padding-bottom: 15px;
}*/

.sidebar img {
    display: block;
    margin: 0 auto;
}

.image-container {
    position: relative;
	max-width: 277px;
	margin: 0 auto;
}

.sidebar img {
    width: 100%;
    height: auto;
    display: block;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 123, 255, 0.6); /* голубой цвет с прозрачностью */
    color: white;
    text-align: center;
    padding: 10px 0;
}

.author-name {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.author-link {
    display: inline-block;
    margin-top: 5px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.author-link:hover {
    text-decoration: underline;
}

/*
.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #0077b6;
    display: block;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar ul li a:hover {
    background: #e0f7fa;
}
*/

/* Кнопка "Наверх" */
#toTopBtn {
  position: fixed;
  bottom: 60px;
  /* Для экранов, где ширина больше 1200px:
     (100vw - 1200px) — свободное пространство по горизонтали,
     делим на 2, чтобы получить отступ от правого края контентной области,
     прибавляем 20px для внутреннего отступа */
  right: calc((100vw - 1200px) / 2 + 20px);
  z-index: 1000;
  background-color: #0077b6;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  display: none;
  transition: background-color 0.3s, transform 0.2s;
}

#toTopBtn:hover {
  background-color: #005f94;
  transform: translateY(-2px);
}

@media (max-width: 1200px) {
  #toTopBtn {
    right: 20px; /* фиксированный отступ от правого края экрана */
  }
}



/* Подвал */
footer {
    text-align: center;
    background: #0077b6;
    color: white;
    padding: 10px;
    margin-top: 20px;
}

/* Дополнительные стили для украшения */

/* Сдвигаем h3 на 15px вправо, кроме тех, что внутри .relocation-stage 
main h3:not(.relocation-stage h3) {
    margin-left: 15px;
}*/

/* Стили для списков */
.pretty-list {
    padding-left: 20px;
    margin: 24px 0;
}

.pretty-list li {
    background: #f0f8ff;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 2px solid #0077b6;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    line-height: 1.6;
}

/* Улучшение заголовков для абзацев */
main h3, main h4 {
	background-color: rgba(231, 244, 255, 0.8);
    color: rgb(0, 105, 161);
    font-size: 1.2em;
    margin-bottom: 24px; 
    box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 3px;
    padding: 10px;
    border-radius: 5px;
    border-left: 2px solid #0077b6;
}

/* Отступы между абзацами */
main p + p {
    margin-top: 15px;
}

/* Дополнительное улучшение для ссылок в тексте */
main a {
    color: #0071B3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

main a:hover {
    color: #00b4d8;
}

/* Общие стили для таблиц */
table {
    width: 100%;
    /* border-collapse: collapse;  Убирает двойные границы между ячейками */
	border-spacing: 1px;
    margin: 20px 0;
    border: 1px solid #0077b6; /* Обычная граница для всей таблицы */
}

/* Стили для заголовков */
th {
    background-color: #0077b6; /* Цвет фона заголовков */
    color: white; /* Цвет текста в заголовке */
    font-weight: bold; /* Жирный шрифт */
    text-align: center; /* Центрирование текста в заголовке */
    padding: 12px 15px; /* Отступы в ячейках заголовка */
    border-bottom: 3px solid #004c74; /* Более выраженная нижняя граница для заголовков */
}

/* Стили для ячеек */
td {
    padding: 12px 15px; /* Отступы в ячейках */
	font-size: 16px;
	line-height: 1.6;
    text-align: left; /* Выравнивание текста по левому краю */
    border-bottom: 1px solid #ddd; /* Линия между строками */
	border: 1px solid #ddd;
    /* background-color: #f9f9f9;  Цвет фона ячеек */
}

/* Чередование фона строк */
tbody tr:nth-child(even) {
    background-color: #ffffff; /* Чередование фонов строк */
}
tbody tr:nth-child(odd) {
    background-color: #e7f4ffcc; /* Чередование фонов строк */
}

/* Подсветка строки при наведении */
tbody tr:hover {
    background-color: #e0f7fa; /* Подсветка строки при наведении */
}

tbody tr {
    transition: background-color 0.5s ease;
}

/* Стили для ссылок в таблице */
td a {
    color: #0077b6;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

td a:hover {
    background-color: #0077b6;
    color: white;
}

/* Оформление нижней границы таблицы */
table {
    border-bottom: 2px solid #0077b6; /* Более выраженная нижняя граница таблицы */
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Добавим тень для выраженности */
}

/* Общие стили для формы */
form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Arial', sans-serif;
}

/* Стили для label */
form label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
    font-weight: bold;
}

/* Стили для текстовых полей и textarea */
form input[type="text"], form textarea {
    width: 90%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
}

/* Стили для textarea */
form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Стили при фокусе на поля ввода */
form input[type="text"]:focus, form textarea:focus {
    border-color: #0077b6; /* Подсвечиваем поле синим цветом */
    outline: none;
}

/* Стили для кнопки */
form button {
    padding: 12px 25px;
    background-color: #0077b6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Стили для кнопки при наведении */
form button:hover {
    background-color: #005f8c; /* Темнее при наведении */
}

/* Дополнительное оформление для ошибки или подсказки */
form .error {
    color: #ff0000;
    font-size: 12px;
    margin-bottom: 10px;
}

form .hint {
    font-size: 12px;
    color: #666;
}

@media (max-width: 960px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center; /* Центрируем элементы по горизонтали */
    }
	main {
		min-height: 100%;
    }
    .sidebar {
        width: 75%; /* Растягиваем сайдбар на всю ширину */
		min-height: 100%;
    }
}

@media (max-width: 672px) {
    .main-navigation ul li a {
	padding: 6px 10px;
	}
}