/* ===== Bootstrap 5 Integration ===== */
@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css");

/* ===== Font Awesome Integration ===== */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ===== CSS Variables - Color Palette ===== */
:root {
  /* Primary Colors */
  --primary-sage: #9CAF88;
  --primary-cream: #F4F1E8;
  --primary-terracotta: #E07A5F;
  --primary-navy: #3D5A80;
  --primary-gold: #F2CC8F;
  
  /* Light Shades */
  --light-sage: #B8C7A8;
  --light-cream: #F9F7F2;
  --light-terracotta: #E89982;
  --light-navy: #5D7AA0;
  --light-gold: #F5D7A8;
  
  /* Dark Shades */
  --dark-sage: #7A8F68;
  --dark-cream: #E8E3D8;
  --dark-terracotta: #D45A3F;
  --dark-navy: #2D4A70;
  --dark-gold: #E8B66F;
  
  /* Neutral Colors */
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-section: #f8f9fa;
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --font-size-base: 1rem;
  --font-size-small: 0.875rem;
  --font-size-xs: 0.75rem;
  
  /* Spacing */
  --section-padding: 80px 0;
  --card-padding: 2rem;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

h5 {
  font-size: 1.125rem;
  font-weight: 500;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary-terracotta);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dark-terracotta);
}

/* ===== Accessibility ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-navy);
  color: var(--text-light);
  padding: 8px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--text-light);
}

.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;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Layout Utilities ===== */
.section {
  padding: var(--section-padding);
}

.section-alt {
  background-color: var(--bg-section);
}

.text-center {
  text-align: center;
}

.mb-5 {
  margin-bottom: 3rem;
}

/* ===== Header & Navigation ===== */
.navbar {
  background-color: var(--bg-light);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.navbar-brand:hover {
  color: var(--primary-terracotta);
}

.navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-terracotta);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-cream) 0%, var(--light-cream) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-bg.webp') center/cover no-repeat;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

/* ===== Buttons ===== */
.btn {
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-terracotta);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--dark-terracotta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border: 2px solid var(--primary-terracotta);
  color: var(--primary-terracotta);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary-terracotta);
  color: var(--text-light);
}

/* ===== Cards ===== */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: var(--card-padding);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-secondary);
  font-size: var(--font-size-small);
}

/* ===== Services Section ===== */
.services-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.services-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.services-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-sage), var(--light-sage));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--text-light);
}

.services-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-terracotta);
  margin-bottom: 1rem;
}

/* ===== Team Section ===== */
.team-card {
  text-align: center;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 4px solid var(--primary-cream);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--text-secondary);
  font-size: var(--font-size-small);
}

/* ===== Testimonials Section ===== */
.testimonial-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  margin: 1rem 0;
  height: 100%;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-navy);
}

/* ===== FAQ Section ===== */
.faq-item {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  background: none;
  border: none;
  padding: 1.5rem;
  width: 100%;
  text-align: left;
  font-weight: 600;
  color: var(--primary-navy);
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--primary-terracotta);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  display: none;
}

.faq-answer.active {
  display: block;
}

/* ===== Contact Form ===== */
.contact-form {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.form-control {
  border: 2px solid var(--primary-cream);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  font-size: var(--font-size-base);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-terracotta);
  box-shadow: 0 0 0 0.2rem rgba(224, 122, 95, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* ===== Timeline Section ===== */
.timeline .badge {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.timeline .card {
  height: 100%;
  transition: all 0.3s ease;
}

.timeline .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ===== Career Section ===== */
.career-item-role {
  font-size: var(--font-size-small);
  margin-bottom: 0.5rem;
}

/* ===== Gallery Section ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
}

.gallery-item:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===== Footer ===== */
footer {
  background-color: var(--primary-navy);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-title {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-gold);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Utility Classes ===== */
.text-primary-sage { color: var(--primary-sage); }
.text-primary-cream { color: var(--primary-cream); }
.text-primary-terracotta { color: var(--primary-terracotta); }
.text-primary-navy { color: var(--primary-navy); }
.text-primary-gold { color: var(--primary-gold); }

.bg-primary-sage { background-color: var(--primary-sage); }
.bg-primary-cream { background-color: var(--primary-cream); }
.bg-primary-terracotta { background-color: var(--primary-terracotta); }
.bg-primary-navy { background-color: var(--primary-navy); }
.bg-primary-gold { background-color: var(--primary-gold); }

.border-radius { border-radius: var(--border-radius); }
.border-radius-sm { border-radius: var(--border-radius-sm); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ===== Animation Classes ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: none;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.breadcrumb-item img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
}

/* ===== Space Page ===== */
#space {
  min-height: 80vh;
  background: linear-gradient(135deg, var(--primary-cream) 0%, var(--light-cream) 100%);
  border-radius: var(--border-radius);
  margin: 2rem 0;
} 


/* Team Social Links - Rounded Style */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
    width: 100%;
    overflow: hidden;
}

.social-icons-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.social-link {
    display: inline-flex;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.facebook-link:hover {
    background: linear-gradient(135deg, #0d6efd, #1877f2);
}

.linkedin-link {
    background: linear-gradient(135deg, #0a66c2, #2196f3);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #084a8a, #0a66c2);
}

.x-link {
    background: linear-gradient(135deg, #000000, #333333);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 20px;
}

.x-link:hover {
    background: linear-gradient(135deg, #1a1a1a, #000000);
}

.x-link i {
    display: none;
}

@media (min-width: 576px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .social-icons-grid {
        gap: 15px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Дополнительные стили для team-card уже определены выше */

/* Обеспечиваем, что контейнер команды не создает overflow */
.team-grid {
    overflow: hidden;
}

.team-grid .col-lg-2,
.team-grid .col-md-4,
.team-grid .col-6 {
    padding-left: 10px;
    padding-right: 10px;
}
