/* Instagram-style highlights — home page */

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ig-highlights-section {
  padding: 1rem 0 0;
  background: #fff;
}

.ig-highlights-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
}

.ig-highlights-row--center {
  justify-content: center;
  width: 100%;
}

@media (min-width: 640px) {
  .ig-highlights-row {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 1024px) {
  .ig-highlights-row {
    overflow: visible;
  }
}

.ig-highlight {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 4.75rem;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.ig-highlight:focus-visible {
  outline: 2px solid #1E86C8;
  outline-offset: 4px;
  border-radius: 0.5rem;
}

.ig-highlight__ring {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 9999px;
  padding: 2px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.ig-highlight__inner {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  padding: 2px;
  background: #fff;
}

.ig-highlight__thumb {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ig-highlight__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-highlight__num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  line-height: 1;
  color: #1E86C8;
  padding-bottom: 0.12em;
}

.story-viewer__header-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 14px;
  line-height: 1;
  color: #041018;
  padding-bottom: 0.08em;
}

.ig-highlight__label {
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  line-height: 1.2;
  text-align: center;
  color: #4b5563;
  width: 100%;
  max-width: 4.75rem;
  min-height: calc(0.6875rem * 1.2 * 2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.story-viewer.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.story-viewer.is-open * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.story-viewer.is-open .story-viewer__slide img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.story-viewer.is-open a,
.story-viewer.is-open button {
  -webkit-user-select: none;
  user-select: none;
}

.story-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.story-viewer__stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  padding: 0 0.75rem;
}

.story-viewer__arrow {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  background: rgba(7, 10, 13, 0.72);
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s, opacity 0.2s;
}

.story-viewer__arrow svg {
  width: 1.125rem;
  height: 1.125rem;
}

.story-viewer__arrow:focus-visible {
  outline: 2px solid #1E86C8;
  outline-offset: 3px;
}

@media (min-width: 768px) and (hover: hover) {
  .story-viewer__arrow {
    display: flex;
  }

  .story-viewer__arrow:hover {
    border-color: #1E86C8;
    background: rgba(20, 33, 42, 0.92);
    color: #1E86C8;
  }

  .story-viewer__stage {
    gap: 1rem;
    padding: 0 1.5rem;
  }

  .story-viewer__frame {
    flex: 0 1 420px;
    width: min(420px, calc(100vw - 8rem));
  }
}

.story-viewer__frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

@media (min-width: 480px) {
  .story-viewer__frame {
    height: min(100dvh, 780px);
    border-radius: 12px;
    overflow: hidden;
  }
}

.story-viewer__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0.75rem 0.625rem 0.5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
}

.story-viewer__progress {
  display: flex;
  gap: 3px;
  margin-bottom: 0.625rem;
}

.story-viewer__progress-seg {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
}

.story-viewer__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
}

.story-viewer__progress-fill.is-done {
  width: 100%;
}

.story-viewer__progress-fill.is-active {
  width: 0%;
}

.story-viewer.is-holding .story-viewer__slide.is-active {
  cursor: pointer;
}

.story-viewer__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.story-viewer__header-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #1E86C8, #73c8df);
  flex-shrink: 0;
  overflow: hidden;
}

.story-viewer__header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.story-viewer__close {
  position: absolute;
  top: 2.75rem;
  right: 0.625rem;
  z-index: 25;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.9;
}

.story-viewer__slides {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #0f172a;
  touch-action: manipulation;
}

.story-viewer__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.story-viewer__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.story-viewer__cta {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: auto;
  max-width: 92%;
  pointer-events: auto;
}

.story-viewer__cta-box {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0.75rem 0.625rem 1.125rem;
  border-radius: 1rem;
  background: rgba(13, 18, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.story-viewer__cta-label {
  color: #f2efe9;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.story-viewer__cta-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.story-viewer__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 0;
  text-decoration: none;
  transition: 0.2s;
}

.story-viewer__cta-btn--primary {
  width: auto;
  min-width: 5.5rem;
  height: auto;
  padding: 0.625rem 1.125rem;
  background: #1E86C8;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.story-viewer__cta-btn--primary:hover {
  background: #1670a8;
}

.story-viewer__cta-btn--icon {
  background: rgba(255, 255, 255, 0.08);
  color: #c3cbd1;
}

.story-viewer__cta-btn--icon:hover {
  color: #fff;
}

.story-viewer__cta-btn--instagram:hover {
  background: #e4405f;
  color: #fff;
}

.story-viewer__cta-btn--phone:hover {
  background: #1E86C8;
  color: #fff;
}

.story-viewer__tap {
  position: absolute;
  top: 4.5rem;
  bottom: 5.5rem;
  width: 35%;
  z-index: 15;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}

.story-viewer__tap--prev {
  left: 0;
}

.story-viewer__tap--next {
  right: 0;
}

.story-viewer__video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.story-viewer__video-wrap .story-viewer__touch-shield {
  position: absolute;
  inset: 0;
  z-index: 16;
  background: transparent;
  cursor: pointer;
}

.story-viewer__video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.story-viewer__video-paused-hint {
  position: absolute;
  z-index: 17;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.story-viewer__video-wrap.is-paused .story-viewer__video-paused-hint {
  display: flex;
}

.story-viewer__video-paused-hint svg {
  width: 1.75rem;
  height: 1.75rem;
  margin-left: 3px;
}

.story-slide-content {
  min-height: 100%;
  padding: 4.5rem 1.25rem 6.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.story-slide-content--contacts {
  background: #f8fafc;
  color: #334155;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-slide-content--contacts h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.story-slide-content--contacts .story-contacts-clinic {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 1.5rem;
}

.story-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.story-contacts-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.story-contacts-item iconify-icon,
.story-contacts-item .story-contacts-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #1E86C8;
  font-size: 1.25rem;
}

.story-contacts-item p,
.story-contacts-item a {
  margin: 0;
  color: #4b5563;
  text-decoration: none;
  line-height: 1.45;
}

.story-contacts-item a:hover {
  color: #1E86C8;
}

.story-slide-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
}

.story-slide-image img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-viewer__progress:empty,
.story-viewer__progress[style*="display: none"] {
  display: none !important;
  margin: 0;
}

@media (max-width: 767px) {
  .ig-highlights-section {
    padding: 0.75rem 0 0;
  }

  .ig-highlights-row {
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
