body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #0e0f13;
  color: #c6d7ff; /* базовый холодный цвет текста */
  scroll-behavior: smooth;
  transition: filter 0.3s ease;
}

/* Навбар закреплён сверху */
.navbar {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #242633;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* фиксируем навбар ЖЁСТКО */
.navbar.fixed-top,
.navbar.navbar-expand-lg.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}
    .nav-link {
      color: #d0d0e0 !important;
    }

    .nav-link:hover {
      color: #ffae00 !important;
    }

/* Hero секция */
#hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 0% 0%, #20254a, #0e0f13 60%);
  padding-top: 80px;
  padding-bottom: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(15, 20, 40, 0.9);
  font-size: 0.85rem;
  color: #e0e8ff;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #c0c6e2;
  max-width: 540px;
}

.hero-highlight {
  color: #ffdb4d;
}

/* Кнопки: холодно по умолчанию, горячо при наведении */
.btn {
  background: linear-gradient(135deg, #0b2b4a, #143a63);
  color: #e0f4ff !important;
  border: 1px solid #1f4f7a;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

.btn:hover,
.btn:focus {
  background: linear-gradient(135deg, #ffcc00, #ff5a00);
  color: #1b1300 !important;
  border-color: #ff9900;
  box-shadow:
    0 0 10px rgba(255, 200, 0, 0.9),
    0 0 25px rgba(255, 90, 0, 0.8);
  transform: translateY(-1px) scale(1.03);
}

.btn-outline-light {
  background: transparent;
  color: #e5ecff !important;
  border-color: #3f4b7a;
}

.btn-outline-light:hover {
  background: linear-gradient(135deg, #ffcc00, #ff5a00);
  color: #1b1300 !important;
  border-color: #ff9900;
}

section {
  padding: 70px 0;
}

.section-title {
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.section-subtitle {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  color: #b7bdd7;
}

#about { background: #11121a; color: #ffffff; }
#services { background: #0f1017; color: #ffffff; }
#cases { background: #141621; }
#diagnostics { background: #101118; color: #ffffff; }
#faq { background: #0f1017; color: #ffffff; }
#contact { background: #0d0e13; color: #ffffff; }

.service-card {
  background: #151726;
  border-radius: 16px;
  border: 1px solid #272a3b;
  padding: 18px 18px 16px;
  height: 100%;
  color: #ffffff;
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #ffdb4d, #ff5a00);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 22px;
  color: #2b1a00;
}

.work-card {
  background: #191b2a;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #292d42;
  height: 100%;
}

.work-card img,
.work-card video {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.work-body {
  padding: 16px 18px 18px;
}

.work-title {
  font-size: 1rem;
  margin-bottom: 6px;
}

.work-text {
  font-size: 0.9rem;
  color: #c2c6dd;
}

.diag-card {
  background: #171825;
  border-radius: 16px;
  border: 1px solid #292b3a;
  padding: 18px;
  height: 100%;
}

footer {
  padding: 18px 0;
  background: #06070b;
  border-top: 1px solid #242633;
  font-size: 0.9rem;
  color: #99a0c0;
}

/* Плавающие кнопки (мобильные) */
.whatsapp-float,
.phone-float {
  position: fixed;
  right: 18px;
  z-index: 999;
  text-decoration: none;
  display: none; /* по умолчанию скрыты, покажем на мобиле */
}

.whatsapp-float {
  bottom: 18px;
}

.phone-float {
  bottom: 78px;
}

.phone-float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #34c759, #0b7a2f);
  color: #fff;
  border: 1px solid #1f8c46;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
  font-size: 24px;
}

.phone-float-btn:hover {
  background: radial-gradient(circle at 30% 30%, #7dff8c, #16a34a);
  color: #021107;
  border-color: #ffb400;
    box-shadow:
        0 0 10px rgba(255, 210, 0, 0.9),
        0 0 28px rgba(255, 80, 0, 0.9);
  transform: translateY(-1px) scale(1.08);
}

/* Плавающие кнопки только на мобильных */
@media (max-width: 767.98px) {
  .whatsapp-float,
  .phone-float {
      position: fixed;
      right: 18px;
      z-index: 999;
      text-decoration: none;
    display: block;
  }
}

/* Базовый "холодный" цвет текста */
h1, h2, h3, h4, h5, h6,
p,
li {
  color: #c6d7ff;
  transition: color 0.2s ease;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover,
p:hover,
li:hover {
  color: #ffae00; /* более тёплый оттенок */
}

/* Ссылки в тексте (кроме кнопок и навигации) */ 
a:not(.btn):not(.navbar-brand):not(.nav-link) {
  color: #a8c4ff;
  transition: color 0.2s ease;
}

a:not(.btn):not(.navbar-brand):not(.nav-link):hover {
  color: #ffd47a;
}

/* ================== ЭФФЕКТ "ТЕПЛОВИЗОР" ================== */

/* Пульсация цвета текста */
@keyframes thermalTextPulse {
  0%   { color: #1357f7; }
  50%  { color: #0944cc; }
  100% { color: #008cff; }
}

/* Пульсация кнопок — словно "горячие точки" */
@keyframes thermalBtnPulse {
  0% {
    box-shadow: 0 0 0 rgba(255, 180, 0, 0.0);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 14px rgba(255, 136, 0, 0.973),
      0 0 28px rgba(255, 60, 0, 0.89);
    transform: scale(1.03);
  }
  100% {
    box-shadow:
      0 0 8px rgba(255, 179, 0, 0.918),
      0 0 20px rgba(177, 47, 7, 0.836);
    transform: scale(1.02);
  }
}

/* ВАЖНО: НЕ вешаем filter на body, чтобы не ломать position: fixed */
/* Вместо этого красим контент: hero, секции и футер */
body.thermal-global #hero,
body.thermal-global section,
body.thermal-global footer {
  filter: contrast(1.35) saturate(2.1) hue-rotate(3deg);
}

/* Когда тепловизор включён — текст "дышит" цветом */
body.thermal-global h1,
body.thermal-global h2,
body.thermal-global h3,
body.thermal-global h4,
body.thermal-global h5,
body.thermal-global h6,
body.thermal-global p,
body.thermal-global li {
  animation: thermalTextPulse 3s ease-in-out infinite;

}

/* И кнопки тоже пульсируют */
body.thermal-global .btn,
body.thermal-global .phone-float-btn,
body.thermal-global .whatsapp-float span {
  animation: thermalBtnPulse 2.2s ease-in-out infinite;
  color:#3196fc ;
}

.fa-whatsapp-phone{
  font-size: 60px;
}
   /* ЛИНЗА ТЕПЛОВИЗОРА — по всему экрану */
    .thermal-lens {
      position: fixed;
      top: 0;
      left: 0;
      width: 260px;
      height: 260px;
      border-radius: 50%;
      pointer-events: none;
      mix-blend-mode: color;
      background: radial-gradient(circle at center,
        rgba(255, 255, 0, 0.9) 0%,
        rgba(255, 140, 0, 0.85) 30%,
        rgba(255, 0, 0, 0.85) 50%,
        rgba(0, 0, 255, 0.9) 80%,
        rgba(0, 0, 0, 0) 100%
      );
      opacity: 0;
      transition: opacity 0.2s ease;
      z-index: 9998;
      transform: translate(-9999px, -9999px); /* спрятано, пока не двигаем */
    }
