/* ── SPINNER LOADER ──────────────────────────── */
#page-skeleton {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #111213;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-skeleton.sk-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.sk-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: skSpin 0.8s linear infinite;
}
@keyframes skSpin {
  to { transform: rotate(360deg); }
}

/* ── HERO SLIDESHOW ──────────────────────────── */
.hero-slideshow {
  position: absolute;
  top: -200px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 25s infinite;
  will-change: opacity;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Тёмный фильтр + виньетка поверх слайдов */
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,0.65) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

/* Hero section full-height */
.st-hero.st-style1.st-type2 {
  min-height: 100vh !important;
  height: auto !important;
  overflow: visible !important;
}
.st-hero.st-style1 .container {
  z-index: 2;
  position: relative;
}
.st-height-b125 { display: none !important; }

/* Текст героя ниже на компе */
@media (min-width: 768px) {
  .st-height-b125 {
    display: block !important;
    height: 60px !important;
  }
}

/* Hero текст — белый, крупный, с тенью */
.st-hero.st-style1 .st-hero-title {
  font-size: clamp(52px, 12vw, 82px) !important;
  color: #ffffff !important;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55);
  line-height: 1.1 !important;
  font-weight: 700 !important;
}
.st-hero.st-style1 .st-hero-subtitle {
  color: rgba(255,255,255,0.88) !important;
  font-size: 20px !important;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
.st-pricing-feature-list li {
  color: rgba(255,255,255,0.9) !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ── ПРОЗРАЧНАЯ ШАПКА (только над героем) ────── */
.st-site-header.st-style1:not(.st-sticky-active) .st-main-header {
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 100%) !important;
  box-shadow: none !important;
}
.st-site-header.st-style1:not(.st-sticky-active) {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}
.st-site-header.st-style1:not(.st-sticky-active) .st-top-header {
  padding-bottom: 3px;
}
/* Переключение логотипа */
.st-site-header.st-style1:not(.st-sticky-active) .logo-dark { display: none; }
.st-site-header.st-style1:not(.st-sticky-active) .logo-light { display: inline-block; }
.st-site-header.st-style1.st-sticky-active .logo-dark { display: inline-block; }
.st-site-header.st-style1.st-sticky-active .logo-light { display: none; }
.logo-light { display: none; }

/* ── ЗУБ РЯДОМ С ЗАГОЛОВКОМ ─────────────── */
.hero-title-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-tooth-icon {
  display: none;
}
@media (min-width: 768px) {
  .hero-tooth-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .hero-tooth-icon img {
    height: 270px;
    width: auto;
    object-fit: contain;
    margin-left: -10px;
  }
}
.hero-title-wrap {
  gap: 0px;
}

/* Текст навигации белый пока шапка прозрачная */
.st-site-header.st-style1:not(.st-sticky-active) .st-nav .st-nav-list > li > a {
  color: #fff !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.st-site-header.st-style1:not(.st-sticky-active) .st-site-branding span {
  color: #fff !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
/* При скролле — белая */
.st-site-header.st-style1.st-sticky-active {
  background-color: #ffffff !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.1) !important;
}
.st-site-header.st-style1.st-sticky-active .st-main-header {
  background: transparent !important;
}
.st-site-header.st-style1.st-sticky-active .st-nav .st-nav-list > li > a {
  color: #111 !important;
}
.st-site-header.st-style1.st-sticky-active .st-nav .st-nav-list > li > a:hover {
  color: #27b1d9 !important;
}

/* hero3 на мобильных — левее */
@media (max-width: 767px) {
  .hero-slide:nth-child(3) {
    background-position: left center;
  }
}

/* ── ТЁМНАЯ ВЕРХНЯЯ ПОЛОСКА (адрес/телефон) ── */
.st-top-header {
  background: #181a1b !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.st-top-header a { color: #bbb !important; }
.st-top-header a:hover { color: #fff !important; }
.st-top-header-list li { color: #bbb !important; }
.st-site-header.st-style1:not(.st-sticky-active) {
  border: none !important;
  box-shadow: none !important;
}
.st-main-header {
  border-top: none !important;
  box-shadow: none !important;
}

/* ── СОЦСЕТИ В ГЕРОЕ (только мобильные) ──── */
.hero-social-mobile {
  display: none;
}
@media (max-width: 767px) {
  .hero-social-mobile {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }
  .hero-social-desktop { display: none; }
}
.hero-social-desktop {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
@media (max-width: 767px) {
  .hero-social-desktop { display: none; }
}
.hsm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: #fff !important;
  font-size: 22px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  opacity: 0.9;
}
.hsm-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}
.hsm-2gis {
  width: auto;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ── ИКОНКИ "ПОЧЕМУ ВЫБИРАЮТ НАС" — СЕРЫЕ ── */
.st-green-box {
  color: #7a7a7a !important;
  fill: #7a7a7a !important;
  background-color: rgba(120, 120, 120, 0.1) !important;
}
.st-green-box svg,
.st-green-box svg path,
.st-green-box svg g,
.st-green-box svg circle,
.st-green-box svg rect,
.st-green-box svg polygon,
.st-green-box svg polyline,
.st-green-box svg ellipse {
  fill: #7a7a7a !important;
  color: #7a7a7a !important;
  stroke: none;
}
.st-green-box img {
  filter: grayscale(100%) brightness(0.55) !important;
}

/* ── ИКОНКИ СТАТИСТИКИ — ТЁМНЫЕ ─────────── */
.st-pink-box {
  color: #2a2a2a !important;
  fill: #2a2a2a !important;
  background-color: rgba(0,0,0,0.06) !important;
}
.st-pink-box svg,
.st-pink-box svg path,
.st-pink-box svg g,
.st-pink-box svg circle,
.st-pink-box svg rect {
  fill: #2a2a2a !important;
}

/* ── ТЕКСТ ПОД ИКОНКАМИ — ТЁМНЫЙ ─────────── */
.st-funfact.st-style1 .st-funfact-title {
  color: #2a2a2a !important;
  font-weight: 500 !important;
}

/* ── АНИМАЦИИ СЕКЦИИ НАПРАВЛЕНИЯ — ОТКЛЮЧЕНЫ ── */
#service .wow {
  animation-name: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}
#service .st-about-img-in,
#service .st-text-block {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ── ТЕКСТЫ В СЕКЦИИ НАПРАВЛЕНИЯ — ТЁМНО-СЕРЫЕ ── */
#services .st-section-heading-title,
#services .st-text-block-title {
  color: #333 !important;
}

/* ── ТЕКСТ ФУТЕРА — СЕРЫЙ ───────────────────── */
.st-site-footer,
.st-site-footer p,
.st-site-footer li,
.st-site-footer a,
.st-site-footer .st-footer-text,
.st-site-footer .st-copyright-text,
.st-site-footer .st-footer-contact-list li {
  color: #666 !important;
}
.st-site-footer .st-footer-widget-title { color: #444 !important; }
.st-site-footer a:hover { color: #333 !important; }

/* ── ФУТЕР — СВЕТЛО-СЕРЫЙ ─────────────────── */
.st-site-footer,
.st-site-footer.st-color1,
.st-site-footer.st-color2 {
  background-color: #f0f1f3 !important;
}
.st-site-footer.st-color2 .st-copyright-wrap,
.st-site-footer.st-color1 .st-copyright-wrap {
  background-color: #e4e5e8 !important;
}
