.seo-text {
  padding: 80px 0 140px;
}

.seo-text__inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.seo-text__preview {
  position: relative;
  color: var(--color-text-secondary, #6b7280);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

.seo-text__preview.is-truncated {
  max-height: 6.8em;
  overflow: hidden;
}

.seo-text__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--bg-page) 82%);
  pointer-events: none;
}

.seo-text.section--bg-white .seo-text__fade {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--bg-white) 82%);
}

.seo-text.section--bg-light .seo-text__fade {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--bg-light) 82%);
}

.seo-text__full {
  color: var(--color-text-secondary, #6b7280);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

.seo-text__toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 8px 0 0 auto;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  padding: 0;
  border: none;
  cursor: pointer;
  transition: color var(--transition), opacity var(--transition);
}

.seo-text__toggle-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  mask: url('../../assets/img/icons/ui/arrow-redo.svg') center / contain no-repeat;
  -webkit-mask: url('../../assets/img/icons/ui/arrow-redo.svg') center / contain no-repeat;
}

.seo-text__toggle:hover {
  color: var(--dark);
  opacity: 0.85;
}

.seo-text--title {
  padding: 80px 0 140px;
}

.seo-text--title__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.seo-text--title__heading {
  margin: 0 0 22px;
  color: var(--text-main);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.18;
}

.seo-text--title__preview,
.seo-text--title__full {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

.seo-text--title__preview.is-truncated {
  max-height: 5.4em;
}

.seo-text--title .seo-text__fade {
  height: 82px;
}

.seo-text--title .seo-text__toggle {
  margin-top: 18px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .seo-text__toggle {
    font-size: 15px;
  }

  .seo-text__toggle-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }

  .seo-text--title {
    padding: 12px 0 34px;
  }

  .seo-text--title__heading {
    margin-bottom: 16px;
    font-size: 34px;
  }

  .seo-text--title__preview,
  .seo-text--title__full {
    font-size: 16px;
    line-height: 1.45;
  }
}
