:root {
  /* Primary Color Palette - High Contrast Pastels */
  --primary-purple: #6A5ACD;
  --primary-purple-light: #9BB0FF;
  --primary-purple-dark: #4B0082;
  --accent-teal: #20B2AA;
  --accent-teal-light: #7FFFD4;
  --accent-teal-dark: #008B8B;
  --warm-coral: #FF7F7F;
  --warm-coral-light: #FFB6C1;
  --warm-coral-dark: #CD5C5C;
  --neutral-sage: #87CEEB;
  --neutral-sage-light: #E0F6FF;
  --neutral-sage-dark: #4682B4;
  --highlight-gold: #FFD700;
  --highlight-gold-light: #FFFFE0;
  --highlight-gold-dark: #B8860B;
  
  /* Text Colors */
  --text-dark: #2C3E50;
  --text-light: #ECF0F1;
  --text-muted: #7F8C8D;
  
  /* Background Colors */
  --bg-light: #FAFBFC;
  --bg-dark: #34495E;
  --bg-section: #F8F9FA;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.container-fluid {
  padding: 0;
}

/* Typography */
h1, .h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h2, .h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

h3, .h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

h4, .h4 {
  font-size: 1.2rem;
  font-weight: 500;
}

p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Navigation */
.navbar {
  padding: 0.8rem 0;
  background: linear-gradient(135deg, var(--primary-purple), var(--accent-teal));
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--highlight-gold);
  transform: translateY(-2px);
}

.navbar-toggler {
  border: 2px solid var(--text-light);
  border-radius: 5px;
  padding: 0.3rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-purple-light), var(--accent-teal-light));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-bg.webp') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
    padding-top: 125px;
}

.hero-title {
  color: var(--primary-purple-dark);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
  color: var(--accent-teal-dark);
  font-size: 1.2rem;
}

.hero-description {
  color: var(--text-dark);
  font-size: 1rem;
}

/* Section Styling */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  color: var(--primary-purple);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--accent-teal);
  margin-bottom: 0.8rem;
}

.section-description {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--primary-purple);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Services Cards */
.service-card {
  background: linear-gradient(135deg, var(--neutral-sage-light), var(--bg-light));
  border-left: 4px solid var(--accent-teal);
}

.service-price {
  color: var(--warm-coral);
  font-weight: 700;
  font-size: 1.3rem;
}

/* Team Cards */
.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 4px solid var(--highlight-gold);
}

.team-member-name {
  color: var(--primary-purple);
  font-weight: 600;
  text-align: center;
}

.team-member-role {
  color: var(--accent-teal);
  text-align: center;
  font-style: italic;
}

/* Reviews */
.review-card {
  background: linear-gradient(135deg, var(--warm-coral-light), var(--highlight-gold-light));
  position: relative;
}

.review-text {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.review-author {
  color: var(--primary-purple);
  font-weight: 600;
  text-align: right;
}

/* FAQ */
.faq-item {
  background: var(--bg-section);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--neutral-sage);
}

.faq-question {
  background: var(--primary-purple);
  color: var(--text-light);
  padding: 1rem;
  margin: 0;
  font-weight: 600;
  border-radius: 10px 10px 0 0;
}

.faq-answer {
  padding: 1rem;
  color: var(--text-dark);
  display: block;
  background: var(--bg-light);
}

/* Process Steps */
.process-step {
  text-align: center;
  position: relative;
  margin-bottom: 2rem;
}

.process-step::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal), var(--primary-purple));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.process-container {
  counter-reset: step-counter;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--highlight-gold);
  border: 4px solid var(--primary-purple);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 20px;
  width: 2px;
  height: calc(100% + 1rem);
  background: var(--accent-teal);
}

.timeline-item:last-child::after {
  display: none;
}

/* Contact Form */
.contact-form {
  background: linear-gradient(135deg, var(--neutral-sage-light), var(--bg-light));
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info {
  background: linear-gradient(135deg, var(--primary-purple-light), var(--accent-teal-light));
  padding: 2rem;
  border-radius: 15px;
  margin-top: 2rem;
}

.contact-info p {
  margin-bottom: 1rem;
  font-weight: 500;
}

.form-control {
  border: 2px solid var(--neutral-sage);
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 0.2rem rgba(106, 90, 205, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-purple), var(--accent-teal));
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--text-dark), var(--primary-purple-dark));
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer a {
  color: var(--accent-teal-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--highlight-gold);
}

.footer-title {
  color: var(--highlight-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-contact-phone,
.footer-contact-email,
.footer-contact-address {
  color: var(--accent-teal-light);
}

/* Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background: transparent;
}

/* Breadcrumb Styling */
.breadcrumb {
  background: transparent;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}

.breadcrumb-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

/* Fixed Navbar Scroll Effect */
.navbar-scrolled {
  background: rgba(106, 90, 205, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 200px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--bg-section);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

/* Pricing Cards */
.pricing-card {
  position: relative;
  background: linear-gradient(135deg, var(--bg-light), var(--neutral-sage-light));
  border: 2px solid var(--accent-teal);
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
}

.pricing-price {
  font-size: 2rem;
  color: var(--warm-coral);
  font-weight: 700;
}

.pricing-features {
  list-style: none;
  padding: 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--neutral-sage);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* Space Page */
#space {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--neutral-sage-light), var(--bg-light));
}

/* Form Validation */
.form-control.is-invalid {
  border-color: var(--warm-coral);
  box-shadow: 0 0 0 0.2rem rgba(255, 127, 127, 0.25);
}

.error-message {
  margin-bottom: 1rem;
}

/* Animation Classes */
.fade-in {
  opacity: 1 !important;
  transition: opacity 0.5s ease;
}

.lazy {
  opacity: 0.3;
  transition: opacity 0.3s ease;
  /* Fallback: если lozad.js не сработает, изображения будут слегка видны */
  min-height: 200px;
  background-color: #f8f9fa;
}

/* Добавляем анимацию появления для загруженных изображений */
.lazy.fade-in {
  opacity: 1;
  transform: scale(1);
}

/* Fallback для случаев когда JavaScript не работает */
.no-js .lazy {
  opacity: 1 !important;
}

/* Загруженные изображения */
.lazy[data-loaded="true"] {
  opacity: 1;
}

/* Дополнительный класс для принудительного показа изображений */
.image-loaded {
  opacity: 1 !important;
  transition: opacity 0.3s ease;
}

/* Keyframe анимация для плавного появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lazy.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Counter Animations */
.counter {
  font-weight: 700;
  color: var(--primary-purple);
}

/* Selected State */
.pricing-card.selected {
  border-color: var(--primary-purple);
  background: linear-gradient(135deg, var(--primary-purple-light), var(--accent-teal-light));
  transform: scale(1.02);
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Indicators */
*:focus {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  outline: 3px solid var(--highlight-gold);
  outline-offset: 2px;
}

/* Skip Links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-purple);
  color: white;
  padding: 8px;
  z-index: 10000;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 2rem 1rem;
  }
  
  h1, .h1 {
    font-size: 1.8rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
} 


/* Team Social Links - Colorful Style */
.team-social-links {
    margin-top: 22px;
    padding: 16px 0;
}

.social-icons-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 19px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(45deg, #1877f2, #42a5f5, #64b5f6);
}

.linkedin-link {
    background: linear-gradient(45deg, #0a66c2, #2196f3, #42a5f5);
}

.x-link {
    background: linear-gradient(45deg, #000000, #424242, #666666);
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: 900;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
