.sp-contact-time {
    color: #111114;
}
.js-finder-searchform {
    display: none;
}
/* =====================================================
   MENU OVERRIDES — see menu-premium.css for full styles
   ===================================================== */

/* Modal menu — animated appearance */
#modal-menu {
  top: 72px;
  height: auto !important;
  bottom: auto !important;
  transform: translateY(-8px) scale(0.99) !important;
  opacity: 0 !important;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: visible !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-top: 1px solid rgba(209, 213, 219, 0.6);
  box-shadow: 0 12px 40px rgba(30, 40, 100, 0.13) !important;
}

#modal-menu.active {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
}

/* Chevron — items with children (replaced by menu-premium.css logic) */
#sp-header.header-with-modal-menu.center-layout
.sp-megamenu-wrapper
.sp-megamenu-parent > li.sp-has-child > a:after,
#sp-header.header-with-modal-menu.center-layout
.sp-megamenu-wrapper
.sp-megamenu-parent > li.sp-has-child > span:after {
  content: "" !important;
  position: relative !important;
  top: -1px !important;
  left: 0 !important;
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 1.5px solid currentColor !important;
  border-bottom: 1.5px solid currentColor !important;
  transform: rotate(45deg) translateY(-2px) !important;
  margin-left: 5px !important;
  margin-top: 0 !important;
  float: none !important;
  opacity: 0.55;
  font-family: inherit !important;
  font-size: 0 !important;
  background: none !important;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#sp-header.header-with-modal-menu.center-layout
.sp-megamenu-wrapper
.sp-megamenu-parent > li.sp-has-child:hover > a:after,
#sp-header.header-with-modal-menu.center-layout
.sp-megamenu-wrapper
.sp-megamenu-parent > li.sp-has-child:hover > span:after {
  transform: rotate(225deg) translateY(2px) !important;
  opacity: 1;
  display: inline-block !important;
}

/* Показуємо тільки на екранах до 768px */
@media screen and (max-width: 990px) {
    .spmenu-number {
        display: inline-block !important;
        top: 0;
        position: relative;
    }
}

/* За замовчуванням ховаємо (десктоп) */
.menu-img-round img {
  width: 0px;
}

/* Показуємо на мобільних і планшетах до 991px */
@media (max-width: 1000px) {
  .menu-img-round img {
    display: inline-block;
    width: 26px;
    margin-right: 8px;
    margin-bottom: 5px;
  }
}

.menu-img-round-2 img {
  width: 30px;
  display: block;
  margin: 0 auto;
}
/* Приховати зображення на екранах до 991px (планшети і менше) */
@media (max-width: 991px) {
  .menu-img-round-2 {
    display: none;
  }
  .menu-img-round-2 img {
    display: none;
  }
  .menu-marg-bot {
    margin-top: -20px !important;
  }
}
.rotate-on-hover-cust {
    transition: transform 0.3s ease;
    display: block;
}

.rotate-on-hover-cust:hover {
    transform: scale(1.1) rotate(2deg);
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.3), 0 0 35px rgba(255, 255, 255, 0.1), 0 0 25px rgba(255, 255, 255, 0.2);
}
.rotate-on-hover-scale {
    transition: transform 0.3s ease;
    display: block;
}

.rotate-on-hover-scale:hover {
    transform: scale(1.15) rotate(8deg);
}
.rotate-on-hover-scale-m {
    transition: transform 0.3s ease;
    display: block;
}

.rotate-on-hover-scale-m:hover {
    transform: scale(1.05) rotate(8deg);
}

.login-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sp-primary, #607cd0);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s ease;
    color: #fff;
    font-size: 16px;
}

.login-toggle-btn:hover {
    background: var(--sp-primary-hover, #607cd0);
}

/* Анімація іконки */
.login-toggle-btn span {
    display: inline-block;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

/* Стан коли форма відкрита */
.login-toggle-btn.active span {
    transform: rotate(180deg);
}

/* Підміняємо іконку */
.login-toggle-btn.active span::before {
    content: "\f00d"; /* icon-x / close icon */
    font-family: "FontAwesome" !important;
}
.login-toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* Текст привітання */
.login-greeting-inline {
  color: #111114;
  font-size: 18px;
  font-weight: 400;
  white-space: nowrap;
}

.login-toggle-trigger { cursor: pointer; }
.login-toggle-btn { /* ваші стилі */ }
.login-toggle-btn .login-icon { transition: transform .25s ease; }

/* активний стан — підміняємо іконку через псевдо-елемент (для FA6) */
.login-toggle-btn.active .login-icon::before {
  content: "\f00d"; /* fa-xmark */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}


/* Стиль списку в особистому меню */
.login-slide-wrapper .mod-login-logout__options {
    margin: 0;
    padding: 0;
}

.login-slide-wrapper .mod-login-logout__options li {
    margin: 0px 0;
    list-style: none;
}

/* Посилання */
.login-slide-wrapper .mod-login-logout__options li a {
    display: inline-block;
    padding: 3px 0;
    text-decoration: none;
    font-size: 18px;
    color: var(--sp-text, #333);
    border-bottom: 1px solid transparent;
    transition: 0.25s ease;
}

/* Підкреслення тільки при ховері */
.login-slide-wrapper .mod-login-logout__options li a:hover {
    border-bottom-color: var(--sp-primary, #546cb2);
    color: var(--sp-primary, #546cb2);
}
.bord-st-1 {
    border-radius: 50px;
}



/* .gtranslate_wrapper — стилі перенесено в default-2-2.php */

/* Позиціонування праворуч для десктопа — частково за межами екрану */
#gt_float_wrapper {
  position: fixed !important;
  bottom: 130px !important;
  right: -54px !important; /* частково за межами екрану справа */
  z-index: 999999 !important;
  transition: right 0.3s ease-in-out !important;
  padding: 2px 2px !important;
}

/* При наведенні кнопка виїжджає */
#gt_float_wrapper:hover {
  right: 20px !important;
}

/* Стилі перемикача */
.gt_float_switcher {
  font-family: Manrope !important;
  font-size: 16px !important;
  border-radius: 12px !important;
  color: #111114 !important;
  display: inline-block !important;
  line-height: 20px !important;
  background: rgba(255, 255, 255, 0.02) !important; /* ефект скла */
  backdrop-filter: blur(3px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(3px) saturate(150%) !important;
  overflow: hidden !important;
  transition: all 0.3s ease-in-out !important;
  padding: 0px 0px !important;
  float: left !important;
  white-space: nowrap !important;
  box-shadow: 0 0px 0px rgba(0,0,0,0.0) !important;
}

.gt-current-lang{
    padding: 6px 8px !important;
    
}

.gt-selected {
  text-align: left !important;
  background: rgba(255, 255, 255, 0.30) !important; /* ефект скла */
  backdrop-filter: blur(3px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(3px) saturate(150%) !important;
  border-radius: 50px !important;
}

/* Іконка прапора */
.gt_float_switcher img {
  vertical-align: middle !important;
  display: inline-block !important;
  width: 24px !important;
  height: auto !important;
  margin: 0px 36px 0px 8px !important;
  border-radius: 3px !important;
}

/* Ефекти при наведенні */
.gt_float_switcher .gt_options a:hover {
  background: rgba(255, 255, 255, 0.10) !important; /* ефект скла */
  backdrop-filter: blur(3px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(3px) saturate(150%) !important;
  color: #111114 !important;
  border-radius: 26px;
}

/* Мобільна версія: позиціонування теж справа */
@media (max-width: 768px) {
  #gt_float_wrapper {
    bottom: 100px !important;
    left: auto !important;
    right: -70px !important; /* частково за межами екрану справа */
    transition: right 0.3s ease-in-out !important;
  }

  /* При наведенні або фокусі — виїжджає вправо */
  #gt_float_wrapper:hover,
  #gt_float_wrapper:focus-within {
    right: 20px !important;
  }

.gt_float_switcher img {
  vertical-align: middle !important;
  display: inline-block !important;
  width: 24px !important;
  height: auto !important;
  margin: 0px 33px 0px 4px !important;
  border-radius: 3px !important;
}


  .gt_float_switcher {
    float: left !important;
  }
  
  .djacc--sticky.djacc--bottom-right {
    bottom: 0 !important;
    right: 0 !important;
    margin-bottom: 60px !important;
    margin-right: 13px;
  }
  .djacc-popup .djacc__openbtn {
  height: 37px !important;
  line-height: 1 !important;
  width: 37px !important;
  }
}
.callslide-wrapper {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 99;
}

/* Кнопка залишається фіксованою */
.callslide-toggle {
  background: #398de7;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  animation: pulse 4s ease-in-out infinite;
  position: fixed;
  bottom: 30px;
  right: 14px;
  z-index: 10001;
}
.callslide-toggle:hover {
  transform: scale(1.2);
  animation-play-state: paused;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);;
  }
  50% {
    transform: scale(1.20) rotate(10deg);;
  }
}
.sp-contact-phone-col {
    color: #111114;
}
.sp-contact-phone-col-s {
    color: #111114;
    font-size: 12px;
    padding-left: 6px;
}


.d-none {
    font-size: 16px;
    padding-left: 2px;
    font-weight: 500;
}

.date-medic-v {
    font-size: 14px;
    font-weight: 600;
}

.date-medic-f {
    line-height: 1.2;
    padding-bottom: 6px;
}
.infov1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
/* Звичайний стиль для всіх екранів */
.medtextst {
    font-size: 14px;
}

/* Стиль тільки для мобільних екранів (до 768px ширини) */
@media (max-width: 768px) {
    .medtextst {
        display: block;       /* робить текст блоком, переноситься на новий рядок */
        white-space: normal;  /* дозволяє переноси рядків */
    }
}

.medphonest {
    padding-right: 10px;
}
.medphonewr {
    line-height: 1.4;
}
.medwr {
    padding-bottom: 8px;
}
.specialist-img {
  position: relative;
  border-radius: 26px;
  overflow: visible;
}

/* Шейпи */
.specialist-img::before,
.specialist-img::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(55px);
  opacity: .45;
  z-index: 0;
  animation: shapeFloat 9s ease-in-out infinite;
}



/* Картинка */
.specialist-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  animation: imgBreathing 5s ease-in-out infinite;
  will-change: transform;
}

/* Дихання картинки */
@keyframes imgBreathing {
  0%   { transform: scale(1) translateY(0); }
  50%  { transform: scale(1.02) translateY(-4px); }
  100% { transform: scale(1) translateY(0); }
}

/* Рух шейпів */
@keyframes shapeFloat {
  0%   { transform: translate(0,0); }
  50%  { transform: translate(28px, -28px); }
  100% { transform: translate(0,0); }
}

/* 📱 Мобільний — ще трошки живіше */
@media (max-width: 768px) {
  .specialist-img::before,
  .specialist-img::after {
    width: 180px;
    height: 180px;
    filter: blur(45px);
    opacity: .55;
  }

  .specialist-img img {
    animation-duration: 4s;
  }
  .breadcrumb {
      margin-bottom: 10px !important;
  }
}

/* 🖥 Великі екрани — стримано */
@media (min-width: 1400px) {
  .specialist-img::before,
  .specialist-img::after {
    opacity: .35;
  }

  .specialist-img img {
    animation-duration: 6s;
  }
}

/* ♿ доступність */
@media (prefers-reduced-motion: reduce) {
  .specialist-img img,
  .specialist-img::before,
  .specialist-img::after {
    animation: none;
  }
}

.department-button {
    position: absolute;
    margin-top: 40px;
}
.medic-btn {
    margin-top:-4px ;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    border: none;
    border-radius: 0px;
    text-align: left;
    text-decoration: none; /* без підкреслення */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 4px 0px 0px 0px;
    transition: all 0.3s ease;
    background: none;
    /* Анімація кольору */
    animation: glowColor 6s linear infinite;
}

.medic-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    transition: width 0.4s ease, left 0.4s ease;
    transform: translateX(-50%);
}

.medic-btn:hover::after {
    width: 80%;
    left: 50%;
}

.medic-btn:hover {
    color: #00ffcc;
    transform: translateY(-3px) scale(1.05);
}

/* Ключові кадри анімації переливу кольору */
@keyframes glowColor {
    0%   { color: #607cd0; }
    25%  { color: #111114; }
    50%  { color: #607cd0; }
    75%  { color: #111114; }
    100% { color: #607cd0; }
}


@media (max-width: 1000px) {
  .specialist-info .specialist-available-hours,
  .specialist-info .specialist-contact-info,
  .specialist-info .specialist-specialties, .specialist-img {
    display: none;
  }
}

.avalible_txt {
  line-height: 1.2;
  font-size: 14px;
  margin-top: 16px;
  font-weight: 600;
}
.avalible_txt_desc {
  line-height: 1.2;
  font-size: 14px;
  margin-top: 20px;
  font-weight: 400;
}

/* За замовчуванням ховаємо */
.specialist-ah {
  display: none;
}

/* Показуємо тільки на екранах до 1000px */
@media (max-width: 1000px) {
  .specialist-ah {
    display: block;
    margin-top: 0px;
    font-size: 16px;
  }

  .specialist-ah ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .specialist-ah li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(213, 215, 218, 0.3);
  }

  .specialist-ah li:last-child {
    border-bottom: none;
  }

  .specialist-ah .date {
    font-weight: 600;
    color: #111114;
  }

  .specialist-ah .time {
    color: #111114;
    white-space: nowrap;
  }

  .specialist-ah .avalible_txt {
    margin-top: 14px;
    font-size: 14px;
    color: #111114;
    line-height: 1.4;
  }

  .specialist-ah .avalible_txt_desc {
    display: block;
    margin-top: 4px;
    color: #111114;
    font-size: 14px;
    margin-bottom: 30px;
  }
}
.about-specialist {
  background: #fff;
  box-shadow: 0 7px 22px 0 rgba(0,0,0,.09);
  border-radius: 26px;
  padding: 30px 40px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* 📱 Мобільні екрани */
@media (max-width: 768px) {
  .about-specialist {
    padding: 16px;
    margin-left: -10px;
    margin-right: -10px;
  }
}

  
/* За замовчуванням ховаємо на великих екранах */
.specialist-img-m {
  display: none;
  position: relative;
  border-radius: 26px;
  overflow: visible;
  margin-bottom: 20px;
  margin-top: -40px;
}

/* Показуємо тільки до 1000px */
@media (max-width: 1000px) {
  .specialist-img-m {
    display: block;
    margin-top: -40px;
  }

  /* Шейпи */
  .specialist-img-m::before,
  .specialist-img-m::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(55px);
    opacity: .45;
    z-index: 0;
    animation: shapeFloat 9s ease-in-out infinite;
  }

  /* Картинка */
  .specialist-img-m img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    object-position: center 5%;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.04);
    margin: 0 auto;
    transition: 0.35s;
    animation: imgBreathing 3s ease-in-out infinite;
    will-change: transform;
  }
}

/* Показуємо тільки від 769px до 1000px */
@media (min-width: 769px) and (max-width: 1000px) {
  .specialist-img-m {
    display: block;
    margin-top: -20px;
  }
}


/* Дихання картинки */
@keyframes imgBreathing {
  0%   { transform: scale(1) translateY(0); }
  50%  { transform: scale(1.06) translateY(-4px); }
  100% { transform: scale(1) translateY(0); }
}

/* Рух шейпів */
@keyframes shapeFloat {
  0%   { transform: translate(0,0); }
  50%  { transform: translate(28px, -28px); }
  100% { transform: translate(0,0); }
}

/* 📱 Мобільний — ще трошки живіше */
@media (max-width: 768px) {
  .specialist-img-m::before,
  .specialist-img-m::after {
    width: 180px;
    height: 180px;
    opacity: .55;
  }

  .specialist-img-m img {
    animation-duration: 3.5s;
  }
}

/* ♿ доступність */
@media (prefers-reduced-motion: reduce) {
  .specialist-img-m img,
  .specialist-img-m::before,
  .specialist-img-m::after {
    animation: none;
  }
}
/* 📱➡️🖥 Планшети та невеликі екрани (501px – 1000px) */
@media (min-width: 501px) and (max-width: 1000px) {
  .specialist-img-m {
    display: flex;
    justify-content: center;
  }

  .specialist-img-m img {
    max-width: 500px;
  }
}
@media (max-width: 767px) {
    .spmedical-specialists 
    .specialist-wrapper 
    .specialists-img-wrapper 
    .spmedical-btn {
        position: absolute;
        bottom: 6%;
        left: 50%;
        transform: translateX(-50%) scale(1);
        padding: 30px 30px;
        min-width: 260px;
        font-size: 16px;
        line-height: 1.2;
        border-radius: 50px;
        background: rgba(96, 124, 208, 0.8);
        color: #fff;
        z-index: 10;
    }
}


.medic-btn-more {
    margin-top:-10px ;
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 0px;
    text-align: left;
    text-decoration: none; /* без підкреслення */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 4px 0px 0px 0px;
    transition: all 0.3s ease;
    background: none;
    /* Анімація кольору */
    animation: glowColor 6s linear infinite;
}

.medic-btn-more::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    transition: width 0.4s ease, left 0.4s ease;
    transform: translateX(-50%);
}

.medic-btn-more:hover::after {
    width: 80%;
    left: 50%;
}

.medic-btn-more:hover {
    color: #00ffcc;
    transform: translateX(5px) scale(1.05);
}

/* Ключові кадри анімації переливу кольору */
@keyframes glowColor {
    0%   { color: #607cd0; }
    25%  { color: #111114; }
    50%  { color: #607cd0; }
    75%  { color: #111114; }
    100% { color: #607cd0; }
}

@media (max-width: 767px) {
    .medic-btn-more {
    margin-top:-10px ;
    display: inline-block;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 0px;
    text-align: left;
    text-decoration: none; /* без підкреслення */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 4px 0px 0px 0px;
    transition: all 0.3s ease;
    background: none;
    /* Анімація кольору */
    animation: glowColor 6s linear infinite;
}
}


/* Рядковий режим для фільтрів */
.spmedical-filters-row.show-row {
    display: flex;           /* розміщуємо в рядок */
    flex-direction: row;     /* горизонтально */
    gap: 20px;               /* відстань між блоками */
    flex-wrap: wrap;         /* якщо блоків багато – переходять на новий рядок */
}

/* =========================
   DESKTOP & TABLET LANDSCAPE
   ========================= */
@media (min-width: 992px) {
    #toggleFilters {
        display: none; /* кнопка не потрібна */
    }

    .spmedical-filters-row {
        display: flex !important; /* завжди відкрито */
    }
}

/* =========================
   MOBILE & TABLET PORTRAIT
   ========================= */
@media (max-width: 991px) {
    .spmedical-filters-row {
        display: none; /* завжди стартує закритим */
    }
}
.spmedical-filter-wrapper {
    margin-bottom: 20px;
}

/* Заголовок */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: -5px;
}

.filter-toggle label {
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    padding-bottom: 6px;
}

/* Іконка +/− */
.toggle-icon {
    font-weight: bold;
    font-size: 22px;
    margin-top: -10px;
    display: inline-block;
    text-align: center;
}

/* Плавне виїжджання */
.spmedical-category-search .filter-values {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    margin-top: 10px;
}



.spmedical-specialists-search .specialist-wrapper {
    position: relative;
}

.clear-specialist {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #999;
    display: none; /* ховаємо поки немає вибору */
}

.custom-combobox-input:not(:placeholder-shown) + .clear-specialist {
    display: block; /* показуємо хрестик коли щось введено */
}
.spmedical-clear {
    cursor: pointer;
    display: inline-block;
    margin-left: 5px;
    color: #999;
    font-weight: bold;
    font-size: 16px;
}
.spmedical-clear:hover {
    color: #333;
}
.spmedical-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.article-date-hits {
  display: flex;
  justify-content: center; /* Центрування по горизонталі */
  align-items: center;     /* Центрування по вертикалі */
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #111114;
  margin-top: 6px;
  text-align: center;
}

.article-hits {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 3px 10px;
  border-radius: 20px;
  background: linear-gradient(45deg, rgba(242, 243, 247, 0.71) 11%, rgba(209, 211, 234, 0.38) 88%);

  font-weight: 500;
  transition: 0.3s ease;
}

.article-hits:hover {
  background: linear-gradient(45deg, rgba(218, 221, 239, 0.71) 11%, rgba(198, 202, 248, 0.38) 88%);
}

.article-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 3px 10px;
  border-radius: 20px;
  background: linear-gradient(45deg, rgba(242, 243, 247, 0.71) 11%, rgba(209, 211, 234, 0.38) 88%);

  font-weight: 500;
  transition: 0.3s ease;
}

.article-date:hover {
  background: linear-gradient(45deg, rgba(218, 221, 239, 0.71) 11%, rgba(198, 202, 248, 0.38) 88%);
}


/* ===============================
   PREMIUM IMAGE HOVER EFFECT
   Desktop + Mobile (Tap + Scroll)
================================ */

.article-list .article .article-intro-image {
  overflow: hidden !important;
  border-radius: 16px !important;
  position: relative !important;
  transition: transform 0.5s ease, box-shadow 0.5s ease !important;
}

/* Забираємо grayscale зі старих стилів */
.article-list .article .article-intro-image:hover {
  filter: none !important;
}

.article-list .article .article-intro-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.8s ease, filter 0.8s ease !important;
}

/* Overlay */
.article-list .article .article-intro-image::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;

  background: linear-gradient(
    135deg,
    rgba(0, 120, 255, 0.20),
    rgba(255, 0, 150, 0.12),
    rgba(0, 0, 0, 0.10)
  ) !important;

  opacity: 0 !important;
  transition: opacity 0.8s ease !important;
}

/* ===============================
   Desktop Hover Effect
================================ */

.article-list .article .article-intro-image:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 55px rgba(103, 110, 222, 0.2) !important;
}

.article-list .article .article-intro-image:hover img {
  transform: scale(1.15) !important;
  filter: saturate(1.35) contrast(1.12) brightness(1.08) !important;
}

.article-list .article .article-intro-image:hover::after {
  opacity: 1 !important;
}

/* ===============================
   Mobile Tap Effect
================================ */

@media (max-width: 768px) {

  .article-list .article .article-intro-image:active img {
    transform: scale(1.15) !important;
    filter: saturate(1.35) contrast(1.12) brightness(1.08) !important;
  }

  .article-list .article .article-intro-image:active::after {
    opacity: 1 !important;
  }

  /* Scroll Center Effect (class added by JS) */
  .article-list .article .article-intro-image.is-visible img {
    transform: scale(1.15) !important;
    filter: saturate(1.35) contrast(1.12) brightness(1.08) !important;
  }

  .article-list .article .article-intro-image.is-visible::after {
    opacity: 1 !important;
  }
}

.fb-share-icon {
    display: inline-block;
    margin-left: 12px;
}

.fb-share-icon a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #1877f2;
    color: #fff;

    font-size: 16px;
    text-decoration: none;

    transition: all 0.35s ease;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
}

.fb-share-icon a:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.35);
    background: #0f5ec4;
}


.neo-article-nav.neo-style-apple {
  display: flex;
  gap: 18px;
  margin-top: 0px;
  margin-bottom: 30px;
  border-top: 0px solid rgba(0,0,0,0.08);
  padding-top: 40px;
}

.neo-style-apple .neo-btn {
  flex: 1;
  padding: 14px 16px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
  color: #111114;
  transition: 0.25s ease;
}

.neo-style-apple .neo-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

/* ROW */
.neo-style-apple .neo-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* IMAGE */
.neo-style-apple .neo-thumb {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  border: 1.4px solid rgb(255, 255, 255);
  border-radius: 50%;
  object-fit: cover;

  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
}

/* TEXT */
.neo-style-apple .neo-label {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
  display: block;
  margin-bottom: 6px;
  color: #607cd0;
}

.neo-style-apple .neo-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* MOBILE */
@media (max-width: 768px) {
  .neo-article-nav.neo-style-apple {
    flex-direction: column;
  }
}
.article-meta-before-image {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.article-meta-before-image span {
  display: inline-flex;
  align-items: center;
}


/* ===================================== */
/*   PREMIUM MEDIUM STYLE BLOG CARDS     */
/* ===================================== */

/* GRID 3–4 Columns */
.blog-items,
.blog .items-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

/* Card Wrapper */
.hu-modern-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, 0.05);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.06),
        0 2px 6px rgba(0, 0, 0, 0.04);

    transition: all 0.45s cubic-bezier(.2,.9,.2,1);

    opacity: 0;
    transform: translateY(35px);
}

/* Reveal Scroll Animation */
.hu-modern-wrapper.show {
    opacity: 1;
    transform: translateY(0);
}

.hu-modern-wrapper:hover {
    transform: translateY(-8px);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.10),
        0 6px 18px rgba(0, 0, 0, 0.06);
}

/* META */
.hu-modern-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 22px 0;

    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.4px;
    text-transform: uppercase;

    color: #111114;
}

.hu-modern-date,
.hu-modern-hits {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Icons */
.meta-icon {
    width: 16px;
    height: 16px;
    stroke: #111114;
    fill: none;
    stroke-width: 2;
}

/* Views badge */
.hu-modern-hits {
    background: rgba(0, 40, 255, 0.07);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
}

/* IMAGE */
.hu-modern-image {
    overflow: hidden;
    border-radius: 20px;
    margin: 0 20px;
}

.hu-modern-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.7s ease;
}
.hu-modern-image img.is-visible {
  transform: scale(1.05);
}

.hu-modern-wrapper:hover img {
    transform: scale(1.07);
}

/* BODY */
.hu-modern-card {
    padding: 4px 26px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* TITLE */
.hu-modern-card h2,
.hu-modern-card h3 {
    font-size: 22px !important;
    font-weight: 780;
    line-height: 1.22 !important;
    margin: 0;
}

.hu-modern-card h2 a,
.hu-modern-card h3 a {
    color: #111;
    text-decoration: none;
    transition: color 0.35s ease;
}

.hu-modern-card h2 a:hover {
    color: #0077ff;
}

/* TEXT */
.hu-modern-text {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
    color: #111114;
}

/* BUTTON */
.readmore a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 20px;
    border-radius: 16px;

    font-size: 14px;
    font-weight: 750;

    background: #0077ff;
    color: #fff !important;

    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0, 119, 255, 0.18);

    transition: all 0.35s ease;
}

.readmore a:hover {
    background: #005ee0;
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(0, 119, 255, 0.25);
}

/* FEATURED BADGE */
.featured-article-badge {
    position: absolute;
    top: 18px;
    left: 18px;

    padding: 7px 15px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;

    background: linear-gradient(135deg, #ff3d3d, #ff9900);
    color: #fff;

    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.14);
}

/* MOBILE */
@media (max-width: 768px) {
    .hu-modern-image img {
        height: 200px;
    }

    .hu-modern-card h2 {
        font-size: 19px;
    }
}

.hu-details-link {
    display: inline-flex;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #111114;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.hu-details-link:hover {
    transform: translateX(3px);
    color: #4264cc;

}

.hu-details-link span {
    transition: transform 0.3s ease;
    margin-left: 10px;
    margin-top: -5px;
    font-size: 20px;
}

.hu-details-link:hover span {
    transform: translateX(8px);
    color: #4264cc;
}



/* ===== Apple-like base ===== */
:root {
  --glass-bg: rgba(255,255,255,.72);
  --glass-border: rgba(255,255,255,.45);
  --text-main: #111;
  --text-sub: #666;
  --accent: #0071e3;
  --radius: 22px;
  --blur: saturate(180%) blur(18px);
}

#spmedical {
  font-family: 'Manrope', sans-serif;
  color: var(--text-main);
}

/* ===== Main card ===== */
.spmedical-department-wrapper {
  padding: 0px;
  margin-top: -40px;
}

.spmedical-department-main-content {
  margin: auto;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 30px;
  box-shadow: 0 7px 22px 0 rgba(0,0,0,.09);
  animation: fadeUp .9s cubic-bezier(.4,0,.2,1);
}

/* Планшети */
@media (max-width: 1024px) {
  .spmedical-department-main-content {
    padding: 24px;
  }
}

/* Мобільні */
@media (max-width: 768px) {
  .spmedical-department-main-content {
    padding: 18px;
  }
}

/* Дуже малі екрани */
@media (max-width: 480px) {
  .spmedical-department-main-content {
    padding: 14px;
  }
}

/* ===== Image ===== */
.img-wrapper {
  overflow: hidden;
  border-radius: 28px;
  margin-bottom: 30px;
}

.img-wrapper img {
  width: 100%;
  transform: scale(1.05);
  transition: transform 1.2s ease;
}

.img-wrapper:hover img {
  transform: scale(1);
}

/* ===== Title ===== */
.spmedical-title {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

/* ===== Description ===== */
.spmedical-details {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-sub);
  margin-bottom: 40px;
}

/* ===== Tabs ===== */
.nav-tabs {
  border: none;
  gap: 10px;
  margin-bottom: 30px;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 16px;
  color: #111114;
  background: #f5f6fd;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all .35s cubic-bezier(.4,0,.2,1);
}

.nav-tabs .nav-link:hover {
  background: #607cd0;
  border: 1px solid rgb(96, 124, 208);
  color: #fff;
  transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
  background: #607cd0;
  border: 1px solid rgb(96, 124, 208);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Tab content ===== */
.tab-content {
  animation: fadeUp .5s cubic-bezier(.4,0,.2,1);
}

.tab-pane {
  font-size: 16px;
  line-height: 1.4;
}

/* ===== Doctors cards ===== */
.specialists-wrapper {
  background: rgba(255,255,255,.9);
  border-radius: 24px;
  padding: 18px;
  transition: transform .5s cubic-bezier(.4,0,.2,1),
              box-shadow .5s cubic-bezier(.4,0,.2,1);
}

.specialists-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,.12);
}

.specialists-img-wrapper img {
  border-radius: 18px;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== NEU PREMIUM LIGHT STYLE ===== */
.neu-wrap {
  --neu-bg: #fff;
  --neu-card: #fff;
  --neu-accent: #607cd0;
  --neu-text: #1d1d1f;
  --neu-muted: #111114;
  padding: 0px;
  margin-top: 30px;
  border-radius: 26px;
}

.neu-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--neu-text);
}

/* СТАНДАРТНА СІТКА (Chrome, Firefox, Edge) */
.neu-grid {
  column-count: 3;
  column-gap: 24px;
}

/* СТИЛЬ ДЛЯ SAFARI */
@supports (-webkit-hyphens:none) {
  .neu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Зменшуємо вертикальний gap до 0, залишаємо тільки горизонтальний */
    gap: 0 24px; 
    align-items: start;
    column-count: auto;
  }
}

.neu-card {
  background: var(--neu-card);
  border-radius: 22px;
  padding: 24px 24px 26px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  /* margin-bottom тепер є основним регулятором відстані між картками */
  margin-bottom: 20px; 
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease, box-shadow .4s ease;
  -webkit-backface-visibility: hidden;
}

.neu-card.neu-visible {
  opacity: 1;
  transform: translateY(0);
}

.neu-card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,.06), 0 18px 40px rgba(0,0,0,.12);
  transform: translateY(-4px);
}

.neu-card h3 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--neu-text);
}

.neu-card ul { padding-left: 20px; margin: 0; }
.neu-card li { margin-bottom: 0px; font-size: 16px; line-height: 1.2; color: var(--neu-muted); }
.neu-card li::marker { color: var(--neu-accent); font-size: 24px; }

/* АДАПТИВНІСТЬ */
@media (max-width: 1200px) {
  .neu-grid { column-count: 2; }
  @supports (-webkit-hyphens:none) {
    .neu-grid { grid-template-columns: repeat(2, 1fr); }
  }
}

@media (max-width: 768px) {
  .neu-grid { 
    column-count: 1; 
  }
  @supports (-webkit-hyphens:none) {
    .neu-grid { 
        grid-template-columns: 1fr;
        gap: 0; 
    }
  }
  .neu-card { margin-bottom: 16px; }
  .neu-title { font-size: 20px; }
}





/* ===============================
   Apple Premium Minimal Style
   Namespace: spx-apple-premium
================================ */

.spx-apple-premium {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.95),
    rgba(248,248,250,0.95)
  );
  border-radius: 26px;
  padding: 28px 32px;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  color: #111114;
}


/* Планшети */
@media (max-width: 1024px) {
  .spx-apple-premium {
  background: #fff;
  padding: 0px 0px 20px 0px;
  box-shadow: none;
  border: 0px solid rgba(0,0,0,.04);
}
}

/* Мобільні */
@media (max-width: 768px) {
  .spmedical-department-main-content {
    padding: 18px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 26px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 5px 14px rgba(0,0,0,.07);
  }
}

/* Дуже малі екрани */
@media (max-width: 480px) {
  .spmedical-department-main-content {
    padding: 20px 18px 20px 18px;
    border-radius: 26px;
    border: 1px solid rgba(0,0,0,0.06);
    margin-left: -10px;
    margin-right: -10px;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
  }
}

/* Headings */
.spx-apple-premium strong {
  font-weight: 600;
  color: #111;
}

/* Paragraphs */
.spx-apple-premium p {
  margin: 14px 0;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

/* ======================================================
   Apple-style premium blocks (Phone + Schedule)
   Namespace: spx-apple-premium
====================================================== */

.spx-apple-premium {
  --radius: 80px;
  --bg: rgba(255,255,255,0.75);
  --border: rgba(0,0,0,0.06);
  --text-main: #1d1d1f;
  --text-muted: #111114;
}

/* =========================================
   SHARED ROW STYLE
========================================= */

.spx-schedule p,
.spx-phone p {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: center;
  gap: 16px;

  padding: 14px 18px;
  margin-bottom: 12px;

  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.04);

  color: var(--text-main);
  font-size: 16px;

  user-select: none;
  -webkit-tap-highlight-color: transparent;

  transition:
    transform 1.05s cubic-bezier(.22,1,.36,1),
    box-shadow 1.05s cubic-bezier(.22,1,.36,1),
    background 1.05s ease;
}

/* last spacing fix */
.spx-schedule p:last-child,
.spx-phone p:last-child {
  margin-bottom: 0;
}

/* =========================================
   LABEL (LEFT COLUMN)
========================================= */

.spx-schedule strong,
.spx-phone strong {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
}

/* =========================================
   VALUE (RIGHT COLUMN)
========================================= */

.spx-schedule span,
.spx-phone a {
  font-weight: 500;
  color: var(--text-main);
  text-align: right;
  white-space: nowrap;
}

/* remove link behavior */
.spx-phone a {
  pointer-events: absolute;
  text-decoration: none;
  cursor: default;
}

/* =========================================
   HOVER DEPTH INTERACTION (DESKTOP ONLY)
========================================= */

@media (hover: hover) and (pointer: fine) {
  .spx-schedule p:hover,
  .spx-phone p:hover {
    transform: scale(1.006) translateY(-4px);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  }
}

/* =========================================
   MOBILE REFINEMENTS (NO HOVER)
========================================= */

@media (max-width: 640px) {
  .spx-schedule p,
  .spx-phone p {
    padding: 16px;
    font-size: 16px;
  }

  .spx-schedule strong,
  .spx-phone strong {
    font-size: 16px;
  }
}
/* =========================================
   MOBILE TAP DEPTH (no hover, no stick)
========================================= */

@media (hover: none) and (pointer: coarse) {

  .spx-schedule p,
  .spx-phone p {
    transition:
      transform .26s cubic-bezier(.22,1,.36,1),
      box-shadow .26s cubic-bezier(.22,1,.36,1),
      background .26s ease;
  }

  .spx-schedule p:hover,
  .spx-phone p:hover {
    transform: scale(1.020);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);;
  }
}


* ===== Неврологія: стилі для статті ===== */
.neuro-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  font-family: 'Manrope', sans-serif;
  color: #1f2937;
  line-height: 1.65;
}

.neuro-section h2 {
  display: none;    
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #111114;
  position: relative;
  display: none;
}

.neuro-section h2::after {
  content: "";
  width: 70px;
  height: 3px;
  background: #607cd0;
  display: block;
  margin-top: 10px;
  border-radius: 2px;

  transform-origin: left;
  transform: scaleX(0);
}

.neuro-section.is-visible h2::after {
  animation: neuroLineIn .6s cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes neuroLineIn {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}



.neuro-section h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 16px;
  color: #111114;
}

.neuro-section p {
  font-size: 16px;
  margin-bottom: 16px;
  color: #111114;
  line-height: 1.4;
}

/* Акцентний блок */
.neuro-highlight {
  background: linear-gradient(45deg, rgba(233, 237, 250, 0.71) 11%, rgba(228, 225, 242, 0.38) 88%);
  border-left: 6px solid #607cd0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-right: 6px solid #aea1ed;
  padding: 24px 28px;
  border-radius: 80px;
  margin: 40px 0;
  line-height: 1.3;
}

.neuro-highlight strong {
  color: #607cd0;
}


/* Картки */
.neuro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.neuro-card {
  background: #f5f6f8;
  border-radius: 26px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 24px 26px 0px 26px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.neuro-card h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111114;
}

.neuro-card ul {
  padding-left: 20px;
}

.neuro-card li {
  font-size: 16px;
  margin-bottom: 8px;
  color: #111114;
  line-height: 1.4;
}

/* Адаптивність */
@media (max-width: 768px) {
  .neuro-section {
    padding: 0px;
  }

  .neuro-section h2 {
    font-size: 24px;
  }

  .neuro-section h3 {
    font-size: 20px;
  }
  
  .neuro-highlight {
  margin: 20px 0 0px 0;
}  
}

.cat_med_1 {
    line-height: 1.2;
  }
  
 
  
/* =========================
   SPECIALISTS MODULE (NEW)
========================= */

.spec-module {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Manrope', sans-serif;;
}

.spec-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #111114;
}

/* Планшети */
@media (max-width: 1024px) {
  .spec-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #111114;
    line-height: 1.1;
}
}

/* Мобільні */
@media (max-width: 768px) {
  .spec-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #111114;
    line-height: 1.1;
}
}

/* Дуже малі екрани */
@media (max-width: 480px) {
  .spec-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #111114;
    line-height: 1.1;
}
}


.spec-subtitle {
    font-size: 16px;
    color: #111114;
    margin-bottom: 25px;
}

/* =========================
   GRID
========================= */

.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: start;
}

@media (max-width: 1200px) {
    .spec-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .spec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .spec-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}


/* =========================
   GRID HEAD
========================= */

.spec-grid-head {
    display: grid;
    grid-template-columns: 1fr 3fr; /* картка | текст */
    gap: 22px;
    align-items: start;
}

@media (max-width: 900px) {
    .spec-grid-head {
        grid-template-columns: 1fr 2fr;
    }
}

@media (max-width: 600px) {
    .spec-grid-head {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
/* =========================
   CARD
========================= */

.spec-card {
    background: rgba(255,255,255,0.92);
    border-radius: 26px;
    padding: 22px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.35s ease;
    animation: fadeUp 0.55s ease both;
    height: auto;         /* ⬅️ на всякий */
    align-self: start;
}

.spec-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

/* =========================
   PHOTO
========================= */

.spec-photo {
    margin-bottom: 16px;
}

.spec-photo img {
    width: 165px;
    height: 165px;
    object-fit: cover;
    object-position: center 5%;
    transition: 0.35s ease;
}

.spec-card:hover .spec-photo img {
    transform: scale(1.06);
}

/* =========================
   TEXT
========================= */

.spec-name  {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    color: #111114;
    text-decoration: none;
    transition: 0.25s;
}

.spec-name a {
    color: #111114;
    text-decoration: none;
    transition: 0.25s;
}

.spec-name a:hover {
    color: #607cd0;
}

.spec-position {
    font-size: 16px;
    margin-top: 6px;
    font-weight: 400;
    color: #111114;
}

/* =========================
   MOBILE LAYOUT
========================= */

@media (max-width: 600px) {

    .spec-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* ⬅️ ЛІВО */
        padding: 20px 18px;
        text-align: left;        /* ⬅️ ЛІВО */
    }

    /* PHOTO */
    .spec-photo {
        margin-bottom: 14px;
        align-self: flex-start;  /* ⬅️ фото теж зліва */
    }

    .spec-photo img {
        width: 150px;
        height: 150px;
    }

    /* DIVIDER */
    .spec-photo::after {
        content: "";
        display: block;
        width: 90px;
        height: 2px;
        margin: 14px 0 0;        /* ⬅️ не по центру */
        background: linear-gradient(
            90deg,
            #607cd0,
            rgba(96,124,208,0.25)
        );
        border-radius: 2px;
    }

    /* INFO */
    .spec-info {
        width: 100%;
        margin-top: 16px;
    }

    .spec-name a {
        font-size: 22px;
        line-height: 1.2;
    }

    .spec-position {
        font-size: 16px;
        margin-top: 6px;
    }

    .specialist-specialitist {
        font-size: 16px;
        margin-top: 8px;
    }

    /* BUTTON */
    .specialist-profile-btn {
        margin-top: 18px;
        width: 100%;
    }

    .specialist-profile-btn a {
        width: 100%;
        text-align: center; /* кнопку залишаємо по центру — UX краще */
    }
}



/* =========================
   ANIMATION
========================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
  
/* =========================
   PHOTO HOVER ANIMATION
========================= */

.spec-photo {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
}

.spec-photo img {
    transition:
        transform 0.9s cubic-bezier(0.34, 1.2, 0.64, 1),
        box-shadow 0.9s ease;
    will-change: transform;
}

/* Hover — тільки на пристроях з мишею */
@media (hover: hover) {
    .spec-card:hover .spec-photo img {
        transform: scale(1.07);
        box-shadow: 0 6px 20px rgba(96,124,208,0.22);
    }
}

/* Мобільний tap — через JS-клас ._eb-on (електрика) */
@media (hover: none) {
    .spec-card._eb-on .spec-photo img {
        transform: scale(1.07);
        box-shadow: 0 6px 20px rgba(96,124,208,0.22);
    }
}


/* =========================
   CARD REVEAL (PREMIUM)
========================= */

.spec-card {
    animation: cardReveal 0.7s cubic-bezier(.2,.8,.2,1) both;
}

/* stagger effect */
.spec-card:nth-child(1)  { animation-delay: 0.05s; }
.spec-card:nth-child(2)  { animation-delay: 0.10s; }
.spec-card:nth-child(3)  { animation-delay: 0.15s; }
.spec-card:nth-child(4)  { animation-delay: 0.20s; }
.spec-card:nth-child(5)  { animation-delay: 0.25s; }
.spec-card:nth-child(6)  { animation-delay: 0.30s; }
.spec-card:nth-child(7)  { animation-delay: 0.35s; }
.spec-card:nth-child(8)  { animation-delay: 0.40s; }

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}




.specialist-specialitist {
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.35;
    color: #111114;
}

.specialist-specialitist .spec-des {
    font-weight: 500;
    color: #111114;
    margin-right: 0px;
    
}
@media (max-width: 600px) {
    .specialist-specialitist {
        font-size: 16px;
    }
}


/* =========================
   PROFILE BUTTON
========================= */

.specialist-profile-btn {
    margin-top: 16px;
}

.specialist-profile-btn a {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 26px;
    background: #f5f6fd;
    border: 1px solid rgba(0,0,0,0.06);
    color: #111114;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.specialist-profile-btn a:hover {
    background: #607cd0;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 600px) {

    /* фото + ПІБ в один ряд */
    .spec-head {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .spec-name {
        margin-top: -15px;
        font-size: 22px;
        line-height: 1.2;
    }

    .spec-name a {
        font-size: 18px;
    }

    /* divider прибираємо — не потрібен */
    .spec-photo::after {
        display: none;
    }
}
@media (max-width: 600px) {

    .spec-photo {
        width: 140px;
        height: 140px;
        margin-right: 10px;
        flex-shrink: 0;              /* ⬅️ забороняємо стискання */
        border-radius: 50%;
        overflow: hidden;            /* ⬅️ важливо */
        
    }

    .spec-photo img {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;         /* ⬅️ 100% круг */
        object-fit: cover;
        display: block;

    }
}
/* =========================
   DIVIDER
========================= */

.specialist-divider {
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 10px 0 0px;
}
.specialist-divider {
    display: block;
}

@media (max-width: 600px) {
    .specialist-divider {
        display: block;
        grid-column: span 2;
    }
}

.department-head-note {
	padding: 22px 24px;
	background: #fff;
	border-radius: 26px;
	border: 1px solid rgba(0,0,0,0.06);
	box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.department-head-note h3 {
	margin-bottom: 12px;
	font-size: 20px;
	font-weight: 600;
	color: #111;
}

.department-head-note p {
	margin-bottom: 10px;
	font-size: 16px;
	line-height: 1.4;
	color: #333;
}

/* =========================
   HEAD BUTTON D
========================= */

.specialist-head-btn-d {
    margin-top: 16px;
}

.specialist-head-btn-d a {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 26px;
    background: #f5f6fd;
    border: 1px solid rgba(0,0,0,0.06);
    color: #111114;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.specialist-head-btn-d a:hover {
    background: #607cd0;
    color: #fff;
    transform: translateY(-2px);
}

.specialist-head-btn-d a:active {
    background: #607cd0;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 600px) {

    .specialist-head-btn-d {
        display: none;
    }
}



/* =========================
   HEAD BUTTON M
========================= */

.specialist-head-btn-m {
    margin-top: 16px;
}

.specialist-head-btn-m a {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 26px;
    background: linear-gradient(45deg, rgba(242, 243, 247, 0.71) 11%, rgba(209, 211, 234, 0.38) 88%);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    color: #111114;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.specialist-head-btn-m a:hover {
    background: #607cd0;
    color: #fff;
    transform: translateY(-2px);
}

.specialist-head-btn-m a:active {
    background: #607cd0;
    color: #fff;
    transform: translateY(-2px);
}

@media (min-width: 601px) {
    .specialist-head-btn-m {
        display: none;
    }
}

/* =========================
   NEURO SECTION – FULL STYLE
========================= */

/* Layout */
.neuro-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 20px;
}

/* Image container */
.neuro-image {
    position: relative;
    flex: 0 0 460px;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 26px;
    background: transparent; /* запобігає білому фону на iOS */
}

/* Image */
.neuro-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;
    transform-origin: center center;
    backface-visibility: hidden;
}

/* Text */
.neuro-text {
    flex: 1;
}

/* =========================
   APPEAR ANIMATION
========================= */

.neuro-img-animate {
    opacity: 0;
    transform: translateY(32px);
    transition:
        transform 1.1s cubic-bezier(.22,.61,.36,1),
        opacity 1.1s ease,
        box-shadow 1.1s ease;

    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    will-change: transform, opacity;
}

.neuro-img-animate.neuro-img-show {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 18px 42px rgba(0,0,0,0.18);
}

/* =========================
   BREATH ANIMATION (IMG ONLY)
========================= */

.neuro-img-breath img {
    animation: neuroBreathSmooth 3.6s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes neuroBreathSmooth {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.018); }
    100% { transform: scale(1); }
}

/* =========================
   MOBILE ADAPTATION
========================= */

@media (max-width: 768px) {
    .neuro-layout {
        flex-direction: column;
        gap: 20px;
    }

    .neuro-image {
        flex: 100%;
        aspect-ratio: 3 / 2; /* трохи вищий кадр на мобільному */
    }
}

/* =========================
   ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {
    .neuro-img-animate,
    .neuro-img-breath img {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================
   MOBILE – STRONGER BREATH
========================= */
@media (max-width: 768px) {
    .neuro-img-breath img {
        animation-duration: 3.8s;     /* трохи повільніше для плавності */
    }
}

/* окремий keyframes для mobile */
@media (max-width: 768px) {
    @keyframes neuroBreathSmooth {
        0%   { transform: scale(1); }
        50%  { transform: scale(1.045); } /* БІЛЬШЕ, але без "пульсу" */
        100% { transform: scale(1); }
    }
}

/* =========================
   TABLET PORTRAIT (iPad, etc.)
========================= */

@media (min-width: 769px) and (max-width: 1024px)  {

    .neuro-layout {
        gap: 24px;
    }

    .neuro-image {
        flex: 0 0 340px;      /* було 460px — тепер компактніше */
        max-width: 340px;
        aspect-ratio: 4 / 3; /* залишаємо правильну пропорцію */
        border-radius: 26px;
    }

    .neuro-img-animate {
        box-shadow: 0 10px 28px rgba(0,0,0,0.14);
    }
}



@media (min-width: 1001px) {

  .specialist-img-full {
    position: relative;
    margin-bottom: 20px;
    overflow: visible;
  }

  /* Шейпи */
  .specialist-img-full::before,
  .specialist-img-full::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(55px);
    opacity: .45;
    z-index: 0;
    animation: shapeFloat 9s ease-in-out infinite;
  }

  .specialist-img-full img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    object-position: center 5%;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.04);
    margin: 0 auto;
    transition: 0.35s;
    animation: imgBreathing 5s ease-in-out infinite;
    will-change: transform;
  }

  /* Дихання картинки */
  @keyframes imgBreathing {
    0%   { transform: scale(1) translateY(0); }
    50%  { transform: scale(1.02) translateY(-4px); }
    100% { transform: scale(1) translateY(0); }
  }

  /* Рух шейпів */
  @keyframes shapeFloat {
    0%   { transform: translate(0,0); }
    50%  { transform: translate(28px, -28px); }
    100% { transform: translate(0,0); }
  }

  /* ♿ доступність */
  @media (prefers-reduced-motion: reduce) {
    .specialist-img-full img,
    .specialist-img-full::before,
    .specialist-img-full::after {
      animation: none;
    }
  }
}

@media (max-width: 1000px) {
.specialist-img-full img {
    display: none;
}
.specialist-info {
        border: 0px solid rgba(0, 0, 0, 0.06);
    }
}

.specialist-name-txt {
    font-size:24px !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
.specialist-name-txt {
    font-size:22px !important;
    font-weight: 600 !important;
}
}


.dep-sty {
font-size: 13px;
  font-weight: 800;
  padding-left: 10px;
}