.doctor-item--v2 {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  height: 100%;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(0, 25, 87, 0.04);
  border-radius: 20px;
  box-shadow: 0 10px 16px -6px rgba(0, 25, 87, 0.45);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

@media (hover: hover) and (min-width: 992px) {
  .doctor-item--v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px -6px rgba(0, 25, 87, 0.55);
  }

  .doctor-item--v2:hover .doctor-item__img {
    transform: scale(1.03);
  }
}

.doctor-item--v2 .doctor-item__img-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 192px;
  height: auto;
  min-height: 214px;
  aspect-ratio: auto;
  overflow: hidden;
  background: linear-gradient(180deg, #ebf3fa 0%, #dfecf7 100%);
  border-radius: 14px;
}

.doctor-item--v2 .doctor-item__img-link,
.doctor-item--v2 .doctor-item__img-link picture {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.doctor-item--v2 .doctor-item__img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.doctor-item--v2 .doctor-flag {
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 25, 87, 0.16);
}

.doctor-item--v2 .doctor-flag__img {
  width: 100%;
  height: 100%;
}

.doctor-item--v2 .doctor-item__available {
  right: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: rgba(138, 175, 0, 0.95);
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(0, 25, 87, 0.18);
  pointer-events: none;
}

.doctor-item--v2 .doctor-item__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.doctor-item--v2 .doctor-item__head {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2ecf5;
}

.doctor-item--v2 .doctor-item__name {
  margin: 0;
  padding: 0;
  color: #001957;
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  border-bottom: none;
}

.doctor-item--v2 .doctor-item__name a {
  color: inherit;
  text-decoration: none;
}

.doctor-item--v2 .doctor-item__name a:hover {
  color: #007ac0;
}

.doctor-item--v2 .doctor-item__credentials {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.doctor-item--v2 .doctor-item__spec {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #001957;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.36;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.doctor-item--v2 .doctor-item__spec-prefix {
  color: #007ac0;
  font-weight: 700;
}

.doctor-item--v2 .doctor-item__position {
  display: -webkit-box;
  margin: 0;
  padding-left: 8px;
  overflow: hidden;
  color: #4a5b82;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.32;
  border-left: 2px solid rgba(10, 115, 190, 0.4);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.doctor-item--v2 .doctor-item__meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
  min-height: 34px;
  margin-top: auto;
  margin-bottom: 10px;
  padding: 6px 10px;
  background: #f3f7fb;
  border-radius: 10px;
}

.doctor-item--v2 .doctor-item__stage {
  position: static;
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 5px;
  padding: 0;
  color: #001957;
  font-size: 12.5px;
  line-height: 1.2;
  white-space: nowrap;
  background: transparent;
  border-radius: 0;
}

.doctor-item--v2 .item-stage__span {
  color: #68779b;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
}

.doctor-item--v2 .item-stage__value {
  color: #001957;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}

.doctor-item--v2 .doctor-item__chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
}

.doctor-item--v2 .doctor-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  border-radius: 6px;
}

.doctor-item--v2 .doctor-chip--degree {
  color: #0a73be;
  background: rgba(10, 115, 190, 0.1);
  border: 1px solid rgba(10, 115, 190, 0.2);
}

.doctor-item--v2 .doctor-chip--category {
  color: #3b4e7e;
  background: #fff;
  border: 1px solid #dce6f2;
}

.doctor-item--v2 .doctor-item__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.doctor-item--v2 .doctor-item__meta-bar + .doctor-item__actions {
  margin-top: 0;
}

.doctor-item--v2 .doctor-item__link.btn--primary {
  --height: 42px;
  --padding: 0 16px;
  --unit: 12.5px;
  --btn-radius: 10px;
  --color: #fff;
  --background: #0a73be;
  flex: 1 1 auto;
  width: auto;
  height: 42px;
  min-height: 42px;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (hover: hover) {
  .doctor-item--v2 .doctor-item__link.btn--primary:hover {
    background: #085e9c;
    box-shadow: 0 8px 16px rgba(10, 115, 190, 0.22);
    transform: translateY(-2px);
  }
}

.doctor-item--v2 .doctor-item__profile-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 14px;
  color: #007ac0;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  background: #edf3fa;
  border-radius: 10px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.doctor-item--v2 .doctor-item__profile-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .doctor-item--v2 .doctor-item__profile-btn:hover {
    color: #fff;
    background: #007ac0;
    box-shadow: 0 8px 16px rgba(0, 122, 192, 0.2);
    transform: translateY(-2px);
  }

  .doctor-item--v2 .doctor-item__profile-btn:hover svg {
    transform: translateX(2px);
  }
}

.doctor-item--v2 .doctor-item__actions--no-appointment .doctor-item__profile-btn {
  flex: 1 1 100%;
  width: 100%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 991.98px), (hover: none) {
  .doctor-item--v2,
  .doctor-item--v2:hover {
    transform: none;
    box-shadow: 0 10px 16px -6px rgba(0, 25, 87, 0.45);
  }

  .doctor-item--v2 .doctor-item__img,
  .doctor-item--v2:hover .doctor-item__img {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .doctor-item--v2 {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .doctor-item--v2 .doctor-item__img-wrapper {
    width: 100%;
    height: 215px;
    min-height: 215px;
  }

  .doctor-item--v2 .doctor-item__img {
    max-height: 215px;
    object-fit: contain;
    object-position: bottom center;
  }

  .doctor-item--v2 .doctor-item__available {
    right: 10px;
    bottom: 10px;
    left: 10px;
    height: 32px;
    font-size: 12px;
  }
}


.js-doctors-slider .swiper-slide .doctor-item--v2 {
  width: 100%;
  box-sizing: border-box;
  padding: 18px;
  display: grid;
}

@media (max-width: 767.95px) {
  .js-doctors-slider .doctor-item--v2 {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .js-doctors-slider .doctor-item--v2 .doctor-item__img-wrapper {
    width: 100%;
    height: 215px;
    min-height: 215px;
  }

  .js-doctors-slider .doctor-item--v2 .doctor-item__img {
    max-height: 215px;
    object-fit: contain;
    object-position: bottom center;
  }
}
