html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: sans-serif;
  background: #f0f0f0;
  margin: 0;
  padding: 0;
}
@media (min-width: 1024px) {
.container {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
}
h1, h2 {
  margin-top: 0;
}
.post {
  border-bottom: 1px solid #ccc;
  padding: 0.5rem 0;
}
.post:last-child {
  border: none;
}
.post img {
  max-width: 100%;
  width: auto;
  max-width: 512px;
  height: auto;
  margin-top: 0.5rem;
  cursor: pointer;
}
form {
  margin-top: 1.5rem;
}
input, textarea, button {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.logout {
  text-align: right;
  margin-bottom: 1rem;
}
.error {
  color: red;
}
    
    /* Адаптивные стили для модального окна */
    .modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0;
      top: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.85);
      justify-content: center;
      align-items: center;
    }

    .modal-content {
      max-width: 100vw;
      max-height: 95vh;
      padding: 1rem;
      box-sizing: border-box;
    }

    .modal-content img {
      max-width: 100%;
      max-height: 95vh;
      height: auto;
      width: auto;
      display: block;
      margin: 0 auto;
    }

    @media (max-width: 600px) {
      .modal-content img {
        width: 100%;
        height: auto;
      }
    }
  
    /* Адаптивные стили для модального окна */
    .modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0;
      top: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.85);
      justify-content: center;
      align-items: center;
    }

    .modal-content {
      max-width: 100vw;
      max-height: 95vh;
      padding: 1rem;
      box-sizing: border-box;
    }

    .modal-content img {
      max-width: 100%;
      max-height: 95vh;
      height: auto;
      width: auto;
      display: block;
      margin: 0 auto;
    }

    @media (max-width: 600px) {
      .modal-content img {
        width: 100%;
        height: auto;
      }
    }


@media (max-width: 600px) {
  .container {
    width: 100%;
    max-width: 600px;
     margin: 2rem auto;
    border-radius: 0;
    box-shadow: none;
    
  }}

  
  h1, h2 {
    font-size: 1.4rem;
    text-align: center;
  }
  .post img {
    max-width: 100%;
    height: auto;
  }
  input, textarea, button {
    font-size: 2rem;
  }
  footer {
    font-size: 9px;
    padding: 1rem 0.5rem;
  }

  @media (max-width: 600px) {
  #cookie-banner {
    width: 100vw;
    right: 0;
    left: 0;
    bottom: 0;
    font-size: 16px;
    padding: 15px;
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
articleBody {
font-size: 40px;
}


}






}
footer {
  font-size: 9px;
  padding: 1rem 0.5rem;
}
#cookie-banner {
  width: 90%;
  right: 5%;
  bottom: 10px;
  font-size: 11px;
  padding: 10px;
}

.read-more {
  display: inline-block;
  padding: 8px 16px;
  color: #000; /* Цвет ссылки — адаптируй под дизайн */
  text-decoration: none;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #fff;
  background-color: #333333;
  border-color: #333333;
  text-decoration: none;
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 32px;
  height: 32px;
  background-color: #686868;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 999;
  display: none;
  transition: opacity 0.3s, transform 0.3s;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#scrollTopBtn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#scrollTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
}

    /* Окно "перейти к первой главе" */
    #jumpBanner {
      position: fixed;
      top: 80px;
      right: 400px;
      width: 200px;
      background: #333333;
      color: #fff;
      padding: 10px;
      border-radius: 8px;
      font-family: Roboto, sans-serif;
      font-size: 14px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
      z-index: 9998;
      text-align: center;
      cursor: pointer;
      display: none;
    }