body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #f9fcfe 0%, #e7f2f8 100%);
  color: #1f2933;
}

header {
  backdrop-filter: blur(14px);
  background-color: rgba(255, 255, 255, 0.95);
}

html {
  scroll-behavior: smooth;
}

.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-wrapper {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 116, 180, 0.18);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
              rgba(15, 94, 168, 0.92) 0%,
              rgba(15, 94, 168, 0.78) 40%,
              rgba(15, 94, 168, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.service-card {
  transition: all 0.28s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(15, 94, 168, 0.16);
}

.service-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 94, 168, 0.18);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #0f5fa8;
  cursor: pointer;
  transition: all 0.2s;
}

.dot.active {
  background-color: #0f5fa8;
}

.floating-call {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
}

#backToTop {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 40;
  display: none;
}
/* --- Mobile menu animation --- */
#mobileMenu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 80%;
  max-width: 320px;
  background: #fff;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  opacity: 0;
  overflow-y: auto;
  transition: transform 0.35s ease-in-out, opacity 0.3s ease-in-out;
  z-index: 50;
  will-change: transform, opacity;
}

#mobileMenu.open {
  transform: translateX(0);
  opacity: 1;
}

#menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 40;
}

/* Mobile menu link styles */
#mobileMenu a {
  display: block;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

#mobileMenu a:hover {
  background: #f0f9ff;
  color: #0369a1;
}

/* Small screen: full width */
@media (max-width: 480px) {
  #mobileMenu {
    width: 100%;
    max-width: 100%;
  }
}

.ticker {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.ticker__inner {
  display: inline-block;
  padding-left: 100%;
  will-change: transform;
  animation: ticker-scroll 18s linear infinite;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* HERO SLIDESHOW */
#hero-slideshow {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

#hero-slideshow.active {
  opacity: 1;
}
/* === Section Fade-in Upgrade === */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ступенчатое появление элементов внутри (например, карточки) */
.fade-in .child {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.visible .child {
  opacity: 1;
  transform: translateY(0);
}
/* === Preloader Animation === */
#preloader {
  transition: opacity 1s ease-out;
}
#preloader-logo {
  animation: logoReveal 2s ease-out forwards;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 94, 168, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(15, 94, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 94, 168, 0); }
}
a[href^="tel"] {
  animation: pulse 2.5s infinite;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(1.6);
  }
  30% {
    opacity: 1;
    transform: scale(1.4);
  }
  70% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

.ticker{position:relative;overflow:hidden;white-space:nowrap}
.ticker__inner{display:inline-block;padding-left:100%;will-change:transform;animation:ticker-scroll 18s linear infinite}
@keyframes ticker-scroll{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}
