body {  
  font-family: "Arial", sans-serif;  
  font-size: 16px;  
  line-height: 1.5;  
  margin: 2em 3em;  
  color: #000;  
  background: #fff;  
}

a {
	text-decoration: none;
	color: #007bff;
/*
	margin-right: 10px;
*/
}
a:hover {
	text-decoration: underline;
}

.wrapper {  
  display: flex;  
  max-width: 960px;  
  margin: 0 auto;  
  gap: 3em; /* расстояние между колонками */  
}  

nav {  
  width: 250px;  
  border-right: 2px solid #000;  
  padding-right: 2em;  
  box-sizing: border-box;  
  color: #000;  
  display: flex;  
  flex-direction: column;  
  align-items: flex-end; /* выравнивание по правому краю */  
  text-align: right; /* текст по правому краю */  
}  

nav header {  
  margin-bottom: 2em;  
  width: 100%;  
}  

nav header img {  
  height: 80px;  
  margin-bottom: 2em;  
  display: block;  
  margin-left: auto; /* сдвигает картинку вправо */ 
}  

nav header h1 {  
  font-size: 22px;  
  font-weight: bold;  
  color: #ff2a2a;  
  margin-bottom: 0.5em;  
}  

nav header span {  
  font-style: italic;  
  color: #555;  
  font-size: 16px;  
  display: block;  
}  

nav ul {  
  list-style: none;  
  padding-left: 0;  
  margin: 0;  
  width: 100%;
  font-size: 20px;
}  

nav li {  
  margin-bottom: 0.4em; /* уменьшенный интервал между ссылками */  
}  

nav a {  
  text-decoration: none;
  color: #000;  
  font-weight: normal;  
  display: block;  
}  

nav a:hover {  
  text-decoration: underline;  
}  

nav a.active {  
  font-weight: bold;  
  text-decoration: underline;  
}  

main {  
  flex: 1;  
  padding-left: 0;  
  box-sizing: border-box;  
}

main h1 {
    font-size: 22px;
    font-weight: normal;
}

main h2 {
    font-size: 18px;
    font-weight: normal;
}

main img {
  max-width: 100%;
  height: auto;
  display: block; /* либо inline-block */
  vertical-align: middle;
}

.breadcrumbs {
  font-size: 13px;  
  font-style: italic;  
  margin-bottom: 1em;
  list-style: none;
  padding: 0;
}

.breadcrumbs li {
  float: left;
  margin-right: 0.5em; 
}  

.navLinks {  
  font-size: 13px;
  list-style: none;
  padding: 0;
}

.navLinks li {  
  margin-top: 1em;
}  

footer {  
  margin-top: 3em;  
  font-size: 13px;  
  color: #555;  
  border-top: 1px solid #ccc;  
  padding-top: 0.5em;  
  max-width: 960px;  
  margin-left: auto;  
  margin-right: auto;  
}

footer img {
  vertical-align: middle;
}

/*margin-right: 10px;
.login-container {
    padding: 20px;
    max-width: 400px;
    width: 100%;
}
*/

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    display: block;
    color: #333; /* Цвет текста для меток */
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none; /* Убираем рамку */
    border-bottom: 1px solid #333; /* Нижняя граница */
    background-color: transparent; /* Прозрачный фон */
    color: #333; /* Цвет текста */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea {
    outline: none; /* Убираем обводку при фокусе */
    border-bottom: 1px solid #555; /* Темнее нижняя граница при фокусе */
}

button {
    width: 100%;
    padding: 10px;
    background-color: #333; /* Темный фон для кнопки */
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #555; /* Темнее при наведении */
}

.success {
    color: #5aa02c; /* Красный цвет для ошибок */
    margin-top: 10px;
    text-align: center;
}

.error {
    color: #ff2a2a; /* Красный цвет для ошибок */
    margin-top: 10px;
    text-align: center;
}


.taxon_list ul {
	list-style-type: none;
	padding: 0;
}
.taxon_list li {
	display: flex; /* Используем Flexbox для выравнивания */
	flex-direction: row; /* По умолчанию - в строку */
	justify-content: space-between; /* Распределяем элементы по обеим сторонам */
	padding: 10px 0;
	border-bottom: 1px solid #ddd;
}
.taxon_list li:last-child {
	border-bottom: none;
}

.taxon_list a {
	margin-right: 10px;
}

.taxon_list a:last-child {
	margin-right: 0;
}


.taxon_list .links {
	display: flex; /* Ссылки в строку */
	flex-direction: row; /* По умолчанию - в строку */
}
.taxon_list .pagination {
	display: flex; /* Используем Flexbox для пагинации */
	justify-content: space-between; /* Ссылки по краям */
	align-items: center; /* Центрируем по вертикали */
	margin-top: 20px;
	padding: 10px 0; /* Отступы сверху и снизу */
}
.taxon_list .page-info {
	flex-grow: 1; /* Занимает доступное пространство */
	text-align: center; /* Центрируем текст */
}


.stats {
    display: flex;
    flex-direction: column; /* Вертикальное расположение */
}

.stat-item {
    display: flex;
    justify-content: space-between; /* Распределяем элементы по краям */
    padding: 10px 0;
    border-bottom: 1px solid #ddd; /* Линия-разделитель снизу */
}

.stat-item:last-child {
    border-bottom: none; /* Убираем нижнюю границу у последнего элемента */
}

/*
.stat-label {
    font-weight: bold; /* Жирный текст для меток */
}
*/

.stat-value {
    color: #333; /* Цвет для значений */
}


@media (max-width: 700px) {
	body {
		margin: 0;
	}
  .wrapper {  
    flex-direction: column;  
    margin: 1em;  
    gap: 1em;  
  }  

  main {  
    padding-left: 0;  
    margin-bottom: 1em;  
  }  

  nav {  
    width: 100%;  
    border-right: none;  
    border-bottom: 2px solid #000;  
    padding-right: 0;
    padding-bottom: 2em; 
    text-align: center;  
    align-items: center;  
  }

  nav header img {  
    display: block;  
    margin: 0 auto; /* выравнивание лого по центру на узком экране */
    width: 100%;
    height: auto;
  }

	 footer {
		margin: 3em 1em 0 1em; 
		text-align: center;
	}

	.breakable {
		display: inline; /* Обязательно установка inline для этой части */
		white-space: nowrap; /* Не позволяем переноситься, пока не достигнута максимальная ширина */
	}

	.taxon_list a {
		margin-right: 5px;
	}
	.taxon_list li {
		flex-direction: column; /* Меняем направление на столбец */
		align-items: flex-start; /* Выровнять по началу */
	}
	.taxon_list .links {
		margin-top: 5px; /* Отступ сверху для ссылок */
	}

/*
	.login-container {
		margin: 0 auto;
	}
*/
}



.list ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease;
  text-transform: uppercase;
}

.list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.list a {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #000;
}

.list .price {
/*
  font-weight: bold;
*/
  margin-bottom: 1em;
  display: block;
  font-size: 20px;
}

.images {
	margin-bottom: 1em;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 700px) {
  .list ul {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .list li {
    padding: 0.8rem;
  }
}
