:root {
  /* Основные цвета */
  --primary-color: #4158D0;
  --primary-dark: #3546B0;
  --primary-light: #7F8BF7;
  
  /* Акцентные цвета */
  --accent-color: #FF6F61;
  --accent-dark: #E55A4D;
  --accent-light: #FF8C82;
  
  /* Нейтральные цвета */
  --dark-color: #222222;
  --dark-medium: #444444;
  --medium-color: #666666;
  --light-medium: #999999;
  --light-color: #EEEEEE;
  --white-color: #FFFFFF;
  
  /* Фоновые цвета */
  --bg-primary: #f0f3ff;
  --bg-secondary: #fafbff;
  --bg-tertiary: #e6eaff;
  
  /* Неоморфизм - тени */
  --nm-shadow-light: #ffffff;
  --nm-shadow-dark: rgba(150, 170, 240, 0.5);
  --nm-bg: var(--bg-primary);
  --nm-distance: 10px;
  
  /* Другие переменные */
  --border-radius: 15px;
  --border-radius-sm: 8px;
  --transition-main: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --section-padding: 80px 0;
  --card-padding: 30px;
}

/* Базовые стили */
body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--medium-color);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  font-weight: 700;
}

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

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

/* Неоморфизм */
.neomorphic {
  background: var(--nm-bg);
  border-radius: var(--border-radius);
  box-shadow: 
    var(--nm-distance) var(--nm-distance) calc(var(--nm-distance) * 2) var(--nm-shadow-dark),
    calc(var(--nm-distance) * -1) calc(var(--nm-distance) * -1) calc(var(--nm-distance) * 2) var(--nm-shadow-light);
  transition: var(--transition-main);
  padding: var(--card-padding);
  margin-bottom: 2rem;
}

.neomorphic:hover {
  box-shadow: 
    calc(var(--nm-distance) / 1.5) calc(var(--nm-distance) / 1.5) calc(var(--nm-distance) * 1.5) var(--nm-shadow-dark),
    calc(var(--nm-distance) / -1.5) calc(var(--nm-distance) / -1.5) calc(var(--nm-distance) * 1.5) var(--nm-shadow-light);
  transform: translateY(-5px);
}

/* Кнопки */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: -2;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color) !important;
  box-shadow: 0 4px 15px rgba(65, 88, 208, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 7px 20px rgba(65, 88, 208, 0.4);
  transform: translateY(-3px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(65, 88, 208, 0.1);
}

.btn-outline:hover {
  color: var(--white-color);
  background-color: var(--primary-color);
  box-shadow: 0 7px 20px rgba(65, 88, 208, 0.3);
  transform: translateY(-3px);
}

/* Формы */
.form-control {
  background-color: var(--bg-secondary);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-main);
  box-shadow: inset 4px 4px 8px var(--nm-shadow-dark), 
              inset -4px -4px 8px var(--nm-shadow-light);
  color: var(--dark-medium);
}

.form-control:focus {
  box-shadow: inset 2px 2px 5px var(--nm-shadow-dark), 
              inset -2px -2px 5px var(--nm-shadow-light);
  background-color: var(--bg-secondary);
  border: none;
  outline: none;
}

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

.form-check-input {
  background-color: var(--bg-secondary);
  border: none;
  box-shadow: inset 2px 2px 5px var(--nm-shadow-dark), 
              inset -2px -2px 5px var(--nm-shadow-light);
}

.form-check-input:checked {
  background-color: var(--primary-color);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  background-color: var(--bg-primary);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition-main);
}

.header.scrolled {
  padding: 10px 0;
  background-color: rgba(240, 243, 255, 0.95);
  backdrop-filter: blur(10px);
}

.navbar-brand h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  color: var(--primary-color);
  font-weight: 700;
}

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

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

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

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

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

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

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(65, 88, 208, 0.8) 0%, rgba(200, 80, 192, 0.8) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--white-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--white-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

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

/* Insights Section */
.insights-section {
  background-color: var(--bg-secondary);
}

.insight-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.insight-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
}

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

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

.insight-card .card-content {
  flex: 1;
  text-align: center;
}

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

/* Innovation Section */
.innovation-section {
  background-color: var(--bg-primary);
}

.innovation-image-container {
  height: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

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

.innovation-content {
  height: 100%;
}

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

.innovation-showcase {
  text-align: center;
  padding: 40px;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 2rem;
}

.step {
  flex: 0 0 48%;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
}

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

.step-content {
  text-align: left;
}

.step-content h4 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

/* External Resources Section */
.external-resources-section {
  background-color: var(--bg-tertiary);
  padding-top: 100px;
  padding-bottom: 100px;
}

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

.resource-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
}

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

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

.resource-card .card-content {
  flex: 1;
}

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

.resource-card .btn {
  margin-top: 1rem;
}

/* News Section */
.news-section {
  background-color: var(--bg-secondary);
}

.news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
}

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

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

.news-card .card-content {
  flex: 1;
  text-align: center;
}

.news-date {
  display: block;
  font-size: 0.9rem;
  color: var(--light-medium);
  margin-bottom: 0.5rem;
}

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

.news-card .btn {
  margin-top: 1rem;
}

/* Careers Section */
.careers-section {
  background-color: var(--bg-primary);
}

.careers-content {
  height: 100%;
}

.benefits-list {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

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

.job-positions {
  margin-top: 2rem;
}

.job-card {
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-main);
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.job-card h4 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.careers-image-container {
  height: 360px;
  overflow: hidden;
  border-radius: var(--border-radius);
}

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

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

.team-quote blockquote {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--dark-medium);
}

.team-quote cite {
  font-style: normal;
  font-weight: 500;
  color: var(--primary-color);
}

/* Contact Section */
.contact-section {
  background-color: var(--bg-tertiary);
}

.contact-info {
  height: 100%;
}

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

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

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

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

.contact-form-container {
  height: 100%;
}

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

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 80px 0 30px;
}

.footer h2, .footer h3 {
  color: var(--white-color);
}

.footer-brand h2 {
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.footer-brand p {
  margin-bottom: 2rem;
}

.footer-social {
  margin-bottom: 2rem;
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.social-links a {
  color: var(--light-color);
  transition: var(--transition-main);
}

.social-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-nav {
  margin-bottom: 2rem;
}

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

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

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

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

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

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 0.75rem;
}

.footer-legal {
  margin-bottom: 2rem;
}

.legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.legal-links a {
  color: var(--light-color);
  transition: var(--transition-main);
}

.legal-links a:hover {
  color: var(--primary-light);
}

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

/* Modals */
.modal-content {
  border: none;
  background-color: var(--bg-primary);
}

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

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

.modal-title {
  color: var(--primary-color);
}

.modal-body {
  padding: 1.5rem;
}

.modal-body img {
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.btn-close {
  opacity: 1;
  box-shadow: none;
}

/* Cookie Consent */
#cookieConsent {
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
}

#acceptCookies:hover {
  background: #0069d9;
}

/* 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;
}

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

/* About, Privacy, Terms Pages */
.page-content {
  padding-top: 120px;
  padding-bottom: 80px;
}

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

.page-content h2 {
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.3rem;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .step {
    flex: 0 0 100%;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.7rem;
  }
  
  .hero-content {
    padding: 30px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-description {
    font-size: 1.1rem;
  }
  
  .process-steps {
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .neomorphic {
    padding: 20px;
  }
}

/* Animations and Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

.bg-light-custom {
  background-color: var(--bg-secondary) !important;
}

.shadow-custom {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.rounded-custom {
  border-radius: var(--border-radius) !important;
}

.overflow-hidden {
  overflow: hidden;
}

.text-with-shadow {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}