.content-overlay {
  overflow-x: hidden;
}

.content-wrapper {
  overflow-x: hidden;
}

/* Стили для навигации по статье */
.article-navigation {
  background: linear-gradient(180deg, #322520 0%, #1b1411 100%);
  padding: 25px;
  margin: 40px auto;
  border-radius: 12px;
  border: 1px solid rgba(221, 159, 89, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  max-width: 800px;
}

.article-navigation h3 {
  margin-top: 0;
  color: #dd9f59;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.article-navigation ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.article-navigation li {
  margin: 0;
}

.article-navigation a {
  color: #1b1411;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.4;
}

/* Устанавливаем единый размер шрифта для всего содержимого ссылки */
.article-navigation a,
.article-navigation a * {
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.article-navigation a:hover {
  color: #dd9f59;
  background: white;
  border-color: #dd9f59;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(221, 159, 89, 0.15);
}

.article-navigation a:hover * {
  color: #dd9f59;
}

.article-navigation a:focus {
  outline: 2px solid #dd9f59;
  outline-offset: 2px;
}

/* Специально для span с opacity */
.article-navigation a span {
  opacity: 0.9;
  display: inline-block;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .article-navigation {
    padding: 15px;
    margin: 20px auto;
    max-width: calc(100% - 30px);
    width: 100%;
    box-sizing: border-box;
  }

  .article-navigation h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .article-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .article-navigation li {
    width: 100%;
    margin: 0;
  }

  .article-navigation a {
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    word-break: break-word;
  }
  
  /* Мобильный размер шрифта */
  .article-navigation a,
  .article-navigation a * {
    font-size: 12px;
  }
}

/* Стили для блока шеринга */
.share-block {
  margin: 50px auto;
  text-align: center;
  padding: 30px;
  background: linear-gradient(to bottom, #f9f9f9, #fff);
  border-radius: 12px;
  border: 1px solid #eee;
  max-width: 800px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.share-btn {
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.share-btn:active {
  transform: translateY(0);
}

/* Адаптивность шеринга */
@media (max-width: 768px) {
  .share-block {
    padding: 20px 15px;
    margin: 30px 15px;
    max-width: none;
    width: auto;
  }
  
  .share-block h3 {
    font-size: 1.1rem;
  }
  
  .share-block p {
    font-size: 13px;
  }
  
  .share-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .share-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Решение проблемы с фиксированным меню */
html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 130px;
}

h1,
h2,
h3,
h4,
h5,
h6,
[id] {
  scroll-margin-top: 130px;
}

@media (max-width: 768px) {
  :target,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  [id] {
    scroll-margin-top: 110px;
  }
}

.share-btn-telegram {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.80) 0%, rgb(0, 136, 204, 1) 100%);
}

.share-btn-vk {
  background: linear-gradient(135deg, rgba(76, 117, 163, 0.80) 0%, rgba(76, 117, 163, 1) 100%);
}

.share-btn-ok {
  background: linear-gradient(135deg, rgba(238, 126, 34, 0.80) 0%, rgba(238, 126, 34, 1) 100%);
}

.share-btn-copy {
  background: linear-gradient(135deg, rgba(27, 20, 17, 0.90) 0%, rgba(221, 159, 89, 0.8) 100%);
}