:root {
  /* Триадная цветовая схема */
  --primary-color: #2a6bc2;
  --primary-dark: #1c4f98;
  --primary-light: #4a89e8;
  
  --secondary-color: #c22a6b;
  --secondary-dark: #98204f;
  --secondary-light: #e84a89;
  
  --tertiary-color: #6bc22a;
  --tertiary-dark: #4f9820;
  --tertiary-light: #89e84a;
  
  /* Нейтральные цвета */
  --dark: #222222;
  --medium-dark: #555555;
  --medium: #888888;
  --medium-light: #cccccc;
  --light: #f5f5f7;
  
  /* Цвета фона */
  --background: #f0f2f5;
  --card-bg: #ffffff;
  
  /* Тени для нейроморфизма */
  --neuro-shadow-light: 8px 8px 16px rgba(174, 174, 192, 0.4);
  --neuro-shadow-dark: -8px -8px 16px rgba(255, 255, 255, 0.7);
  
  /* Радиусы */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  
  /* Переходы */
  --transition-slow: 0.5s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-fast: 0.2s ease-in-out;
}

/* Общие стили */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', sans-serif;
  background-color: var(--background);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: var(--medium-dark);
}

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

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

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

.section-header {
  margin-bottom: 3rem;
}

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

.section-header h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--medium-dark);
  max-width: 700px;
  margin: 0 auto;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-medium);
  box-shadow: var(--neuro-shadow-light);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-medium);
  z-index: -1;
}

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

.btn:active {
  transform: translateY(2px);
  box-shadow: var(--neuro-shadow-dark);
}

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

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

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

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

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

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

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

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

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Header/Navbar */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-medium);
  z-index: 1000;
}

.header.scrolled {
  background-color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  transition: color var(--transition-fast);
  position: relative;
}

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

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

.navbar-nav .nav-link:hover:after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  background: none;
  padding: 0.5rem;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
  margin-top: -76px; /* Compensate for fixed header */
  padding-top: 76px;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(42, 107, 194, 0.8) 0%, rgba(194, 42, 107, 0.8) 100%);
  z-index: 1;
}

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

.hero-content {
  max-width: 800px;
  text-align: left;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.hero-content .btn-group {
  animation: fadeInUp 1s ease-out 0.4s;
  animation-fill-mode: both;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background-color: var(--background);
  position: relative;
}

.services-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(120deg, var(--light) 0%, var(--background) 100%);
  transform: skewY(-3deg);
  transform-origin: top left;
  z-index: -1;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--neuro-shadow-light), var(--neuro-shadow-dark);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

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

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

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

/* Process Section */
.process-section {
  padding: 5rem 0;
  background-color: var(--light);
  position: relative;
}

.process-section:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(120deg, var(--background) 0%, var(--light) 100%);
  transform: skewY(3deg);
  transform-origin: bottom right;
  z-index: -1;
}

.process-steps {
  margin-top: 3rem;
}

.process-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--neuro-shadow-light), var(--neuro-shadow-dark);
  height: 100%;
  transition: transform var(--transition-medium);
  position: relative;
  z-index: 1;
}

.process-card:hover {
  transform: translateY(-5px);
}

.process-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

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

/* Success Stories Section */
.success-stories-section {
  padding: 5rem 0;
  background-color: var(--background);
}

.case-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--neuro-shadow-light), var(--neuro-shadow-dark);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.case-card h3 {
  color: var(--secondary-color);
}

/* Partners Section */
.partners-section {
  padding: 5rem 0;
  background-color: var(--light);
}

.partners-grid {
  margin-top: 3rem;
}

.partner-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  box-shadow: var(--neuro-shadow-light), var(--neuro-shadow-dark);
  transition: transform var(--transition-medium);
}

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

.partner-card img {
  max-height: 80%;
  max-width: 80%;
  object-fit: contain;
}

/* Resources Section */
.resources-section {
  padding: 5rem 0;
  background-color: var(--background);
  position: relative;
}

.resource-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--neuro-shadow-light), var(--neuro-shadow-dark);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resource-card .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.resource-card .btn {
  margin-top: auto;
}

/* Workshops Section */
.workshops-section {
  padding: 5rem 0;
  background-color: var(--light);
  position: relative;
}

.workshop-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--neuro-shadow-light), var(--neuro-shadow-dark);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.workshop-date {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  font-weight: 500;
}

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

.workshop-card h3 {
  color: var(--secondary-color);
}

/* Community Section */
.community-section {
  padding: 5rem 0;
  background-color: var(--background);
  position: relative;
}

.benefit-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--neuro-shadow-light), var(--neuro-shadow-dark);
  height: 100%;
  transition: transform var(--transition-medium);
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: var(--light);
  position: relative;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.contact-details li {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.contact-details i {
  margin-right: 1rem;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-map {
  margin-top: 2rem;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--neuro-shadow-light);
}

.contact-form-container {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--neuro-shadow-light), var(--neuro-shadow-dark);
}

.contact-form-container h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
}

.form-control {
  background-color: var(--background);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.8rem 1rem;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-medium);
}

.form-control:focus {
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
  outline: none;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--medium-dark);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: white;
  padding-top: 4rem;
}

.footer-about img {
  margin-bottom: 1.5rem;
}

.footer-about p {
  color: var(--medium-light);
}

.footer-links h4, .footer-social h4, .footer-newsletter h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links h4:after, .footer-social h4:after, .footer-newsletter h4:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  bottom: -10px;
  left: 0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

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

.footer-links ul li a {
  color: var(--medium-light);
  transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
  color: white;
  padding-left: 5px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: var(--medium-light);
  margin-right: 1rem;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: white;
}

.footer-newsletter p {
  color: var(--medium-light);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex-grow: 1;
  border: none;
  padding: 0.8rem;
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.newsletter-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: var(--primary-dark);
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--medium-light);
  margin-bottom: 0;
}

.footer-bottom a {
  color: var(--primary-light);
}

.footer-bottom a:hover {
  color: white;
}

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

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

.cookie-content p {
  margin: 0;
  color: white;
}

.cookie-content a {
  color: var(--primary-light);
  text-decoration: underline;
}

.btn-accept {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

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

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--background);
  padding: 2rem 0;
}

.success-container {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--neuro-shadow-light), var(--neuro-shadow-dark);
  max-width: 700px;
}

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

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

.success-message {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About, Privacy, Terms Pages */
.page-content {
  padding-top: 120px; /* Space for the fixed header */
  padding-bottom: 5rem;
}

.page-header {
  margin-bottom: 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  color: var(--primary-color);
}

.content-section {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--neuro-shadow-light);
}

.content-section h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-section 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;
  }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .btn-group {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: 500px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .contact-form-container {
    margin-top: 2rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 575px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .footer-newsletter form {
    flex-direction: column;
  }
  
  .footer-newsletter input,
  .footer-newsletter button {
    width: 100%;
    border-radius: var(--border-radius-sm);
  }
  
  .footer-newsletter button {
    margin-top: 0.5rem;
  }
}