/* ==========================================================================
   Страница врача (doctor.html) — шаблон для всех врачей.
   doc-hero · doc-about · timeline (образование) · doc-prices · doc-score ·
   doc-reviews · doc-others (блок «Дипломы» убран → src/blocks-archive/doctor--certificates.html)
   ========================================================================== */

/* hero: портрет справа */
.doc-hero .page-hero__grid{grid-template-columns:minmax(0,7fr) minmax(0,5fr);align-items:end}
.doc-hero__title{font-size:clamp(34px,3.96vw,61px);line-height:1.05}
.doc-hero__title i{display:block}
.doc-hero__lead{margin-top:36px}
.doc-hero .page-hero__meta{margin-top:40px}
.doc-hero .page-hero__actions{margin-top:40px}
.doc-hero__media{width:100%;aspect-ratio:4/5}
.doc-hero__media img{object-position:50% 16%}
.doc-hero__facts{margin-top:88px}

/* о враче */
.doc-about__quote{max-width:1080px;margin-bottom:96px}
.doc-about__quote .quote__text{font-size:40px;line-height:1.14}
.doc-about__cols{padding-top:56px;border-top:1px solid var(--ln)}
.doc-about__h{margin-bottom:28px;font-size:40px;font-weight:500;letter-spacing:-.025em}
.doc-about__prose{font-size:16.5px}
.doc-about__tags{margin-top:32px}
.doc-about__label{margin-bottom:18px;color:var(--fg)}
.doc-edu__title{margin-bottom:56px}

/* candidate for main.css: .timeline — горизонтальная лента «образование / опыт» (вертикальная на ≤768) */
.timeline{display:grid;grid-template-columns:repeat(var(--tl,5),minmax(0,1fr))}
.timeline__item{position:relative;padding-right:32px}
.timeline__when{display:block;color:var(--fg-muted)}
.timeline__mark{position:relative;display:block;height:11px;margin:22px -32px 30px 0}
.timeline__mark::before{content:'';position:absolute;left:0;right:0;top:5px;height:1px;background:var(--ln-2)}
.timeline__mark i{position:absolute;left:0;top:0;z-index:1;width:11px;height:11px;border-radius:50%;border:1px solid var(--fg-soft);background:var(--ctx-bg)}
.timeline__item--now .timeline__mark i{background:var(--fg);border-color:var(--fg);box-shadow:0 0 0 5px color-mix(in srgb,var(--fg) 14%,transparent)}
.timeline__item:last-child .timeline__mark::before{right:32px;background:linear-gradient(90deg,var(--ln-2),transparent)}
.timeline__title{font-size:22px;font-weight:400;line-height:1.15;letter-spacing:-.02em}
.timeline__text{margin-top:10px;font-size:16px;line-height:1.55;color:var(--fg-soft)}

/* услуги и цены */
.doc-prices__l .lead{margin:28px 0 32px}
.doc-prices__l .check-list{margin:24px 0 32px}

/* рейтинг врача */
.doc-score{display:flex;align-items:center;gap:22px;margin:40px 0 34px;padding:22px 0;border-top:1px solid var(--ln);border-bottom:1px solid var(--ln)}
.doc-score__val{font-size:55px;font-weight:500;line-height:1.05;letter-spacing:-.025em;color:var(--acc)}
.doc-score__side{display:flex;flex-direction:column;gap:10px}
.doc-score__note{color:var(--fg-muted)}
.doc-reviews__links{display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.doc-reviews__r{--slide-gap:20px}
.doc-reviews__r .review-card{height:100%;background:var(--bg)}

/* дипломы и сертификаты — плейсхолдеры «листа» */

@media (max-width:1280px){
  .doc-about__quote .quote__text{font-size:42px}
  .timeline__title{font-size:21px}
}
@media (max-width:1024px){
  .doc-hero .page-hero__grid{grid-template-columns:minmax(0,1fr) minmax(0,.85fr);align-items:end}
  .doc-hero__facts{margin-top:64px}
  .doc-about__quote{margin-bottom:64px}
  .doc-about__quote .quote__text{font-size:34px}
  .timeline{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:48px}
  .timeline__item:nth-child(3) .timeline__mark::before{right:32px}
  .doc-score__val{font-size:45px}
  .doc-cases .grid--3{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
  .doc-others .doctor-grid--4{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
}
@media (max-width:860px){
  .doc-cases .grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:768px){
  .doc-hero .page-hero__grid{grid-template-columns:minmax(0,1fr)}
  .doc-hero .doc-hero__media{aspect-ratio:4/4.4}
  .doc-hero__title{font-size:clamp(29px,7.26vw,42px)}
  .doc-hero__lead{margin-top:26px}
  .doc-hero .page-hero__meta{margin-top:30px}
  .doc-hero__facts{margin-top:48px}
  .doc-about__quote{margin-bottom:48px}
  .doc-about__quote .quote__text{font-size:27px}
  .doc-about__cols{padding-top:40px;row-gap:48px}
  .doc-about__h{font-size:32px}
  .timeline{grid-template-columns:minmax(0,1fr);row-gap:0}
  .timeline__item{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:16px;padding:0 0 32px}
  .timeline__mark{grid-row:1/span 3;grid-column:1;height:auto;margin:4px 0 0}
  .timeline__mark::before,.timeline__item:last-child .timeline__mark::before,.timeline__item:nth-child(3) .timeline__mark::before{left:5px;right:auto;top:0;bottom:-36px;width:1px;height:auto;background:var(--ln-2)}
  .timeline__item:last-child .timeline__mark::before{display:none}
  .timeline__when,.timeline__title,.timeline__text{grid-column:2}
  .timeline__title{margin-top:8px;font-size:22px}
  .timeline__text{margin-top:6px}
  .doc-score{margin:28px 0}
  .doc-reviews__links{flex-direction:row;flex-wrap:wrap;gap:16px 26px;margin-bottom:12px}
  .doc-others .doctor-grid--4{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}
}
@media (max-width:560px){
  .doc-cases .grid--3{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:480px){
  .doc-hero .page-hero__actions .btn{width:100%;justify-content:space-between}
  .doc-about__quote .quote__text{font-size:24px}
  .doc-score__val{font-size:40px}
}
