:root {
  /* Основные цвета (градиентная схема) */
  --primary-gradient: linear-gradient(45deg, #3a1c71, #d76d77, #ffaf7b);
  --secondary-gradient: linear-gradient(135deg, #8e2de2, #4a00e0);
  --accent-gradient: linear-gradient(to right, #f2709c, #ff9472);
  --dark-gradient: linear-gradient(to right, #141e30, #243b55);
  
  /* Цвета для текста и фона */
  --text-dark: #333333;
  --text-darker: #222222;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  
  /* Акцентные цвета */
  --primary: #3a1c71;
  --primary-dark: #2a1351;
  --secondary: #d76d77;
  --secondary-dark: #b5525c;
  --accent: #ffaf7b;
  --accent-dark: #e89a68;
  
  /* Структурные цвета */
  --bg-light: #f8f9fa;
  --bg-dark: #141e30;
  --border-color: rgba(0, 0, 0, 0.1);
  
  /* Тени */
  --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.15);
  
  /* Закругления */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Переходы */
  --transition-fast: all 0.3s ease;
  --transition-medium: all 0.5s ease;
  --transition-slow: all 0.8s ease;
}

/* Базовые стили */
body {
  font-family: 'Merriweather', serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-darker);
}

p {
  margin-bottom: 1rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

/* Отступ для страниц с фиксированным хедером */
main {
  padding-top: 80px;
}

.privacy-page,
.terms-page {
  padding-top: 100px;
}

/* Секция Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  color: var(--text-light);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

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

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFFFF;
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* Частицы для анимации */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
}

/* Кнопки */
.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

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

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

.btn-gradient:hover {
  background: linear-gradient(45deg, #2a1351, #b5525c, #e89a68);
  color: white;
}

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

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

/* Заголовки секций */
.section-title {
  position: relative;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 2.5rem;
  text-align: center;
}

.title-underline {
  width: 80px;
  height: 4px;
  margin: 0 auto 2rem;
  background: var(--primary-gradient);
  border-radius: 2px;
}

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

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-light);
}

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

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

.navbar.scrolled {
  background: var(--primary-gradient) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
}

/* Секция About */
.about {
  position: relative;
  padding: 6rem 0;
}

.about .image-container {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about .image-container img {
  transition: var(--transition-medium);
}

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

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

/* Аккордеон */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background-color: var(--bg-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 1rem 1.5rem;
  color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: rgba(58, 28, 113, 0.05);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--border-color);
}

.accordion-button::after {
  background-size: 16px;
  width: 16px;
  height: 16px;
}

.accordion-body {
  padding: 1.5rem;
  background-color: white;
}

/* Секция статистики */
.statistics {
  padding: 4rem 0;
  color: white;
}

.stat-card {
  padding: 2rem;
  transition: var(--transition-fast);
  border-radius: var(--border-radius);
}

.stat-card:hover {
  transform: translateY(-10px);
}

.stat-card h3 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: white;
}

.stat-card p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Секция Webinars */
.webinars {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

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

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

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

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

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

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

.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Секция Resources */
.resources {
  padding: 6rem 0;
}

.resource-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition-fast);
  height: 100%;
}

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

.resource-card h3 {
  color: var(--primary);
}

/* Секция Testimonials */
.testimonials {
  padding: 6rem 0;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.testimonials .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8));
}

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

.testimonial-card img {
  margin-top: -50px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: var(--box-shadow);
}

.rating {
  color: #ffc107;
  font-size: 1.2rem;
}

/* Секция Careers */
.careers {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.careers .image-container {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.careers .image-container img {
  transition: var(--transition-medium);
}

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

/* Секция Contact */
.contact {
  padding: 6rem 0;
  position: relative;
  color: white;
}

.contact-info {
  background-color: white;
  color: var(--text-dark);
  border-radius: var(--border-radius);
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item .icon {
  color: var(--primary);
  font-size: 1.5rem;
}

.contact-form {
  background-color: white;
  color: var(--text-dark);
  border-radius: var(--border-radius);
}

.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
}

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

.map-container {
  height: 250px;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Футер */
.footer {
  padding: 5rem 0 3rem;
  color: white;
  background: var(--dark-gradient);
}

.footer h3 {
  color: white;
  position: relative;
  display: inline-block;
}

.footer h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary);
}

.footer ul {
  padding-left: 0;
}

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

.social-links a {
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: white !important;
  text-decoration: underline;
}

.input-group .btn {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Страница успешной отправки */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(58, 28, 113, 0.05), rgba(215, 109, 119, 0.05));
}

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

.success-card h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.success-card .icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
}

/* Адаптивность */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 80vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stat-card {
    margin-bottom: 2rem;
  }
  
  .card-image {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
  }
  
  .about,
  .webinars,
  .resources,
  .testimonials,
  .careers,
  .contact {
    padding: 4rem 0;
  }
}

/* Анимации частиц */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.pulse-animation {
  animation: pulse 3s ease-in-out infinite;
}

/* Дополнительные стили */
.overlay-dark {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.4));
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.bg-gradient {
  background: var(--primary-gradient);
}

/* Cookie Consent */
#cookieConsent {
  border-top: 3px solid var(--primary);
}

#acceptCookies {
  transition: var(--transition-fast);
}

#acceptCookies:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Стили для карточек команды */
.team-member {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 5px solid white;
  box-shadow: var(--box-shadow);
}

/* Стили для "Читать далее" ссылок */
.read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
  position: relative;
  padding-right: 20px;
}

.read-more:after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition-fast);
}

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

.read-more:hover:after {
  right: -5px;
}

/* Эффекты для карточек */
.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  height: 5px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-medium);
}

.card:hover::before {
  transform: scaleX(1);
}

/* Микроинтеракции для форм */
input,
textarea,
select {
  transition: var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  transform: translateY(-3px);
}

button, 
input[type="submit"] {
  position: relative;
  overflow: hidden;
}

button:after,
input[type="submit"]:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

button:hover:after,
input[type="submit"]:hover:after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Стили для страниц about, privacy, terms */
.page-content {
  padding: 120px 0 60px;
}

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

.page-content h2 {
  color: var(--secondary);
  margin: 2rem 0 1rem;
}

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

/* Дополнительные стили для успешной отправки формы */
.success-icon {
  color: #28a745;
  font-size: 5rem;
  margin-bottom: 1rem;
}

.success-message {
  max-width: 500px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.back-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  color: white;
}