/* ═══════════════════════════════════════════════════════════
   BONO MODO — Стили раздела кейсов
   ═══════════════════════════════════════════════════════════ */

/* ─── Листинг: интро + фильтры ──────────────────────────────── */
.cases-intro__tracks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.track-card { padding: 24px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }
.track-card__name { font-family: var(--font-serif); font-size: 22px; font-weight: 600; }
.track-card__desc { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

.cases-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 36px 46px; }
.cases-filter { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 9px 18px; border-radius: 100px; box-shadow: inset 0 0 0 1px var(--line); transition: .25s; }
.cases-filter:hover { color: var(--accent-deep); box-shadow: inset 0 0 0 1px var(--accent); }
.cases-filter.active { background: var(--ink); color: var(--surface); box-shadow: none; }

/* ─── Деталь кейса ──────────────────────────────────────────── */
.case { padding-block: clamp(20px, 4vw, 40px) clamp(50px, 7vw, 90px); }
.case__head { max-width: 920px; }
.case__track { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); padding: 6px 14px; border-radius: 100px; }
.case__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(36px, 6vw, 76px); line-height: 1.0; letter-spacing: -0.01em; margin-top: 20px; }
.case__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.case__meta b { color: var(--ink-2); font-weight: 600; }
.case__excerpt { font-family: var(--font-serif); font-size: clamp(20px, 2.4vw, 28px); font-style: italic; color: var(--ink-2); line-height: 1.3; margin-top: 28px; max-width: 26ch; }

.case__hero { width: min(840px, 86vh); max-width: 100%; margin: 36px auto 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/3; background: linear-gradient(150deg, var(--accent-soft), var(--rose)); box-shadow: var(--shadow-lg); }
.case__hero img { width: 100%; height: 100%; object-fit: cover; }

.case__layout { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: clamp(34px, 6vw, 72px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }

.case__body { font-size: 17.5px; line-height: 1.72; color: var(--ink-2); }
.case__body h2 { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 36px); font-weight: 600; color: var(--ink); margin-top: 38px; margin-bottom: 14px; line-height: 1.1; }
.case__body h3 { font-family: var(--font-serif); font-size: 23px; font-weight: 600; color: var(--ink); margin-top: 28px; margin-bottom: 10px; }
.case__body p { margin-top: 14px; }
.case__body ul { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.case__body ul li { position: relative; padding-left: 26px; }
.case__body ul li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 13px; top: 4px; }
.case__body blockquote { margin: 28px 0; padding: 22px 28px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; font-family: var(--font-serif); font-size: 22px; font-style: italic; color: var(--ink); }

.case__aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
.case-panel { background: var(--surface); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm); }
.case-panel__title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 16px; }
.case-role { display: flex; flex-direction: column; gap: 12px; }
.case-role li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.case-role li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 7px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.case-tags span { font-size: 12.5px; color: var(--ink-2); background: var(--bg-deep); padding: 6px 12px; border-radius: 100px; }

.case-cta { background: linear-gradient(160deg, var(--ink), #43382D); color: var(--surface); border-radius: var(--r); padding: 28px; }
.case-cta__title { font-family: var(--font-serif); font-size: 24px; font-weight: 600; line-height: 1.1; }
.case-cta__text { color: rgba(252,248,241,0.72); font-size: 14.5px; margin-top: 10px; line-height: 1.5; }
.case-cta .btn { margin-top: 18px; width: 100%; }

/* ─── Результаты ────────────────────────────────────────────── */
.case-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-top: 16px; }
.case-result { background: var(--surface); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm); }
.case-result__num { font-family: var(--font-serif); font-size: 42px; font-weight: 600; color: var(--accent-deep); line-height: 1; }
.case-result__label { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ─── Видео проекта (нативный респонсивный плеер 16:9) ──────── */
.case-video-wrap { position: relative; width: 100%; margin-top: 16px; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #1a1410; }
.case-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ─── Галерея проекта ──────────────────────────────────────── */
.case-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.case-gallery__item { display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); cursor: zoom-in; background: var(--surface-2); }
.case-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.case-gallery__item:hover img { transform: scale(1.05); }
@media (max-width: 560px) { .case-gallery { grid-template-columns: 1fr; } }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: rgba(23,18,13,0.92); backdrop-filter: blur(4px); padding: clamp(16px, 4vw, 40px); cursor: zoom-out; }
.lightbox.is-open { display: grid; animation: fade .25s ease; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 18px; right: 24px; font-size: 36px; line-height: 1; color: #fff; cursor: pointer; }

/* ─── Навигация по кейсам ───────────────────────────────────── */
.case-next { margin-top: clamp(40px,6vw,72px); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid var(--line); }

@media (max-width: 1024px) {
  .cases-intro__tracks { grid-template-columns: repeat(2, 1fr); }
  .case__layout { grid-template-columns: 1fr; }
  .case__aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .case-panel { flex: 1; min-width: 240px; }
}
@media (max-width: 560px) {
  .cases-intro__tracks { grid-template-columns: 1fr; }
  .case__aside { flex-direction: column; }
}
