/* --------------------------------------------------
   CUSTOM.CSS — Полный набор стилей для 24/7 System
   -------------------------------------------------- */

/* ---------- Глобальные настройки ---------- */
:root {
    --color-accent: oklch(0.47 0.15 264);
    --color-blue-500: oklch(0.47 0.15 264);
    --color-blue-600: oklch(0.45 0.18 260);
    --color-purple-600: oklch(0.45 0.18 280);
    --color-emerald-500: oklch(0.57 0.18 160);
    --color-teal-600: oklch(0.48 0.15 180);
    --color-orange-500: oklch(0.65 0.18 60);
    --color-amber-600: oklch(0.6 0.17 65);
    --color-cyan-500: oklch(0.58 0.15 200);
    --color-violet-500: oklch(0.53 0.18 290);
    --color-pink-500: oklch(0.62 0.18 340);
  }
  
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  body {
    font-feature-settings: "rlig" 1, "calt" 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  }
  
  /* ---------- Текстовые утилиты ---------- */
  .text-balance {
    text-wrap: balance;
  }
  .text-pretty {
    text-wrap: pretty;
  }
  
  /* ---------- Скроллбар ---------- */
  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .scrollbar-hide::-webkit-scrollbar {
    display: none;
  }
  
  /* ---------- Декоративная сетка (из хироу) ---------- */
  .bg-grid {
    background-image:
      linear-gradient(to right, #8080801a 1px, transparent 1px),
      linear-gradient(to bottom, #8080801a 1px, transparent 1px);
    background-size: 32px 32px;
  }
  
  /* ---------- Анимации ---------- */
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
  }
  .animate-float {
    animation: float 6s ease-in-out infinite;
  }
  .animate-float-delayed {
    animation: float 6s ease-in-out 1.5s infinite;
  }
  
  @keyframes pulse-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
  }
  .animate-pulse-glow {
    animation: pulse-glow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
  
  @keyframes gradient {
    0%, 100% {
      background-size: 200% 200%;
      background-position: 0% 50%;
    }
    50% {
      background-size: 200% 200%;
      background-position: 100% 50%;
    }
  }
  .animate-gradient {
    animation: gradient 3s ease-in-out infinite;
  }
  
  @keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }
  .animate-shimmer {
    animation: shimmer 2s infinite;
  }
  
  /* ---------- Меню: поведение при прокрутке ---------- */
  #main-nav.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .no-backdrop #main-nav.nav-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: rgba(255, 255, 255, 0.95) !important;
  }
  
  /* ---------- Градиентные подчёркивания (для ссылок) ---------- */
  .gradient-underline {
    position: relative;
  }
  .gradient-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--color-accent), var(--color-blue-600));
    transition: width 0.3s ease;
  }
  .gradient-underline:hover::after {
    width: 100%;
  }
  
  /* ---------- Кнопки ---------- */
  .btn-gradient {
    background: linear-gradient(to right, var(--color-accent), var(--color-blue-600));
    transition: all 0.3s ease;
  }
  .btn-gradient:hover {
    background: linear-gradient(to right, oklch(0.45 0.14 264), oklch(0.43 0.17 260));
    transform: scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.3);
  }
  
  .btn-outline {
    border: 2px solid rgba(79, 70, 229, 0.5);
    background: transparent;
    transition: all 0.3s ease;
  }
  .btn-outline:hover {
    background: rgba(79, 70, 229, 0.05);
    border-color: var(--color-accent);
    transform: scale(1.02);
  }
  
  /* ---------- Карточки кейсов ---------- */
  .case-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  }
  
  .case-glow-blue::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to-br, var(--color-blue-500), var(--color-blue-600));
    opacity: 0.15;
    border-radius: 1.5rem;
    z-index: -1;
    transition: opacity 0.4s ease;
  }
  .case-card:hover .case-glow-blue::before {
    opacity: 0.25;
  }
  
  /* Добавь другие цвета по аналогии, если нужно:
  .case-glow-emerald::before { ... }
  .case-glow-orange::before { ... }
  */
  
  /* ---------- Подвал (footer) ---------- */
  .footer-link {
    @apply text-muted-foreground transition-colors;
  }
  .footer-link:hover {
    color: var(--color-accent);
  }
  
  /* ---------- Адаптивность (если нужно уточнить) ---------- */
  @media (max-width: 768px) {
    .text-balance,
    .text-pretty {
      text-wrap: normal;
    }
  }
  
  /* ---------- Печать (опционально) ---------- */
  @media print {
    #main-nav, .hero-decor, .case-glow {
      display: none !important;
    }
  }

  /* ---------- Модальное окно ---------- */
#contact-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#contact-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.animate-fade-in-up {
  animation: fade-in-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Сообщения формы */
.form-message-success {
  @apply p-3 bg-green-50 border border-green-200 text-green-800 rounded-lg;
}
.form-message-error {
  @apply p-3 bg-red-50 border border-red-200 text-red-800 rounded-lg;
}


.prose ul {
  list-style-type: disc;
  margin-top: 1em;
  margin-bottom: 1em;
  padding-left: 1.625em;
}
.prose ol {
  list-style-type: decimal;
  margin-top: 1em;
  margin-bottom: 1em;
  padding-left: 1.625em;
}
.prose li {
  margin-bottom: 0.5em;
}
.prose li p {
  margin: 0;
}
