:root {
  /* Триадная цветовая схема */
  --primary-color: #3a6ea5; /* Основной синий */
  --primary-dark: #2a4f75;
  --primary-light: #5a8ec5;
  
  --secondary-color: #a53a6e; /* Розовый/пурпурный (триада) */
  --secondary-dark: #75294f;
  --secondary-light: #c55a8e;
  
  --tertiary-color: #6ea53a; /* Зеленый (триада) */
  --tertiary-dark: #4f752a;
  --tertiary-light: #8ec55a;
  
  --white: #ffffff;
  --black: #222222;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* Размеры шрифтов */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;
  
  /* Тени */
  --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.15);
  --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.2);
  
  /* Закругления */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 2rem;
  
  /* Переходы */
  --transition-fast: all 0.2s ease-in-out;
  --transition-normal: all 0.3s ease-in-out;
  --transition-slow: all 0.5s ease-in-out;
  
  /* Анимации */
  --bounce-timing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== Общие стили ===== */
body {
  font-family: 'Lato', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  padding-top: 76px; /* Учитываем фиксированную навигацию */
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}

.section-title {
  font-size: var(--font-size-3xl);
  margin-bottom: 1rem;
  position: relative;
  text-align: center;
}

.separator {
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto 2rem;
  position: relative;
  border-radius: var(--border-radius-sm);
}

.separator:before {
  content: "";
  position: absolute;
  width: 40px;
  height: 4px;
  background: var(--secondary-color);
  left: -15px;
  border-radius: var(--border-radius-sm);
}

.separator:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 4px;
  background: var(--tertiary-color);
  right: -15px;
  border-radius: var(--border-radius-sm);
}

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

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

.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
  padding: 0.25rem 0;
  position: relative;
  overflow: hidden;
}

.read-more:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--bounce-timing);
}

.read-more:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

.read-more:hover {
  color: var(--primary-dark);
}

/* ===== Кнопки ===== */
.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  transition: all 0.3s var(--bounce-timing);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

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

.btn:active {
  transform: translateY(1px);
}

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

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

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

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

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

.btn-tertiary:hover {
  background-color: var(--tertiary-dark);
  border-color: var(--tertiary-dark);
}

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

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

.animated-btn {
  position: relative;
  z-index: 1;
}

.animated-btn:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--bounce-timing);
}

.animated-btn:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== Навигация ===== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white) !important;
}

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

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

.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .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, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero секция ===== */
#hero {
  position: relative;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

#hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(58, 110, 165, 0.8) 0%, rgba(165, 58, 110, 0.8) 100%);
  z-index: 1;
}

#hero .container {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#hero p {
  font-size: var(--font-size-lg);
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767.98px) {
  #hero h1 {
    font-size: 2.5rem;
  }
  
  #hero p {
    font-size: 1rem;
  }
}

/* ===== Mission секция ===== */
#mission {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

#mission img {
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

#mission img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.mission-content {
  border-radius: var(--border-radius-md);
  background-color: var(--white);
  box-shadow: var(--shadow-md);
}

.mission-content h3 {
  color: var(--primary-color);
  font-weight: 600;
}

.progress {
  height: 10px;
  background-color: var(--gray-200);
  border-radius: var(--border-radius-xl);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary-color);
  border-radius: var(--border-radius-xl);
  animation: progress 1.5s var(--bounce-timing);
  transform-origin: left;
}

@keyframes progress {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

.progress-item span {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* ===== Workshops секция ===== */
#workshops {
  background-color: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.card {
  border: none;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

.card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.card-text {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-footer {
  padding: 1.5rem;
  background-color: transparent;
  border-top: none;
}

.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: var(--font-size-xs);
  border-radius: var(--border-radius-md);
}

/* ===== Pricing секция ===== */
#pricing {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.pricing-card {
  transition: var(--transition-normal);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.pricing-card .card-header {
  border-radius: 0;
  border-bottom: none;
}

.price-container {
  margin: 1.5rem 0;
}

.price {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary-color);
}

.period {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.pricing-card li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.pricing-card li:last-child {
  border-bottom: none;
}

.pricing-card .btn {
  margin-top: 1.5rem;
}

.pricing-card.border-primary {
  border-width: 2px;
  transform: scale(1.05);
}

.pricing-card.border-primary:hover {
  transform: scale(1.07) translateY(-10px);
}

/* ===== Resources секция ===== */
#resources {
  background-color: var(--gray-100);
  position: relative;
  overflow: hidden;
}

#resources .card {
  padding: 1.5rem;
  height: 100%;
}

#resources .card-title {
  font-size: var(--font-size-lg);
  margin-bottom: 1rem;
}

#resources .btn {
  margin-top: 1rem;
}

/* ===== Events секция ===== */
#events {
  background-color: var(--white);
  background-image: url('image/events-bg.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

#events:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  z-index: 1;
}

#events .container {
  position: relative;
  z-index: 2;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline:before {
  content: '';
  position: absolute;
  height: 100%;
  width: 4px;
  background: var(--primary-color);
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--border-radius-xl);
}

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

.timeline-content {
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  position: relative;
  width: 100%;
  transition: var(--transition-normal);
}

.timeline-content:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.timeline-item.left .timeline-content:before {
  content: '';
  position: absolute;
  right: -15px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid var(--white);
}

.timeline-item.right .timeline-content:before {
  content: '';
  position: absolute;
  left: -15px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 15px solid var(--white);
}

.date {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  margin-bottom: 1rem;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

@media (max-width: 767.98px) {
  .timeline:before {
    left: 30px;
  }
  
  .timeline-item.left .timeline-content:before,
  .timeline-item.right .timeline-content:before {
    display: none;
  }
}

/* ===== Webinars секция ===== */
#webinars {
  background-color: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.webinar-card {
  overflow: hidden;
  transition: var(--transition-normal);
}

.webinar-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.webinar-card .card-image {
  position: relative;
}

.webinar-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--tertiary-color);
  color: var(--white);
  text-align: center;
  padding: 0.5rem;
  border-radius: var(--border-radius-md);
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.webinar-date .day {
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: 1;
}

.webinar-date .month {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
}

.webinar-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.webinar-details .detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== Contact секция ===== */
#contact {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-info {
  background-color: var(--gray-100);
  border-radius: var(--border-radius-md);
  height: 100%;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-list {
  margin-top: 2rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-form {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--gray-200);
}

.contact-form h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-md);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(58, 110, 165, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--gray-700);
}

/* ===== Footer ===== */
.footer {
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('image/footer-texture.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer h4, .footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer h4:after, .footer h5:after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-light);
  border-radius: var(--border-radius-sm);
}

.footer p {
  color: var(--gray-400);
}

.footer ul {
  margin: 0;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer ul li a {
  color: var(--gray-400);
  transition: var(--transition-fast);
}

.footer ul li a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.social-links li a {
  display: inline-flex;
  align-items: center;
  transition: var(--transition-fast);
}

.social-links li a:hover {
  color: var(--white);
  transform: translateX(5px);
}

/* ===== Cookie Consent ===== */
.cookie-consent {
  box-shadow: var(--shadow-xl);
}

.cookie-consent p {
  margin-bottom: 1rem;
}

.cookie-consent button {
  background-color: var(--white);
  color: var(--gray-900);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  transition: var(--transition-fast);
}

.cookie-consent button:hover {
  background-color: var(--gray-200);
}

/* ===== 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-xl);
}

.success-icon {
  font-size: 5rem;
  color: var(--tertiary-color);
  margin-bottom: 1.5rem;
}

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

.page-content h1 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.page-content p {
  margin-bottom: 1.5rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fadeInUp {
  animation-name: fadeInUp;
}

.fadeIn {
  animation-name: fadeIn;
}

/* Микроинтеракции */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  transform: translateY(-2px);
}

/* ===== Responsive styles ===== */
@media (max-width: 991.98px) {
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .navbar-collapse {
    background-color: rgba(33, 37, 41, 0.95);
    padding: 1rem;
    border-radius: var(--border-radius-md);
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .separator {
    width: 60px;
  }
  
  .separator:before,
  .separator:after {
    width: 30px;
  }
  
  .timeline-item.left,
  .timeline-item.right {
    margin-left: 40px;
  }
  
  .webinar-date {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
  }
  
  .section-title {
    font-size: var(--font-size-lg);
  }
  
  .separator {
    width: 50px;
    margin-bottom: 1.5rem;
  }
  
  .separator:before,
  .separator:after {
    width: 25px;
  }
  
  .contact-form,
  .contact-info {
    padding: 1.5rem !important;
  }
}