@charset "UTF-8";
/* Статическая страница: типографика и отступы вокруг .kshop-post-single */
.kshop-post-single {
  margin: 0;
}
.kshop-post-single .entry-header {
  margin-bottom: 96px;
}
@media (max-width: 1439px) {
  .kshop-post-single .entry-header {
    margin-bottom: 76px;
  }
}
@media (max-width: 1023px) {
  .kshop-post-single .entry-header {
    margin-bottom: 40px;
  }
}
.kshop-post-single .entry-header h1 {
  margin: 0;
}
.kshop-post-single .entry-header h1[id] {
  scroll-margin-top: 96px;
}
@media (max-width: 1023px) {
  .kshop-post-single .entry-header h1[id] {
    scroll-margin-top: 72px;
  }
}
.kshop-post-single .post-thumbnail {
  margin-bottom: 24px;
}
.kshop-post-single .post-thumbnail img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}
.kshop-post-single .entry-content {
  color: #3f3a34;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 25.2px;
}
@media (max-width: 1439px) {
  .kshop-post-single .entry-content {
    font-size: 16px;
    line-height: 22.4px;
  }
}
.kshop-post-single .entry-content > *:first-child {
  margin-top: 0;
}
.kshop-post-single .entry-content > *:last-child {
  margin-bottom: 0;
}
.kshop-post-single .entry-content h1[id],
.kshop-post-single .entry-content h2[id],
.kshop-post-single .entry-content h3[id],
.kshop-post-single .entry-content h4[id],
.kshop-post-single .entry-content h5[id],
.kshop-post-single .entry-content h6[id] {
  scroll-margin-top: 96px;
}
@media (max-width: 1023px) {
  .kshop-post-single .entry-content h1[id],
.kshop-post-single .entry-content h2[id],
.kshop-post-single .entry-content h3[id],
.kshop-post-single .entry-content h4[id],
.kshop-post-single .entry-content h5[id],
.kshop-post-single .entry-content h6[id] {
    scroll-margin-top: 72px;
  }
}
.kshop-post-single .entry-content h2 {
  margin: 64px 0 24px 0;
}
@media (max-width: 1439px) {
  .kshop-post-single .entry-content h2 {
    margin: 48px 0 20px 0;
  }
}
@media (max-width: 1023px) {
  .kshop-post-single .entry-content h2 {
    margin: 40px 0 16px 0;
  }
}
.kshop-post-single .entry-content h3 {
  margin: 48px 0 20px 0;
}
@media (max-width: 1439px) {
  .kshop-post-single .entry-content h3 {
    margin: 40px 0 16px 0;
  }
}
@media (max-width: 1023px) {
  .kshop-post-single .entry-content h3 {
    margin: 28px 0 14px 0;
  }
}
.kshop-post-single .entry-content h4 {
  margin: 32px 0 16px 0;
}
@media (max-width: 1439px) {
  .kshop-post-single .entry-content h4 {
    margin: 28px 0 12px 0;
  }
}
@media (max-width: 1023px) {
  .kshop-post-single .entry-content h4 {
    margin: 24px 0 12px 0;
  }
}
.kshop-post-single .entry-content p {
  margin-bottom: 16px;
}
@media (max-width: 1439px) {
  .kshop-post-single .entry-content p {
    margin-bottom: 14px;
  }
}
@media (max-width: 1023px) {
  .kshop-post-single .entry-content p {
    margin-bottom: 12px;
  }
}
.kshop-post-single .entry-content a {
  color: #3f3a34;
  text-decoration: underline;
}
.kshop-post-single .entry-content a:hover {
  color: #778087;
  text-decoration: none;
}
.kshop-post-single .entry-content ul,
.kshop-post-single .entry-content ol {
  margin: 0 0 1em 1.25em;
  padding: 0;
}
.kshop-post-single .entry-content .page-links {
  margin-top: 1.5em;
  font-size: 16px;
}
.kshop-post-single .entry-footer {
  margin-top: 32px;
  font-size: 14px;
}
.kshop-post-single .entry-footer .edit-link a {
  color: #778087;
  text-decoration: underline;
}
.kshop-post-single .entry-footer .edit-link a:hover {
  color: #3f3a34;
}

/*
 * kshop-header: .site-content, .hfeed { overflow-x: hidden !important } — ломает position:sticky.
 * Нужен !important и предок #page.hfeed (main внутри него).
 */
#page.hfeed:has(.kshop-page-with-toc),
main.site-content.kshop-content:has(.kshop-page-with-toc) {
  overflow-x: visible !important;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
/* Обёртка из page.php: колонки + дубликат оглавления (после header на моб., в сайдбаре на десктопе) */
.kshop-page-with-toc {
  display: grid;
  grid-template-columns: 975px 465px;
  gap: 180px;
  align-items: start;
  /* Каждый пункт оглавления — отдельная обёртка с отступами */
}
@media (max-width: 1919px) {
  .kshop-page-with-toc {
    gap: 7.89%;
    grid-template-columns: 59.4% 31.95%;
  }
}
@media (max-width: 1439px) {
  .kshop-page-with-toc {
    gap: 7.689%;
    grid-template-columns: 60.12% 32.191%;
  }
}
@media (max-width: 1023px) {
  .kshop-page-with-toc {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.kshop-page-with-toc .kshop-page-with-toc__main {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
@media (max-width: 1439px) {
  .kshop-page-with-toc .kshop-page-with-toc__main {
    width: 541px;
  }
}
@media (max-width: 1023px) {
  .kshop-page-with-toc .kshop-page-with-toc__main {
    width: 100%;
  }
}
@media (max-width: 1023px) {
  .kshop-page-with-toc .kshop-page-with-toc__toc--sidebar {
    display: none;
  }
}
@media (min-width: 1024px) {
  .kshop-page-with-toc .kshop-page-with-toc__toc--sidebar {
    /* overflow на самом sticky ломает липкость — скролл на .kshop-page-with-toc__toc-scroll (PHP) */
    position: sticky;
    top: 24px;
    align-self: start;
    z-index: 1;
  }
}
@media (min-width: 1024px) {
  .kshop-page-with-toc .kshop-page-with-toc__toc--sidebar .kshop-page-with-toc__toc-scroll {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .kshop-page-with-toc .kshop-page-with-toc__toc--sidebar .kshop-page-with-toc__toc-scroll::-webkit-scrollbar {
    width: 6px;
  }
  .kshop-page-with-toc .kshop-page-with-toc__toc--sidebar .kshop-page-with-toc__toc-scroll::-webkit-scrollbar-thumb {
    background: rgba(63, 58, 52, 0.25);
    border-radius: 3px;
  }
}
@media (min-width: 1024px) {
  .kshop-page-with-toc .kshop-page-with-toc__toc--after-header {
    display: none;
  }
}
@media (max-width: 1023px) {
  .kshop-page-with-toc .kshop-page-with-toc__toc--after-header {
    margin-bottom: 32px;
  }
}
@media (max-width: 1023px) {
  .kshop-page-with-toc .kshop-post-single .entry-header {
    margin-bottom: 24px;
  }
}
.kshop-page-with-toc .kshop-page-with-toc__nav {
  width: 100%;
  margin: 0;
}
.kshop-page-with-toc .kshop-page-with-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.kshop-page-with-toc .kshop-page-with-toc__item {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border-radius: 30px;
  border: 1px solid #d4cfca;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #3f3a34;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  text-align: center;
}
.kshop-page-with-toc .kshop-page-with-toc__link {
  padding: 12px 18px;
  display: inline;
  width: 100%;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-transform: inherit;
  text-decoration: none;
  text-align: left;
}
.kshop-page-with-toc .kshop-page-with-toc__link:hover {
  color: #778087;
}
.kshop-page-with-toc .kshop-page-with-toc__index {
  white-space: nowrap;
}

/*# sourceMappingURL=kshop-post-single.css.map */
