/* Blog article page — from Figma Блог article templates */

.blog-article {
  width: 100%;
}

.blog-article__hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 600px;
  padding: 20px;
  overflow: hidden;
}

.blog-article__hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blog-article__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-article__hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.blog-article__hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 100%;
  font-family: "ALSStory", "Onest", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 32px;
  text-align: center;
  color: #fff;
}

.blog-article__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 75px 20px 0;
}

.blog-article__body .kg-card,
.blog-article__body > p,
.blog-article__body > h2,
.blog-article__body > ol,
.blog-article__body > ul,
.blog-article__body > blockquote,
.blog-article__body > figure,
.blog-article__body .blog-cta,
.blog-article__body .blog-toc,
.blog-article__body .blog-author,
.blog-article__body .kg-html-card,
.blog-article__text {
  max-width: 760px;
  width: 100%;
  margin: 0;
  font-family: "ALSStory", "Onest", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28.8px;
  color: #000;
}

.blog-article__body > h2,
.blog-article__body .kg-html-card h2,
.blog-article__body h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  scroll-margin-top: 100px;
}

.blog-article__body a {
  color: #ff8562;
}

.blog-article__body > ol,
.blog-article__body > ul {
  padding-left: 1.4em;
}

.blog-article__body > ul {
  list-style-type: disc;
}

.blog-article__body > ol li + li,
.blog-article__body > ul li + li {
  margin-top: 0.35em;
}

/* Table of contents — patterned after Tilda genetika-sna */
.blog-article__body .blog-toc {
  box-sizing: border-box;
  padding: 28px 32px;
  background: #f0f0f0;
}

.blog-article__body .blog-toc__title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  color: #000;
}

.blog-article__body .blog-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-article__body .blog-toc__list a {
  color: #141313;
  text-decoration: none;
  border-bottom: 1px solid #706969;
  box-shadow: none;
}

.blog-article__body .blog-toc__list a:hover {
  color: #ff8562;
  border-bottom-color: #ff8562;
}

/* Author card — text only, no photo */
.blog-article__body .blog-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-article__body .blog-author__name {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: #000;
}

.blog-article__body .blog-author__role {
  font-size: 16px;
  line-height: 24px;
  color: #888;
}

.blog-article__body > p + p {
  margin-top: 0;
}

.blog-article__body figure,
.blog-article__body .kg-image-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.blog-article__body figure img,
.blog-article__body .kg-image-card img {
  display: block;
  max-width: 100%;
  height: auto;
}

.blog-article__body figcaption,
.blog-article__body .kg-image-card figcaption {
  font-size: 14px;
  line-height: 20px;
  color: #888;
  text-align: center;
}

.blog-article__body blockquote,
.blog-article__body .blog-quote {
  box-sizing: border-box;
  padding: 24px 28px;
  background: #f7f7f7;
  border-left: 3px solid #ff8562;
}

.blog-article__body blockquote p,
.blog-article__body .blog-quote p {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
}

.blog-article__body blockquote footer,
.blog-article__body .blog-quote__author {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
}

.blog-article__body blockquote footer img,
.blog-article__body .blog-quote__photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-article__body .blog-quote__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-article__body blockquote cite,
.blog-article__body .blog-quote__name {
  display: block;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
}

.blog-article__body .blog-quote__role,
.blog-article__body blockquote footer span {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: #888;
}

.blog-article__body .blog-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.blog-article__body .blog-cta__text {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
}

.blog-article__body .blog-cta__action a {
  display: inline-block;
  padding: 12px 24px;
  background: #8a7c5d;
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-size: 16px;
  line-height: 24px;
}

.blog-article__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 28px 20px;
}

.blog-article__divider-line {
  width: 140px;
  height: 1px;
  background: #eee;
  border-radius: 100px;
}

.blog-article__share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding-bottom: 60px;
}

.blog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border-radius: 2px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 16px;
  color: #fff;
  white-space: nowrap;
}

.blog-share-btn--vk {
  background: #6287ae;
}

.blog-share-btn--ok {
  background: #ff9f4d;
}

.blog-share-btn__icon {
  display: block;
  flex-shrink: 0;
}

.blog-share-btn__icon--vk {
  width: 15px;
  height: 9px;
}

.blog-share-btn__icon--ok {
  width: 6.23px;
  height: 10.89px;
}

.blog-share-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  background: #fff;
  color: #ff9f4d;
  font-size: 12px;
  line-height: 16px;
}

/* Related slider */
.blog-related {
  width: 100%;
  padding: 75px 0 0;
}

.blog-related__heading {
  margin: 0;
  padding: 0 20px 15px;
  font-family: "ALSStory", "Onest", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: #000;
}

.blog-related__heading a {
  color: #ff8562;
}

.blog-slider {
  position: relative;
  width: 100%;
  height: 464px;
  overflow: hidden;
}

.blog-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.blog-slider__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 56px;
  box-sizing: border-box;
  text-decoration: none;
  color: #fff;
}

.blog-slider__media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blog-slider__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-slider__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.blog-slider__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 760px;
  width: 100%;
  text-align: center;
}

.blog-slider__title {
  margin: 0;
  font-family: "ALSStory", "Onest", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 32px;
  color: #fff;
}

.blog-slider__excerpt {
  margin: 0;
  font-family: "ALSStory", "Onest", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}

.blog-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.blog-slider__nav--prev {
  left: 12px;
}

.blog-slider__nav--next {
  right: 12px;
}

.blog-slider__chevron {
  display: block;
  width: 15px;
  height: 15px;
  border-bottom: 3px solid #fff;
  border-left: 3px solid #fff;
}

.blog-slider__nav--prev .blog-slider__chevron {
  transform: rotate(45deg);
}

.blog-slider__nav--next .blog-slider__chevron {
  transform: rotate(-135deg);
}

.blog-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 360px;
  transform: translateX(-50%);
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #fff;
  opacity: 0.4;
  cursor: pointer;
}

.blog-slider__dot.is-active {
  opacity: 1;
}

/* Override blog-layout article padding for full-bleed article */
.blog-post:has(.blog-article) {
  padding: 0;
}

.blog-post__article:has(.blog-article),
.blog-post .blog-article {
  max-width: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 767px) {
  .blog-article__hero {
    min-height: 600px;
  }

  .blog-article__body {
    padding: 75px 20px 0;
    align-items: flex-start;
  }

  .blog-slider {
    height: 464px;
  }

  .blog-slider__slide {
    padding: 20px;
  }

  .blog-slider__nav--prev {
    left: 8px;
  }

  .blog-slider__nav--next {
    right: 8px;
  }
}
