/* Страница «Нас поддерживают» (№763). Шапка страницы и крошки — из razdel.css, общие вещи — из site.css.
   Фото — кадры из ролика клиента 4:3 (800×600). Перелом 900 — компьютер: три колонки, Кремлёв на две. */

.pd-head { padding-bottom: 4px; }
.pd-sec { padding: 22px 0 56px; }

.pd-first, .pd-card, .pd-first blockquote, .pd-card blockquote { margin: 0; }
.pd-first img, .pd-card img { display: block; object-fit: cover; background: var(--sky); }

/* Первая цитата: Сергей Лавров. */
.pd-first { overflow: hidden; border-radius: var(--radius); background: #101E33; color: #fff; }
.pd-first img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 50% 20%; }
.pd-first figcaption { position: relative; padding: 24px 22px 26px; }
.pd-first figcaption::before { content: "\201C"; position: absolute; right: 14px; top: -22px; font: 800 150px/1 Georgia, serif; color: rgba(255, 255, 255, .1); }
.pd-first blockquote p { position: relative; margin: 0; font-size: 18px; font-weight: 600; line-height: 1.45; }
.pd-first blockquote p::before { content: "«"; }
.pd-first blockquote p::after { content: "»"; }
.pd-first b { display: block; margin-top: 16px; font-size: 15px; font-weight: 700; color: #7FB0FF; }

/* Плитки. На телефоне: маленькое фото слева от имени, цитата под ними. */
.pd-grid { display: grid; gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.pd-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 16px; row-gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.pd-card img { width: 76px; height: 76px; border-radius: 16px; object-position: 50% 30%; }
.pd-card__name { margin: 0; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.pd-card blockquote, .pd-card__about { grid-column: 1 / -1; }
.pd-card blockquote p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.pd-card blockquote p::before { content: "«"; }
.pd-card blockquote p::after { content: "»"; }
html[lang="en"] .pd-first blockquote p::before, html[lang="en"] .pd-card blockquote p::before { content: "\201C"; }
html[lang="en"] .pd-first blockquote p::after, html[lang="en"] .pd-card blockquote p::after { content: "\201D"; }

/* Авторство фото из открытых источников (№838): лицензия требует указать автора. */
.pd-card__credit { display: block; margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--ink-3, #6b7a90); }

/* Подпись вместо цитаты (Кремлёв). */
.pd-card__about { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }

@media (min-width: 600px) {
  .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .pd-head .rz-head__title { font-size: 68px; }
  .pd-sec { padding: 40px 0 96px; }
  .pd-first { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: stretch; border-radius: 32px; }
  .pd-first img { height: 100%; aspect-ratio: auto; min-height: 420px; object-position: 50% 30%; }
  .pd-first figcaption { display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; }
  .pd-first figcaption::before { right: 30px; top: -10px; font-size: 260px; }
  .pd-first blockquote p { font-size: 27px; line-height: 1.38; letter-spacing: -.01em; }
  .pd-first b { margin-top: 26px; font-size: 18px; }

  .pd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
  .pd-card { display: block; padding: 0 0 24px; overflow: hidden; }
  .pd-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .pd-card__name { margin: 20px 22px 0; font-size: 21px; }
  .pd-card blockquote { margin: 10px 22px 0; }
  .pd-card blockquote p { font-size: 16px; }
  .pd-card__about { margin: 10px 22px 0; font-size: 15px; }

  /* Кремлёв: широкая плитка на две колонки, фото слева, текст справа — чтобы длинная подпись не растягивала соседей. */
  .pd-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; padding: 0; }
  .pd-card--wide img { grid-row: 1 / -1; height: 100%; aspect-ratio: auto; object-position: 50% 25%; }
  .pd-card--wide .pd-card__name { grid-column: 2; grid-row: 2; margin: 0 32px; font-size: 26px; }
  .pd-card--wide .pd-card__about { grid-column: 2; grid-row: 3; margin: 14px 32px 0; font-size: 16.5px; line-height: 1.55; }
}

/* Широкий экран (№823): Брежневу убрали, плиток семь - Кремлёв на две колонки и шесть по одной, четыре в ряд. */
@media (min-width: 1180px) {
  .pd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pd-card--wide { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pd-card--wide .pd-card__name { margin: 0 26px; font-size: 23px; }
  .pd-card--wide .pd-card__about { margin: 12px 26px 0; font-size: 15px; line-height: 1.5; }
}

/* Последняя плитка (сейчас Деревянко, №838): на трёх колонках (900-1179) девять плиток стоят ровно, десятая одна в ряду - растягиваем её на всю строку, как Кремлёва. На четырёх колонках (1180+) десять плиток встают без дыр, плитка обычная. */
@media (min-width: 900px) and (max-width: 1179px) {
  .pd-card--tail { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; padding: 0; }
  .pd-card--tail img { grid-row: 1 / -1; height: 100%; aspect-ratio: auto; object-position: 50% 25%; }
  .pd-card--tail .pd-card__name { grid-column: 2; grid-row: 2; margin: 0 32px; font-size: 26px; }
  .pd-card--tail .pd-card__about { grid-column: 2; grid-row: 3; margin: 14px 32px 0; font-size: 16.5px; line-height: 1.55; }
  .pd-card--tail blockquote { grid-column: 2; grid-row: 3; margin: 14px 32px 0; }
  .pd-card--tail blockquote p { font-size: 19px; }
}

/* На двух колонках (600-899) плиток одиннадцать - последняя на всю строку, чтобы не висела одна сбоку. */
@media (min-width: 600px) and (max-width: 899px) {
  .pd-card--tail { grid-column: 1 / -1; }
}
