/* =====================================================================
   ФПСМ components — buttons already in tokens; section heads, cards, unused hero leftover.
   ===================================================================== */
/* ---------- Shared components ---------- */
.fpsm-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}
.fpsm-section-head h2 {
  font-family: var(--fpsm-font-head);
  font-weight: 700;
  font-size: var(--fpsm-fs-h2);
  color: var(--fpsm-forest);
  margin-top: 6px;
}
.fpsm-section-head.fpsm-on-dark h2 {
  color: var(--fpsm-paper);
}
.fpsm-section-head__more {
  font: 600 15px/1.4 var(--fpsm-font-body);
  color: var(--fpsm-heritage);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.fpsm-on-dark .fpsm-section-head__more {
  color: var(--fpsm-paper);
}

.fpsm-content-card {
  overflow: hidden;
}
.fpsm-content-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.fpsm-content-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.fpsm-content-card--compact a {
  flex-direction: row;
  align-items: stretch;
  min-height: 96px;
}
.fpsm-content-card--compact .fpsm-content-card__media {
  flex: none;
  width: 120px;
}
.fpsm-content-card--compact .fpsm-content-card__media img {
  width: 120px;
  height: 100%;
  min-height: 88px;
  aspect-ratio: auto;
}
.fpsm-content-card--compact .fpsm-content-card__body {
  padding: 12px 14px;
  justify-content: center;
  gap: 6px;
}
.fpsm-content-card--compact h3 {
  font-size: 17px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.fpsm-content-card--compact .fpsm-content-card__meta {
  letter-spacing: 0.6px;
}
.fpsm-content-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.fpsm-content-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font: 600 13px/1.4 var(--fpsm-font-body);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fpsm-trail-deep);
}
.fpsm-content-card h3 {
  font-family: var(--fpsm-font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--fpsm-forest);
  margin: 0;
}
.fpsm-content-card__excerpt {
  color: var(--fpsm-stone);
  font-size: var(--fpsm-fs-small);
}
.fpsm-content-card--featured h3 {
  font-size: clamp(26px, 3vw, 36px);
}

.fpsm-sos {
  display: flex;
  gap: 16px;
  align-items: center;
  background: color-mix(in srgb, var(--fpsm-rescue) 10%, var(--fpsm-paper));
  border: 1.5px solid color-mix(in srgb, var(--fpsm-rescue) 32%, var(--fpsm-paper));
  border-radius: var(--fpsm-radius-lg);
  padding: 22px;
}
.fpsm-sos__badge {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--fpsm-rescue);
  color: var(--fpsm-paper);
  display: grid;
  place-items: center;
  font: 700 26px/1 var(--fpsm-font-head);
  flex: none;
}
.fpsm-sos__title {
  font-family: var(--fpsm-font-head);
  font-size: 20px;
  color: var(--fpsm-ink);
}
.fpsm-sos__text {
  font-size: 14.5px;
  color: var(--fpsm-stone);
}

.fpsm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fpsm-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 16px;
  border: 1.5px solid var(--fpsm-line);
  border-radius: 30px;
  font: 400 15px/1.2 var(--fpsm-font-body);
  color: var(--fpsm-stone);
  background: var(--fpsm-paper);
}
.fpsm-pill.is-active {
  background: var(--fpsm-forest);
  border-color: var(--fpsm-forest);
  color: var(--fpsm-paper);
  font-weight: 600;
}

.fpsm-doc {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 16px 0;
  border-bottom: 1px solid var(--fpsm-line);
  color: var(--fpsm-ink);
}
.fpsm-doc__type {
  flex: none;
  width: 52px;
  text-align: center;
  font: 600 12px/1.4 var(--fpsm-font-body);
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--fpsm-tint-orange);
  color: var(--fpsm-trail-deep);
}
.fpsm-doc__title {
  flex: 1;
  font-weight: 600;
}
.fpsm-doc__size {
  color: var(--fpsm-stone);
  font-size: 14px;
}

.fpsm-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}
.fpsm-pager a {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--fpsm-line);
  display: grid;
  place-items: center;
  font-weight: 600;
  background: var(--fpsm-card);
  color: var(--fpsm-ink);
}
.fpsm-pager .is-active {
  background: var(--fpsm-forest);
  color: var(--fpsm-paper);
  border-color: var(--fpsm-forest);
}
.fpsm-pager__wide {
  width: auto;
  padding: 0 18px;
}

.fpsm-page-hero {
  position: relative;
  min-height: 360px;
  background: var(--fpsm-forest);
  overflow: hidden;
  color: var(--fpsm-paper);
}
.fpsm-page-hero__art {
  position: absolute;
  right: 0;
  top: 0;
  height: 360px;
  width: auto;
  max-width: none;
  pointer-events: none;
}
.fpsm-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(25, 57, 50, 0.96) 0%, rgba(25, 57, 50, 0.86) 30%, rgba(25, 57, 50, 0.25) 55%, rgba(25, 57, 50, 0) 70%);
}
.fpsm-page-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 40px;
}
.fpsm-page-hero h1 {
  font-family: var(--fpsm-font-head);
  font-weight: 700;
  font-size: var(--fpsm-fs-h1);
  margin: 8px 0 10px;
}
.fpsm-page-hero .fpsm-eyebrow {
  color: var(--fpsm-trail);
  margin-top: 22px;
}
.fpsm-page-hero__intro {
  max-width: 560px;
  font-size: var(--fpsm-fs-lead);
  color: color-mix(in srgb, var(--fpsm-paper) 88%, transparent);
}
.fpsm-page-hero__crumbs {
  font-size: 14px;
  color: color-mix(in srgb, var(--fpsm-paper) 70%, transparent);
}
.fpsm-page-hero__crumbs b {
  color: var(--fpsm-paper);
}
.fpsm-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.fpsm-page-hero__tag {
  position: absolute;
  z-index: 3;
  font: 600 13px/1.4 var(--fpsm-font-body);
  color: var(--fpsm-paper);
  background: rgba(16, 43, 37, 0.72);
  border: 1px solid color-mix(in srgb, var(--fpsm-paper) 25%, transparent);
  border-radius: 20px;
  padding: 3px 11px;
}
@media (max-width: 959px) {
  .fpsm-page-hero {
    min-height: 0;
  }
  .fpsm-page-hero__art {
    height: 220px;
    right: -80px;
    opacity: 0.55;
  }
  .fpsm-page-hero__tag {
    display: none;
  }
  .fpsm-page-hero::before {
    background: linear-gradient(180deg, rgba(25, 57, 50, 0.25) 0%, rgba(25, 57, 50, 0.75) 45%, rgba(25, 57, 50, 0.97) 75%);
  }
}

