:root {
  --primary-color: #4e7de4; /* Яркий синий */
  --secondary-color: #e47d4e; /* Оранжевый */
  --accent-color: #7de44e; /* Зеленый */
  --primary-dark: #3a62ba; /* Темный синий для hover */
  --secondary-dark: #c96336; /* Темный оранжевый для hover */
  --accent-dark: #64c336; /* Темный зеленый для hover */
  --dark-color: #333333;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --gray-light: #e9ecef;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --body-font: 'IBM Plex Sans', sans-serif;
  --heading-font: 'Inter', sans-serif;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --transition-slow: 0.5s ease;
  --transition-medium: 0.3s ease;
  --transition-fast: 0.2s ease;
}

/* Base Styles */
body {
  font-family: var(--body-font);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 76px; /* Для фиксированного хедера */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

p {
  margin-bottom: 1.2rem;
}

/* Глобальные стили кнопок */
.btn {
  font-family: var(--heading-font);
  font-weight: 500;
  border-radius: 4px;
  padding: 0.625rem 1.5rem;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: white;
}

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

.btn-accent:hover, .btn-accent:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-outline-light {
  color: white;
  border-color: white;
}

.btn-outline-light:hover {
  color: var(--dark-color);
  background-color: white;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-medium);
}

.navbar-brand {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all var(--transition-medium);
  transform: translateX(-50%);
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
  width: 60%;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background-attachment: fixed;
}

.hero-section h1 {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* History Section */
#historia .timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 3rem;
}

#historia .timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

#historia .timeline-item:last-child {
  padding-bottom: 0;
}

#historia .timeline-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
  left: -2rem;
  top: 0.5rem;
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(78, 125, 228, 0.3);
}

#historia .timeline-item::before {
  content: '';
  position: absolute;
  left: -1.97rem;
  top: 0.5rem;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color) 0%, #e0e0e0 100%);
}

#historia .timeline-item:last-child::before {
  display: none;
}

#historia .timeline-content {
  padding-left: 1rem;
}

/* Vision Section */
#vision {
  padding: 5rem 0;
}

#vision img {
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

/* Community Section */
#comunidad {
  position: relative;
  padding: 5rem 0;
}

#comunidad img {
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

/* Recursos (Resources) Section */
#recursos .card {
  height: 100%;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

#recursos .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

#recursos .card-title {
  color: var(--primary-color);
}

#recursos .btn {
  margin-top: auto;
}

/* Partners Section */
#partners .card {
  text-align: center;
  height: 100%;
}

#partners .card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  overflow: hidden;
}

#partners .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

#partners .card:hover .card-image img {
  transform: scale(1.05);
}

/* Testimonials Section */
#testimonios .testimonial-card {
  position: relative;
  margin-top: 40px;
  text-align: center;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

#testimonios .testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

#testimonios .card-image {
  display: flex;
  justify-content: center;
}

#testimonios .testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#testimonios .testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

#testimonios .testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0;
}

#testimonios .stars {
  color: #FFD700;
  margin-bottom: 1rem;
}

#testimonios .custom-slider {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

#testimonios .slider-inner {
  display: flex;
  transition: transform var(--transition-medium);
}

#testimonios .slide {
  flex: 0 0 100%;
  padding: 0 1rem;
}

#testimonios .slide-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  position: relative;
  margin-bottom: 2rem;
}

#testimonios .slide-content:after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: white;
}

#testimonios .slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

#testimonios .slider-controls button {
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

#testimonios .slider-controls button:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Blog Section */
#blog .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#blog .card-image {
  height: 220px;
  overflow: hidden;
}

#blog .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

#blog .card:hover .card-image img {
  transform: scale(1.05);
}

#blog .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#blog .card-content a.btn {
  margin-top: auto;
}

#blog h3 {
  color: var(--dark-color);
  transition: color var(--transition-fast);
}

#blog .card:hover h3 {
  color: var(--primary-color);
}

/* FAQ Section */
#faq .accordion-item {
  border: none;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

#faq .accordion-button {
  font-family: var(--heading-font);
  font-weight: 600;
  padding: 1.25rem;
  background-color: white;
  color: var(--dark-color);
  border: none;
}

#faq .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: rgba(78, 125, 228, 0.05);
  box-shadow: none;
}

#faq .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(78, 125, 228, 0.1);
}

#faq .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234e7de4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Contact Section */
#contacto .contact-form {
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
}

#contacto .form-control {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
}

#contacto .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(78, 125, 228, 0.25);
}

#contacto .contact-info {
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

#contacto iframe {
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 5rem 0 2rem;
}

footer h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: white;
  text-decoration: none;
}

footer .social-links a {
  display: inline-block;
  margin-right: 1rem;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

footer .social-links a:hover {
  transform: translateY(-3px);
}

/* Success Page */
.success-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.success-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  padding: 3rem;
  max-width: 600px;
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

/* About Page */
.mission-values {
  padding: 2rem;
}

.value-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  background-color: rgba(78, 125, 228, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievements-timeline {
  padding-left: 2rem;
}

.cta-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 5rem 0;
  position: relative;
}

/* Privacy & Terms Pages */
.privacy-content, .terms-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h2, .terms-content h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.privacy-content h3, .terms-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.privacy-content ul, .terms-content ul {
  margin-bottom: 1.5rem;
}

.privacy-content address, .terms-content address {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

/* Cards Styling */
.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-color);
}

.card-content .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Team Cards */
.team-card {
  text-align: center;
}

.team-card .card-image {
  height: 250px;
}

.team-card .card-content {
  text-align: center;
}

/* Curved Grid Layout */
.curved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  transform: perspective(800px) rotateX(5deg);
}

.curved-grid-item {
  border-radius: 15px;
  overflow: hidden;
  transform: rotate(-1deg);
  transition: all var(--transition-medium);
}

.curved-grid-item:nth-child(even) {
  transform: rotate(1deg);
}

.curved-grid-item:hover {
  transform: rotate(0) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-primary-light {
  background-color: rgba(78, 125, 228, 0.1);
}

.bg-secondary-light {
  background-color: rgba(228, 125, 78, 0.1);
}

.bg-accent-light {
  background-color: rgba(125, 228, 78, 0.1);
}

.min-vh-75 {
  min-height: 75vh;
}

.opacity-75 {
  opacity: 0.75;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.shadow-md {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07) !important;
}

.shadow-lg {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.rounded-xl {
  border-radius: 1rem !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Animation Classes */
.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
}

.animate-slideUp {
  animation: slideUp 1s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 1s ease forwards;
}

.animate-slideInRight {
  animation: slideInRight 1s ease forwards;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  z-index: 9999;
  animation: slideUp 0.5s ease forwards;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  .hero-section {
    background-attachment: scroll;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline-marker {
    left: -1.5rem;
  }
  
  .curved-grid {
    transform: none;
  }
  
  .curved-grid-item, .curved-grid-item:nth-child(even) {
    transform: none;
  }
  
  .card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 66px;
  }
  
  .hero-section {
    min-height: 60vh;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .card-image {
    height: 180px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-section {
    min-height: 50vh;
  }
  
  .btn {
    padding: 0.5rem 1.25rem;
  }
  
  .card-image {
    height: 160px;
  }
}