/* Глобальные переменные */
:root {
  --primary: #4361ee;
  --primary-light: #4895ef;
  --primary-dark: #3a0ca3;
  --secondary: #3f37c9;
  --success: #4cc9f0;
  --danger: #f72585;
  --warning: #f8961e;
  --info: #43aa8b;
  --dark: #1b263b;
  --light: #f8f9fa;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --transition-slow: all 0.6s ease;
}

/* Общие стили */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Хлебные крошки */
.breadcrumb-container {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
  padding: 0.75rem 1rem;
  margin-bottom: 0;
  background-color: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  padding: 0 0.5rem;
  color: var(--gray);
}

.breadcrumb-item a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: #495057;
}

/* Футер */
.footer {
  background-color: #212529;
}

/* Общие стили секций */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.section-description {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Стили для баннера */
.hero-banner {
  position: relative;
  padding: 120px 0;
  color: white;
  overflow: hidden;
  background: linear-gradient(135deg, #2c3e50 0%, #1a2a3a 100%);
}

.parallax-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(26, 42, 58, 0.95) 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.05"><path d="M0 0h200v200H0z" fill="none"/><path d="M20 20h20v20H20zM60 20h20v20H60zM100 20h20v20h-20zM140 20h20v20h-20zM180 20h20v20h-20zM20 60h20v20H20zM60 60h20v20H60zM100 60h20v20h-20zM140 60h20v20h-20zM180 60h20v20h-20zM20 100h20v20H20zM60 100h20v20H60zM100 100h20v20h-20zM140 100h20v20h-20zM180 100h20v20h-20zM20 140h20v20H20zM60 140h20v20H60zM100 140h20v20h-20zM140 140h20v20h-20zM180 140h20v20h-20zM20 180h20v20H20zM60 180h20v20H60zM100 180h20v20h-20zM140 180h20v20h-20zM180 180h20v20h-20z" fill="white"/></svg>');
  z-index: -2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 500px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-animate {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  padding: 12px 30px;
  transition: var(--transition);
  z-index: 1;
}

.btn-animate span {
  position: relative;
  z-index: 2;
}

.btn-animate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  z-index: -1;
  transition: var(--transition);
}

.btn-animate:hover::before {
  opacity: 0.9;
  transform: scale(1.05);
}

.btn-outline-light:hover {
  color: var(--primary);
}

/* Стили для слайдера изображений */
.hero-image-wrapper {
  position: relative;
  margin-left: 30px;
  height: 400px;
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.banner-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.banner-slider img.active {
  opacity: 1;
}

/* Стили для секции категорий */
.categories-section {
  padding: 100px 0;
  background-color: var(--light);
}

.category-card {
  display: block;
  height: 100%;
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 25px;
  transition: var(--transition);
}

.category-card:hover .card-icon {
  transform: scale(1.1);
}

.category-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark);
}

.category-card p {
  color: var(--gray);
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
}

.card-footer i {
  margin-left: 8px;
  transition: var(--transition);
}

.category-card:hover .card-footer {
  transform: translateX(5px);
}

.category-card:hover .card-footer i {
  transform: translateX(5px);
}

.hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(67, 97, 238, 0) 100%);
  opacity: 0;
  transition: var(--transition-slow);
}

.category-card:hover .hover-effect {
  opacity: 1;
}

/* Цвета категорий */
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-success { background-color: var(--success); }
.bg-danger { background-color: var(--danger); }
.bg-warning { background-color: var(--warning); }
.bg-info { background-color: var(--info); }

/* Стили для секции преимуществ */
.features-section {
  padding: 100px 0;
  position: relative;
}

.feature-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  height: 100%;
  box-shadow: var(--box-shadow);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 25px;
  position: relative;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  margin-bottom: 0;
}

/* Стили для секции процесса работы */
.process-section {
  padding: 100px 0;
  background-color: var(--light);
}

.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.process-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--success));
  border-radius: 10px;
}

.process-step {
  display: flex;
  margin-bottom: 60px;
  position: relative;
  align-items: flex-start;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-right: 30px;
  flex-shrink: 0;
  position: relative;
}

.step-content {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  flex-grow: 1;
  position: relative;
}

.step-content::before {
  content: '';
  position: absolute;
  top: 30px;
  left: -15px;
  width: 30px;
  height: 30px;
  background: white;
  transform: rotate(45deg);
  box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.05);
  z-index: -1;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}

.step-content p {
  color: var(--gray);
  margin-bottom: 0;
}

/* Адаптивные стили */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-image-wrapper {
    height: 350px;
  }

  .process-line {
    left: 25px;
  }

  .process-step {
    flex-direction: column;
  }

  .step-number {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .step-content {
    width: 100%;
  }

  .step-content::before {
    top: -15px;
    left: 30px;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 60px 0 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
    margin-top: 20px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .hero-image-wrapper {
    margin-left: 0;
    margin-bottom: 20px;
    height: 300px;
  }

  .section-title {
    font-size: 2rem;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-image-wrapper {
    height: 250px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 25px 15px;
  }
}