/* =========================================
   MFG SEO SAFE STYLES
   ВАЖНО: стили работают только внутри mfg-блоков
   и не трогают картинки Tilda
========================================= */

.mfg-seo-layer,
.mfg-seo-layer * {
  box-sizing: border-box;
}

.mfg-seo-layer {
  max-width: 100%;
  font-family: Arial, sans-serif;
}

.mfg-seo-layer img {
  display: block;
  max-width: 100%;
}

/* Хлебные крошки */

.mfg-seo-layer .mfg-breadcrumbs {
  max-width: 1160px;
  margin: 0 auto 24px;
  padding: 0 20px;
}

.mfg-seo-layer .mfg-bc__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mfg-seo-layer .mfg-bc__link {
  font-size: 14px;
  color: #5A5A5A;
  text-decoration: none;
}

.mfg-seo-layer .mfg-bc__link:hover {
  color: #1B2F6E;
  text-decoration: underline;
}

.mfg-seo-layer .mfg-bc__sep {
  font-size: 14px;
  color: #AAAAAA;
}

.mfg-seo-layer .mfg-bc__item--current span {
  font-size: 14px;
  color: #AAAAAA;
}

/* CTA */

.mfg-seo-layer .mfg-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 12px;
  margin: 36px auto;
  max-width: 860px;
  border-left: 5px solid transparent;
  overflow: hidden;
}

.mfg-seo-layer .mfg-cta--a {
  background: #EEF4FF;
  border-color: #1B2F6E;
}

.mfg-seo-layer .mfg-cta--b {
  background: #EDFAF3;
  border-color: #176341;
}

.mfg-seo-layer .mfg-cta--c {
  background: #FFF5EB;
  border-color: #C45C0A;
}

.mfg-seo-layer .mfg-cta--d {
  background: #F3EEFF;
  border-color: #5B2FA0;
}

.mfg-seo-layer .mfg-cta__body {
  flex: 1;
  min-width: 200px;
}

.mfg-seo-layer .mfg-cta__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 6px;
}

.mfg-seo-layer .mfg-cta__title {
  font-size: 20px;
  font-weight: 700;
  color: #1B2F6E;
  margin: 0 0 8px;
  line-height: 1.3;
}

.mfg-seo-layer .mfg-cta__sub {
  font-size: 15px;
  color: #5A5A5A;
  margin: 0 0 10px;
  line-height: 1.5;
}

.mfg-seo-layer .mfg-cta__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mfg-seo-layer .mfg-cta__list li {
  font-size: 14px;
  color: #176341;
  margin-bottom: 3px;
}

.mfg-seo-layer .mfg-cta__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

.mfg-seo-layer .mfg-cta__btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: opacity .15s ease, transform .15s ease;
}

.mfg-seo-layer .mfg-cta__btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.mfg-seo-layer .mfg-cta__btn--a {
  background: #1B2F6E;
}

.mfg-seo-layer .mfg-cta__btn--b {
  background: #176341;
}

.mfg-seo-layer .mfg-cta__btn--c {
  background: #C45C0A;
}

.mfg-seo-layer .mfg-cta__btn--d {
  background: #5B2FA0;
}

.mfg-seo-layer .mfg-cta__note {
  font-size: 12px;
  color: #AAAAAA;
  margin: 0;
}

/* Читайте также */

.mfg-seo-layer .mfg-related {
  max-width: 1160px;
  margin: 48px auto 0;
  padding: 40px 20px 0;
  border-top: 2px solid #E8ECF0;
}

.mfg-seo-layer .mfg-related__title {
  font-size: 22px;
  font-weight: 700;
  color: #1B2F6E;
  margin: 0 0 24px;
}

.mfg-seo-layer .mfg-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mfg-seo-layer .related-card {
  border: 1px solid #E0E6F0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  min-width: 0;
  transition: box-shadow .2s ease;
}

.mfg-seo-layer .related-card:hover {
  box-shadow: 0 4px 20px rgba(27, 47, 110, 0.12);
}

.mfg-seo-layer .related-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mfg-seo-layer .related-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f4f8;
}

.mfg-seo-layer .related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mfg-seo-layer .related-card__body {
  padding: 16px;
}

.mfg-seo-layer .related-card__category {
  font-size: 12px;
  font-weight: 600;
  color: #176341;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.mfg-seo-layer .related-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #1B2F6E;
  margin: 8px 0;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.mfg-seo-layer .related-card__read-time {
  font-size: 12px;
  color: #AAAAAA;
}

/* Мобильная версия */

@media (max-width: 768px) {
  .mfg-seo-layer .mfg-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    margin: 24px 20px;
  }

  .mfg-seo-layer .mfg-cta__title {
    font-size: 17px;
  }

  .mfg-seo-layer .mfg-cta__btn {
    width: 100%;
    text-align: center;
    padding: 13px 16px;
  }

  .mfg-seo-layer .mfg-cta__action {
    width: 100%;
  }

  .mfg-seo-layer .mfg-related__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}