
:root{
  --page-bg:#f6f8fb;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e2e8f0;
  --primary:#0f766e;
  --primary-strong:#0b5e58;
  --shadow-sm:0 8px 24px rgba(15,23,42,.05);
  --shadow-lg:0 18px 38px rgba(15,23,42,.1);
  --radius-lg:24px;
  --radius-md:18px;
  --nav-h:64px;
}

html{scroll-padding-top:calc(var(--nav-h) + 16px);}
body{background:var(--page-bg);color:var(--text);}

.site-nav{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(246,248,251,.86);
  backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid rgba(226,232,240,.9);
}

.doctors-section{
  max-width:1200px;
  margin:0 auto;
  padding:24px 16px 40px;
}

.doctors-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  align-items:end;
  margin-bottom:20px;
}

.doctors-heading{max-width:680px;}
.doctors-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  padding:7px 12px;
  border-radius:999px;
  background:#e7f6f3;
  color:var(--primary);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.doctors-title{
  margin:0;
  font-size:clamp(30px,4vw,46px);
  line-height:1.04;
  letter-spacing:-0.01em;
}
.doctors-lead{
  margin:12px 0 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}

.filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.filters label{display:block;}
.filters select{
  min-height:46px;
  padding:0 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  color:var(--text);
  font-size:14px;
  box-shadow:none;
}

.doctors-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:18px;
  align-items:stretch;
}

.doctor-card{
  display:block;
  color:inherit;
  text-decoration:none !important;
  min-height:100%;
  border-radius:24px;
}

.doctor-card,
.doctor-card:hover,
.doctor-card:focus,
.doctor-card:focus-visible,
.doctor-card:active{
  text-decoration:none !important;
}

.doctor-card *{
  text-decoration:none !important;
}

.doctor-card__inner{
  display:flex;
  flex-direction:column;
  min-height:100%;
  padding:18px;
  border:1px solid var(--border);
  border-radius:24px;
  background:var(--surface);
  box-shadow:none;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}

.doctor-card:hover .doctor-card__inner,
.doctor-card:focus-visible .doctor-card__inner{
  transform:translateY(-2px);
  border-color:#d6dee8;
  box-shadow:none;
}

.avatar-wrap{
  width:72px;
  height:72px;
  border-radius:50%;
  overflow:hidden;
  background:linear-gradient(180deg,#f8fafc,#eef2f7);
  box-shadow:inset 0 0 0 1px rgba(226,232,240,.9);
}
.avatar-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:50%;
}
.doctor-card__avatar-placeholder{
  width:100%;
  height:100%;
  background:linear-gradient(180deg,#f1f5f9,#e2e8f0);
}

.doctor-card__text{min-width:0;}
.doctor-card__meta-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:20px;
  margin-bottom:8px;
}
.doctor-specialty{
  margin:0;
  font-size:13px;
  font-weight:700;
  color:var(--primary);
  text-transform:none;
}
.v-badge{color:#2563eb;line-height:1;display:inline-flex;}

.doctor-name{
  margin:0;
  font-size:21px;
  line-height:1.2;
  letter-spacing:-.02em;
}
.doctor-desc{
  margin:10px 0 0;
  color:var(--text);
  font-size:14px;
  line-height:1.55;
}
.doctor-desc__line{display:block;}
.muted{color:var(--muted);}

.doctor-card__footer{
  margin-top:auto;
  padding-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.doctor-card__hint{
  color:var(--muted);
  font-size:13px;
  font-weight:600;
}
.doctor-card__arrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  font-size:18px;
  line-height:1;
}

@media (max-width:900px){
  .doctors-header{grid-template-columns:1fr;align-items:stretch;}
  .filters{justify-content:flex-start;}
}

@media (max-width:640px){
  :root{--nav-h:56px;}
  .doctors-section{padding:18px 14px 32px;}
  .doctors-grid{grid-template-columns:1fr;gap:14px;}
  .doctor-card__inner{padding:16px;border-radius:20px;}
  .doctor-name{font-size:19px;}
  .filters{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .filters label:last-child{grid-column:1 / -1;}
  .filters select{width:100%;}
}
