@charset "UTF-8";
* {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 20px;
}

.container {
  width: 100%;
  max-width: 1240px;
  padding: 40px 20px;
  margin: 0 auto;
}

.no-sidebar .front-main {
  width: 100%;
}

.front-main {
  width: calc(100% - var(--sidebar-width));
}
@media only screen and (max-width: 940px) {
  .front-main {
    width: 100%;
  }
}

.tabs-container {
  overflow-x: auto;
  white-space: nowrap;
  margin: 20px auto;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 3px solid var(--c-headings);
  border-bottom: 3px solid var(--c-headings);
}
.tabs-container .tabs {
  display: inline-flex;
}
.tabs-container .tabs .tab {
  display: inline-block;
  padding: 10px 20px;
  margin-right: 5px;
  background-color: var(--c-main);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  color: #fff;
  line-height: 1;
}
.tabs-container .tabs .tab:hover {
  background-color: var(--c-headings);
}

.categories-wrapper {
  width: 100%;
}
.categories-wrapper .parent-category {
  width: 100%;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--c-main);
}
.categories-wrapper .parent-category .main-category {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.categories-wrapper .parent-category .main-category h2 {
  font-size: 52px;
  text-transform: capitalize;
}
@media only screen and (max-width: 1140px) {
  .categories-wrapper .parent-category .main-category h2 {
    font-size: 34px;
  }
}
.categories-wrapper .parent-category .main-category img {
  max-width: 400px;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
}
@media only screen and (max-width: 640px) {
  .categories-wrapper .parent-category .main-category {
    flex-wrap: wrap;
  }
  .categories-wrapper .parent-category .main-category h2 {
    display: block;
    width: 100%;
    text-align: center;
  }
  .categories-wrapper .parent-category .main-category img {
    max-width: 90%;
    margin: 0 auto;
  }
}
.categories-wrapper .child-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.categories-wrapper .child-categories .child-category {
  width: calc(25% - 20px);
  margin-right: 10px;
  height: 400px;
}
@media (max-width: 1024px) {
  .categories-wrapper .child-categories .child-category {
    width: calc(50% - 20px);
  }
}
@media (max-width: 480px) {
  .categories-wrapper .child-categories .child-category {
    width: calc(100% - 20px);
  }
}
.categories-wrapper .child-categories .child-category img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 10px;
}
.categories-wrapper .child-categories .child-category h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.posts {
  display: flex;
  flex-wrap: wrap;
}
.posts .post {
  width: calc(33% - 40px);
  margin-right: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.posts .post .post-thumbnail {
  margin-bottom: 10px;
}
.posts .post .post-thumbnail a {
  display: block;
  width: 100%;
  height: 300px;
}
.posts .post .post-thumbnail a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.posts .post .post-content {
  padding: 20px;
}

.random-posts-section {
  margin-bottom: 60px;
}
@media only screen and (max-width: 768px) {
  .random-posts-section {
    margin-bottom: 30px;
  }
}
.random-posts-section .posts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
}
@media (max-width: 768px) {
  .random-posts-section .posts-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
}
.random-posts-section .posts-grid .post-item {
  position: relative;
  overflow: hidden;
}
.random-posts-section .posts-grid .post-item:hover .post-thumbnail img {
  transform: scale(1.05);
}
.random-posts-section .posts-grid .post-item:hover .post-thumbnail:before {
  opacity: 0.9;
}
.random-posts-section .posts-grid .post-item:nth-child(1) {
  grid-column: 1/2;
  grid-row: 1/3;
  max-height: 480px;
}
.random-posts-section .posts-grid .post-item:nth-child(2), .random-posts-section .posts-grid .post-item:nth-child(3) {
  grid-column: 2/3;
  min-height: 237px;
  max-height: 237px;
}
@media (max-width: 768px) {
  .random-posts-section .posts-grid .post-item:nth-child(1) {
    grid-column: 1/3;
    grid-row: auto;
    height: 285px;
  }
  .random-posts-section .posts-grid .post-item:nth-child(2), .random-posts-section .posts-grid .post-item:nth-child(3) {
    grid-column: span 1;
    height: 275px;
  }
}
.random-posts-section .posts-grid .post-item .post-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
}
.random-posts-section .posts-grid .post-item .post-thumbnail {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.random-posts-section .posts-grid .post-item .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.random-posts-section .posts-grid .post-item .post-thumbnail:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 60%);
  opacity: 0.7;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}
.random-posts-section .posts-grid .post-item .post-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0; /* Расширяем контент на всю высоту */
  padding: 20px; /* Отступы для контента */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  z-index: 2;
}
@media only screen and (max-width: 768px) {
  .random-posts-section .posts-grid .post-item .post-content {
    padding: 6px;
  }
}
.random-posts-section .posts-grid .post-item .post-content .post-category {
  background-color: var(--c-main);
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 14px;
  text-transform: uppercase;
  display: inline;
  width: fit-content;
}
@media only screen and (max-width: 768px) {
  .random-posts-section .posts-grid .post-item .post-content .post-category {
    font-size: 12px;
    padding: 2px 4px;
    line-height: 1;
  }
}
.random-posts-section .posts-grid .post-item .post-content .post-title {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.2;
  color: #fff;
}
.random-posts-section .posts-grid .post-item .post-content .author-block {
  line-height: 1;
}
.random-posts-section .posts-grid .post-item .post-content .post-author, .random-posts-section .posts-grid .post-item .post-content .post-date {
  font-size: 12px;
}

.ts-row {
  padding: 0 var(--wrap-padding);
}

.posts-list .post-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.posts-list .post-item .post-thumbnail {
  flex: 2;
  margin-right: 20px;
}
.posts-list .post-item .post-thumbnail img {
  width: 100%;
  height: auto;
  max-height: 130px;
  object-fit: cover;
}
.posts-list .post-item .post-content {
  flex: 4;
}
.posts-list .post-item .post-content .post-category {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--c-main);
  display: block;
  margin: 0;
}
.posts-list .post-item .post-content .post-title {
  font-size: 20px;
  line-height: 1;
  margin: 0;
}
.posts-list .post-item .post-content .post-title a {
  color: var(--c-main);
  text-decoration: none;
}
.posts-list .post-item .post-content .post-title a:hover {
  color: rgba(var(--c-main), 0.9);
}
.posts-list .post-item .post-content .post-author, .posts-list .post-item .post-content .post-date {
  font-size: 12px;
  color: #7f8c8d;
}
.posts-list .post-item .post-content .post-excerpt {
  margin: 0;
  font-size: 14px;
  color: #505050;
}
.posts-list hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 20px 0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
.pagination a:hover,
.pagination span:hover {
  background-color: var(--c-main);
  color: #fff;
}
.pagination a.current,
.pagination span.current {
  background-color: var(--c-main);
  color: #fff;
  pointer-events: none;
  border-color: var(--c-main);
}
.pagination a.disabled,
.pagination span.disabled {
  pointer-events: none;
  background-color: #eee;
  color: #999;
  border-color: #ccc;
}
.pagination a.dots,
.pagination span.dots {
  pointer-events: none;
  border: none;
  background-color: transparent;
}

footer .footer-logo {
  max-width: 330px;
}

.lower-footer {
  padding: 40px 15px;
}
.lower-footer .inner {
  flex-direction: row;
  flex-wrap: wrap;
  padding: 0;
  align-items: flex-start;
  justify-content: space-between;
}
@media only screen and (max-width: 768px) {
  .lower-footer .inner {
    flex-direction: column;
  }
}
.lower-footer .inner .first-col, .lower-footer .inner .second-col {
  width: 48%;
}

.first-col {
  padding-right: 7%;
}

.second-col .links-title {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1;
  position: relative;
  color: #fff;
}
.second-col .links-title:after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -11px;
  height: 2px;
  width: 50%;
  background-color: #fff;
}
.second-col .links {
  margin: 20px 0;
}
.second-col .links .menu {
  display: flex;
  flex-direction: column;
}
.second-col .icon {
  color: #fff !important;
}
.second-col .icon:before {
  color: #fff;
}

.footer-custom-content {
  color: #fff;
}
.footer-custom-content h1, .footer-custom-content h2, .footer-custom-content h3, .footer-custom-content h4, .footer-custom-content h5, .footer-custom-content h6 {
  color: #fff;
}

.copyright {
  width: 100%;
  text-align: center;
  background-color: var(--c-main);
  filter: saturate(0.9);
  color: #fff;
  padding: 10px;
}

/*# sourceMappingURL=custom-style.css.map */
