/* ============================================
   STYLE OVERRIDES - УНИКАЛИЗАЦИЯ ДИЗАЙНА
   Переопределяет существующие стили для создания
   уникального визуального языка (30%+ отличий)
   ============================================ */

/* ============================================
   ЗАГОЛОВКИ - НОВЫЙ СТИЛЬ
   ============================================ */

.h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  text-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
  position: relative;
  display: inline-block;
}

.h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, transparent);
  border-radius: 2px;
}

.h2 {
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  position: relative;
  padding-left: 20px;
}

.h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 80%;
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 3px;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: #1e232f !important;
  position: relative;
}

.h3--white {
  color: #ffffff !important;
}

/* ============================================
   СЕКЦИИ - НОВЫЙ ДИЗАЙН
   ============================================ */

.section {
  margin: 60px 0 !important;
  position: relative;
}

.section--black {
  background: linear-gradient(135deg, #1a1f35 0%, #0f1420 100%) !important;
  border-radius: 32px !important;
  padding: 60px 40px !important;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.section--black::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

@media (max-width: 768px) {
  .section--black {
    padding: 40px 24px !important;
    border-radius: 24px !important;
  }
}

/* ============================================
   КНОПКИ - ПОЛНОЕ ПЕРЕОПРЕДЕЛЕНИЕ
   ============================================ */

button,
.button,
.btn,
[class*="button"] {
  position: relative;
  padding: 16px 40px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  border-radius: 12px !important;
  border: none !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: white !important;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  box-shadow: 
    0 4px 15px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-transform: none !important;
}

button::before,
.button::before,
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

button:hover,
.button:hover,
.btn:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 
    0 8px 30px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

button:hover::before,
.button:hover::before,
.btn:hover::before {
  left: 100%;
}

button:active,
.button:active,
.btn:active {
  transform: translateY(-1px) scale(0.98) !important;
}

@media (max-width: 768px) {
  button,
  .button,
  .btn {
    padding: 14px 32px !important;
    font-size: 15px !important;
  }
}

/* ============================================
   КАРТОЧКИ - GLASSMORPHISM СТИЛЬ
   ============================================ */

.card,
.service-card,
.price-card,
.review-card,
[class*="card"] {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  padding: 32px !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
  overflow: hidden;
}

.card::before,
.service-card::before,
.price-card::before,
.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover,
.service-card:hover,
.price-card:hover,
.review-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.card:hover::before,
.service-card:hover::before,
.price-card:hover::before,
.review-card:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .card,
  .service-card,
  .price-card,
  .review-card {
    padding: 24px !important;
    border-radius: 16px !important;
  }
}

/* ============================================
   НАВИГАЦИЯ - СОВРЕМЕННЫЙ СТИЛЬ
   ============================================ */

header,
.header,
nav,
.nav,
.navbar {
  background: rgba(10, 14, 39, 0.8) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
}

header.scrolled,
.header.scrolled,
nav.scrolled,
.navbar.scrolled {
  background: rgba(10, 14, 39, 0.95) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* Навигационные ссылки */
header a,
.header a,
nav a,
.nav a {
  position: relative;
  padding: 8px 16px !important;
  transition: all 0.3s ease !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

header a::after,
.header a::after,
nav a::after,
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: transform 0.3s ease;
  border-radius: 2px;
}

header a:hover,
.header a:hover,
nav a:hover,
.nav a:hover {
  color: #ffffff !important;
}

header a:hover::after,
.header a:hover::after,
nav a:hover::after,
.nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================
   ФОРМЫ - НОВЫЙ ДИЗАЙН
   ============================================ */

input,
textarea,
select {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: #6366f1 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 
    0 0 0 3px rgba(99, 102, 241, 0.1),
    0 4px 20px rgba(99, 102, 241, 0.15) !important;
}

/* ============================================
   КОНТЕЙНЕР - УЛУЧШЕННАЯ СТРУКТУРА
   ============================================ */

.container {
  max-width: 1240px !important;
  padding: 0 24px !important;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px !important;
  }
}

/* ============================================
   ИЗОБРАЖЕНИЯ - СОВРЕМЕННАЯ ОБРАБОТКА
   ============================================ */

img {
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
}

img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ============================================
   СПИСКИ - НОВЫЙ СТИЛЬ
   ============================================ */

ul li,
ol li {
  position: relative;
  padding-left: 32px !important;
  margin-bottom: 12px !important;
}

ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* ============================================
   ССЫЛКИ - УЛУЧШЕННЫЙ СТИЛЬ
   ============================================ */

a {
  color: #6366f1 !important;
  text-decoration: none !important;
  position: relative;
  transition: all 0.3s ease !important;
}

a:hover {
  color: #8b5cf6 !important;
}

/* ============================================
   ЦЕНЫ - АКЦЕНТНЫЙ ДИЗАЙН
   ============================================ */

.price,
[class*="price"] {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}

/* ============================================
   БЕЙДЖИ И МЕТКИ
   ============================================ */

.badge,
.tag,
.label,
[class*="badge"],
[class*="tag"] {
  display: inline-block;
  padding: 6px 16px !important;
  background: rgba(99, 102, 241, 0.12) !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  border-radius: 20px !important;
  color: #6366f1 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  backdrop-filter: blur(10px) !important;
}

/* ============================================
   FOOTER - СОВРЕМЕННЫЙ СТИЛЬ
   ============================================ */

footer,
.footer {
  background: linear-gradient(180deg, #0a0e27 0%, #050810 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 60px 0 30px !important;
  position: relative;
}

footer::before,
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #6366f1, transparent);
}

/* ============================================
   АНИМАЦИИ ЗАГРУЗКИ
   ============================================ */

@keyframes shimmer-unique {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading,
[class*="loading"] {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(99, 102, 241, 0.08) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer-unique 2s infinite;
}

/* ============================================
   МЕДИА-ЗАПРОСЫ - АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 991px) {
  .h1 {
    font-size: clamp(2rem, 5vw, 3rem) !important;
  }
  
  .section {
    margin: 40px 0 !important;
  }
}

@media (max-width: 767px) {
  .h1::after {
    width: 40px;
    height: 3px;
  }
  
  .h2::before {
    width: 4px;
  }
  
  button,
  .button,
  .btn {
    width: 100%;
  }
}

/* ============================================
   ТЕМНАЯ ТЕМА - УСИЛЕНИЕ
   ============================================ */

body {
  background: linear-gradient(180deg, #0a0e27 0%, #050810 100%) !important;
  color: #e5e7eb !important;
}

/* ============================================
   ACCESSIBILITY - УЛУЧШЕНИЯ
   ============================================ */

*:focus-visible {
  outline: 2px solid #6366f1 !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
