/* Образование и отзывы */
.credentials { align-items:start }
.credentials section { min-width:0; align-items:center; row-gap:.8rem }
.credentials .credential-mark { grid-row:1; grid-column:1 }
.credentials section > h2 { grid-row:1; grid-column:2; margin:0 }
.credentials section > .gallery,.credentials section > .education-list,.credentials section > .text-link { grid-column:1/-1; margin:0 }
.credentials section > .education-list { font-size:1rem; line-height:1.55; padding-top:.35rem }
.credentials .gallery { margin-block:.45rem 0; min-width:0; width:100% }
.gallery:focus-visible { outline:2px solid #995739; outline-offset:4px }
.gallery-bar,.gallery-controls,.viewer-nav,.viewer-head,.viewer-foot { display:flex; align-items:center }
.gallery-bar { gap:.7rem; justify-content:space-between; margin-bottom:.55rem }
.gallery-label { color:#526358; font:600 .85rem/1.35 var(--sans); letter-spacing:.012em }
.gallery-controls,.viewer-nav { flex-shrink:0; gap:.3rem }
.gallery-controls:only-child { margin-inline-start:auto }
.gallery-arrow,.viewer-close { display:inline-grid; place-items:center; padding:0; min-width:48px; min-height:48px; border:1px solid #c8cfc4; border-radius:50%; color:var(--ink); background:transparent; font:400 1.65rem/1 var(--sans); cursor:pointer }
.gallery-arrow:hover,.viewer-close:hover { background:#e9eee7; text-decoration:none }
.gallery-count { text-align:center; min-width:3rem; font-size:.88rem; color:#526358; font-variant-numeric:tabular-nums }
.gallery-panel { width:100%; min-width:0; border:1px solid #d6dacd; border-radius:6px; padding:clamp(1rem,2.4vw,1.8rem) }
.document-panel { background:#f6f5ee }
.doc-open { display:grid; place-items:center; width:100%; height:clamp(150px,15vw,205px); position:relative; background:#eaeae1; border-radius:3px; padding:.7rem .75rem; cursor:zoom-in }
.doc-thumb { display:block; width:auto; height:auto; max-width:100%; max-height:100%; min-height:0; filter:drop-shadow(0 1px 3px #293e3320) }
.open-chip { position:absolute; bottom:.45rem; right:.45rem; padding:.25rem .55rem; background:#fffef9f2; border:1px solid #d2d7ca; color:var(--ink); border-radius:3px; font-size:.8rem }
.doc-caption { margin-top:.85rem }.doc-caption h3 { font:600 1.1rem/1.35 var(--sans); margin:0 }
.doc-caption span { font:400 .9rem/1.4 var(--sans); color:var(--soft) }
.review-panel { background:#fbf5ef; display:flex; flex-direction:column; align-items:start; min-height:180px; color:var(--body) }
.credentials .review-initial { margin:0; color:var(--ink); font:600 1.15rem/1.35 var(--sans) }
.review-quote {
  max-width:100%;
  margin:.75rem 0;
  color:var(--ink);
  font:400 clamp(1.09rem,1.48vw,1.32rem)/1.52 var(--serif);
  text-align:start;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.review-source,.viewer-original { display:inline-flex; align-items:center; min-height:48px; width:fit-content; font:550 .98rem/1.45 var(--sans); text-decoration:underline; text-underline-offset:.22em }
.review-source { font-weight:400; color:var(--clay); gap:.3rem; min-width:48px }
#document-viewer { box-sizing:border-box; width:min(940px,calc(100% - 1.5rem)); max-width:100%; max-height:94vh; max-height:94dvh; margin:auto; padding:0; border:0; border-radius:8px; background:#fffefc; color:var(--ink) }
#document-viewer:not([open]) { display:none }
#document-viewer::backdrop { background:#152821bf }
html.viewer-open { overflow:hidden }
.viewer-shell { padding:clamp(.65rem,2vw,1.25rem); display:grid; gap:.7rem }
.viewer-head,.viewer-foot { justify-content:space-between; gap:.65rem }
.viewer-head h2 { font:400 clamp(1.2rem,2.5vw,1.8rem)/1.2 var(--serif); text-align:left; margin:.2rem 0 0; letter-spacing:-.02em }
.viewer-close { flex-shrink:0 }
.viewer-image { display:grid; place-items:center; background:#eeeae1; border-radius:3px; min-height:0 }
.viewer-image img { display:block; width:auto; max-width:100%; max-height:64vh; max-height:64dvh; height:auto }
.viewer-foot { flex-wrap:wrap }
.viewer-original { color:var(--clay); margin-left:auto }
@media(max-width:760px){
  .credentials section { row-gap:.65rem }
  .gallery-bar { gap:.35rem }.gallery-count { min-width:2.55rem }.gallery-controls,.viewer-nav { gap:.2rem }
  .gallery-panel { padding:.95rem }
  .doc-open { height:clamp(155px,47vw,240px) }
  .review-panel { min-height:160px }
  .viewer-head h2 { text-wrap:pretty }
}
@media(max-height:500px) { .viewer-image img { max-height:45vh; max-height:45dvh } }

