/* ===== ОСНОВНЫЕ СТИЛИ ===== */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --font-size-base: 1rem;
  --line-height-base: 1.5;
  --border-radius: 0.25rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--dark-color);
  background-color: #fff;
}

/* ===== ИЗОБРАЖЕНИЯ ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  min-height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-lg);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.service-image:hover {
  transform: scale(1.05);
}

.case-study-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary-color);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-image:hover {
  transform: scale(1.02);
  box-shadow: var(--box-shadow-lg);
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
  padding: 1rem 0;
  background-color: #343a40 !important;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.navbar.fixed-top {
  background-color: #343a40 !important;
}

.navbar.bg-dark {
  background-color: #343a40 !important;
}

/* Убеждаемся что навигация всегда тёмная */
.navbar-dark,
.navbar[class*="navbar-dark"],
header.navbar {
  background-color: #343a40 !important;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color) !important;
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: var(--transition);
  margin: 0 0.5rem;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* ===== HERO СЕКЦИЯ ===== */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 10%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ===== СЕКЦИИ ===== */
.section-padding {
  padding: 5rem 0;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

/* ===== КАРТОЧКИ ===== */
.feature-card, .service-card, .pricing-card, .case-study-card, .career-card, .info-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-card:hover, .service-card:hover, .pricing-card:hover, 
.case-study-card:hover, .career-card:hover, .info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.service-card {
  overflow: hidden;
}

.service-content {
  padding: 1.5rem 0;
}

.service-features {
  color: var(--secondary-color);
  margin: 1rem 0;
  list-style: none;
  padding: 0;
}

.service-price {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-top: 1rem;
}

/* ===== ЦЕНОВЫЕ КАРТОЧКИ ===== */
.pricing-card.featured {
  border: 2px solid var(--primary-color);
  position: relative;
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: bold;
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.pricing-features {
  list-style: none;
  padding: 0;
  color: var(--secondary-color);
}

/* ===== КОМАНДА ===== */
.team-member {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.team-member:hover {
  background: var(--light-color);
}

.team-info h5 {
  margin: 0.5rem 0;
  font-weight: bold;
}

.team-info p {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.social-icons-grid {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.facebook-link { background: #3b5998; }
.linkedin-link { background: #0077b5; }
.x-link { background: #1da1f2; }

.social-link:hover {
  transform: scale(1.1);
  color: white;
}

/* ===== ОТЗЫВЫ ===== */
.review-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 100%;
  text-align: center;
}

.review-stars {
  color: #ffc107;
  margin-bottom: 1rem;
}

.review-author {
  margin-top: 1rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* ===== ТАЙМЛАЙН ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 15px;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* ===== ПРОЦЕСС ===== */
.process-step {
  text-align: center;
  padding: 2rem 1rem;
}

.process-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

/* ===== ОСОБЕННОСТИ ===== */
.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.feature-icon {
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.feature-content h4 {
  margin-bottom: 0.5rem;
}

/* ===== КАРЬЕРА ===== */
.career-role {
  color: var(--success-color);
  font-weight: bold;
  margin-bottom: 1rem;
}

/* ===== FAQ ===== */
.faq-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
}

.faq-card h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* ===== КОНТАКТЫ ===== */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-info {
  text-align: center;
  padding: 2rem;
}

.contact-info i {
  margin-bottom: 1rem;
}

/* ===== КНОПКИ ===== */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  border: none;
  padding: 0.75rem 1.5rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
}

/* ===== ФУТЕР ===== */
footer {
  background: var(--dark-color) !important;
  color: white;
}

footer h5, footer h6 {
  color: white;
  margin-bottom: 1rem;
}

footer .text-white-50 {
  color: rgba(255, 255, 255, 0.6) !important;
}

footer a {
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary-color) !important;
}

/* ===== УТИЛИТЫ ===== */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }

.bg-light { background-color: var(--light-color) !important; }

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ===== КРИТИЧНЫЕ ПЕРЕОПРЕДЕЛЕНИЯ ДЛЯ НАВИГАЦИИ ===== */
/* Эти стили должны быть в конце файла для максимального приоритета */
.navbar,
.navbar.navbar-dark,
.navbar.bg-dark,
header.navbar,
.fixed-top.navbar {
  background-color: #343a40 !important;
  background-image: none !important;
}

/* Убеждаемся что текст в навигации белый */
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-toggler-icon {
  color: #ffffff !important;
}

.navbar .navbar-brand:hover,
.navbar .nav-link:hover {
  color: var(--primary-color) !important;
}

/* Стили для мобильного меню */
.navbar-toggler {
  border-color: #ffffff !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 21px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0%;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  /* Навигация на мобильных */
  .navbar-collapse {
    background-color: #343a40 !important;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .section-padding {
    padding: 3rem 0;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  .service-image, .case-study-image {
    height: 150px;
  }
} 