/* ============================================================
   SPECIALISTS LISTING — specialists/index.html "Наша команда" grid.
   Matches Figma nodes 2273:3418 (desktop) / 2273:3914 (mobile).
   Reuses header.css/footer.css/buttons.css/forms.css(.sec-booking)/
   mobile-booking.css/booking-popup.css verbatim — only the team grid
   is unique to this page.
   ============================================================ */
body.page--specialists-listing { background: #fff; color: var(--c-text); }

/* ── TEAM GRID (desktop) ── */
.spec-team { width: 100%; padding: calc(var(--header-h) + clamp(24px, 3.7vw, 64px)) var(--gutter) 0 var(--gutter); display: flex; flex-direction: column; gap: 64px; }
/* Centred title + rating badges, matching prices.html's .price-hero
   (same clamp, weight, tracking and 20px title→badges gap). The pair is
   wrapped so the section's own 64px head→grid gap can't split them. */
.spec-team__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.spec-team__heading { font-size: clamp(40px, 3.6vw, 64px); font-weight: 400; color: var(--c-text); letter-spacing: -0.04em; line-height: 1; margin: 0; font-style: normal; }
.spec-team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 73px 24px; }
@media (max-width: 1400px) { .spec-team__grid { grid-template-columns: repeat(3, 1fr); gap: 48px 24px; } }
@media (max-width: 1023px) { .spec-team__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; } }

.spec-card {
  position: relative; aspect-ratio: 372 / 532; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(18px, 1.6vw, 24px) clamp(18px, 1.6vw, 24px) clamp(24px, 2.4vw, 36px);
  gap: 12px; text-decoration: none; background: #ccc4b3;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
}
.spec-card:hover, .spec-card:focus-visible { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(48,54,46,0.22); }
.spec-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.spec-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.spec-card:hover img { transform: scale(1.05); }
.spec-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(102,102,102,0) 0%, rgba(0,0,0,0.5) 94%); pointer-events: none; }
.spec-card__name { position: relative; z-index: 2; margin: 0; font-size: clamp(18px, 1.25vw, 24px); font-weight: 500; color: #fff; letter-spacing: -0.04em; line-height: 1; font-style: normal; }
.spec-card__role { position: relative; z-index: 2; margin: 0; font-size: clamp(14px, 0.94vw, 18px); font-weight: 300; color: #fff; line-height: 1.6; font-style: normal; }

@media (max-width: 767px) { .spec-team, .sec-booking, .site-footer { display: none; } }

/* ── TEAM GRID (mobile ≤767px) ── */
.mh-spec-team { display: none; }
@media (max-width: 767px) {
  .mh-spec-team { display: flex; flex-direction: column; gap: 28px; padding: calc(var(--header-h) + 20px) 20px 0; }
  /* .mh-booking's own DOM-adjacent sibling is the hidden .site-footer (a
     <footer>, not a <section>), so base.css's "section + section, section +
     footer" auto-spacing rule never matches it — set the gap explicitly. */
  .mh-booking { margin-top: 64px; }
  /* Заголовок страницы и его подзаголовок на узких экранах ставим по
     центру — так же, как на главной, «О клинике» и «Услугах»: на
     телефоне короткий заголовок у левого края смотрится обрезком,
     а содержимое ниже остаётся выключенным влево, как и было. */
  .mh-spec-team__head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
  .mh-spec-team__heading { font-size: 28px; font-weight: 400; color: var(--c-text); letter-spacing: -0.04em; line-height: 1.1; margin: 0; font-style: normal; }
  .mh-spec-card {
    position: relative; height: 450px; width: 100%; border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px 24px 36px; gap: 12px; text-decoration: none; background: #ccc4b3;
  }
  .mh-spec-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 0; }
  .mh-spec-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(102,102,102,0) 0%, rgba(0,0,0,0.5) 94%); pointer-events: none; }
  .mh-spec-card__name { position: relative; z-index: 2; margin: 0; font-size: 24px; font-weight: 500; color: #fff; letter-spacing: -0.04em; line-height: 1; font-style: normal; }
  .mh-spec-card__role { position: relative; z-index: 2; margin: 0; font-size: 18px; font-weight: 300; color: #fff; line-height: 1.6; font-style: normal; }
}
