
: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;
}

