/* Герой-баннер для страницы "Услуги" */
#services-hero-banner {
  position: relative;
  margin-top: 0;
  height: 90vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#services-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
  transition: all 0.5s ease;
  position: absolute;
  z-index: 1;
}

#services-content-block {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  text-align: center;
  color: white;
}

/* Стили для заголовка */
#services-hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.3s forwards;
}

/* Стили для подзаголовка */
#services-hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  max-width: 800px;
  margin: 0 auto 2rem;
  color: white;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeIn 0.8s 0.5s forwards;
}

/* Затемнение фона */
#services-hero-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* Эффекты при наведении */
#services-hero-banner:hover #services-hero-image {
  filter: brightness(0.5);
  transform: scale(1.02);
}

/* Адаптивность */
@media (max-width: 768px) {
  #services-hero-banner {
    height: 70vh;
    min-height: 500px;
  }
  
  #services-content-block {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  #services-hero-banner {
    height: 60vh;
    min-height: 400px;
  }
  
  #services-hero-title {
    margin-bottom: 1rem;
  }
  
  #services-hero-subtitle {
    margin-bottom: 1.5rem;
  }
}

/* Общие анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Секция услуг */
.services-section {
    padding: 80px 0;
    background-color: var(--light-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 1rem;
    /* Убраны свойства подчеркивания */
    position: static;
    padding-bottom: 0;
}

/* Удаляем подчеркивание для основного заголовка */
.section-title:after {
    content: none;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-medium);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.services-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.service-card {
    flex: 1;
    min-width: 250px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Вторая карточка - синий цвет */
.service-card.accent {
    background: #3a86ff;
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Последняя карточка - темный цвет */
.service-card.dark {
    background: #343a40;
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card.accent .service-icon,
.service-card.dark .service-icon {
    color: white;
}

/* Стили для заголовков в карточках (с подчеркиванием) */
.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.service-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.service-card:hover .service-title:after {
    width: 80px;
}

.service-card.accent .service-title,
.service-card.dark .service-title {
    color: white;
}

.service-card.accent .service-title:after,
.service-card.dark .service-title:after {
    background: white;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-features i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.service-card.accent .service-features li,
.service-card.dark .service-features li {
    color: rgba(255, 255, 255, 0.9);
}

.service-card.accent .service-features i,
.service-card.dark .service-features i {
    color: white;
}

.service-footer {
    margin-top: auto;
}

/* Кнопки в белых карточках */
.service-card:not(.accent):not(.dark) .service-btn {
    background-color: #3a86ff;
    color: white;
    border: 2px solid #3a86ff;
}

.service-card:not(.accent):not(.dark) .service-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* Кнопки в синей карточке */
.service-card.accent .service-btn {
    background-color: white;
    color: #3a86ff;
    border: 2px solid white;
}

.service-card.accent .service-btn:hover {
    background-color: white;
    color: #2563eb;
}

/* Кнопки в темной карточке */
.service-card.dark .service-btn {
    background-color: white;
    color: #343a40;
    border: 2px solid white;
}

.service-card.dark .service-btn:hover {
    background-color: white;
    color: #3a86ff;
    border-color: #3a86ff;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.service-btn i {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.service-btn:hover i {
    transform: translateX(3px);
}

/* ==================== */
/* ИСПРАВЛЕННАЯ АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ */
/* ==================== */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .service-card {
        min-width: 100%;
        padding: 25px;
        /* Добавляем выравнивание для контента */
        align-items: center;
        text-align: center;
    }

    /* Фиксируем выравнивание иконки и заголовка */
    .service-icon {
        margin-bottom: 15px;
        align-self: center;
    }

    .service-title {
        width: 100%;
        text-align: center;
    }

    .service-title:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .service-features {
        text-align: left;
        padding-left: 15px;
        padding-right: 15px;
    }

    .service-btn {
        padding: 10px 20px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .service-card {
        padding: 22px 18px;
    }

    .service-icon {
        font-size: 2.2rem;
    }

    .service-title {
        font-size: 1.3rem;
        padding-bottom: 8px;
        margin-bottom: 15px;
    }

    .service-features li {
        font-size: 0.9rem;
    }

    .service-btn {
        padding: 9px 18px;
        font-size: 0.9rem;
    }
}		 

/* Footer Styles */
#main-footer {
  background: var(--dark-color);
  color: var(--text-light);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

#main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAyKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
  opacity: 0.03;
  z-index: 0;
}

#main-footer .container {
  position: relative;
  z-index: 1;
}

#main-footer h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  display: inline-block;
}

#main-footer h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

#main-footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  opacity: 0.8;
}

#main-footer a:hover {
  color: var(--accent-blue);
  opacity: 1;
  text-decoration: none;
}

#main-footer .d-flex {
  margin-bottom: 1.25rem;
}

#main-footer .d-flex i {
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 20px;
}

#main-footer p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

#main-footer ul li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Decorative Elements */
#main-footer::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 70%);
  z-index: 0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  #main-footer {
    padding: 3rem 0 0;
  }
  
  #main-footer .col-lg-4 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  #main-footer h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  #main-footer .d-flex {
    margin-bottom: 1rem;
  }
  
  #main-footer p {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  #main-footer {
    padding: 2.5rem 0 0;
  }
  
  .footer-bottom {
    padding-top: 1.5rem !important;
  }
}