/* ==========================================================================
   BLOG POST — page layout
   Стили модулей TOC и Social Sharing живут в своих файлах модулей
   ========================================================================== */


/* --------------------------------------------------------------------------
   Head (синяя шапка)
   -------------------------------------------------------------------------- */

.post-head {
  background-color: var(--cs-blue);
  color: var(--cs-white);
  padding-top: 48px;
  padding-bottom: 80px;
}

.post-head .page-center {	
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 32px;
}

/* Breadcrumbs */
.post-breadcrumbs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.post-breadcrumbs__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--cs-white);
}

.post-breadcrumbs__item--parent {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.post-breadcrumbs__item--current {
  background: rgba(255, 255, 255, 0.2);
}

/* Основной ряд: мета + обложка */
.post-head__main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 148px;
}

.post-head__meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.post-head__title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--cs-white);
  margin: 0;
}

.post-head__desc {
  color: var(--cs-white);
  margin: 0;
}

.post-head__tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 8px;
}

.post-head__tag {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: var(--cs-white);
  text-decoration: none;
  -webkit-transition: background .2s, border-color .2s;
  -o-transition: background .2s, border-color .2s;
  transition: background .2s, border-color .2s;
}

.post-head__tag:hover {
  border-color: rgba(255, 255, 255, 1);
	background: rgba(255, 255, 255, 0.10);
}

.post-head__cover {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 432px;
  height: 252px;
  border-radius: 16px;
  overflow: hidden;
}

.post-head__cover-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

/* Второй ряд: автор + шеринг */
.post-head__info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
	justify-content: flex-end;
  gap: 32px;
}

/* Автор */
.post-author {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
}

.post-author__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  background: #9D9D9D;
}

.post-author__text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px;
}

.post-author__name { color: var(--cs-white); }

.post-author__meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  color: var(--cs-white);
}

.post-author__sep {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.5);
}


/* --------------------------------------------------------------------------
   Body layout
   -------------------------------------------------------------------------- */

.post-body {
  background: var(--cs-white);
  padding-top: 80px;
  padding-bottom: 80px;
}

.post-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
/*   -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start; */
  gap: 64px;
}

.post-content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

/* TOC-обёртка inline — скрыта на desktop */
.post-toc-wrap--inline {
  display: none;
  margin-bottom: 32px;
}

/* Sidebar */
.post-sidebar {
  width: 432px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  gap: 48px;
}

/* TOC sticky */
.post-toc-wrap--sticky {
  width: 100%;
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

/* Кнопка наверх */
.post-sidebar__scroll-top {
	position: fixed;
	bottom: 32px;
	right: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 50px;
  height: 50px;
	border-radius: 100px;
	opacity: 0;
	visibility: hidden;
	background: var(--cs-bright-snow);
  -webkit-transition: opacity .2s, visibility .2s;
  -o-transition: opacity .2s, visibility .2s;
  transition: opacity .2s, visibility .2s;
}

.post-sidebar__scroll-top.show {
	opacity: 1;
	visibility: visible;	
}


/* --------------------------------------------------------------------------
   Article body content styles
   -------------------------------------------------------------------------- */

.post-content__body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 32px;
  color: var(--cs-black);
}

.post-content__body h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

.post-content__body h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

.post-content__body h2,
.post-content__body h3,
.post-content__body h4 {
  margin-top: var(--sp-h9);
  margin-bottom: var(--sp-h9);
}

.post-content__body h5,
.post-content__body h6 {
  margin-top: var(--sp-h10);
  margin-bottom: var(--sp-h10);
}

.post-content__body h2:first-child,
.post-content__body h3:first-child,
.post-content__body h4:first-child,
.post-content__body h5:first-child,
.post-content__body h6:first-child {
  margin-top: 0;
}

.post-content__body p {
  margin-top: 0;
  margin-bottom: var(--sp-h9);
}

.post-content__body p:last-child {
  margin-bottom: 0;
}

.post-content__body p { margin: 0; line-height: 1.3; }

.post-content__body ul,
.post-content__body ol {
  margin-top: var(--sp-h10);
  margin-bottom: var(--sp-h10);
  padding-left: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.post-content__body li { line-height: 1.3; }

.post-content__body ul > li > ul,
.post-content__body ul > li > ol,
.post-content__body ol > li > ul,
.post-content__body ol > li > ol {
	margin: 8px 0;
}

.post-content__body img:not(.hs_cos_wrapper_type_module img)
  width: 100% !important;
  height: auto;
  display: block;
  border-radius: 24px;
  -o-object-fit: cover;
     object-fit: cover;
  margin-top: var(--sp-h9);
  margin-bottom: var(--sp-h9);
}

/* Blockquote — оранжевый круг слева, серый фон, border-radius 24px */
.post-content__body blockquote {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 64px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  background: #F5F5F5;
  border-radius: 24px;
  padding: 32px;
  margin: var(--sp-h6) 0;
  border: none;
}

.post-content__body blockquote::before {
  content: url(https://148474409.fs1.hubspotusercontent-eu1.net/hubfs/148474409/Corestone/icons/blockquote.svg);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cs-orange);
  color: var(--cs-white);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 8px;
}

.post-content__body blockquote p {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--cs-black);
}

.post-content__body blockquote cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  color: var(--cs-black);
}

.post-content__body a:not(.btn) { color: #021DE7; text-decoration: underline; }
.post-content__body a:not(.btn):hover { opacity: 0.8; }


/* --------------------------------------------------------------------------
   Recommended articles
   -------------------------------------------------------------------------- */

.post-related {
  background: #F5F5F7;
  padding-top: 80px;
  padding-bottom: 80px;
}

.post-related__title {
  margin: 0 0 64px;
  color: var(--cs-black);
  text-align: center;
}

.post-related__grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 32px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
	justify-content: center;
}

.post-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
	max-width: calc(50% - 16px);
  text-decoration: none;
  color: inherit;
  -webkit-transition: opacity .2s;
  -o-transition: opacity .2s;
  transition: opacity .2s;
}

.post-card:hover { opacity: 0.85; }

.post-card__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.post-card__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.post-card__body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
}

.post-card__text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.post-card__title { color: var(--cs-blue); margin: 0; }
.post-card__desc  { color: var(--cs-black); margin: 0; }

.post-card__meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  color: var(--cs-black);
}

.post-card__sep {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--cs-grey-line);
}



.post-content__body .img-desk{
	display: block;
}
.post-content__body .img-mob{
	display: none;
}




/* ==========================================================================
   TABLET ≤ 1439px
   ========================================================================== */

@media (max-width: 1439px) {

	.post-head .page-center {	
    max-width: 768px;
    width: 100%;
		margin-right: auto;
		margin-right: auto;
	}
  .post-head__main {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 32px;
  }

  /* Обложка уходит в конец head */
  .post-head__cover {
    width: 100%;
    height: 420px;
    -webkit-box-ordinal-group: 10;
        -ms-flex-order: 9;
            order: 9;
  }

  .post-head__meta { -webkit-box-ordinal-group: 1; -ms-flex-order: 0; order: 0; }
  .post-head__info { -webkit-box-ordinal-group: 2; -ms-flex-order: 1; order: 1; }

  .post-head__title { font-size: 32px; }

	
  .post-layout {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 0;    
    max-width: 720px;
    width: 100%;
		margin-left: auto;
    margin-right: auto;
  }

  .post-sidebar      { display: none; }
  .post-toc-wrap--inline { display: block; }

  .post-related__grid { gap: 24px; }
	
	.post-card {
		max-width: calc(50% - 12px);
	}
}


/* ==========================================================================
   MOBILE ≤ 767px
   ========================================================================== */

@media (max-width: 767px) {

  .post-head { padding-top: 32px; padding-bottom: 48px; }
  .post-head .page-center {
    max-width: 375px;
  }
  .post-head__title  { font-size: 28px; }
  .post-head__cover  { height: 220px; }

  .post-head__info {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 24px;
  }
	
  .post-layout {
    max-width: 343px;
  }
	
  .post-body { padding-top: 48px; padding-bottom: 48px; }

  .post-content__body h2 { font-size: 24px; }
  .post-content__body h3 { font-size: 20px; }

  .post-content__body blockquote {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 24px;
    padding: 24px;
  }

  .post-related { padding-top: 48px; padding-bottom: 48px; }
  .post-related__title { margin-bottom: 40px; }

  .post-related__grid {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
	.post-card {
		max-width: 100%;
	}
	
	

	.post-content__body .img-desk{
		display: none;
	}
	.post-content__body .img-mob{
		display: block;
	}
}