:root {
  /* Тетрадная цветовая схема */
  --primary: #1a56db;
  --primary-dark: #0f3b9e;
  --primary-light: #3b7dff;
  --secondary: #ffa200;
  --secondary-dark: #e07a00;
  --secondary-light: #ffb84d;
  --accent-1: #00a86b;
  --accent-1-dark: #007a4d;
  --accent-1-light: #3dd49b;
  --accent-2: #e63946;
  --accent-2-dark: #b8242f;
  --accent-2-light: #ff6b75;
  
  /* Нейтральные цвета */
  --dark: #333333;
  --medium: #666666;
  --light: #f5f5f5;
  --white: #ffffff;
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Переходы */
  --transition-fast: all 0.2s ease;
  --transition-medium: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Границы */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}

/* Базовые стили */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

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

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

.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  color: var(--dark);
}

.divider {
  height: 4px;
  width: 60px;
  background: var(--primary);
  margin: 0 auto;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--medium);
}

/* Кнопки */
.btn {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  transition: var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

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

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

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

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

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

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

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

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

.btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

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

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

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

/* Хедер */
header {
  transition: var(--transition-medium);
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
  background-color: rgba(0, 0, 0, 0.8) !important;
}

.navbar-brand img {
  height: 40px;
  transition: var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--white);
}

.navbar-dark .navbar-nav .nav-link.active {
  color: var(--white);
  font-weight: 700;
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--white);
  margin-top: -76px;
  padding-top: 76px;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* About Section */
#about {
  position: relative;
  overflow: hidden;
}

#about .image-container {
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
}

#about .image-container:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

#about img {
  width: 100%;
  height: auto;
  transition: var(--transition-medium);
}

#about h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* Features Section */
#features {
  background-color: var(--light);
}

.card {
  transition: var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  overflow: hidden;
  height: 250px;
}

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

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

.card-body {
  padding: 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.card:hover .icon-box {
  background-color: var(--primary);
  transform: rotate(10deg);
}

.feature-icon {
  font-size: 1.5rem;
}

/* History Section */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 4px;
  background: var(--primary-light);
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

.timeline-item {
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  top: 50px;
  z-index: 1;
}

.timeline-content {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.timeline-image img {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
}

.timeline-image img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* Resources Section */
#resources {
  background-color: var(--light);
}

#resources .card {
  text-align: left;
}

#resources .card-title a {
  color: var(--primary);
  transition: var(--transition-fast);
}

#resources .card-title a:hover {
  color: var(--primary-dark);
}

#resources .text-muted {
  font-size: 0.875rem;
}

#resources .btn-outline-primary {
  margin-top: 1rem;
  align-self: flex-start;
}

/* Innovation Section */
#innovation {
  position: relative;
}

.accordion-item {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.accordion-button {
  padding: 1.25rem;
  font-weight: 600;
  font-family: 'Raleway', sans-serif;
  color: var(--dark);
  background-color: var(--white);
  border-radius: var(--border-radius-md) !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: rgba(26, 86, 219, 0.05);
}

.accordion-button::after {
  background-size: 1.25rem;
  transition: var(--transition-fast);
}

.accordion-body {
  padding: 1.25rem;
}

/* Gallery Section */
#gallery {
  background-color: var(--light);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition-medium);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1.5rem;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-medium);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Methodology Section */
.progress-container {
  margin-top: 2rem;
}

.progress {
  height: 8px;
  background-color: rgba(26, 86, 219, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary);
  transition: width 1s ease;
}

/* Workshops Section */
#workshops {
  background-color: var(--light);
}

/* Success Stories Section */
.testimonial-card {
  position: relative;
  padding: 1.5rem;
}

.testimonial-img img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.testimonial-text {
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--primary-light);
  font-style: italic;
}

/* Accolades Section */
#accolades {
  background-color: var(--light);
}

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

.accolade-icon {
  margin: 0 auto 1.5rem;
  transition: var(--transition-medium);
}

.accolade-icon img {
  border-radius: 50%;
  border: 3px solid var(--primary);
  padding: 5px;
}

.accolade-card:hover .accolade-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Contact Section */
.contact-info, .contact-form {
  height: 100%;
}

.contact-form input, .contact-form textarea, .contact-form select {
  border: 1px solid #ddd;
  border-radius: var(--border-radius-md);
  padding: 0.75rem;
  transition: var(--transition-fast);
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(26, 86, 219, 0.25);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

footer h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

footer ul {
  padding-left: 0;
  list-style-type: none;
}

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

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

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

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

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

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

.success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--accent-1-light);
  color: var(--white);
  font-size: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(0, 168, 107, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 168, 107, 0);
  }
}

/* Privacy & Terms Pages */
.page-content {
  padding-top: 100px;
  padding-bottom: 3rem;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--white);
  padding: 1rem;
  z-index: 9999;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cookie-btn {
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cookie-btn:hover {
  background-color: var(--secondary-dark);
}

/* Микроанимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

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

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Медиа-запросы */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.25rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item::before {
    left: 30px;
  }
  
  .timeline-content {
    margin-left: 60px;
    text-align: left !important;
  }
  
  .timeline-image {
    margin-left: 60px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-btn {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    padding-top: 100px;
    padding-bottom: 50px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  footer {
    text-align: center;
  }
  
  footer ul {
    margin-bottom: 2rem;
  }
  
  .accolade-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    height: 30px;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .timeline::before,
  .timeline-item::before {
    display: none;
  }
  
  .timeline-content,
  .timeline-image {
    margin-left: 0;
  }
  
  .contact-info, .contact-form {
    padding: 1.5rem;
  }
  
  .success-card {
    padding: 2rem 1.5rem;
  }
}