/* ===== Наші роботи — case gallery page ===== */

.sv-hero__photo { overflow: hidden; }

/* Hero photo temporarily removed — let the copy take the full row. */
.gal-hero-top--solo { grid-template-columns: minmax(0, 1fr); }
.gal-hero-top--solo .sv-hero__copy { max-width: 640px; }

/* ---------- Filter bar ---------- */
.gal-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.gal-filter .sv-filter-btn.pill-active { background: var(--gradient-brand); border-color: transparent; color: #fff; box-shadow: var(--shadow-glow); }

/* ---------- Case grid ---------- */
.gal-cases { padding-block: clamp(40px, 6vw, 72px); }
.gal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.gal-case {
  background: var(--surface-0); border: 1px solid var(--surface-line); border-radius: var(--radius-xl);
  padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.gal-case:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.gal-case.is-filtered-out { display: none; }
.gal-case__slider { aspect-ratio: 4 / 3; box-shadow: none; }
.gal-case__body { padding: 18px 4px 4px; display: flex; flex-direction: column; flex: 1; }
.gal-case__body h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; color: var(--ink-900); }
.gal-case__body > p { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--ink-500); }

.gal-case__meta { display: flex; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--surface-line); }
.gal-case__meta > div { display: flex; flex-direction: column; gap: 3px; }
.gal-case__label { font-size: 11px; color: var(--ink-500); }
.gal-case__meta b { font-size: 12.5px; font-weight: 700; color: var(--ink-900); }

.gal-case__doctor {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px;
  border-radius: var(--radius-md); background: var(--surface-50);
  transition: background var(--dur-fast) var(--ease-out);
}
.gal-case__doctor:hover { background: var(--violet-50); }
.gal-case__doctor img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center top; flex: none; }
.gal-case__doctor small { display: block; font-size: 10.5px; color: var(--ink-500); }
.gal-case__doctor b { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-900); }

.gal-case__cta { margin-top: 14px; margin-top: 14px !important; width: 100%; justify-content: center; padding: 13px 20px !important; font-size: 13.5px !important; }

@media (max-width: 900px) {
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 640px) {
  .gal-grid { grid-template-columns: 1fr; }
}

/* ---------- Process strip ---------- */
.gal-process { padding-block: clamp(40px, 6vw, 72px); background: var(--surface-50); }
.gal-process h2 { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.8vw, 32px); color: var(--ink-900); margin-bottom: clamp(28px, 4vw, 44px); }
.gal-process__grid { display: flex; align-items: flex-start; justify-content: center; gap: 14px; flex-wrap: wrap; }
.gal-process__step { max-width: 190px; text-align: center; }
.gal-process__num { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--violet-400); margin-bottom: 6px; }
.gal-process__step h4 { font-size: 14.5px; font-weight: 700; color: var(--ink-900); }
.gal-process__step p { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--ink-500); }
.gal-process__arrow { color: var(--violet-300); font-size: 18px; margin-top: 18px; }

@media (max-width: 900px) {
  .gal-process__arrow { display: none; }
  .gal-process__grid { flex-direction: column; align-items: center; gap: 28px; }
  .gal-process__step { max-width: 320px; width: 100%; }
}
