:root {
  /* Основные цвета */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --secondary-light: #34d399;
  --accent-color: #8b5cf6;
  --accent-dark: #7c3aed;
  --accent-light: #a78bfa;
  
  /* Нейтральные цвета */
  --dark: #1e293b;
  --dark-soft: #334155;
  --light: #f8fafc;
  --light-soft: #e2e8f0;
  --gray: #64748b;
  --gray-light: #94a3b8;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  --gradient-dark: linear-gradient(135deg, var(--dark), var(--dark-soft));
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  
  /* Тени */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Скругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

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

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

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Секция заголовка */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  font-weight: 800;
  color: var(--dark);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0.5rem auto 0;
  border-radius: var(--radius-full);
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: -2rem auto 3rem;
  color: var(--gray);
  font-size: 1.125rem;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-family: 'Manrope', sans-serif;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
}

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

.btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
  color: white;
}

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

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

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

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

.btn-full {
  width: 100%;
}

/* Шапка */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.98);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 50px;
  width: auto;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.desktop-nav a {
  color: var(--dark);
  font-weight: 500;
  position: relative;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.desktop-nav a:hover {
  color: var(--primary-color);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: white;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
  z-index: 999;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav li {
  margin-bottom: 1rem;
}

.mobile-nav a {
  color: var(--dark);
  font-weight: 500;
  font-size: 1.25rem;
  display: block;
  padding: 0.5rem 0;
}

.mobile-nav a:hover {
  color: var(--primary-color);
}

/* Hero секция */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 5rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

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

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1s ease-out 0.4s forwards;
  opacity: 0;
}

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

/* About секция */
.about {
  padding: 6rem 0;
  background-color: var(--light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-text {
  animation: fadeIn 1s ease-out forwards;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.about-image:hover {
  transform: scale(1.02);
}

.image-container {
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

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

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

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

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--gray);
  margin-bottom: 0;
  font-weight: 500;
}

/* Innovation секция */
.innovation {
  padding: 6rem 0;
  background-color: var(--light-soft);
  position: relative;
  overflow: hidden;
}

.innovation::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: var(--gradient-accent);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(100px);
}

.innovation-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.innovation-text {
  animation: fadeIn 1s ease-out forwards;
}

.innovation-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.innovation-image:hover {
  transform: scale(1.02);
}

/* Research секция */
.research {
  padding: 6rem 0;
  background-color: var(--light);
  position: relative;
}

.research::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(80px);
}

.research-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.research-text {
  order: 2;
  animation: fadeIn 1s ease-out forwards;
}

.research-image {
  order: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.research-image:hover {
  transform: scale(1.02);
}

/* External Resources секция */
.external-resources {
  padding: 6rem 0;
  background-color: var(--light-soft);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.resource-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.resource-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  color: var(--gray);
  font-size: 0.95rem;
}

.resource-link {
  align-self: flex-start;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

.resource-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.resource-link:hover {
  color: var(--primary-dark);
}

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

/* Case Studies секция */
.case-studies {
  padding: 6rem 0;
  background-color: var(--light);
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

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

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

.card-content p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  color: var(--gray);
}

/* Blog секция */
.blog {
  padding: 6rem 0;
  background-color: var(--light-soft);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Contact секция */
.contact {
  padding: 6rem 0;
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(80px);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  padding: 1.5rem;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

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

.contact-detail h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-detail p {
  margin-bottom: 0;
  color: var(--dark-soft);
}

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

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

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

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-soft);
  border-radius: var(--radius-md);
  font-family: 'Rubik', sans-serif;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer секция */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: var(--gray-light);
  max-width: 300px;
}

.footer-links h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

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

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

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

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

.footer-social h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-social h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.footer-social ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-social a {
  color: var(--gray-light);
  transition: color var(--transition-fast);
  display: inline-block;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

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

/* Утилиты */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Success страница */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.1));
}

.success-content {
  max-width: 600px;
  background-color: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 1s ease-out forwards;
}

.success-content img {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
}

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

.success-content p {
  margin-bottom: 2rem;
  color: var(--gray);
}

/* Pages (Terms, Privacy) */
.page-content {
  padding: 100px 0 6rem;
}

.page-content h1 {
  margin-bottom: 2rem;
  text-align: center;
}

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

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

.page-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .about-content,
  .innovation-content,
  .research-content,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .research-text {
    order: 1;
  }

  .research-image {
    order: 2;
  }

  .resources-grid,
  .case-studies-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-nav.active {
    display: block;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .resources-grid,
  .case-studies-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 1.125rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }
}