/* Подстраницы раздела «Поддержать»: кейс, волонтёрство, ассоциация, партнёры, контакты */

/* Бенто-сетка */
.ps-grid { display: grid; gap: 12px; grid-auto-flow: dense; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ps-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ps-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ps-grid + .ps-grid { margin-top: 12px; }
.c2 { grid-column: span 2; }
.c3 { grid-column: span 3; }
.c4 { grid-column: 1 / -1; }
.r2 { grid-row: span 2; }

/* Плитка */
.ps-t { position: relative; overflow: hidden; min-width: 0; border-radius: 18px; padding: clamp(22px, 2.3vw, 32px); background: var(--bg-2); display: flex; flex-direction: column; gap: 10px; }
.ps-t p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.ps-t h3 { font-size: clamp(20px, 1.7vw, 24px); }
.ps-t--white { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ps-t--navy { background: var(--navy); color: #fff; }
.ps-t--navy p, .sec--dark .ps-t p { color: rgba(255,255,255,.74); }
.ps-t--sun { background: var(--sun); color: var(--ink); }
.ps-t--sun p { color: rgba(13,24,32,.78); }
.sec--dark .ps-t { background: var(--navy-2); color: #fff; }
.sec--dark .ps-t--sun { background: var(--sun); color: var(--ink); }
.sec--dark .ps-t--sun p { color: rgba(13,24,32,.78); }
.ps-k { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: .01em; }
.ps-t--navy .ps-k, .sec--dark .ps-t .ps-k { color: var(--sun); }
.ps-t--sun .ps-k, .sec--dark .ps-t--sun .ps-k { color: rgba(13,24,32,.6); }
.ps-n { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.sec--dark .ps-n { color: var(--sun); }
.ps-big, .ps-t .ps-big { font-size: clamp(28px, 2.8vw, 42px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.ps-mid, .ps-t .ps-mid { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.ps-go { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.ps-t--navy .link, .sec--dark .ps-t .link { color: #fff; }
.ps-t--navy .link:hover, .sec--dark .ps-t .link:hover { color: var(--sun); }
.ps-t a:not(.btn):not(.link) { color: inherit; text-underline-offset: 3px; }

/* Плитка-фото */
.ps-t--img { padding: 0; min-height: 300px; background: var(--navy); color: #fff; justify-content: flex-end; }
.ps-t--img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-t--img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,24,32,0) 35%, rgba(13,24,32,.85) 100%); }
.ps-cap { position: relative; z-index: 1; padding: clamp(20px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 8px; }
.ps-cap p { color: rgba(255,255,255,.85); }
.ps-cap .ps-k { color: var(--sun); }
a.ps-t { text-decoration: none; color: inherit; transition: transform .25s; }
a.ps-t:hover { transform: translateY(-2px); }
a.ps-t--img:hover > img { transform: scale(1.03); }
.ps-t--img > img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ps-pic { margin: calc(-1 * clamp(22px, 2.3vw, 32px)) calc(-1 * clamp(22px, 2.3vw, 32px)) 8px; }
.ps-pic img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

/* Цитата */
.ps-quote, .ps-t .ps-quote { font-size: clamp(24px, 2.4vw, 36px); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; margin: 0; }
.ps-q, .ps-t .ps-q { font-size: 18px; line-height: 1.45; font-weight: 500; letter-spacing: -.012em; color: var(--ink); }
.ps-t--img .ps-cap .ps-q { color: #fff; }

/* Хронология в две колонки */
.ps-time { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ps-time .case__img img { aspect-ratio: 4 / 5; }
.ps-time .sec__head { margin-bottom: 32px; }

/* Лента статей */
.ps-news { display: flex; flex-direction: column; }
.ps-news a { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.ps-news a:last-child { border-bottom: 1px solid var(--line); }
.ps-news time { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ps-news span { font-size: 18px; font-weight: 500; letter-spacing: -.015em; line-height: 1.35; }
.ps-news a:hover span { color: var(--ink-2); }

/* Чипы и списки */
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-chips > * { padding: 8px 14px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.3; text-decoration: none; color: var(--ink); }
.sec--paper2 .ps-chips > * { background: #fff; }
a.ps-chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.ps-docs { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ps-docs > b { font-weight: 600; font-size: 15px; margin-right: 6px; }
.ps-mails { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.ps-mails a { word-break: break-all; }
.ps-ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: ps; }
.ps-ol li { counter-increment: ps; padding-left: 36px; position: relative; font-size: 16px; }
.ps-ol li::before { content: counter(ps); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.ps-t--sun .ps-ol li::before { background: var(--ink); color: var(--sun); }
.ps-t--navy .ps-ol li::before { background: var(--sun); color: var(--ink); }

/* Сплит текст + фото */
.ps-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ps-split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.ps-split .sec__head { margin-bottom: 28px; }
.ps-prose { display: grid; gap: 16px; max-width: 60ch; color: var(--ink-2); }

/* Реквизиты */
.ps-dl { margin: 8px 0 0; display: grid; gap: 0; }
.ps-dl > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.ps-dl dt { font-size: 14px; color: var(--ink-3); }
.ps-dl dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Контакты */
.ps-tel { font-size: clamp(30px, 3.4vw, 52px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; text-decoration: none; color: inherit; font-variant-numeric: tabular-nums; }
.ps-mail { font-size: clamp(20px, 1.9vw, 28px); font-weight: 500; letter-spacing: -.03em; text-decoration: none; color: inherit; word-break: break-all; }
.ps-mail:hover, .ps-tel:hover { text-decoration: underline; text-underline-offset: 4px; }
.ps-soc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ps-soc a { padding: 10px 16px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.ps-soc a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Форма */
.ps-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.ps-form .field { margin-bottom: 14px; }
.ps-form .field--full { grid-column: 1 / -1; }
.ps-form .btn { justify-self: start; grid-column: 1 / -1; }
.ps-form__err { grid-column: 1 / -1; color: #b3261e; font-size: 14px; min-height: 20px; margin: -4px 0 8px; }

/* Финальный призыв */
.ps-end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.ps-end h2 { max-width: 18ch; }
.ps-end .lead { margin-top: 18px; }
.ps-end__b { display: flex; flex-wrap: wrap; gap: 12px; }
.ps-end .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.ps-end .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }

@media (max-width: 1024px) {
  .ps-grid, .ps-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c3 { grid-column: span 2; }
  .r2 { grid-row: auto; }
  .ps-time, .ps-split { grid-template-columns: 1fr; }
  .ps-time .case__img img { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .ps-grid, .ps-grid--3, .ps-grid--2 { grid-template-columns: 1fr; }
  .c2, .c3, .r2 { grid-column: auto; grid-row: auto; }
  .ps-t--img { min-height: 260px; }
  .ps-news a { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .ps-news time { grid-column: 1 / -1; }
  .ps-news span { font-size: 17px; }
  .ps-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .ps-form { grid-template-columns: 1fr; }
}
.ps-t--navy .ps-quote, .ps-t--navy .ps-mid, .sec--dark .ps-t .ps-mid { color: #fff; }
.ps-t--sun .ps-mid, .ps-t--sun .ps-big, .sec--dark .ps-t--sun .ps-mid { color: var(--ink); }
.ps-t .ps-mid { color: var(--ink); }
.sec--dark .ps-t:not(.ps-t--sun) .ps-mid { color: #fff; }
a.ps-t--navy, a.ps-t--img { color: #fff; }
a.ps-t--sun { color: var(--ink); }
