/* Custom styles for Federation Cold website */
/* Additional styles beyond Tailwind CSS */

html {
  scroll-behavior: smooth;
}

/* =========================================
   ACCESSIBILITY: prefers-reduced-motion
   Отключаем все анимации для пользователей
   с вестибулярными расстройствами
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================
   FOCUS STYLES — видимый фокус для клавиатуры
   Важно для доступности и Google Lighthouse
   ========================================= */
:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Убираем дефолтный outline только когда есть :focus-visible */
:focus:not(:focus-visible) {
  outline: none;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Enhanced typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  letter-spacing: -0.03em;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #0ea5e9;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Floating buttons animation */
.floating-btn {
  transition: all 0.3s ease;
}

.floating-btn img {
  background: transparent;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  display: block;
}

.floating-btn.bg-transparent {
  border-radius: 50%;
  overflow: hidden;
  background: transparent !important;
  padding: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.floating-btn.bg-transparent img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Card hover effects */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Hero gradient overlay */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.9) 0%,
    rgba(37, 99, 235, 0.8) 100%
  );
}

/* Emergency pulse animation */
@keyframes pulse-emergency {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
  }
}

.emergency-pulse {
  animation: pulse-emergency 2s infinite;
}

/* Mobile menu animation */
.mobile-menu {
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
}

.mobile-menu.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.mobile-menu.visible {
  max-height: 500px;
  opacity: 1;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Honeypot field - hidden from users */
.honeypot {
  display: none;
  visibility: hidden;
}

/* Stats counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item {
  animation: countUp 0.6s ease forwards;
}

/* Loading lazy images */
img[loading="lazy"] {
  background: #f1f5f9;
}

/* Breadcrumb styles */
.breadcrumb-item::after {
  content: "/";
  margin: 0 0.5rem;
  color: #94a3b8;
}

.breadcrumb-item:last-child::after {
  content: "";
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }
}

/* Price card hover animation */
.price-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

/* Bounce animation */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.bounce {
  animation: bounce 2s infinite;
}

/* Shine effect on buttons */
@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shine 3s infinite;
}

/* Gradient text animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-text-animated {
  background: linear-gradient(270deg, #0ea5e9, #2563eb, #0ea5e9);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

/* Stagger animation for lists */
@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-item {
  opacity: 0;
  animation: staggerIn 0.4s ease forwards;
}

.stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}
.stagger-item:nth-child(2) {
  animation-delay: 0.2s;
}
.stagger-item:nth-child(3) {
  animation-delay: 0.3s;
}
.stagger-item:nth-child(4) {
  animation-delay: 0.4s;
}
.stagger-item:nth-child(5) {
  animation-delay: 0.5s;
}
.stagger-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Trust badge animation */
@keyframes trustPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}

.trust-badge {
  animation: trustPulse 2s infinite;
}

/* Testimonial card animation */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Icon rotation on hover */
.icon-rotate:hover {
  transform: rotate(180deg);
  transition: transform 0.5s ease;
}

/* Smooth scale animation */
@keyframes smoothScale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.smooth-scale {
  animation: smoothScale 2s ease-in-out infinite;
}

/* Typing cursor animation */
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.typing-cursor {
  animation: blink 1s infinite;
}

/* Floating animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* Glow effect */
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(14, 165, 233, 0.5);
  }
  50% {
    box-shadow:
      0 0 20px rgba(14, 165, 233, 0.8),
      0 0 30px rgba(14, 165, 233, 0.6);
  }
}

.glow {
  animation: glow 2s ease-in-out infinite;
}

/* Urgency badge pulse */
@keyframes urgencyPulse {
  0%,
  100% {
    background-color: #f59e0b;
    transform: scale(1);
  }
  50% {
    background-color: #fbbf24;
    transform: scale(1.05);
  }
}

.urgency-badge {
  animation: urgencyPulse 1.5s ease-in-out infinite;
}

/* Smooth reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Ripple effect */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 10%,
    transparent 10.01%
  );
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition:
    transform 0.5s,
    opacity 1s;
}

.ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* Modern gradient buttons */
.btn-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #dc2626 100%);
  background-size: 200% 200%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-gradient:hover::before {
  left: 100%;
}

.btn-gradient:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
  background-position: 100% 50%;
  background-color: #f97316;
}

/* Filter buttons */
.filter-btn {
  transition: all 0.3s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

/* Max button animation */
.max-btn {
  transition: all 0.3s ease;
}

.max-btn:hover {
  transform: scale(1.1) rotate(5deg);
  filter: brightness(1.1);
}

.max-btn:active {
  transform: scale(0.95);
}

.btn-gradient:active {
  transform: translateY(-1px) scale(0.98);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 24px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideInUp 0.4s ease;
  position: relative;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #e2e8f0;
  transform: rotate(90deg);
}

/* Parallax effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Modern card with glass effect */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.glass-card:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
}

/* 3D Tilt effect for cards */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.02);
}

.card-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

.card-3d:hover::before {
  opacity: 1;
}

/* Progress bar animation */
@keyframes progressFill {
  from {
    width: 0;
  }
  to {
    width: var(--progress);
  }
}

.progress-bar {
  height: 8px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  border-radius: 4px;
  animation: progressFill 1.5s ease forwards;
}

/* Counter animation */
.counter {
  font-variant-numeric: tabular-nums;
}

/* Modern hero with gradient overlay */
.hero-modern {
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(37, 99, 235, 0.8) 100%
  );
  z-index: 1;
}

.hero-modern::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.1) 0%,
    transparent 70%
  );
  animation: heroGlow 10s ease-in-out infinite;
  z-index: 1;
}

@keyframes heroGlow {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30%, 30%);
  }
}

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

/* Floating elements */
@keyframes floatElement {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  75% {
    transform: translateY(-10px) rotate(-5deg);
  }
}

.float-element {
  animation: floatElement 6s ease-in-out infinite;
}

/* Modern input styles */
.input-modern {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.input-modern:focus {
  border-color: #f59e0b;
  background: white;
  box-shadow:
    0 0 0 4px rgba(245, 158, 11, 0.1),
    0 0 20px rgba(245, 158, 11, 0.2);
  outline: none;
  transform: translateY(-2px);
}

/* Floating label styles */
.floating-label {
  position: relative;
}

.floating-label input,
.floating-label textarea,
.floating-label select {
  padding: 20px 16px 8px;
}

.floating-label label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: #94a3b8;
  font-size: 16px;
  transition: all 0.3s ease;
  pointer-events: none;
  background: transparent;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label select:not([value=""]) + label {
  top: 4px;
  font-size: 12px;
  color: #f59e0b;
  font-weight: 600;
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.badge-warm {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.badge-cool {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

/* Image hover effect */
.img-hover {
  overflow: hidden;
  border-radius: 16px;
}

.img-hover img {
  transition: transform 0.5s ease;
}

.img-hover:hover img {
  transform: scale(1.1);
}

/* Scroll indicator */
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* Section divider */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
  margin: 0 auto;
  width: 200px;
  border-radius: 2px;
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #0f172a;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Modern shadow */
.shadow-modern {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-modern-lg {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern link */
.link-modern {
  position: relative;
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 600;
}

.link-modern::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  transition: width 0.3s ease;
}

.link-modern:hover::after {
  width: 100%;
}

/* Sticky header with backdrop blur */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.header-sticky.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile panel - always solid white background */
#mobile-panel {
  background: white !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Ensure mobile panel ignores header backdrop filter */
.header-sticky.scrolled #mobile-panel {
  background: white !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Enhanced glow effect */
.glow-enhanced {
  box-shadow:
    0 0 20px rgba(14, 165, 233, 0.3),
    0 0 40px rgba(14, 165, 233, 0.2),
    0 0 60px rgba(14, 165, 233, 0.1);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(14, 165, 233, 0.3),
      0 0 40px rgba(14, 165, 233, 0.2),
      0 0 60px rgba(14, 165, 233, 0.1);
  }
  50% {
    box-shadow:
      0 0 30px rgba(14, 165, 233, 0.5),
      0 0 60px rgba(14, 165, 233, 0.3),
      0 0 90px rgba(14, 165, 233, 0.2);
  }
}

/* Magnetic button effect */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Particle effect on hover */
@keyframes particle {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

.particle-effect {
  position: relative;
  overflow: hidden;
}

.particle-effect::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.particle-effect:hover::before {
  opacity: 1;
  animation: particle 0.6s ease-out;
}

/* Image zoom effect */
.img-zoom {
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.img-zoom img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
  transform: scale(1.1);
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.3s ease;
}

/* =========================================
   DESIGN IMPROVEMENTS — визуальный polish
   ========================================= */

/* Улучшенные карточки услуг — border-accent при hover */
.service-card {
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-bottom-color: #0ea5e9;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.12);
}

/* Активная ссылка навигации */
nav a.active-nav,
nav a[aria-current="page"] {
  color: #0ea5e9 !important;
  font-weight: 600;
  border-bottom: 2px solid #0ea5e9;
  padding-bottom: 2px;
}

/* Улучшенный phone-link в шапке */
a[href^="tel"] {
  transition: all 0.2s ease;
}

a[href^="tel"]:hover {
  transform: scale(1.05);
  letter-spacing: 0.02em;
}

/* Номер телефона в шапке — pulse каждые 5 секунд */
@keyframes phonePulse {
  0%, 85%, 100% { color: #f59e0b; }
  90% { color: #ea580c; text-shadow: 0 0 8px rgba(245, 158, 11, 0.6); }
}

header a[href^="tel"] {
  animation: phonePulse 5s ease-in-out infinite;
}

/* Кнопка «Заказать звонок» — улучшенный shine */
.btn-gradient {
  position: relative;
  overflow: hidden;
}

/* Улучшенные секционные разделители */
.section-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, #0ea5e9 30%, #f59e0b 70%, transparent);
  margin: 0 auto;
  width: 240px;
  border-radius: 2px;
}

/* Счётчики в hero — больше веса */
.counter {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Плавный переход фона страницы при прокрутке в шапке */
.header-sticky {
  transition: background 0.3s ease, box-shadow 0.3s ease;
  will-change: background, box-shadow;
}

/* Карточки в hero — улучшенный glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Floating buttons — улучшенные тени */
.floating-btn {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-btn:hover {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* Testimonial cards — subtle left accent */
.testimonial-card {
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-left-color: #0ea5e9;
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Skeleton loader для lazy-картинок */
img[loading="lazy"] {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Улучшенный скролл — плавный индикатор прогресса */
@property --scroll-pct {
  syntax: "<number>";
  initial-value: 0;
  inherits: true;
}

/* Read-progress bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #f59e0b);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* Улучшенные badge-стили */
.badge-warm {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.badge-cool {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e3a8a;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

/* Улучшенные формы — transition на label */
.floating-label label {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Кнопки — чёткое нажатие */
button,
a.btn,
.btn-gradient {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Секции reveal — улучшенный easing */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Улучшенный scroll indicator */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.6; }
}

/* Price card — highlight popular */
.price-card.popular {
  border: 2px solid #0ea5e9;
  position: relative;
}

.price-card.popular::before {
  content: "Популярный";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* Улучшенный print */
@media print {
  .no-print { display: none !important; }
  .floating-btn { display: none !important; }
  #cookie-banner { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  h1, h2, h3 { color: #000; }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* ============================================================
   FAB — Floating Action Buttons (redesigned)
   ============================================================ */
.fab-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.fab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.fab-label {
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, max-width 0.3s ease, padding 0.3s ease;
  backdrop-filter: blur(6px);
}

.fab-item:hover .fab-label {
  opacity: 1;
  max-width: 200px;
  padding: 6px 12px;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
  position: relative;
}

.fab-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

/* MAX button — uses image */
.fab-max {
  background: transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.fab-max img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Telegram */
.fab-tg { background: #229ED9; }

/* Phone — with pulse ring */
.fab-phone { background: linear-gradient(135deg, #f97316, #ef4444); }

.fab-phone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.45);
  animation: phonePulseRing 2s ease-out infinite;
}

@keyframes phonePulseRing {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Scroll-to-top */
.fab-scroll { background: #1e293b; }
.fab-scroll-wrapper { opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.fab-scroll-wrapper.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Hide desktop FAB on mobile — mobile bar takes over */
@media (max-width: 767px) {
  .fab-wrapper { display: none; }
}

/* ============================================================
   Mobile Sticky Bottom Bar
   ============================================================ */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 768px) {
  .mobile-sticky-bar { display: none; }
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.mobile-bar-btn:active { background: #f1f5f9; }

.mobile-bar-phone { color: #f97316; }
.mobile-bar-max   { color: #1a1a2e; border-left: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; }
.mobile-bar-tg    { color: #229ED9; }

.mobile-bar-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
}

/* Push page content up so it's not hidden behind bar */
body.has-mobile-bar { padding-bottom: 68px; }

/* ============================================================
   Exit-Intent Popup
   ============================================================ */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.exit-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.exit-popup-box {
  background: #fff;
  border-radius: 24px;
  max-width: 460px;
  width: 100%;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.exit-popup-overlay.active .exit-popup-box {
  transform: scale(1) translateY(0);
}

.exit-popup-header {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  padding: 28px 28px 20px;
  text-align: center;
  color: #fff;
}

.exit-popup-body {
  padding: 24px 28px 28px;
}

.exit-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
}
.exit-popup-close:hover { background: rgba(255,255,255,0.4); }

.exit-popup-header { position: relative; }

/* ============================================================
   Popular service badge
   ============================================================ */
.popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Savings badge on price tables */
.savings-badge {
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
  white-space: nowrap;
}
