/* === KALITA SALUTE — статические стили === */
:root {
  --background: 0 0% 99%;
  --foreground: 230 30% 10%;
  --card: 0 0% 100%;
  --card-foreground: 230 30% 10%;
  --popover: 0 0% 100%;
  --popover-foreground: 230 25% 15%;
  --primary: 258 75% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 230 20% 95%;
  --secondary-foreground: 230 25% 15%;
  --muted: 230 15% 93%;
  --muted-foreground: 230 12% 38%;
  --accent: 45 100% 50%;
  --accent-foreground: 230 35% 12%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;
  --border: 230 15% 88%;
  --input: 230 15% 88%;
  --ring: 258 75% 55%;
  --radius: 0.75rem;
  --kalita-purple: 258 75% 55%;
  --kalita-purple-light: 258 80% 70%;
  --kalita-navy: 230 35% 15%;
  --kalita-navy-light: 230 25% 25%;
  --kalita-yellow: 45 100% 50%;
  --kalita-pink: 320 80% 55%;
}
* { border-color: hsl(var(--border)); }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: clip;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.gradient-bg {
  background: linear-gradient(135deg, hsl(0 0% 99%) 0%, hsl(258 25% 96%) 50%, hsl(0 0% 99%) 100%);
}
.text-gradient-purple {
  background: linear-gradient(135deg, hsl(258 80% 55%), hsl(258 75% 45%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glass-card {
  background: hsl(0 0% 100% / 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(230 15% 85% / 0.9);
  box-shadow: 0 2px 20px hsl(230 20% 50% / 0.08);
}
.section-solid { background: hsl(258 25% 96%); }
.section-fixed-firework {
  position: relative;
  background: hsl(var(--kalita-navy));
  color: #fff;
}
.section-fixed-firework::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 25%, hsl(var(--kalita-yellow) / 0.2) 0%, transparent 18%),
    radial-gradient(circle at 85% 20%, hsl(var(--kalita-pink) / 0.2) 0%, transparent 15%),
    radial-gradient(circle at 50% 60%, hsl(var(--kalita-purple-light) / 0.15) 0%, transparent 22%),
    radial-gradient(circle at 25% 80%, hsl(var(--kalita-pink) / 0.12) 0%, transparent 14%),
    radial-gradient(circle at 75% 75%, hsl(var(--kalita-yellow) / 0.15) 0%, transparent 16%),
    radial-gradient(circle at 40% 15%, hsl(258 80% 70% / 0.18) 0%, transparent 12%),
    radial-gradient(circle at 65% 45%, hsl(var(--kalita-yellow) / 0.1) 0%, transparent 20%),
    radial-gradient(circle at 10% 50%, hsl(0 0% 100% / 0.4) 0%, hsl(0 0% 100% / 0.4) 1px, transparent 1px),
    radial-gradient(circle at 30% 30%, hsl(0 0% 100% / 0.3) 0%, hsl(0 0% 100% / 0.3) 1px, transparent 1px),
    radial-gradient(circle at 70% 40%, hsl(0 0% 100% / 0.35) 0%, hsl(0 0% 100% / 0.35) 1px, transparent 1px),
    radial-gradient(circle at 90% 60%, hsl(0 0% 100% / 0.25) 0%, hsl(0 0% 100% / 0.25) 1px, transparent 1px),
    radial-gradient(circle at 55% 85%, hsl(0 0% 100% / 0.3) 0%, hsl(0 0% 100% / 0.3) 1px, transparent 1px);
  background-attachment: fixed;
  pointer-events: none;
  z-index: 0;
}
.section-fixed-firework > * { position: relative; z-index: 1; }
.section-fixed-firework .text-muted-foreground { color: hsl(0 0% 100% / 0.75); }
.section-fixed-firework .text-foreground { color: #fff; }
.section-fixed-firework .glass-card {
  background: hsl(0 0% 100% / 0.08);
  border-color: hsl(0 0% 100% / 0.15);
}
.section-fixed-firework .text-gradient-purple {
  background: linear-gradient(135deg, hsl(258 80% 75%), hsl(var(--kalita-yellow)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Animations ===== */
@keyframes shine {
  0% { transform: translateX(-150%) skewX(-20deg); }
  100% { transform: translateX(250%) skewX(-20deg); }
}
.animate-shine { animation: shine 2.8s ease-in-out infinite; }

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(8deg); }
}
.animate-float-slow { animation: float-slow 6s ease-in-out infinite; }

@keyframes float-medium {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-18px) rotate(-10deg); }
}
.animate-float-medium { animation: float-medium 4.5s ease-in-out infinite; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}
.animate-twinkle { animation: twinkle 2.5s ease-in-out infinite; }

@keyframes swipe-hint {
  0% { transform: translateX(-100%); opacity: 0; }
  30%, 70% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
.animate-swipe-hint { animation: swipe-hint 1.6s ease-in-out infinite; }

@keyframes spin-slow { to { transform: rotate(360deg); } }
.animate-spin-slow { animation: spin-slow 20s linear infinite; }

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.animate-pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }

/* ===== Carousel (mobile) ===== */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 88%;
  scroll-snap-align: start;
}
.carousel-slide.basis-85 { flex-basis: 85%; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: hsl(var(--background) / 0.9);
  border: 1px solid hsl(var(--primary) / 0.3);
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--foreground));
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.carousel-btn.left { left: -4px; }
.carousel-btn.right { right: -4px; }
.carousel-btn.accent { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); border-color: hsl(var(--accent)); }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-content {
  background: hsl(var(--background));
  border-radius: 1rem;
  max-width: 28rem;
  width: 100%;
  padding: 1.5rem;
  position: relative;
  max-height: 90vh;
  overflow: auto;
}
.modal-content.wide { max-width: 48rem; padding: 0; }
.modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: hsl(var(--background) / 0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}

/* Mobile menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: flex; }

/* form input */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  background: hsl(var(--secondary) / 0.5);
  border: 1px solid hsl(var(--border) / 0.5);
  color: hsl(var(--foreground));
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: hsl(var(--primary) / 0.5); }
.form-input.dark {
  background: hsl(0 0% 100% / 0.1);
  border-color: hsl(0 0% 100% / 0.15);
  color: #fff;
}
.form-input.dark::placeholder { color: hsl(0 0% 100% / 0.4); }

/* Hide swipe hint on >=sm */
@media (min-width: 640px) {
  .swipe-hint { display: none; }
  .mobile-only { display: none !important; }
  .desktop-only { display: block; }
}
@media (max-width: 639px) {
  .desktop-only { display: none !important; }
}
