:root {
  color-scheme: light;
  --bg-color: #0f172a;
  --surface-color: #ffffff;
  --text-color: #334155;
  --primary-action: #e58f0a;
  --primary-action-rgb: 229, 143, 10;
  --primary-fill: #FF771C;
  --primary-fill-rgb: 255, 119, 28;
  --secondary-action: #1e293b;
  --ring-color: rgba(var(--primary-fill-rgb), 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Плавная прокрутка внутри основного контейнера (именно он скроллится) */
#app-wrapper {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  font-optical-sizing: auto;
  color: var(--text-color);
}

::selection {
  background: rgba(var(--primary-fill-rgb), 0.25);
}

.font-display { font-family: 'Raleway', sans-serif; }
.font-body { font-family: 'Raleway', sans-serif; }

/* Логотип теперь приходит готовым изображением (без декоративных обвязок в CSS). */

/* Немного темнее amber-500 по всему сайту */
.text-amber-500 { color: var(--primary-fill) !important; }
.bg-amber-500 { background-color: var(--primary-fill) !important; }
.hover\:bg-amber-600:hover { background-color: #e5621a !important; }
.border-amber-500 { border-color: var(--primary-fill) !important; }

/* Номера телефонов — обычный системный шрифт для читаемых цифр */
.font-phone {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.gradient-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.accent-gradient {
  background: linear-gradient(135deg, var(--primary-fill) 0%, #e5621a 100%);
}

.app-shell {
  background-color: #f8fafc;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.06), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(var(--primary-fill-rgb), 0.12), transparent 40%);
}

.section-shell {
  position: relative;
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-fill) 0%, #e5621a 100%);
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(var(--primary-fill-rgb), 0.3);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
}

.btn-secondary {
  border: 2px solid var(--primary-fill);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: var(--primary-fill);
  color: #ffffff !important;
}

.feature-icon {
  background: linear-gradient(135deg, rgba(var(--primary-fill-rgb), 0.1) 0%, rgba(229, 98, 26, 0.1) 100%);
  border: 1px solid rgba(var(--primary-fill-rgb), 0.2);
}

.step-number {
  background: linear-gradient(135deg, var(--primary-fill) 0%, #e5621a 100%);
}

.nav-link {
  position: relative;
  font-family: 'Times New Roman', Times, serif;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-fill);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.nav-surface {
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav-surface.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(226, 232, 240, 0.8);
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 16px;
  padding: 10px 14px;
  background: #1e293b;
  color: #fff;
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform 0.3s ease;
  z-index: 60;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-animation {
  animation: float 4s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fadeInUp 0.8s ease forwards;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ring-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

