.mss-seo {
  padding: clamp(56px, 7vw, 88px) 0;
}

.mss-seo__inner {
  max-width: 984px;
}

.mss-seo__header {
  margin: 0 auto 32px;
  max-width: 920px;
  text-align: center;
}

.mss-seo__tag {
  align-items: center;
  background: var(--mss-brand-primary-light, #e8f7f0);
  border-radius: 999px;
  color: var(--mss-brand-primary-dark, #008f5b);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 16px;
}

.mss-seo__tag svg,
.mss-seo__toggle svg {
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 14px;
}

.mss-seo__title {
  color: #0e1f1a;
  font-family: Georgia, serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.mss-seo__title em {
  color: var(--mss-brand-primary, #00a86b);
  font-style: italic;
}

.mss-seo__meta {
  color: #5a7268;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin-top: 14px;
}

.mss-seo__meta span {
  font-size: 13px;
  font-weight: 600;
}

.mss-seo__card {
  background: #fff;
  border: 1px solid #e5ede9;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(14, 31, 26, 0.04);
  margin: 0 auto;
  max-width: 920px;
  overflow: hidden;
  padding: 40px;
}

.mss-seo__content {
  max-height: 380px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mss-seo__content.is-expanded {
  max-height: 6000px;
}

.mss-seo__fade {
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.72) 42%, rgba(255,255,255,.96) 72%, #fff 100%);
  bottom: 0;
  height: 180px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  transition: opacity .3s ease;
}

.mss-seo__content.is-expanded .mss-seo__fade {
  opacity: 0;
}

.mss-seo__text {
  color: #2d4a3f;
  font-size: 16px;
  line-height: 1.7;
}

.mss-seo__text > :first-child {
  margin-top: 0;
}

.mss-seo__text > :last-child {
  margin-bottom: 0;
}

.mss-seo__text h1,
.mss-seo__text h2,
.mss-seo__text h3,
.mss-seo__text h4 {
  align-items: center;
  color: #0e1f1a;
  display: flex;
  font-family: Georgia, serif;
  gap: 12px;
  line-height: 1.25;
  margin: 32px 0 14px;
}

.mss-seo__text h2,
.mss-seo__text h3 {
  font-size: 24px;
}

.mss-seo__text h1::before,
.mss-seo__text h2::before,
.mss-seo__text h3::before,
.mss-seo__text h4::before {
  background: var(--mss-brand-primary, #00a86b);
  border-radius: 3px;
  content: "";
  flex-shrink: 0;
  height: 24px;
  width: 6px;
}

.mss-seo__text p,
.mss-seo__text ul,
.mss-seo__text ol,
.mss-seo__text blockquote {
  margin: 0 0 16px;
}

.mss-seo__text ul,
.mss-seo__text ol {
  padding-left: 0;
}

.mss-seo__text ul li,
.mss-seo__text ol li {
  margin-bottom: 10px;
}

.mss-seo__text ul li {
  list-style: none;
  padding-left: 28px;
  position: relative;
}

.mss-seo__text ul li::before {
  background: var(--mss-brand-primary, #00a86b);
  border-radius: 50%;
  content: "";
  height: 8px;
  left: 6px;
  position: absolute;
  top: 10px;
  width: 8px;
}

.mss-seo__text a {
  border-bottom: 1px solid var(--mss-brand-mint, #c8f0dc);
  color: var(--mss-brand-primary-dark, #008f5b);
  text-decoration: none;
}

.mss-seo__text blockquote {
  background: var(--mss-brand-primary-light, #e8f7f0);
  border-left: 4px solid var(--mss-brand-primary, #00a86b);
  border-radius: 12px;
  color: #2d4a3f;
  font-style: italic;
  padding: 20px 24px;
}

.mss-seo__toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: -56px;
  position: relative;
  z-index: 2;
}

.mss-seo__toggle {
  align-items: center;
  background: var(--mss-brand-primary, #00a86b);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(var(--mss-brand-primary-rgb, 0, 168, 107), 0.3);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  padding: 14px 28px;
}

.mss-seo__toggle .is-expanded,
.mss-seo__content.is-expanded ~ .mss-seo__toggle-wrap .is-collapsed {
  display: none;
}

.mss-seo__content.is-expanded ~ .mss-seo__toggle-wrap .is-expanded {
  display: inline;
}

.mss-seo__content.is-expanded ~ .mss-seo__toggle-wrap .mss-seo__toggle svg {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .mss-seo {
    padding: 50px 0;
  }

  .mss-seo__card {
    border-radius: 20px;
    padding: 28px 22px;
  }

  .mss-seo__content {
    max-height: 320px;
  }

  .mss-seo__text {
    font-size: 15px;
  }

  .mss-seo__text h2,
  .mss-seo__text h3 {
    font-size: 20px;
  }

  .mss-seo__toggle {
    font-size: 13px;
    padding: 12px 22px;
  }
}
