:root {
  --primary-color: #7c3aed;      /* Main violet */
  --primary-dark: #4527a0;       /* Dark violet */
  --primary-light: #b39ddb;      /* Pastel violet */
  --primary-pastel: #ede7f6;     /* Gentle pastel background */
  --secondary-color: #b39ddb;    /* Secondary as pastel violet (NO blue) */
  --accent-color: #ffd54f;       /* Soft yellow accent */
  --background-color: #f5f5fa;   /* Light background */
  --surface-color: #fff;
  --white-color: #fff;
  --black-color: #22223b;
  --gray-color: #757575;
  --success-color: #43a047;
  --danger-color: #e53935;
  --warning-color: #ffa726;
  --info-color: #4fc3f7;
}

/* ========== Body & General ========== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--black-color);
  line-height: 1.6;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--background-color) 70%, var(--primary-pastel) 100%);
}

/* ========== Links ========== */
a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s, border-bottom 0.2s;
}
a:hover, a:focus {
  color: var(--primary-dark);
  border-bottom: 1.5px solid var(--accent-color);
  background: var(--primary-pastel);
  outline: none;
}

/* ========== Navbar (сохраняем ваши изменения) ========== */
.navbar {
  background: var(--white-color) !important;
  border-bottom: 2px solid var(--primary-light);
  box-shadow: 0 2px 10px rgba(124,58,237,0.07);
  padding: 15px 0;
  transition: all 0.3s ease;
}
.navbar .nav-link {
  color: var(--black-color) !important;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 22px;
  margin: 0 6px;
  transition: background 0.3s, color 0.3s;
}
.navbar .nav-link:hover, .navbar .nav-link:focus {
  background: var(--primary-pastel);
  color: var(--primary-color) !important;
}

/* Кнопка "Связаться с нами" в навбаре */
.btn-outline-light {
  background: var(--primary-color) !important;
  color: white !important;
  border: 2px solid var(--primary-color) !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
  transition: all 0.3s;
}

.btn-outline-light:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* ========== Section ========== */
.section {
  padding: 80px 0;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
  position: relative;
}
.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light) 100%);
  margin: 15px auto;
  border-radius: 2px;
}
.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-color);
}

/* ========== Buttons ========== */
.btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
  border: none;
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark) 100%);
  color: var(--white-color);
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  color: var(--accent-color);
  box-shadow: 0 4px 16px rgba(124,58,237,0.14);
  transform: translateY(-2px) scale(1.04);
}
.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white-color);
  box-shadow: 0 4px 12px rgba(124,58,237,0.12);
  transform: translateY(-2px);
}
.btn-light {
  background-color: var(--white-color);
  color: var(--primary-color);
}
.btn-light:hover {
  background-color: var(--primary-pastel);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ========== Hero Section ========== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white-color);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}
.hero-image {
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(124,58,237,0.13);
  transition: all 0.3s ease;
}
.hero-image:hover {
  transform: scale(1.03);
}

/* ========== About Values ========== */
.about-values { margin-top: 20px; }
.value-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding: 25px;
  background: var(--white-color);
  border-radius: 10px;
  transition: box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 5px 15px rgba(124,58,237,0.07);
  border-left: 4px solid var(--primary-light);
}
.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(124,58,237,0.14);
  border-left: 4px solid var(--primary-color);
}
.value-icon {
  width: 60px;
  height: 60px;
  background: rgba(124,58,237,0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 20px;
  flex-shrink: 0;
}
.value-content h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}
.value-content p {
  color: var(--gray-color);
  margin-bottom: 0;
}

/* ========== Services Grid ========== */
.services-row { margin-bottom: 30px; }
.service-card {
  background: var(--white-color);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(124,58,237,0.07);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
  border: 1px solid rgba(124,58,237,0.08);
  border-left: 4px solid var(--primary-light);
}
.service-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 15px 30px rgba(124,58,237,0.12);
  border-left: 4px solid var(--primary-color);
}
.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(124,58,237,0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 2rem;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon {
  background: var(--primary-color);
  color: var(--white-color);
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}
.service-features {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
.service-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(124,58,237,0.08);
  position: relative;
  padding-left: 30px;
  color: var(--gray-color);
}
.service-features li:before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-light);
}

/* ========== Contact Section ========== */
#contact {
  background: var(--white-color) !important;
  color: var(--black-color) !important;
}

#contact .section-title {
  color: var(--primary-color) !important;
}

#contact .section-subtitle {
  color: var(--gray-color) !important;
}

.contact-form {
  background: var(--primary-pastel) !important;
  border-radius: 12px;
  padding: 30px !important;
}

.contact-info {
  background: var(--primary-pastel) !important;
  border-radius: 12px;
}

.contact-form .btn-light {
  background: var(--primary-color) !important;
  color: white !important;
  width: 100%;
}

.contact-form .btn-light:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px);
}

/* ========== Footer ========== */
.footer {
  padding: 80px 0 20px;
  background: var(--primary-dark);
  color: var(--white-color);
}

.footer-links a {
  color: var(--gray-color);
  transition: color 0.3s, padding 0.3s, opacity 0.3s;
  opacity: 0.8;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
  opacity: 1;
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(124,58,237,0.10);
  border-radius: 50%;
  color: var(--white-color);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.social-links a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ========== Modal ========== */
.modal-content {
  border-radius: 10px;
  overflow: hidden;
  border: none;
}
.modal-header {
  background: var(--primary-color);
  color: var(--white-color);
  border-bottom: none;
}
.modal-title { font-weight: 600; }
.btn-close { filter: invert(1); }

/* ========== Responsive ========== */
@media (max-width: 1199.98px) {
  .hero-section h1 { font-size: 2.5rem; }
}
@media (max-width: 991.98px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  .hero-section { padding: 100px 0 60px; }
  .hero-section h1 { font-size: 2.2rem; }
  .value-item { padding: 20px; }
  .value-icon { width: 50px; height: 50px; font-size: 1.3rem; }
  .contact-form { padding: 24px 10px; }
}
@media (max-width: 767.98px) {
  body { padding-top: 70px; }
  .section { padding: 50px 0; }
  .section-title { font-size: 1.8rem; }
  .hero-section { padding: 80px 0 40px; text-align: center;}
  .hero-section h1 { font-size: 1.8rem; }
  .hero-buttons { justify-content: center; }
  .hero-image { margin-top: 30px; max-width: 80%; }
  .value-item { flex-direction: column; align-items: center; text-align: center; }
  .value-icon { margin-right: 0; margin-bottom: 15px; }
  .service-icon { width: 70px; height: 70px; font-size: 1.8rem; }
  .contact-form { max-width: 95vw; }
}
@media (max-width: 575.98px) {
  .section-title { font-size: 1.6rem; }
  .section-subtitle { font-size: 1rem; }
  .navbar-brand img { width: 100px; }
  .footer { padding: 60px 0 20px; text-align: center;}
  .footer-links { margin-bottom: 30px; }
  .social-links { justify-content: center; }
  .footer-bottom .text-md-end {
    text-align: center !important;
    margin-top: 15px;
  }
  .contact-item { flex-direction: column; text-align: center; }
  .contact-icon {
    margin-right: 0;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
  }
}
