@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  justify-content: center;
  align-items: center;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 16px;
  scroll-behavior: smooth;
}

.main-background-image {
  background-image: url("/images/pic2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  /*min-height: 70vh;*/
  display: grid;
  place-items: center; /* Центрирует элементы по вертикали и горизонтали */
  padding: 30px 10px;
  text-align: center;
}

.img-logo {
  width: 100px;
  margin-bottom: 20px;
}

.div-mission h1 {
  color: white;
  font-weight: 400;
}

#h1-mission-1 {
  color: #f39c12;
  text-transform: uppercase;
  font-size: clamp(4vw, 2rem, 4rem);
  font-weight: 600;
}

#h1-mission-2 {
  color: white;
  font-size: clamp(2.5vw, 1.2rem, 2.5rem);
  font-weight: 200;
  font-style: italic;
}

/**/
.div-short-block {
  padding: 20px;
  color: #333;
  background-color: #f4f6f6;
  height: auto;
  margin: 10px 0;
  text-align: justify;
}
.div-short-block h3 {
  margin-bottom: 30px;
  font-size: 1.3rem;
  color: #273746;
  text-align: center;
}
.div-short-block span {
  font-size: 1.5rem;
  font-weight: bold;
}
.div-short-block:hover {
  background-color: #d6eaf8;
}
.div-short-block img {
  width: 100px;
}

.h1-header {
  text-align: center;
  margin: 20px 0;
  text-transform: uppercase;
  font-size: 1.3rem;
}

/**/
.div-region {
  font-size: 1rem;
  width: 90vw;
  margin: auto;
}

.grid-container {
  /*place-items: center; /* Центрирует элементы по вертикали и горизонтали */
  margin: 20px 0;
  border: 1px solid #d6dbdf;
  padding: 10px;
  border-radius: 15px;
}

.div-sub-region-img {
  font-size: 1rem;
  display: none;
}

.div-sub-region-img img {
  width: 90vw;
  margin: auto;
  margin: 0 20px 20px 20px;
}

.div-subregion-content h3 {
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 10px;
  text-align: center;
}

.div-subregion-content p {
  color: #666;
  margin: 0;
  text-align: justify;
}
.div-subregion-content p span {
  font-size: 1.3rem;
  font-weight: bold;
}

.float-right {
  text-align: left;
}

/**/
.div-carousel {
  text-align: center;
  margin: auto;
  width: 90vw;
}

/**/
.div-quest {
  max-width: 90vw;
  margin: auto;
}

/**/

.section-useful {
  margin-top: 30px;
  background-color: #1f618d;
  padding: 30px 0;
}

.div-useful {
  text-align: center;
  height: auto;
  margin-bottom: 20px;
}

.div-useful img {
  height: 80px;
  margin: auto;
  margin-bottom: 20px;
}

.div-useful a {
  text-transform: uppercase;
  text-decoration: none;
  color: white;
}

/**/

.div-footer {
  margin: auto;
  padding: 30px 0;
  height: auto;
  color: white;
  background-color: #273746;
  margin-top: 30px;
  color: #aeb6bf;
}

.div-contacts {
  color: #aeb6bf;
}
.div-contacts p {
  font-size: 1rem;
}

.div-about {
  color: #aeb6bf;
}
.div-about h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

#h1-copyright {
  margin-top: 30px;
  text-align: center;
  font-size: 1rem;
  color: #85929e;
}

/* other pages */

.background-image {
  background-image: url("/images/fon2.jpg");
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  /*min-height: 70vh;*/
  display: grid;
  place-items: center; /* Центрирует элементы по вертикали и горизонтали */
  padding: 50px 0;
  text-align: center;
}

.background-image h1 {
  color: white;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.div-page-about {
  margin: 0 10px;
  margin-top: 30px;
}

.div-page-about {
  text-align: justify;
  font-size: 1rem;
}

.div-page-about li {
  margin: 10px 0;
}

table.table-projects {
  width: auto;
  margin: auto;
  margin-top: 10px;
  margin-bottom: 30px;
  margin-left: 10px;
  margin-right: 10px;
  font-size: 1.1rem;
}

table.table-projects th {
  width: 40%;
  color: #666;
  font-weight: 400;
  padding: 5px;
  vertical-align: top;
  font-size: 0.8rem;
}

table.table-projects td {
  padding: 5px;
  vertical-align: top;
  color: #000;
}

.td-header {
  font-size: 1.3rem;
  font-weight: 500;
  color: #2980b9;
}

/* заглушка */
.div-stub {
  text-align: center;
  padding: 30px 0;
  margin: 0 10px;
}

.div-stub h1 {
  font-size: 1.5rem;
}

.div-stub h3 {
  font-size: 1rem;
}

.div-stub img {
  width: 90vw;
  margin: auto;
}

/* Руководство */

.div-management {
  margin: 10px;
  padding: 20px;
  background-color: #F4F6F6;
}

.div-management-photo {
  margin: 0;
}

.div-management-photo img {
  width: 100%;
}

.div-management-info {
  padding: 10px;
}

.div-management-info h1 {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.div-management-info h3 {
  font-size: 1.2rem;
}

.div-management-info p {
  text-align: justify;
}

.div-management-info ul {
  display: none;
}

.div-management-info ul li {
  text-align: justify;
  padding: 5px 0;
}

button.btn-image {
  display: flex; /* Использование Flexbox */
  align-items: center; /* Вертикальное центрирование */
  justify-content: flex-start; /* Горизонтальное выравнивание по левому краю */  
  background-color: transparent;
  border: none;
  color: #2E86C1;
}

button.btn-image img {
  margin-right: 5px;
}

.div-socialmedia {
  align-items: center;
  align-content: center;
  margin-bottom: 20px;
}

.div-socialmedia a {
  margin: 10px;
}
.div-socialmedia a > img {
  width:32px;
}

/* news */

.div-news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* расстояние между элементами */
  padding: 10px;
}

#p-news-date {
  margin: 0;
  color: #999;
}

.div-news-edit {
  display: grid;
  grid-template-columns: auto 1fr auto;
  margin-bottom: 0;
}

.div-news-item {
  flex: 1 1 calc(50% - 20px); /* ширина блока с учетом отступов */
  box-sizing: border-box;
  background-color: #f0f0f0; /* для наглядности */
  padding: 10px;
  margin-bottom: 10px; /* отступ снизу для всех элементов */
}

.div-news-item a {
  text-decoration: none;
  color: #333;
}

.div-news-item a > img {
  display: none;
}

.div-news-item a:hover {  
  color: #333;
}

.div-news-item h1 {
  font-size: 1.5rem;
}

.div-news-item h3 {
  font-size: 1.2rem;
}

.div-news-item-img img {
  width: 100vw;
}

.div-news-block {
  margin: 0;
  padding: 10px;
}

.div-news-block h1 {
  margin: 0;
  margin-bottom: 10px;
}

.div-news-block h3 {
  margin: 0;
  margin-bottom: 20px;
}

.div-news-block-img img {
  width: 100%;
}

.div-news-block span > p {
  margin: 10px 0;
  font-size: 1.2rem;
}

.div-news-multipages {
  background-color: #EAEDED;
  padding: 5px;
  text-align: right;
}

.div-news-multipages a {
  margin: 5px;
  margin-right: 10px;
}

.div-nonews {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-content: center;
  align-items: center;
  height: 24px;
}

.div-nonews h1 {
  font-size: 1.5rem;
  margin: 0;
}

.div-cnahhel-news {
  margin-bottom: 20px;
  border: 1px solid whitesmoke;
  padding: 10px;
  background-color: whitesmoke;
  max-width: 100vw;
}

.div-cnahhel-news h2 {
  padding:0;
}

.div-cnahhel-news p {
  font-size: 1em;
  color: #666;
}

.div-cnahhel-news a {
  display: inline-block;
  margin-top: 10px;
  color: #007bff;
  text-decoration: none;
}

.div-cnahhel-news img {
  width: 100%; /* Устанавливаем ширину изображения на 100% ширины родительского элемента */
  height: auto; /* Сохраняем пропорции изображения */
  max-width: 100%; /* Избегаем растягивания изображения больше, чем его оригинальный размер */
  display: block; /* Убираем нижний отступ (whitespace) под изображением, если оно является inline */
}

/**/
.div-foodsecurity {
  font-size: 1rem;
  padding: 10px;
}

.div-foodsecurity img {
  width: 90vw;
}

.div-foodsecurity-header div {
  padding: 5px;
}

.div-foodsecurity-header img {
  width: 100%;
}

.div-foodsecurity p {
  font-size: 1.2rem;
}

.div-foodsecurity b {
  font-weight: 500;
}

.div-foodsecurity li {
  font-size: 1.2rem;
}

.div-foodsecurity h2 {
  font-size: 1.5rem;
}

.div-foods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Расстояние между элементами */
}

.div-foods > div img {
  float: left;
  height: 36px;
  width: auto;
  margin-right: 15px;
  opacity: 0.6;
}

.div-foods > div {
  flex: 1 1 calc(50% - 10px); /* Ширина элемента (с учетом отступов) */
  box-sizing: border-box; /* Учет padding и border */
  margin-bottom: 10px; /* Отступ снизу, чтобы элементы располагались ровно */
  padding: 10px;
  border: 1px solid #ccc;
}

.div-foods > div h1 {
  font-size: 1.2rem;
  margin: 0;
}

.div-foods > div p {
  font-size: 1rem;
  margin: 0;
}

/* play */
.div-play {
  margin-top: 10px;
  border: 1px solid #000;
  padding: 5px;
  width: auto;
  display: grid;
  grid-template-columns: auto auto;
  width: 110px;
  background-color: white;
}

.div-play img {
  height: 32px;
  width: 32px;
}

.div-play button {
  border: none;
  background-color: transparent;
}