/* Главный баннер портального типа. Не затрагивает врачей. */
.home-main > .feature {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: 380px;
    min-height: 380px;
    padding: 0;
    background: #123e46;
}
.home-main > .feature .featuregrid {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 0;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
}
.home-main > .feature .featurevisual {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #123e46;
    pointer-events: none;
}
.home-main > .feature .featurevisual::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,rgba(4,28,36,.84) 0%,rgba(4,28,36,.64) 47%,rgba(4,28,36,.17) 100%);
}
.home-main > .feature #slide-image {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    border-radius: 0;
    opacity: 1;
    transition: opacity .25s ease;
}
.home-main > .feature #slide-image[hidden] { display: none; }
.home-main > .feature .featurecopy {
    position: relative;
    z-index: 2;
    width: min(100%, 790px);
    max-width: 790px;
    min-width: 0;
    margin: 0;
    padding: 32px 0 30px;
    color: #fff;
    text-align: left;
}
.home-main > .feature .featurecopy .eyebrow,
.home-main > .feature #slide-title,
.home-main > .feature #slide-desc { color: #fff !important; }
.home-main > .feature #slide-title {
    margin: 10px 0;
    font-size: clamp(26px,3.1vw,44px);
    line-height: 1.12;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.home-main > .feature #slide-desc {
    max-width: 660px;
    font-size: clamp(14px,1.3vw,17px);
    line-height: 1.45;
    margin: 0 0 14px;
}
.home-main > .feature .heroactions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.home-main > .feature .slidercontrols { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.home-main > .feature .slidercontrols button { cursor: pointer; }
.home-main > .feature #slide-count { color: #fff; }
@media (max-width: 768px) {
    .home-main > .feature { height: 330px; min-height: 330px; }
    .home-main > .feature .featuregrid { min-height: 0; height: 100%; }
    .home-main > .feature .featurecopy { padding: 22px 0; }
    .home-main > .feature #slide-title { font-size: clamp(24px,5vw,34px); }
    .home-main > .feature .featurevisual::after { background: linear-gradient(0deg,rgba(4,28,36,.92),rgba(4,28,36,.2)); }
}
@media (max-width: 480px) {
    .home-main > .feature { height: 390px; min-height: 390px; }
    .home-main > .feature .heroactions { gap: 7px; }
    .home-main > .feature .heroactions a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-main > .feature #slide-image { transition: none; }
}

/* Шаг 46.17: плавная смена слайдов без стрелок */
.home-main > .feature .slidercontrols { display: none !important; }
.home-main > .feature .featurevisual .slide-fade-layer {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%; object-fit: cover;
    object-position: center; opacity: 0;
    transition: opacity 1.15s ease-in-out, transform 5.8s ease-out;
    transform: scale(1.045);
}
.home-main > .feature .featurevisual .slide-fade-layer.is-visible {
    opacity: 1; transform: scale(1);
}
.home-main > .feature .featurevisual::after { z-index: 2; }
.home-main > .feature #slide-image { position: absolute; inset: 0; z-index: 0; }
.home-main > .feature .featurecopy .eyebrow,
.home-main > .feature #slide-title,
.home-main > .feature #slide-desc,
.home-main > .feature .heroactions {
    transition: opacity .5s ease, transform .5s ease;
}
.home-main > .feature .featurecopy.is-changing .eyebrow,
.home-main > .feature .featurecopy.is-changing #slide-title,
.home-main > .feature .featurecopy.is-changing #slide-desc,
.home-main > .feature .featurecopy.is-changing .heroactions {
    opacity: 0; transform: translateY(9px);
}
@media (prefers-reduced-motion: reduce) {
    .home-main > .feature .featurevisual .slide-fade-layer,
    .home-main > .feature .featurecopy .eyebrow,
    .home-main > .feature #slide-title,
    .home-main > .feature #slide-desc,
    .home-main > .feature .heroactions { transition: none !important; transform: none !important; }
}

/* Шаг 46.18: индикаторы слайдов в фирменных цветах ШИФОБАХШ */
.home-main > .feature { position: relative; }
.home-main > .feature .home-slide-indicators {
  position: absolute; z-index: 12; bottom: 23px; left: 50%;
  transform: translateX(-50%); display: flex; align-items: center;
  justify-content: center; gap: 9px; max-width: calc(100% - 32px);
  padding: 9px 13px; border-radius: 999px;
  background: rgba(3, 43, 48, .55); backdrop-filter: blur(6px);
}
.home-main > .feature .home-slide-dot {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  display: block; width: 25px; height: 7px; padding: 0; margin: 0;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.65);
  transition: width .35s ease, background-color .35s ease, box-shadow .35s ease;
}
.home-main > .feature .home-slide-dot.is-active {
  width: 47px; background: #15c9b8; box-shadow: 0 0 0 1px rgba(255,255,255,.5);
}
.home-main > .feature .home-slide-dot:hover { background: #fff; }
.home-main > .feature .home-slide-dot.is-active:hover { background: #15c9b8; }
.home-main > .feature .home-slide-dot:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 768px) {
 .home-main > .feature .home-slide-indicators { bottom: 10px; gap: 7px; padding: 8px 11px; }
 .home-main > .feature .home-slide-dot { width: 20px; }
 .home-main > .feature .home-slide-dot.is-active { width: 36px; }
 .home-main > .feature .featurecopy { padding-bottom: 45px; }
}
@media (prefers-reduced-motion: reduce) {
 .home-main > .feature .home-slide-dot { transition: none; }
}

/* Шаг 46.19: бирюзовая полоса прогресса за 5 секунд */
.home-main > .feature .home-slide-dot {
  position: relative; overflow: hidden; background: rgba(255,255,255,.48);
}
.home-main > .feature .home-slide-dot.is-active,
.home-main > .feature .home-slide-dot.is-active:hover {
  background: rgba(255,255,255,.48);
}
.home-main > .feature .home-slide-dot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: #15c9b8; transform: scaleX(0); transform-origin: left center;
}
.home-main > .feature .home-slide-dot.is-counting::before {
  animation: shifobakhsh-slide-progress var(--slide-duration, 5000ms) linear forwards;
}
@keyframes shifobakhsh-slide-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .home-main > .feature .home-slide-dot.is-counting::before { animation: none; }
  .home-main > .feature .home-slide-dot.is-active::before { transform: scaleX(1); }
}

/* Шаг 46.28: индикаторы рядом с кнопкой «Наши отделения» */
.home-main > .feature .heroactions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.home-main > .feature .heroactions .home-slide-indicators {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
    margin: 0;
    padding: 9px 12px;
    gap: 9px;
}
.home-main > .feature .home-slide-dot {
    width: 33px;
    flex: 0 0 33px;
}
.home-main > .feature .home-slide-dot.is-active {
    width: 61px;
    flex-basis: 61px;
}
@media (max-width: 768px) {
    .home-main > .feature .heroactions .home-slide-indicators {
        margin: 0;
        padding: 8px 10px;
        gap: 7px;
    }
    .home-main > .feature .home-slide-dot {
        width: 26px;
        flex-basis: 26px;
    }
    .home-main > .feature .home-slide-dot.is-active {
        width: 47px;
        flex-basis: 47px;
    }
}

/* 47.22.2 — clearer mobile hero photograph; desktop unchanged. */
@media (max-width: 768px) {
  body.public-site .home-main > .feature .featurevisual::after {
    background: linear-gradient(180deg,
      rgba(231, 249, 249, .16) 0%,
      rgba(231, 249, 249, .10) 52%,
      rgba(231, 249, 249, .08) 100%) !important;
  }
}

/* 47.22.3 — mobile readability only: keep photograph clear, soften behind text. */
@media (max-width: 768px) {
  body.public-site .home-main > .feature .featurecopy #slide-title {
    color: #073e56 !important;
    background: rgba(239, 251, 251, .54);
    border-radius: 7px;
    padding: 5px 8px;
    margin-left: -8px;
    width: fit-content;
    max-width: calc(100% + 8px);
    text-shadow: 0 1px 1px rgba(255,255,255,.6);
  }
  body.public-site .home-main > .feature .featurecopy #slide-desc {
    color: #073e56 !important;
    background: rgba(239, 251, 251, .72);
    border-radius: 7px;
    padding: 7px 9px;
    margin-left: -9px;
    max-width: calc(100% + 9px);
    text-shadow: 0 1px 1px rgba(255,255,255,.6);
  }
  body.public-site .home-main > .feature .featurecopy .eyebrow {
    color: #007f84 !important;
    text-shadow: 0 1px 2px rgba(255,255,255,.9);
  }
}


/* 47.22.4 — mobile hero: compact text, no opaque cards, slide indicators at bottom. */
@media (max-width: 768px) {
  body.public-site .home-main > .feature .featurecopy {
    height: 100% !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 16px !important;
    padding-bottom: 42px !important;
  }
  body.public-site .home-main > .feature .featurecopy #slide-title {
    font-size: clamp(21px, 5.4vw, 27px) !important;
    line-height: 1.16 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 5px 0 8px !important;
    width: auto !important;
    max-width: 100% !important;
    color: #073e56 !important;
    text-shadow: 0 1px 3px rgba(255,255,255,.95), 0 0 12px rgba(255,255,255,.8) !important;
  }
  body.public-site .home-main > .feature .featurecopy #slide-desc {
    font-size: 12px !important;
    line-height: 1.42 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
    max-width: 100% !important;
    color: #073e56 !important;
    text-shadow: 0 1px 3px #fff, 0 0 8px rgba(255,255,255,.95) !important;
  }
  body.public-site .home-main > .feature .featurecopy .eyebrow {
    font-size: 10px !important;
    text-shadow: 0 1px 3px #fff !important;
  }
  body.public-site .home-main > .feature .heroactions {
    position: static !important;
    margin: 7px 0 0 !important;
  }
  body.public-site .home-main > .feature .heroactions .home-slide-indicators {
    position: absolute !important;
    left: 50% !important;
    bottom: 10px !important;
    top: auto !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 15 !important;
    padding: 7px 10px !important;
    background: rgba(255,255,255,.72) !important;
    backdrop-filter: blur(4px);
    margin: 0 !important;
  }
}

/* 47.22.5 — mobile: smaller title at bottom; hide description; dots remain bottom-centered. */
@media (max-width: 768px) {
  body.public-site .home-main > .feature .featuregrid {
    align-items: flex-end !important;
  }
  body.public-site .home-main > .feature .featurecopy {
    justify-content: flex-end !important;
    padding-top: 8px !important;
    padding-bottom: 53px !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
  }
  body.public-site .home-main > .feature .featurecopy #slide-title {
    font-size: clamp(17px, 4.5vw, 22px) !important;
    line-height: 1.18 !important;
    margin: 4px 0 9px !important;
    max-width: 100% !important;
    text-shadow: 0 1px 3px #fff, 0 0 9px rgba(255,255,255,.9) !important;
  }
  body.public-site .home-main > .feature .featurecopy #slide-desc {
    display: none !important;
  }
  body.public-site .home-main > .feature .featurecopy .eyebrow {
    font-size: 9px !important;
  }
  body.public-site .home-main > .feature .heroactions {
    margin: 5px 0 0 !important;
  }
  body.public-site .home-main > .feature .heroactions .home-slide-indicators {
    bottom: 9px !important;
  }
}

/* 47.22.6 — restore mobile slide description and hide eyebrow label. */
@media (max-width: 768px) {
  body.public-site .home-main > .feature .featurecopy .eyebrow {
    display: none !important;
  }
  body.public-site .home-main > .feature .featurecopy #slide-desc {
    display: block !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin: 0 0 7px !important;
    max-width: 100% !important;
    background: rgba(3, 35, 46, .45) !important;
    color: #fff !important;
    border-radius: 5px !important;
    padding: 5px 7px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.45) !important;
  }
}

/* 47.22.8 — одинаковый тёмно-синий оттенок заголовка и описания на телефонах. */
@media (max-width: 768px) {
  body.public-site .home-main > .feature .featurecopy #slide-title,
  body.public-site .home-main > .feature .featurecopy #slide-desc {
    color: #073E56 !important;
  }
  body.public-site .home-main > .feature .featurecopy #slide-desc {
    background: rgba(239, 251, 251, .78) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, .75) !important;
  }
}

/* 47.22.9 — subtle white tint behind mobile hero title and description. */
@media (max-width: 768px) {
  body.public-site .home-main > .feature .featurecopy #slide-title {
    background: rgba(255, 255, 255, .58) !important;
    border-radius: 5px !important;
    padding: 3px 6px !important;
    width: fit-content !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    color: #073E56 !important;
  }
  body.public-site .home-main > .feature .featurecopy #slide-desc {
    background: rgba(255, 255, 255, .68) !important;
    border-radius: 5px !important;
    padding: 5px 7px !important;
    color: #073E56 !important;
  }
}
