@import url("//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");
* {
  box-sizing: border-box;
}
.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1390px;
  margin: 0 auto;
  gap: 30px;
}
body {
  background: #9ae3bf12 !important;
  font-family: "Roboto", sans-serif;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden !important;
}
.menu__btn a {
  display: block;
  min-width: max-content;
}
html {
  margin: 0 !important;
}
.post-item {
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.post-item:hover {
  box-shadow: 0px 12px 18px -6px rgba(34, 56, 101, 0.04);
  transform: translateY(-5px);
}

.post .post-thumbnail {
  width: 100%;
  object-fit: cover;
}

.post-content {
  padding: 10px;
}

.post-item h2 {
  font-size: 22px;
  font-family: "Roboto", sans-serif;
  margin: 0;
}

.post-item a,
.menu__link a {
  color: #333;
  text-decoration: none;
}

.post-item a:hover {
  color: blue;
}

.sidebar {
  flex: 1 1 20%;
  margin: 10px;
}
.post-item .post-thumbnail {
  display: block;
  width: 100%;
}

.post-item-link {
  text-decoration: none;
}

.post-item-link h2 {
  color: black;
}

.post-item .post-thumbnail img {
  object-fit: contain;
  width: 100%;
  height: auto;
}

.about-post {
  padding: 24px 18px;
}
.post-description {
  font-size: 18px;
  color: #4c4a4a;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-logo {
  width: 140px;
}

.top-heading-wrapper {
  background-color: #2e7d32;
}

.header-block {
  max-width: 1390px;
  width: 100%;
  margin: 0 auto;
  padding: 6px 0;
}

.bottom-heading-wrapper {
  background: #a8e6cf;
  margin-bottom: 40px;
}

ul,
li {
  padding: 0;
  list-style: none;
  margin: 0;
  text-align: start;
}
.post_page ul,
.post_page li {
  list-style: disc !important;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid;
  outline-offset: -3px;
}

.menu__link {
  min-width: max-content;
}
.header {
  display: flex;
  align-items: center;
}

.menu-submenu {
  background: #ffffff;
  position: relative;
  z-index: 100;
}

.menu__btn,
.menu__link {
  display: flex;
  width: 100%;
  gap: 0.5em;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 300;
  font-family: inherit;
  color: #000000;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background-color 0.2s linear;
}
.menu__btn {
  justify-content: space-between;
}

.menu__link:hover,
.menu__btn:hover,
.menu__btn[aria-expanded="true"] {
  background-color: #ffffff;
}

.menu-submenu .menu__link:hover,
.menu-submenu .menu__btn:hover,
.menu-submenu .menu__btn[aria-expanded="true"] {
  background-color: #26a69a;
}

.menu-submenu .menu__link:focus-visible,
.menu-submenu .menu__btn:focus-visible {
  outline-width: 2px;
  outline-offset: -3px;
  outline-style: solid;
  outline-color: #000000;
}

.menu__btn-icon {
  color: inherit;
  transition: transform 0.1s linear;
}

.menu-submenu .menu__btn-icon {
  transform: rotate(-90deg);
}

.menu__btn[aria-expanded="true"] .menu__btn-icon {
  transform: rotate(180deg);
}

.menu-submenu .menu__btn[aria-expanded="true"] .menu__btn-icon {
  transform: rotate(90deg);
}

.menu__item {
  position: relative;
  min-width: max-width;
}

.menu__link {
  text-decoration: none;
}

a[aria-current="page"] {
  font-weight: 500;
  color: #000000;
}
.menu__btn a {
  color: #000000;
  text-decoration: none;
}
/* Вложенное меню */
.menu .menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-inline-start: 3rem;
  box-shadow: 0px 12px 10px 0px rgba(34, 56, 101, 0.25);
}

/* Первый уровень вложенности */
.enhanced .menu .menu {
  position: absolute;
  top: 110%;
  left: 0;
  padding-inline-start: 0;
}

/* Второй уровень вложенности */
.enhanced .menu .menu .menu {
  top: 0;
  left: 104%;
}

.menu[hidden] {
  display: none;
}
.post_page {
  max-width: 1390px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 30px;
}
.post_page-info {
  background: white;
  padding: 15px 20px;
}
.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination-list {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 10px;
}

.pagination-item {
  display: inline-block;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-item a {
  padding: 10px 15px;
  color: #007bff;
  text-decoration: none;
  transition: background-color 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-numbers {
  background: white;
  border: none;
}

.pagination-item a:hover {
  background-color: #007bff;
  color: white;
}
.page-numbers {
  border: none;
}
.page-numbers svg {
  width: 12px;
  scale: 1.4;
}
.pagination-item a * {
  fill: white;
}
.pagination-item a:hover * {
  fill: white;
}
.pagination-item .current {
  background-color: #007bff;
  color: white;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-thumbnail img {
  width: 100%;
  object-fit: cover;
  margin: 20px 0;
}
.sidebar ul {
  padding: 0;
}

.footer {
  margin-top: 30px;
  padding: 30px 0;
  background: #12232e;
  color: #bbb;
}
.footer a {
  color: white;
}
.footer-block {
  max-width: 1390px;
  width: 100%;
  margin: 0 auto;
}

.container {
  padding: 20px;
  margin: 0 auto;
  max-width: 1390px;
  width: 100%;
  background: white;
}

footer ul {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0;
}
footer ul li a {
  font-weight: 600;
  text-transform: uppercase;
}

footer p {
  margin-bottom: 0;
  padding: 0 20px;
}

.container h1 {
  margin-bottom: 0px;
}

.section-acticle {
  color: #fff;
  padding: 2em;
  margin-bottom: 2em !important;
  background: linear-gradient(#2d4e7f, #26a69a) no-repeat center center;
  background-size: cover;
  border-radius: 0em;
  box-shadow: 4px 4px 0px 0px #333 !important;
}

.section-acticle .text-b {
  font-size: 2em;
  margin: 0;
  padding: 0 0 12px;
  line-height: normal;
  font-weight: 600;
}

.section-acticle .text-sm {
  line-height: normal;
  padding: 0 0 1em;
  margin: 0;
}

.section-acticle .link {
  text-decoration: none;
  background-color: #2d4e7f;
  color: white;
  padding: 10px 20px;
  display: inline-block;
  box-shadow: 3px 3px 0px 0px #333 !important;
}
.another-pub-block-wrapper {
  background: white;
  margin-top: 40px;
}
.another-pub-block {
  max-width: 1390px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;
}

.related-posts ul {
  padding: 0;
}

.container [type="submit"] {
  border-radius: 0;
  background: #2e7d32;
}

.container [type="submit"]:hover {
  background: #a8e6cf;
}

.footer-menu {
  flex-wrap: wrap;
  justify-content: center;
}
.open-mobile {
  display: none;
}
@media (max-width: 900px) {
  .hide-on-mobile {
    display: none;
  }
  .open-mobile svg {
    width: 20px;
    height: 20px;
  }
  .open-mobile {
    display: block;
    width: 20px;
    height: 20px;
  }
  .site-nav {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }
  .header-block {
    padding: 12px 20px !important;
  }
  ul.menu {
    display: none;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.close-mobile {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #333;
}

.m-menu {
  list-style-type: none;
  padding: 30px 20px;
}

.mobile-menu-item {
  margin: 10px 0;
}

.m-menu a,
.mobile-menu__link {
  width: 100%;
  display: block;
  background: #2e7d32;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 5px;
  text-decoration: none; /* Убираем подчеркивание для ссылок */
}

.mobile-menu__item,
.mobile-menu__child-item {
  margin: 10px 0;
}

.m-menu .menu__btn a {
  color: #fff !important;
}

.fix-form br {
  display: none;
}

@media (max-width: 1400px) {
  .post-list,
  .post_page {
    padding: 0 20px;
  }

  .header-block {
    padding: 6px 20px;
  }

  .post_page {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media (max-width: 1200px) {
  .post-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .post-list {
    grid-template-columns: repeat(1, 1fr);
  }
}

.m-menu a {
  color: white !important;
}

.mobile-menu__child-item {
  width: 95%;
  margin-left: 5%;
}

.spc-link {
  margin: 0 !important;
  padding: 0 !important;
  width: min-content !important;
}