/*проф обслуживание поселков*/
/* Премиум секция услуг с новой цветовой палитрой */
.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;
}

.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;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-grid:hover .paragraph-container {
  opacity: 1;
  transform: translateX(0);
}

.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%;
}

.direction-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2962cc;
  margin-top: 3rem;
  position: relative;
  padding-left: 25px;
  background: linear-gradient(90deg, #2962cc, #3a86ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.direction-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background: #ec4899;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(247, 37, 133, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.direction-title:hover::before {
  transform: translateY(-50%) scale(1.2);
}

/* Улучшенный контейнер изображения */
.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;
}

.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 float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Village Services Section */
/* Village Services Section */
.village-services {
  padding: 5rem 0;
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.village-services .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1rem;
  line-height: 1.2;
  /* Полностью убираем все возможные варианты подчеркивания */
  text-decoration: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  border-bottom: none !important;
  box-shadow: none !important;
  /* Убираем псевдоэлементы, которые могли создавать подчеркивание */
  position: static;
}

.section-title::after,
.section-title::before {
  content: none !important;
  display: none !important;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--dark-medium);
  max-width: 700px;
  margin: 0 auto;
}

/* Tabs */
.services-tabs {
  margin: 3rem 0;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.8rem 1.8rem;
  background: white;
  border: 2px solid var(--light-gray);
  border-radius: 50px;
  font-weight: 600;
  color: var(--dark-medium);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
  border-color: #3a86ff;
  color: #3a86ff;
  transform: translateY(-2px);
}

.tab-btn.active {
  background: #3a86ff;
  border-color: #3a86ff;
  color: white;
  box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3);
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
  display: block;
}

/* Service Cards */
.service-card {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-left-color: #3a86ff;
}

.service-icon {
  flex: 0 0 80px;
  background: rgba(58, 134, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.service-icon svg {
  width: 40px;
  height: 40px;
  fill: #3a86ff;
}

.service-details {
  flex: 1;
  padding: 1.5rem;
}

.service-details h3 {
  font-size: 1.4rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-features {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--dark-medium);
  line-height: 1.6;
}

.service-features li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  background-color: #3a86ff;
  border-radius: 50%;
}

.service-note {
  font-style: italic;
  color: var(--dark-medium);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--light-gray);
}

/* CTA Block */
.cta-block {
  background: linear-gradient(135deg, #3a86ff 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  padding: 2.5rem;
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: var(--shadow-lg);
}

.cta-content {
  flex: 1;
  min-width: 300px;
  margin-bottom: 1.5rem;
}

.cta-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-content p {
  opacity: 0.9;
}

.cta-btn {
  background: white;
  color: #3a86ff;
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Animations */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .service-card {
    flex-direction: column;
  }
  
  .service-icon {
    padding: 1rem;
  }
  
  .cta-block {
    text-align: center;
  }
  
  .cta-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .tab-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tab-btn {
    width: 100%;
  }
}