/**
 * Specialists page — premium light redesign.
 * Loaded after specialists.css and scoped to the page template.
 */

body.page-template-page-specialists {
  --sp-ink: #102c45;
  --sp-muted: #607689;
  --sp-blue: #147cac;
  --sp-teal: #18b8a5;
  --sp-orange: #ed6b18;
  --sp-line: #dbe7ed;
  --sp-surface: #f4f8fb;
  --sp-shadow: 0 18px 48px rgba(19, 54, 78, .09);
  background: var(--sp-surface);
}

/* Hero */
body.page-template-page-specialists .heroBanner {
  min-height: 430px;
  height: auto;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-position: center 49%;
}

body.page-template-page-specialists .heroBanner::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 39, 62, .97) 0%, rgba(9, 54, 77, .92) 42%, rgba(11, 91, 108, .64) 100%);
}

body.page-template-page-specialists .heroBanner::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -140px;
  right: -70px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  box-shadow:
    0 0 0 78px rgba(255, 255, 255, .035),
    0 0 0 158px rgba(255, 255, 255, .022);
  pointer-events: none;
}

body.page-template-page-specialists .heroBannerContent {
  display: flex;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1265px;
  margin: 0 auto;
  padding: 78px 24px 112px;
  flex-direction: column;
  align-items: flex-start;
}

body.page-template-page-specialists .heroBannerContent::before {
  content: "Команда медицинского центра";
  order: 1;
  margin: 28px 0 15px;
  color: #8ce0d5;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.page-template-page-specialists .heroBannerContent::after {
  content: "Подберите врача по направлению, опыту и стоимости консультации";
  order: 3;
  max-width: 650px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.6;
}

body.page-template-page-specialists .heroBannerTitle,
body.page-template-page-specialists .heroBannerContent h1 {
  order: 2;
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 6vw, 76px);
  font-style: normal;
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
  text-shadow: none;
}

body.page-template-page-specialists .heroBannerPath {
  display: inline-flex;
  order: 0;
  min-height: 38px;
  padding: 0 14px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

body.page-template-page-specialists .heroBannerPath a,
body.page-template-page-specialists .heroBannerPath .current {
  color: inherit;
}

body.page-template-page-specialists .heroBannerPath a:hover {
  color: #fff;
  text-decoration: none;
}

body.page-template-page-specialists .heroBannerPath .sep {
  margin: 0;
  color: rgba(255, 255, 255, .42);
}

/* Booking card */
body.page-template-page-specialists .bookingBanner {
  display: grid;
  position: relative;
  z-index: 8;
  width: calc(100% - 48px);
  max-width: 1217px;
  min-height: 176px;
  height: auto;
  margin: -52px auto 42px;
  grid-template-columns: minmax(0, 1.75fr) minmax(330px, .9fr);
  overflow: hidden;
  border: 1px solid rgba(208, 224, 233, .9);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(13, 47, 72, .16);
}

body.page-template-page-specialists .bookingBannerLeft {
  display: flex;
  position: relative;
  z-index: 2;
  padding: 31px 38px;
  align-items: center;
  overflow: hidden;
  clip-path: none;
  background:
    radial-gradient(circle at 83% 24%, rgba(255, 255, 255, .13) 0 8%, transparent 8.5%),
    linear-gradient(135deg, #0a526f 0%, #087b83 58%, #18b8a5 100%);
}

body.page-template-page-specialists .bookingBannerLeft::before {
  top: auto;
  right: -74px;
  bottom: -116px;
  left: auto;
  width: 310px;
  height: 310px;
  border: 54px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
  background: none;
  transform: none;
  opacity: 1;
}

body.page-template-page-specialists .bookingBannerContent {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

body.page-template-page-specialists .bookingBannerCopy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

body.page-template-page-specialists .bookingBannerEyebrow {
  display: inline-flex;
  margin: 0 0 9px;
  align-items: center;
  gap: 8px;
  color: #a3e8df;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.page-template-page-specialists .bookingBannerEyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8b3d;
  box-shadow: 0 0 0 5px rgba(255, 139, 61, .13);
}

body.page-template-page-specialists .bookingBannerTitle {
  max-width: 470px;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
}

body.page-template-page-specialists .bookingBannerText {
  max-width: 550px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.5;
}

body.page-template-page-specialists .bookingCtaBtn {
  min-width: 235px;
  min-height: 58px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

body.page-template-page-specialists .bookingCtaBtn:hover {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .2);
  transform: translateY(-2px);
}

body.page-template-page-specialists .bookingCtaBtn .btnIconLeft {
  padding: 0 15px;
  border-radius: 14px 0 0 14px;
}

body.page-template-page-specialists .bookingCtaBtn .btnText {
  padding: 0 8px 0 14px;
  font-size: 13px;
  white-space: nowrap;
}

body.page-template-page-specialists .bookingCtaBtn .btnIconRight {
  padding: 0 14px 0 8px;
}

body.page-template-page-specialists .bookingBannerMid {
  display: flex;
  position: relative;
  z-index: 1;
  margin: 0;
  align-items: center;
  justify-content: center;
  clip-path: none;
  background:
    radial-gradient(circle at 100% 0, rgba(24, 184, 165, .1), transparent 42%),
    #f9fcfd;
}

body.page-template-page-specialists .bookingBannerMid::before {
  display: none;
}

body.page-template-page-specialists .phoneLinkBlock {
  display: flex;
  width: auto;
  margin: 0;
  padding: 24px 28px;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

body.page-template-page-specialists .phoneIconBox {
  width: 52px;
  height: 52px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, #147cac, #18b8a5);
  box-shadow: 0 10px 24px rgba(20, 124, 172, .2);
}

body.page-template-page-specialists .phoneNumber {
  color: var(--sp-ink);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  white-space: nowrap;
}

body.page-template-page-specialists .phoneLabel {
  margin-top: 5px;
  color: #7c8d9b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

body.page-template-page-specialists .bookingBannerStripe {
  display: none;
}

/* Search and filters */
body.page-template-page-specialists .searchBar,
body.page-template-page-specialists .filterSection {
  width: 100%;
  max-width: 1265px;
  margin: 0 auto;
  padding: 0 24px;
}

body.page-template-page-specialists .searchBarInner {
  display: grid;
  padding: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--sp-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--sp-shadow);
}

body.page-template-page-specialists .searchInput {
  width: 100%;
  min-height: 58px;
  padding: 0 22px 0 52px;
  border: 1px solid #d8e4ea;
  border-radius: 15px;
  outline: 0;
  background:
    no-repeat left 18px center / 20px 20px
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23147cac' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"),
    #f8fbfc;
  color: var(--sp-ink);
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body.page-template-page-specialists .searchInput::placeholder {
  color: #8798a7;
}

body.page-template-page-specialists .searchInput:focus {
  border-color: rgba(20, 124, 172, .65);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(20, 124, 172, .1);
}

body.page-template-page-specialists .searchCount {
  display: inline-flex;
  min-height: 44px;
  margin: 0;
  padding: 0 17px;
  align-items: center;
  border: 1px solid #dce9ee;
  border-radius: 999px;
  background: #eff7f9;
  color: #536d7e;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

body.page-template-page-specialists .searchCount::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sp-teal);
  box-shadow: 0 0 0 4px rgba(24, 184, 165, .12);
}

body.page-template-page-specialists .filterSection {
  margin-top: 16px;
}

body.page-template-page-specialists .filterSection::before {
  content: "Направления специалистов";
  display: block;
  margin: 0 0 13px 3px;
  color: var(--sp-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

body.page-template-page-specialists .filterTabs {
  display: flex;
  padding: 18px;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 9px;
  border: 1px solid var(--sp-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 34px rgba(19, 54, 78, .055);
}

body.page-template-page-specialists .filterTab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d7e3e9;
  border-radius: 999px;
  background: #fff;
  color: #536878;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

body.page-template-page-specialists .filterTab:hover {
  border-color: rgba(20, 124, 172, .45);
  background: #f3fafb;
  color: var(--sp-blue);
}

body.page-template-page-specialists .filterTab.active {
  border-color: transparent;
  background: linear-gradient(135deg, #147cac, #18b8a5);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 124, 172, .18);
}

/* Doctor directory */
body.page-template-page-specialists .doctorsSection {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 38px 24px 86px;
  background:
    radial-gradient(circle at 0 8%, rgba(24, 184, 165, .07), transparent 24%),
    radial-gradient(circle at 100% 65%, rgba(20, 124, 172, .055), transparent 27%);
}

body.page-template-page-specialists .doctorsGrid {
  display: grid;
  width: 100%;
  max-width: 1217px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

body.page-template-page-specialists .doctorCard {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(211, 225, 232, .95);
  border-radius: 24px;
  background: #fff;
  color: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(16, 51, 74, .075);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

body.page-template-page-specialists .doctorCard:hover {
  border-color: rgba(20, 124, 172, .3);
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(16, 51, 74, .14);
}

body.page-template-page-specialists .doctorImgWrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / .91;
  background:
    linear-gradient(145deg, rgba(20, 124, 172, .08), rgba(24, 184, 165, .04)),
    #eef5f7;
}

body.page-template-page-specialists .doctorImgWrap::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 16px 14px auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  background:
    no-repeat center / 15px 15px
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c45' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E"),
    rgba(255, 255, 255, .88);
  box-shadow: 0 7px 20px rgba(10, 42, 65, .12);
  backdrop-filter: blur(8px);
  transition: transform .25s ease, background-color .25s ease;
}

body.page-template-page-specialists .doctorCard:hover .doctorImgWrap::before {
  background-color: #fff;
  transform: translateX(3px);
}

body.page-template-page-specialists .doctorImgWrap::after {
  height: 82px;
  background: linear-gradient(transparent, rgba(8, 42, 63, .1));
}

body.page-template-page-specialists .doctorImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

body.page-template-page-specialists .doctorCard:hover .doctorImg {
  transform: scale(1.035);
}

body.page-template-page-specialists .doctorBadge {
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 9px;
  background: rgba(237, 107, 24, .93);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(121, 55, 13, .18);
  backdrop-filter: blur(8px);
}

body.page-template-page-specialists .doctorBody {
  display: flex;
  min-height: 164px;
  padding: 20px 20px 15px;
  flex: 1;
  flex-direction: column;
  text-align: left;
}

body.page-template-page-specialists .doctorName {
  margin: 0 0 6px;
  color: var(--sp-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.025em;
}

body.page-template-page-specialists .doctorSpec {
  min-height: 36px;
  margin: 0 0 13px;
  color: var(--sp-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

body.page-template-page-specialists .doctorMeta {
  display: flex;
  margin: auto 0 0;
  padding: 13px 0 0;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid #edf2f5;
}

body.page-template-page-specialists .doctorMetaItem {
  display: inline-flex;
  min-height: 28px;
  padding: 0 8px;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  background: #f3f7f9;
  color: #697d8b;
  font-size: 10px;
  font-weight: 600;
}

body.page-template-page-specialists .doctorMetaItem svg {
  width: 13px;
  height: 13px;
  color: var(--sp-blue);
}

body.page-template-page-specialists .doctorPrice {
  display: flex;
  margin: 0 20px;
  padding: 14px 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #edf2f5;
  background: transparent;
}

body.page-template-page-specialists .doctorPriceLabel {
  color: #7b8d9a;
  font-size: 10px;
  font-weight: 600;
}

body.page-template-page-specialists .doctorPriceValue {
  color: var(--sp-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

body.page-template-page-specialists .doctorPrice--request .doctorPriceValue {
  font-size: 14px;
  font-weight: 700;
}

body.page-template-page-specialists .doctorCta {
  display: flex;
  min-height: 46px;
  margin: 0 20px 20px;
  padding: 0 15px;
  align-items: center;
  justify-content: space-between;
  border-radius: 13px;
  background: #eef7fa;
  color: #176c93;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: left;
  transition: color .2s ease, background-color .2s ease;
}

body.page-template-page-specialists .doctorCta::after {
  content: "→";
  font-size: 16px;
  font-weight: 500;
}

body.page-template-page-specialists .doctorCard:hover .doctorCta {
  background: linear-gradient(135deg, #147cac, #18b8a5);
  color: #fff;
}

/* Keep the modern contact component visually connected to the directory. */
body.page-template-page-specialists .svcContactPremium {
  margin-top: 0;
}

@media (max-width: 1120px) {
  body.page-template-page-specialists .bookingBanner {
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, .9fr);
  }

  body.page-template-page-specialists .bookingBannerContent {
    gap: 18px;
  }

  body.page-template-page-specialists .bookingBannerText {
    display: none;
  }

  body.page-template-page-specialists .doctorsGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.page-template-page-specialists .heroBanner {
    min-height: 390px;
  }

  body.page-template-page-specialists .bookingBanner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }

  body.page-template-page-specialists .bookingBannerLeft {
    padding: 27px 28px;
  }

  body.page-template-page-specialists .bookingBannerMid {
    min-height: 94px;
    border-top: 1px solid #e1ebef;
  }

  body.page-template-page-specialists .phoneLinkBlock {
    padding: 18px 24px;
  }

  body.page-template-page-specialists .doctorsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.page-template-page-specialists .heroBanner {
    min-height: 350px;
    background-position: 58% center;
  }

  body.page-template-page-specialists .heroBannerContent {
    padding: 54px 20px 82px;
  }

  body.page-template-page-specialists .heroBannerContent::before {
    margin-top: 24px;
    font-size: 10px;
  }

  body.page-template-page-specialists .heroBannerContent::after {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
  }

  body.page-template-page-specialists .heroBannerTitle,
  body.page-template-page-specialists .heroBannerContent h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  body.page-template-page-specialists .bookingBanner {
    margin-top: -42px;
    margin-bottom: 30px;
    border-radius: 22px;
  }

  body.page-template-page-specialists .bookingBannerContent {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.page-template-page-specialists .bookingCtaBtn {
    width: 100%;
    min-width: 0;
  }

  body.page-template-page-specialists .searchBar,
  body.page-template-page-specialists .filterSection {
    padding: 0 16px;
  }

  body.page-template-page-specialists .searchBarInner {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  body.page-template-page-specialists .searchCount {
    width: max-content;
    min-height: 34px;
  }

  body.page-template-page-specialists .filterTabs {
    padding: 13px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  body.page-template-page-specialists .filterTabs::-webkit-scrollbar {
    display: none;
  }

  body.page-template-page-specialists .filterTab {
    flex: 0 0 auto;
  }

  body.page-template-page-specialists .doctorsSection {
    padding: 28px 16px 64px;
  }
}

@media (max-width: 560px) {
  body.page-template-page-specialists .bookingBannerLeft {
    padding: 24px 20px;
  }

  body.page-template-page-specialists .bookingBannerTitle {
    font-size: 22px;
  }

  body.page-template-page-specialists .bookingCtaBtn .btnText {
    font-size: 12px;
  }

  body.page-template-page-specialists .phoneLinkBlock {
    padding: 17px 20px;
  }

  body.page-template-page-specialists .phoneIconBox {
    width: 46px;
    height: 46px;
  }

  body.page-template-page-specialists .phoneNumber {
    font-size: 19px;
  }

  body.page-template-page-specialists .doctorsGrid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.page-template-page-specialists .doctorCard {
    max-width: 430px;
    margin: 0 auto;
  }

  body.page-template-page-specialists .doctorImgWrap {
    aspect-ratio: 1 / .88;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-template-page-specialists .doctorCard,
  body.page-template-page-specialists .doctorImg,
  body.page-template-page-specialists .doctorCta,
  body.page-template-page-specialists .filterTab {
    transition: none;
  }
}
