/* about.css */
.specialist-top {
  display: flex; gap: 40px; align-items: flex-start;
  margin-bottom: 40px;
}
.spec-photo-wrap { flex-shrink: 0; }
.spec-photo {
  width: 220px; height: 260px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--muted); font-size: 3rem; gap: 8px;
  overflow: hidden;
}
.spec-photo img { width:100%; height:100%; object-fit:cover; }
.spec-photo small { font-size:.8rem; }

.spec-info h2 { font-size: 1.8rem; color: var(--white); margin-bottom: 10px; }
.spec-exp { color: var(--orange); font-weight: 600; font-size: 1rem; margin-bottom: 14px; }
.spec-bio { color: var(--muted); line-height: 1.8; font-size: .95rem; }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 16px;
}
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-size: .88rem;
  color: var(--text);
  line-height: 1.5;
}
.cert-thumb {
  height: 130px; background: var(--bg);
  border-radius: 6px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--muted);
  overflow: hidden;
}
.cert-thumb img { width:100%; height:100%; object-fit:cover; }
.cert-title { font-weight: 600; color: var(--white); }
.cert-desc  { font-size: .8rem; color: var(--muted); margin-top: 4px; }

@media(max-width:640px){
  .specialist-top { flex-direction:column; align-items:center; text-align:center; }
  .spec-photo { width:100%; height:200px; }
}

/* ── Адаптив страницы о специалисте ───────────────────────── */
@media (max-width: 700px) {
  .specialist-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .spec-photo { width: 200px; height: 240px; }
  .spec-info h2 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-photo { width: 160px; height: 200px; }
}

/* ── Сертификаты — только фото ─────────────────────────────── */
.cert-photo-only {
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  aspect-ratio: 3/4;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  background: var(--bg);
}
.cert-photo-only:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  border-color: var(--orange);
}
.cert-photo-only img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.cert-photo-only:hover img { transform: scale(1.05); }
.cert-no-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--muted);
}