:root {
  /* Футуристическая цветовая палитра */
  --primary-color: #6366f1;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-color: #06b6d4;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  
  /* Биоморфные градиенты */
  --bio-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bio-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --bio-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --bio-gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  
  /* Цвета поверхностей */
  --surface-dark: rgba(15, 23, 42, 0.95);
  --surface-light: rgba(255, 255, 255, 0.95);
  --glass-surface: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  
  /* Текстовые цвета */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #ffffff;
  --text-muted: #94a3b8;
  
  /* Шрифты */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  
  /* Размеры */
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(102, 102, 255, 0.3);
  
  /* Анимации */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --animation-float: float 6s ease-in-out infinite;
}

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow-x: hidden;
}

/* Анимации */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

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

/* Типография */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.section-title {
  background: var(--bio-gradient-1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Кнопки - ГЛОБАЛЬНЫЕ СТИЛИ */
.btn {
  padding: 12px 32px;
  font-family: var(--font-heading);
  font-weight: 500;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
}

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

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

.btn-primary:hover {
  background: var(--bio-gradient-2);
  color: white;
}

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

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

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

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

.btn-lg {
  padding: 16px 40px;
  font-size: 1.125rem;
}

button, input[type='submit'] {
  font-family: var(--font-heading);
  font-weight: 500;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
}

/* Header */
#header {
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition-base);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  background: var(--bio-gradient-1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: var(--border-radius);
  transition: var(--transition-base);
}

.navbar-nav .nav-link:hover {
  background: var(--glass-surface);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
  position: relative;
  width: 40px;
  height: 40px;
}

.navbar-toggler span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 5px auto;
  transition: var(--transition-base);
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-gradient);
  opacity: 0.8;
  z-index: 1;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-light) !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: 3rem;
  color: var(--text-light) !important;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: var(--border-radius);
  min-width: 200px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  animation: float 2s ease-in-out infinite;
}

/* Innovation Section */
.innovation-card {
  background: var(--surface-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

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

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

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

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

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

.card-content h4 {
  background: var(--bio-gradient-1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

/* Statistics Section */
.bg-gradient {
  background: var(--bio-gradient-3);
  position: relative;
}

.stat-widget {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  font-weight: 500;
}

/* Process Section */
.process-accordion .accordion-item {
  background: var(--surface-light);
  border: 1px solid rgba(102, 102, 255, 0.1);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1.5rem 2rem;
  border: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.accordion-button:not(.collapsed) {
  background: var(--glass-surface);
  color: var(--primary-color);
}

.process-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bio-gradient-1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.accordion-body {
  padding: 2rem;
}

.accordion-body img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin: 0 auto;
  display: block;
}

/* Partners Section */
.partner-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

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

.partner-card img {
  width: 200px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 1rem;
  border-radius: var(--border-radius);
}

.partner-card h5 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Resources Section */
.resource-card {
  background: var(--surface-light);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  border: 1px solid rgba(102, 102, 255, 0.1);
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.resource-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.resource-card h4 {
  background: var(--bio-gradient-2);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

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

/* Customer Stories Section */
.story-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

.story-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.story-content h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.story-author {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(102, 102, 255, 0.1);
  color: var(--text-secondary);
}

/* Testimonials Section */
.testimonials-gallery {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--surface-light);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  border: 1px solid rgba(102, 102, 255, 0.1);
}

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

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid transparent;
  background: var(--bio-gradient-1);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
}

.stars {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  margin-top: auto;
}

.testimonial-author strong {
  color: var(--primary-color);
}

/* Contact Section */
.contact-info {
  background: var(--surface-light);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  height: fit-content;
}

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

.contact-icon {
  font-size: 1.5rem;
  width: 40px;
  flex-shrink: 0;
}

.contact-hours {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(102, 102, 255, 0.1);
}

.contact-form {
  background: var(--surface-light);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control, .form-select {
  border: 2px solid rgba(102, 102, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 1rem;
  transition: var(--transition-base);
  background: white;
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 102, 255, 0.1);
}

/* Footer */
#footer {
  background: var(--surface-dark);
  color: var(--text-light);
  position: relative;
}



.footer-brand h4 {
  color: white;
  background: var(--bio-gradient-3);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links h5 {
  color: white;
  margin-bottom: 1.5rem;
}

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

.footer-links ul li a,
.footer-social ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-base);
  font-weight: 400;
}

.footer-links ul li a:hover,
.footer-social ul li a:hover {
  color: white;
  text-decoration: underline;
}

.footer-social h5 {
  color: white;
  margin-bottom: 1.5rem;
}

#footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

#footer .row:last-child p {
  color: rgba(255, 255, 255, 0.6);
}

/* Служебные классы */
.bg-light {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

.text-white {
  color: white !important;
}

/* Страница success.html */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-gradient);
  text-align: center;
  padding: 2rem;
}

.success-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 100%;
}

/* Страницы privacy и terms */
.privacy-page,
.terms-page {
  padding-top: 100px;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

/* Адаптивность */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .testimonial-card,
  .resource-card,
  .innovation-card,
  .partner-card {
    margin-bottom: 2rem;
  }
  
  .story-card {
    margin-bottom: 2rem;
  }
  
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .accordion-button {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
  
  .process-number {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 2rem;
  }
  
  .story-content,
  .resource-card,
  .testimonial-card {
    padding: 1.5rem;
  }
}

/* Прокрутка-зависимые эффекты */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Дополнительные биоморфные элементы */
.bio-shape {
  position: absolute;
  border-radius: 50% 40% 60% 30%;
  background: var(--bio-gradient-4);
  opacity: 0.1;
  animation: var(--animation-float);
}

.bio-shape:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 10%;
  left: -5%;
}

.bio-shape:nth-child(2) {
  width: 150px;
  height: 150px;
  bottom: 20%;
  right: -3%;
  animation-delay: -2s;
}

/* Гласморфизм эффекты */
.glass-card {
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
}

/* Загрузка и оптимизация */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Читать далее ссылки */
.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-base);
}

.read-more:hover {
  color: var(--secondary-color);
  text-decoration: underline;
  transform: translateX(5px);
}

.read-more::after {
  content: '→';
  transition: var(--transition-base);
}

.read-more:hover::after {
  transform: translateX(3px);
}