/* Основные переменные и сброс стилей */
:root {
  --primary-blue: #2c3e50;
  --secondary-blue: #3498db;
  --light-blue: #e8f4fc;
  --accent-orange: #e67e22;
  --accent-red: #e74c3c;
  --dark-gray: #34495e;
  --light-gray: #ecf0f1;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

main {
  flex-grow: 1;
}

/* Общие стили для всех страниц */
.header-bg {
  background: linear-gradient(rgba(236, 240, 241, 0.95), rgba(236, 240, 241, 0.95)), 
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23dfe6e9" x="0" y="0" width="100" height="100"/><path fill="%23bdc3c7" d="M0 0 L100 100 M100 0 L0 100" stroke-width="0.5"/></svg>');
  background-size: 120px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #dcdde1;
  padding: 1rem 0;
}

.footer-bg {
  background: linear-gradient(rgba(52, 73, 94, 0.95), rgba(52, 73, 94, 0.95)), 
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%232c3e50" x="0" y="0" width="100" height="100"/><circle fill="%2334495e" cx="50" cy="50" r="40"/></svg>');
  background-size: 120px;
  color: var(--text-light);
  padding: 2rem 0;
  margin-top: 2rem;
}

/* Навигация */
.navbar {
  padding: 0.8rem 0;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-blue);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  color: var(--dark-gray);
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--accent-orange);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
}

.btn-primary:hover {
  background-color: #d35400;
  border-color: #d35400;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
}

/* Контейнеры и сетка */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 90%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  flex: 1;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

/* Карточки */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  margin-top: 0;
  color: var(--primary-blue);
}

/* Формы */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--secondary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Утилиты */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
  .navbar-nav {
    margin-top: 0.5rem; /* Уменьшить отступ */
    flex-direction: column;
    gap: 0.3rem; /* Уменьшить расстояние между пунктами */
  }
  
  .nav-item {
    margin: 0.2rem 0 !important; /* Уменьшить отступы */
  }
}
/* Дополнительные стили для контента */
.hero {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--secondary-blue) 100%);
  padding: 4rem 0;
  margin-bottom: 3rem;
  border-radius: 0 0 20px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--dark-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-orange);
  border-radius: 2px;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

/* Стили для футера */
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-orange);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Стили для блока партнеров */
.partner-block {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.partner-icon {
  font-size: 2.5rem;
  color: var(--accent-orange);
  flex-shrink: 0;
  min-width: 40px;
}

.partner-info {
  flex-grow: 1;
}

.partner-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  display: block;
}

.partner-description {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

/* Новые стили для улучшения внешнего вида */
.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-card .feature-icon {
  margin-bottom: 1.5rem;
}

.testimonial {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.contact-info {
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--primary-blue);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-orange);
}

/* Стили для футера - исправление цвета текста с анимацией */
.footer-bg,
.footer-bg a,
.footer-bg .navbar-brand,
.footer-bg .nav-link,
.footer-bg .footer-section h3,
.footer-bg .footer-section p,
.footer-bg .footer-section div,
footer,
footer a,
footer .navbar-brand,
footer .nav-link,
footer h3,
footer p,
footer div {
  color: var(--text-light) !important;
}

/* Анимация выезда для ссылок в футере */
.footer-bg .nav-link,
footer .nav-link,
.footer-bg a:not(.btn):not(.social-links a):not(.partner-icon),
footer a:not(.btn):not(.social-links a):not(.partner-icon) {
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.footer-bg a:not(.btn):not(.social-links a):not(.partner-icon)::after,
footer a:not(.btn):not(.social-links a):not(.partner-icon)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: width 0.3s ease;
}

.footer-bg a:not(.btn):not(.social-links a):not(.partner-icon):hover::after,
.footer-bg a:not(.btn):not(.social-links a):not(.partner-icon):focus::after,
footer a:not(.btn):not(.social-links a):not(.partner-icon):hover::after,
footer a:not(.btn):not(.social-links a):not(.partner-icon):focus::after {
  width: 100%;
}

.footer-bg a:not(.btn):not(.social-links a):not(.partner-icon):hover,
.footer-bg a:not(.btn):not(.social-links a):not(.partner-icon):focus,
footer a:not(.btn):not(.social-links a):not(.partner-icon):hover,
footer a:not(.btn):not(.social-links a):not(.partner-icon):focus {
  color: var(--accent-orange) !important;
  text-decoration: none;
}

.footer-bg .social-links a,
footer .social-links a {
  color: var(--text-light) !important;
}

.footer-bg .social-links a:hover,
.footer-bg .social-links a:focus,
footer .social-links a:hover,
footer .social-links a:focus {
  color: var(--accent-orange) !important;
  transform: scale(1.1) translateY(-2px);
}

/* Убедимся, что все ссылки в футере имеют правильные стили */
.footer-bg a,
footer a {
  transition: all 0.3s ease;
}

.footer-bg a:hover,
footer a:hover {
  transform: translateY(-1px);
}

/* Адаптивность для футера */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }
  
  .partner-block {
    flex-direction: column;
    text-align: center;
  }
  /* ===== ЕДИНЫЕ СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ ===== */

/* Навигация - одинаковые отступы везде */
.navbar-nav {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.nav-item {
  margin: 0 0.4rem !important;
}

.navbar-brand {
  margin-right: 2rem !important;
}

.navbar > .container {
  padding: 0 1.5rem !important;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-link.active {
  color: var(--primary-blue) !important;
  font-weight: 600;
}

/* Футер - одинаковый на всех страницах */
.footer-bg {
  background: linear-gradient(rgba(52, 73, 94, 0.95), rgba(52, 73, 94, 0.95)), 
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%232c3e50" x="0" y="0" width="100" height="100"/><circle fill="%2334495e" cx="50" cy="50" r="40"/></svg>') !important;
  background-size: 120px !important;
  color: var(--text-light) !important;
  padding: 2rem 0 !important;
  margin-top: 2rem !important;
}

.footer-bg a,
.footer-bg .navbar-brand,
.footer-bg .nav-link {
  color: var(--text-light) !important;
}

.partner-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  padding: 0.6rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Анимация для ссылок футера */
.footer-bg a:not(.btn) {
  position: relative;
  padding: 0.2rem 0;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.footer-bg a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-orange);
  transition: width 0.3s ease;
}

.footer-bg a:not(.btn):hover::after {
  width: 100%;
}

.footer-bg a:not(.btn):hover {
  color: var(--accent-orange) !important;
  padding-left: 5px;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .navbar-nav {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
  }
  
  .nav-item {
    margin: 0.3rem 0 !important;
  }
  
  .navbar > .container {
    padding: 0 1rem !important;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .partner-item {
    flex-direction: column;
    text-align: center;
  }
  /* Анимация для фильтрации */
.service-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
  display: none;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }
.service-item:nth-child(7) { animation-delay: 0.7s; }
.service-item:nth-child(8) { animation-delay: 0.8s; }
.service-item:nth-child(9) { animation-delay: 0.9s; }
.service-item:nth-child(10) { animation-delay: 1.0s; }
.service-item:nth-child(11) { animation-delay: 1.1s; }
.service-item:nth-child(12) { animation-delay: 1.2s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для активной кнопки фильтра */
.category-btn.active {
  background: #3498db;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.category-btn {
  padding: 0.7rem 1.5rem;
  border: 2px solid #3498db;
  background: white;
  color: #2c3e50;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 500;
  cursor: pointer;
}

.category-btn:hover {
  background: #3498db;
  color: white;
  transform: translateY(-2px);

}

/* Специфічні стилі для кнопок "Детальніше" з стрілкою */
a.btn.btn-outline-primary {
    color: var(--accent-orange) !important;
    border: 2px solid var(--accent-orange) !important;
    background-color: transparent !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    padding: 10px 26px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

a.btn.btn-outline-primary:hover {
    color: white !important;
    background-color: var(--accent-orange) !important;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4) !important;
    transform: translateY(-3px) !important;
}

a.btn.btn-outline-primary i.fa-arrow-right {
    margin-left: 8px !important;
    transition: transform 0.3s ease !important;
}

a.btn.btn-outline-primary:hover i.fa-arrow-right {
    transform: translateX(5px) !important;
}
