
:root {
  --primary-black: #000000;
  --primary-white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
}

/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Современные переходы */
.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Кнопки */
.btn-primary {
  @apply bg-black text-white px-6 py-3 font-medium transition-all hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2;
}

.btn-secondary {
  @apply bg-white text-black border-2 border-black px-6 py-3 font-medium transition-all hover:bg-black hover:text-white focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2;
}

.btn-ghost {
  @apply bg-transparent text-black px-6 py-3 font-medium transition-all hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2;
}

/* Карточки */
.card {
  @apply bg-white border border-gray-200 shadow-sm transition-all hover:shadow-lg;
}

.card-elevated {
  @apply bg-white border border-gray-200 shadow-md transition-all hover:shadow-xl;
}

/* Эффекты наведения */
.hover-lift {
  @apply transition-transform hover:-translate-y-1;
}

.hover-scale {
  @apply transition-transform hover:scale-105;
}

/* Градиенты в чёрно-белой гамме */
.gradient-bg {
  background: linear-gradient(135deg, #000000 0%, #404040 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #000000 0%, #525252 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slideIn {
  animation: slideIn 0.5s ease-out;
}

/* Скроллбар */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Фокус */
.focus-ring {
  @apply focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2;
}

/* Загрузчик */
.loading-spinner {
  @apply animate-spin rounded-full h-8 w-8 border-b-2 border-black;
}

/* Responsiveness */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    @apply px-4 py-2 text-sm;
  }
}

/* Утилиты для изображений */
.image-overlay {
  position: relative;
}

.image-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
  opacity: 1;
}

/* Типографика */
.text-heading {
  @apply text-4xl md:text-5xl lg:text-6xl font-bold leading-tight;
}

.text-subheading {
  @apply text-xl md:text-2xl font-semibold;
}

.text-body {
  @apply text-base leading-relaxed;
}

.text-small {
  @apply text-sm text-gray-600;
}
/*
================= PRE LOADER ===============

/* Page Loading 
.page-loading {
    background-color: #ffffff;
    content: "";
    height: 100%;
    left: 0;
    position: fixed;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 2147483647;
}
.page-loading img {
	left: 50%;
    position: absolute;
    top: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

/* wrapper 
.autocomplete {
    position: relative;
}

/* dropdown 
.autocomplete-items {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;

    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;

    max-height: 260px;
    overflow-y: auto;

    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    display: none;
}
*/
/* item */
.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
}

.autocomplete-item:hover {
    background: #f9fafb;
}

.breacrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breacrumb li {
    display: flex;
    align-items: center;
}

.breacrumb li + li::before {
    content: "";
    margin: 0 0.5rem;
}

.invalid-feedback {
    display: block;
    color: #dc2626;
    font-size: 14px;
    margin-top: 6px;
    line-height: 1.3;
}

.help-block.m-b-none {
    margin-top: 8px; /* або більше, якщо треба */
    display: block;
}
/* ================= PRE LOADER =============== */

#loader-wrapper {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.9s ease, visibility 0.9s ease, filter 0.9s ease, transform 0.9s ease;
  will-change: opacity, filter, transform;
}
#loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
  filter: blur(10px);
  transform: scale(1.03);
}
.loader-logo { width: 180px; max-width: 55vw; }
.loader-logo path, .loader-logo polygon {
  fill: transparent;
  stroke: #000;
  stroke-width: 55;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: logoDraw 1.6s ease forwards, logoFill 0.7s ease forwards;
}
.loader-logo path:nth-child(1) { animation-delay: 0s, 1.3s; }
.loader-logo path:nth-child(2) { animation-delay: 0.12s, 1.4s; }
.loader-logo path:nth-child(3) { animation-delay: 0.24s, 1.5s; }
.loader-logo path:nth-child(4) { animation-delay: 0.36s, 1.6s; }
.loader-logo path:nth-child(5) { animation-delay: 0.48s, 1.7s; }
.loader-logo path:nth-child(6) { animation-delay: 0.6s, 1.8s; }
.loader-logo polygon { animation-delay: 0.4s, 1.7s; }
@keyframes logoDraw { to { stroke-dashoffset: 0; } }
@keyframes logoFill { to { fill: #000; } }
.loader-text { margin-top: 18px; font-size: 12px; letter-spacing: 3px; color: #b8b8b8; text-align: center; }
.loader-text span { display: inline-block; opacity: 0; transform: translateY(6px); animation: letterFade 0.6s ease forwards; }
.loader-text span:nth-child(1) { animation-delay: 0.6s; }
.loader-text span:nth-child(2) { animation-delay: 0.7s; }
.loader-text span:nth-child(3) { animation-delay: 0.8s; }
.loader-text span:nth-child(4) { animation-delay: 0.9s; }
.loader-text span:nth-child(5) { animation-delay: 1.0s; }
.loader-text span:nth-child(6) { animation-delay: 1.1s; }
.loader-text span:nth-child(7) { animation-delay: 1.2s; }
.loader-text span:nth-child(8) { animation-delay: 1.3s; }
.loader-text span:nth-child(9) { animation-delay: 1.4s; }
.loader-text span:nth-child(10) { animation-delay: 1.5s; }
.loader-text span:nth-child(11) { animation-delay: 1.6s; }
.loader-text span:nth-child(12) { animation-delay: 1.7s; }
.loader-text span:nth-child(13) { animation-delay: 1.8s; }
.loader-text .space { width: 8px; }
@keyframes letterFade { to { opacity: 1; transform: translateY(0); } }

/* wrapper */