/* Премиум секция услуг с новой цветовой палитрой */
.premium-service-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
}

/* Декоративные элементы */
.premium-service-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(58, 134, 255, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.premium-service-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(247, 37, 133, 0.08) 0%, transparent 70%);
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Улучшенный текстовый блок */
.text-block {
  position: relative;
  z-index: 3;
}

.title-animate {
  font-size: 2.8rem;
  font-weight: 800;
  color: #3a86ff;
  margin-bottom: 2.5rem;
  line-height: 1.15;
  position: relative;
  width: fit-content;
  animation: fadeInUp 0.8s 0.3s both;
}

.title-animate::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 120px;
  height: 5px;
  background: linear-gradient(90deg, #3a86ff, #ec4899);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-grid:hover .title-animate::after {
  transform: scaleX(1);
}

.paragraph-container {
  margin-bottom: 2rem;
  position: relative;
  padding-left: 30px;
  animation: fadeIn 0.8s 0.5s both;
}

.paragraph-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border: 3px solid #3a86ff;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.paragraph-container:hover::before {
  background: #3a86ff;
  transform: scale(1.2);
}

.text-reveal {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #0f172a;
  margin-bottom: 1rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 5px 0;
}

.paragraph-container:hover .text-reveal {
  color: #2962cc;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, #3a86ff, transparent 80%);
  width: 80%;
  margin: 1.5rem 0;
  opacity: 0.2;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.paragraph-container:hover .divider {
  opacity: 0.6;
  width: 100%;
}

/* Улучшенный контейнер изображения */
.image-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
  height: 550px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-grid:hover .image-container {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: brightness(0.95);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(58, 134, 255, 0.6) 0%, rgba(76, 201, 240, 0.3) 100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.image-container:hover .image-overlay {
  opacity: 1;
}

.image-container:hover .feature-image {
  transform: scale(1.03);
  filter: brightness(1);
}

.image-caption {
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  padding: 25px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateY(100%);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(58, 134, 255, 0.1);
}

.image-container:hover .image-caption {
  transform: translateY(0);
  bottom: 0;
}

/* Декоративная кнопка */
.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 15px 35px;
  background: linear-gradient(45deg, #3a86ff, #5a9cff);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  animation: fadeIn 0.8s 0.7s both;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #2962cc, #ec4899);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

.cta-button:hover::before {
  left: 0;
}

.cta-button span {
  position: relative;
  z-index: 2;
}

.cta-button:hover {
  box-shadow: 0 10px 25px rgba(58, 134, 255, 0.5);
  transform: translateY(-3px);
}

/* Адаптивность */
@media (max-width: 1200px) {
  .service-grid {
    gap: 40px;
  }
  
  .title-animate {
    font-size: 2.4rem;
  }
}

@media (max-width: 992px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .image-container {
    height: 450px;
    order: -1;
    max-width: 80%;
    margin: 0 auto;
  }
  
  .title-animate {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .premium-service-section {
    padding: 4rem 0;
  }
  
  .title-animate {
    font-size: 2rem;
  }
  
  .image-container {
    max-width: 100%;
    height: 400px;
  }
  
  .text-reveal {
    font-size: 1.05rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .title-animate {
    font-size: 1.8rem;
  }
  
  .image-container {
    height: 350px;
  }
  
  .paragraph-container {
    padding-left: 20px;
  }
  
  .paragraph-container::before {
    width: 10px;
    height: 10px;
  }
}

/* Анимации для появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==================== */
/* SERVICES SECTION */
/* ==================== */
#services {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgzMCwgNTgsIDkwLCAwLjAxKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
  opacity: 0.5;
  z-index: 0;
}

#services .container {
  position: relative;
  z-index: 1;
}

#services h2 {
  color: var(--dark-color);
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

#services h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-blue);
  border-radius: 2px;
}

.service-card {
  border: none;
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-blue);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  height: 100%;
}

.service-card .card-body {
  padding: 2rem;
}

.service-card h3 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  position: relative;
  padding-left: 60px;
}

.service-card p {
  color: var(--dark-medium);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.service-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.service-card ul li {
  color: var(--dark-medium);
  margin-bottom: 0.5rem;
  position: relative;
  list-style-type: none;
  padding-left: 25px;
  line-height: 1.5;
}

.service-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: absolute;
  top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #services h2 {
    font-size: 2rem;
  }
  
  .service-card h3 {
    padding-left: 0;
    padding-top: 60px;
  }
  
  .feature-icon {
    top: 1.5rem;
  }
}


/* ==================== */
/* DETAILED SERVICES SECTION */
/* ==================== */
.bg-light {
  background-color: var(--light-gray) !important;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.bg-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgzMCwgNTgsIDkwLCAwLjAyKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
  opacity: 0.3;
  z-index: 0;
}

.bg-light .container {
  position: relative;
  z-index: 1;
}

.bg-light h2 {
  color: var(--dark-color);
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.bg-light h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-blue);
  border-radius: 2px;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: white;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

/* Card Header Styles */
.card-header {
  padding: 1.5rem;
  border-bottom: none;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  position: relative;
}

.card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(45deg, var(--accent-pink), var(--accent-yellow));
}

.card-header h3 {
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0;
  position: relative;
  padding-left: 40px;
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-header h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.card-header h3::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* Card Body Styles */
.card-body {
  padding: 0;
}

.list-group {
  border-radius: 0 !important;
}

.list-group-item {
  padding: 1.25rem 1.5rem;
  border-left: none;
  border-right: none;
  border-color: rgba(226, 232, 240, 0.8);
  position: relative;
  transition: all 0.3s ease;
  color: var(--dark-medium);
  font-size: 1rem;
  line-height: 1.5;
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item:hover {
  background-color: rgba(56, 189, 248, 0.05);
}

.list-group-item::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.list-group-item:hover::before {
  opacity: 1;
  left: 1rem;
}

.list-group-item:hover {
  padding-left: 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .bg-light h2 {
    font-size: 2rem;
  }
  
  .card-header h3 {
    font-size: 1.3rem;
    padding-left: 35px;
  }
  
  .list-group-item {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .bg-light {
    padding: 3rem 0;
  }
  
  .bg-light h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .card-header {
    padding: 1.25rem;
  }
  
  .card-header h3 {
    font-size: 1.2rem;
    padding-left: 30px;
  }
  
  .list-group-item {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }
}