/* Страницы раздела «Корабль»: история, экипаж, выбор профессии */

/* ---------- Бенто ---------- */
.ps-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ps-t { position: relative; border-radius: 18px; padding: clamp(22px, 2.4vw, 32px); background: var(--bg-2); display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden; }
.ps-t h3 { font-size: clamp(21px, 1.8vw, 26px); letter-spacing: -.03em; }
.ps-t p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.ps-t p + p { margin-top: -2px; }
.ps-t .link { margin-top: auto; padding-top: 6px; }
.ps-t__k { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.ps-t--w { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sec--paper2 .ps-t:not(.ps-t--navy):not(.ps-t--sun):not(.ps-t--img) { background: #fff; }
.ps-t--navy { background: var(--navy); color: #fff; }
.ps-t--navy p { color: rgba(255,255,255,.75); }
.ps-t--navy .ps-t__k { color: var(--sun); }
.ps-t--navy .link { color: #fff; }
.ps-t--sun { background: var(--sun); }
.ps-t--sun p, .ps-t--sun .ps-t__k { color: rgba(13,24,32,.75); }
.ps-t--img { padding: 0; min-height: 320px; color: #fff; background: var(--navy); 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-t--img .ps-t__b { position: relative; z-index: 1; padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.ps-t--img p { color: rgba(255,255,255,.85); }
.ps-t--img .ps-t__k { color: var(--sun); }
.ps-t--pic { padding: 0; min-height: 260px; background: var(--bg-2); }
.ps-t--pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-t--pic.is-contain img { object-fit: contain; background: #fff; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s6 { grid-column: 1 / -1; }
.r2 { grid-row: span 2; }

/* Крупные цифры */
.ps-num b { display: block; font-size: clamp(44px, 4.6vw, 72px); font-weight: 500; letter-spacing: -.055em; line-height: .95; font-variant-numeric: tabular-nums; }
.ps-num span { font-size: 15px; color: var(--ink-2); }
.ps-t--navy.ps-num span { color: rgba(255,255,255,.7); }
.ps-t--sun.ps-num span { color: rgba(13,24,32,.75); }

/* ---------- Сравнение школ ---------- */
.ps-vs { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 12px; }
.ps-vs ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ps-vs li { padding-left: 22px; position: relative; font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.ps-vs li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.ps-vs .ps-t--navy li { color: rgba(255,255,255,.8); }
.ps-vs .ps-t--navy li::before { background: var(--sun); }
.ps-fig { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; }
.ps-fig img { width: 100%; display: block; }
.ps-fig figcaption, .ps-cap { font-size: 14px; color: var(--ink-3); padding: 12px 4px 0; }

/* ---------- Капитаны (на тёмном) ---------- */
.ps-caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-caps li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 16px; }
.ps-caps li span { color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ps-dark2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ps-dark2 h3 { margin-bottom: 18px; color: #fff; }
.ps-dark2 .chron span { color: rgba(255,255,255,.8); }

/* ---------- Фото-плитки ремёсел ---------- */
.ps-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ps-ph { border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.sec:not(.sec--paper2) .ps-ph { background: var(--bg-2); }
.ps-ph__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.ps-ph__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.ps-ph:hover .ps-ph__img img { transform: scale(1.04); }
.ps-ph__b { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.ps-ph__b h3 { font-size: 20px; }
.ps-ph__b p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Спонсоры ---------- */
.ps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ps-list li { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ps-list li:last-child { border-bottom: 0; }
.ps-list b { font-weight: 600; }
.ps-list span { color: var(--ink-2); }

/* ---------- Видео ---------- */
.ps-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.ps-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ps-video__row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }

/* ---------- Роли: волонтёр и практикант ---------- */
.ps-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ps-role { border-radius: 18px; overflow: hidden; background: var(--bg-2); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.sec--paper2 .ps-role { background: #fff; }
.ps-role__img { min-height: 100%; background: var(--line); }
.ps-role__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-role__b { padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.ps-role__b h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.035em; }
.ps-role__b p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.ps-role__b .btn { align-self: flex-start; margin-top: auto; }
.ps-role__b .ticks li { font-size: 15px; color: var(--ink-2); }

/* ---------- Страны ---------- */
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-chips span { padding: 9px 16px; border-radius: 100px; background: #fff; font-size: 15px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.sec--paper2 .ps-chips span { box-shadow: none; }
.ps-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ps-split > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.ps-split .lead + .lead { margin-top: 16px; }
.ps-split h2 { margin-bottom: 22px; }

/* ---------- Выпускники ---------- */
.ps-grads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ps-g { padding: 16px 18px; border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.sec:not(.sec--paper2) .ps-g { background: var(--bg-2); }
.ps-g b { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.ps-g small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.ps-g span { font-size: 14px; color: var(--ink-2); line-height: 1.4; margin-top: 4px; }
.ps-g--cap { background: var(--navy) !important; color: #fff; }
.ps-g--cap small { color: var(--sun); }
.ps-g--cap span { color: rgba(255,255,255,.75); }

/* ---------- Истории ---------- */
.ps-stories { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ps-st { border-radius: 18px; overflow: hidden; background: var(--bg-2); display: flex; flex-direction: column; }
.sec--paper2 .ps-st { background: #fff; }
.ps-st__img { aspect-ratio: 21 / 9; overflow: hidden; background: var(--navy); }
.ps-st__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-st__img--txt { display: flex; align-items: flex-end; padding: 24px 28px; color: #fff; }
.ps-st__img--txt q { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.025em; line-height: 1.25; quotes: '«' '»'; }
.ps-st__b { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ps-st__b h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.035em; }
.ps-st__r { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.ps-st__b p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.ps-st__b .link { margin-top: auto; padding-top: 8px; }

@media (max-width: 1024px) {
  .ps-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s2, .s3, .s4 { grid-column: span 1; } .s6 { grid-column: 1 / -1; }
  .r2 { grid-row: auto; grid-column: 1 / -1; }
  .ps-vs { grid-template-columns: 1fr 1fr; } .ps-vs > :last-child { grid-column: 1 / -1; }
  .ps-photos { grid-template-columns: 1fr 1fr; }
  .ps-dark2, .ps-split, .ps-video__row { grid-template-columns: 1fr; }
  .ps-roles { grid-template-columns: 1fr; }
  .ps-grads { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ps-bento, .ps-vs, .ps-photos, .ps-stories { grid-template-columns: 1fr; }
  .s2, .s3, .s4, .s6, .r2 { grid-column: auto; }
  .ps-t--img { min-height: 280px; } .ps-t--pic { min-height: 220px; }
  .ps-caps { grid-template-columns: 1fr; }
  .ps-role { grid-template-columns: 1fr; } .ps-role__img { aspect-ratio: 16 / 10; }
  .ps-grads { grid-template-columns: 1fr 1fr; }
  .ps-list li { grid-template-columns: 1fr; gap: 2px; }
  .ps-st__img { aspect-ratio: 16 / 9; }
}
.ps-ph__img.is-contain img { object-fit: contain; background: #fff; }
