:root {
  color-scheme: light;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.card {
  border-radius: 1rem;
  border: 1px solid rgb(226 232 240);
  background: white;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}

/* Подсветка секции инструкции после перехода по якорю (!important — иначе Tailwind CDN перебивает) */
.instruction-section-target {
  border-color: rgb(59 130 246) !important;
  background-color: rgb(219 234 254) !important;
  background-image: none !important;
  box-shadow:
    0 0 0 2px rgb(37 99 235),
    0 1px 2px rgb(15 23 42 / 0.08),
    0 0 0 6px rgb(59 130 246 / 0.2) !important;
  outline: 2px solid rgb(37 99 235);
  outline-offset: 2px;
  transition:
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    outline-color 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .instruction-section-target {
    transition: none;
  }
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.3;
  white-space: nowrap;
  color: rgb(51 65 85);
  transition: all 0.15s ease-in-out;
}

.menu-link:hover {
  background: rgb(241 245 249);
  color: rgb(15 23 42);
}

.menu-link.active {
  background: rgb(37 99 235);
  color: white;
}

.menu-link svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.menu-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.4rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  background: rgb(244 63 94);
  color: white;
  box-shadow: 0 0 0 1px rgb(15 23 42 / 0.06);
}

.menu-link.active .menu-nav-badge.menu-nav-badge--active {
  background: white;
  color: rgb(225 29 72);
  box-shadow: none;
}

.badge {
  border-radius: 9999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.loader {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgb(191 219 254);
  border-top-color: rgb(37 99 235);
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
