body {
  font-size: 16px;
  line-height: 1.6em;
}

@font-face {
  font-family: exo_krk;
  src: url(/fonts/Exo2.ttf);
}

@font-face {
  font-family: train_krk;
  src: url(/fonts/TrainOne-Regular.ttf);
}

@font-face {
  font-family: futura_krk;
  src: url(/fonts/FuturaPT-Medium.ttf);
  font-weight: 600;
}

@font-face {
  font-family: unbound_krk;
  src: url(/fonts/Unbounded-VariableFont_wght.ttf);
}

#wrapper {
  overflow: visible !important;
}

.header-blog {
  height: 800px;
}

.category-title-h1 {
  line-height: 2rem;
}
h1 {
  display: block;
  font-size: 2em;
  margin-block-start: 0.67em;
  margin-block-end: 0.67em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;
}

.frame {
  position: absolute;

  left: 50%;
  transform: translate(-50%, -50%);
}

.cat-project-details {
  display: block;
}

.entry-media {
  margin-bottom: 0px;
}

.entry-meta {
  position: relative;
  padding-right: 72px;
  display: block;
  max-height: 6em; /* Примерная высота для 3 строк */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0)
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0)
  );
}

.entry-content {
  padding-right: 0px;
  padding-left: 0px;
}

.entry {
  font-size: 16px;
  line-height: 1.6em;
}

.post-tags a {
  background: var(--green1);
  display: inline-block;
  white-space: nowrap;
  font-size: 14px;
  color: var(--bg);
  padding: 1px 7px;
  margin: 0 5px 6px 0;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.post-tags a:hover {
  background: var(--box);
  color: var(--green1);
}

.container-inner {
  background: radial-gradient(
    ellipse at center,
    rgb(47, 47, 47) 15%,
    rgba(40, 40, 40, 1) 95%
  );
}
.main {
  background: linear-gradient(
    to bottom,
    #282828 2%,
    #2828287a 10%,
    transparent 15%,
    transparent 85%,
    #2828287a 90%,
    #282828 98%
  );
}
.main-inner {
  background: radial-gradient(ellipse at center, #282828 20%, transparent 20%);
  background-size: var(--dots_size);
}

.project-content-block {
  justify-content: space-evenly;
}

.page-content {
  padding: 0px 100px;
}
.breadcrumbs {
  margin-left: 120px;
}

.project-content-right {
  width: 320px;
}
.project-content-meta {
  width: 100%;
}

@media (max-width: 1290px) {
  .page-content {
    padding: 0px 50px;
  }
  .breadcrumbs {
    margin-left: 70px;
  }
  .header-blog {
    height: 700px;
  }
}

@media (max-width: 1140px) {
  .project-content-block {
    gap: 10px;
  }
  .page-content {
    padding: 0px 20px;
  }
  .breadcrumbs {
    margin-left: 40px;
  }
  .header-blog {
    height: 600px;
  }
  
}

@media (max-width: 1040px) {
  .page-content {
    padding: 0px 60px;
  }
  .breadcrumbs {
    margin-left: 80px;
  }
  .project-description {
    max-width: 100%;
  }
  .project-content-block {
    flex-direction: column;
  }
  /* высота блока подстраивается под размер контента */
  .project-content-right {
    width: 100%;
    height: auto;
  }
  .entry > *:not(.alignfull) {
    max-width: 100%;
    margin-left: 0px;
    margin-right: 0px;
  }
  .project-content-meta-shadow {
    width: 320px;
    max-width: 320px;
    margin: 30px auto 0px auto;
  }
}

@media (max-width: 900px) {
  .page-content {
    padding: 0px 10px;
  }
  .breadcrumbs {
    margin-left: 30px;
  }

  .topbar {
    padding: 0px 20px 10px 20px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .mainnav {
    display: none;
  }
  .category-title-h1 {
    font-size: 2.2rem;
  }
  .project-content-title {
    font-size: 1.8rem;
  }
  .header-blog.header-blog-front img {
    margin-left: -50px;
    max-width: 110%;
    width: auto;
  }
}

@media (max-width: 750px) {
  .header-blog {
    height: 500px;
  }
  
}

@media (max-width: 600px) {
  .page-content {
    padding: 0px 0px;
  }
  .breadcrumbs {
    margin-left: 20px;
  }
  .category-title-h1 {
    font-size: 1.6rem;
    padding: 40px 10px;
  }
  .project-content-title {
    font-size: 1.2rem;
  }
  .header-blog.header-blog-front img {
    margin-left: -30px;
    max-width: 110%;
    width: auto;
  }
  .header-blog {
    height:  400px;
  }
}

@media (max-width: 479px) {
  .breadcrumbs {
    margin-left: 10px;
  }
  .header-blog {
    height:  300px;
  }
}

.post-nav li {
  transition: all 0.3s ease;
  width: 100%;
}
.post-nav li.next a {
  border-left: 0px;
}
.post-nav li:nth-child(2) a {
  border-left: none;
  border-left: 1px solid var(--bg);
}
.post-nav li:nth-child(1) {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
.post-nav li:nth-child(2) {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}
.post-nav li:only-child {
  border-radius: 20px;
}
.post-nav li:hover {
  background: #0000002b;
}

@media only screen and (max-width: 719px) {
  .post-nav {
    display: flex;
    flex-direction: column;
  }
  .post-nav li.previous {
    border-top: none;
  }

  .post-nav li:nth-child(2) a {
    border-left: none;
    border-top: 1px solid var(--bg);
  }
  .post-nav li.next a {
    border-left: 0px;
  }
  .post-nav li:nth-child(1) {
    border-bottom-left-radius: 0px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  .post-nav li:nth-child(2) {
    border-top-right-radius: 0px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
  .post-nav li:only-child {
    border-radius: 20px;
  }
}

textarea {
  resize: none;
  overflow: hidden;
}

/* Мобильное меню */
.burger-menu {
  display: none;
  cursor: pointer;
  z-index: 1005;
}

.burger-icon {
  width: 30px;
  height: 24px;
  position: relative;
  margin: 0 15px;
  transition: all 0.3s ease;
}

.burger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #9dd639;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.burger-icon span:nth-child(1) {
  top: 0px;
}

.burger-icon span:nth-child(2) {
  top: 10px;
}

.burger-icon span:nth-child(3) {
  top: 20px;
}

.burger-icon.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.burger-icon.active span:nth-child(2) {
  opacity: 0;
  transition: 0.05s ease-in-out;
}

.burger-icon.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background-color: #1a1a1a;
  z-index: 1001;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding-top: 100px;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav .menu-link {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.mobile-nav .menu-link:hover {
  background-color: rgba(157, 214, 57, 0.1);
  color: #9dd639;
}

body.menu-open {
  overflow: hidden;
}

.mobile-contacts {
  padding: 20px 20px;
}
.space-menu {
  display: none;
}
@media (max-width: 900px) {
  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .space-menu {
    display: block;
  }
  .logo {
    position: absolute;
    right: 50%;
    transform: translateX(40%);
  }
  .burger-menu {
    display: flex;
    position: fixed;
    align-items: center;
    top: 30px;
    left: 30px;
  }

  .home-linkmobile {
    display: none;
  }

  .mainnav {
    display: none;
  }
}

@media (max-width: 600px) {
  .topbar {
    height: 90px;
  }
  .top_contact {
    display: none;
  }
  .logo {
    position: absolute;
    right: 30px;
    transform: translateX(0%);
  }
}

/* menu */

/* toc */

.toc-wrapper {
  background: #00000000;
  border-radius: 20px;
  backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 20px;
    transition: 0.3s ease;
    border: 1px solid #8181811c;
    box-shadow: 1px 2px 5px #00000050;
}

.toc-icon {
    display:none;
}