:root {
  /* Нейтральная цветовая схема с элементами ретро */
  --primary-color: #4a6f8a;
  --primary-dark: #345367;
  --primary-light: #7fa3be;
  --secondary-color: #d9aa63;
  --secondary-dark: #b6894d;
  --secondary-light: #e8c690;
  --accent-color: #c55a3c;
  --accent-dark: #9c4830;
  --accent-light: #e27d61;
  
  /* Нейтральные цвета */
  --neutral-100: #ffffff;
  --neutral-200: #f8f9fa;
  --neutral-300: #e9ecef;
  --neutral-400: #dee2e6;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;
  
  /* Функциональные цвета */
  --text-color: #333333;
  --text-light: #6c757d;
  --text-dark: #212529;
  --text-white: #ffffff;
  --link-color: var(--primary-color);
  --link-hover: var(--primary-dark);
  
  /* Размеры и отступы */
  --section-padding: 5rem 0;
  --card-border-radius: 12px;
  --button-border-radius: 6px;
  --container-padding: 2rem;
  
  /* Тени */
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --button-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

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

section {
  padding: var(--section-padding);
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin-bottom: 2rem;
}

/* Кнопки - глобальные стили */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--button-border-radius);
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--button-shadow);
  border: none;
}

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

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

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

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

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

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

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

/* Навигация */
header {
  transition: all 0.4s ease;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

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

.navbar-light .navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-scrolled {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--neutral-100) !important;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  margin-top: -76px; /* Компенсация фиксированного хедера */
  padding-top: 76px;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

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

#hero .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about-img-container {
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.about-img-container:hover {
  transform: translateY(-10px);
}

/* Services Section */
.service-card {
  border: none;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.service-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

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

/* Team Section */
.team-card {
  border: none;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.team-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.team-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.team-card .text-muted {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Projects Section */
.project-card {
  border: none;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.project-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

/* Resources Section */
.resource-card {
  border: none;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.resource-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.resource-links {
  list-style: none;
  padding-left: 0;
}

.resource-links li {
  margin-bottom: 0.75rem;
}

.resource-links a {
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s ease;
  display: inline-block;
}

.resource-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Pricing Section */
.pricing-card {
  border: none;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.pricing-card.popular {
  transform: translateY(-15px);
  border: 2px solid var(--primary-color);
  position: relative;
}

.pricing-card.popular:hover {
  transform: translateY(-20px);
}

.pricing-card .card-header {
  background-color: var(--neutral-200);
  border-bottom: none;
}

.pricing-card .price {
  margin: 1.5rem 0;
}

.pricing-card .currency {
  font-size: 1.5rem;
  position: relative;
  top: -20px;
}

.pricing-card .amount {
  font-size: 3rem;
  font-weight: 700;
}

.pricing-card .period {
  font-size: 1rem;
  color: var(--text-light);
}

.pricing-card ul {
  margin: 2rem 0;
}

.pricing-card ul li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 1.5rem;
}

.pricing-card .card-footer {
  background-color: transparent;
  border-top: none;
}

/* Webinars Section */
.webinar-card {
  border: none;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.webinar-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.webinar-date {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
}

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

.webinar-speakers {
  font-size: 0.9rem;
  margin-top: auto;
}

/* Insights Section */
.insight-card {
  border: none;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.insight-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.insight-date {
  color: var(--text-light);
  font-size: 0.9rem;
}

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

.insight-card .btn-link {
  color: var(--primary-color);
  padding: 0;
  text-transform: none;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.insight-card .btn-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.insight-card .btn-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.insight-card .btn-link:hover i {
  transform: translateX(5px);
}

/* Community Section */
.community-image {
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 400px;
}

.community-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Contact Section */
.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.contact-map {
  height: 300px;
  overflow: hidden;
}

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

.contact-form-container {
  background-color: var(--neutral-200);
  box-shadow: var(--card-shadow);
}

.contact-form .form-control {
  border-radius: var(--button-border-radius);
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-400);
  margin-bottom: 1rem;
}

.contact-form .form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

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

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

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

footer p, footer li {
  color: var(--neutral-400);
}

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

footer a {
  color: var(--neutral-400);
  transition: color 0.3s ease;
}

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

footer .social-links a {
  margin-right: 1.5rem;
  font-weight: 500;
  color: var(--neutral-300);
  text-decoration: none;
}

footer .social-links a:hover {
  color: var(--text-white);
}

footer hr {
  border-color: var(--neutral-700);
  margin: 2rem 0;
}

/* Модальные окна */
.modal-content {
  border-radius: var(--card-border-radius);
  border: none;
  overflow: hidden;
}

.modal-header {
  border-bottom: none;
  padding: 1.5rem 1.5rem 0.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: none;
  padding: 0.5rem 1.5rem 1.5rem;
}

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

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

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

.success-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Cookie Consent */
#cookieConsent {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  text-align: center;
}

#cookieConsent p {
  color: white;
  margin-bottom: 1rem;
}

#acceptCookies {
  background-color: white;
  color: var(--text-dark);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--button-border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

#acceptCookies:hover {
  background-color: var(--neutral-200);
}

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

.privacy-page h1, .terms-page h1 {
  margin-bottom: 2rem;
}

.privacy-page h2, .terms-page h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

/* Анимации при прокрутке */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
}

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Биоморфные элементы */
.bio-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(74, 111, 138, 0.1);
  z-index: -1;
}

.bio-shape-1 {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -200px;
}

.bio-shape-2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -150px;
}

.bio-shape-3 {
  width: 200px;
  height: 200px;
  top: 30%;
  right: 5%;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 991.98px) {
  #hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .pricing-card.popular {
    transform: translateY(0);
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-10px);
  }
}

@media (max-width: 767.98px) {
  #hero h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .service-card .card-image,
  .project-card .card-image,
  .webinar-card .card-image {
    height: 250px;
  }
  
  .team-card .card-image {
    height: 250px;
  }
  
  .community-image {
    height: 300px;
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  #hero h1 {
    font-size: 1.8rem;
  }
  
  #hero .lead {
    font-size: 1rem;
  }
  
  .service-card .card-image,
  .project-card .card-image,
  .webinar-card .card-image,
  .resource-card .card-image,
  .insight-card .card-image {
    height: 200px;
  }
}