:root {
  /* Основная цветовая схема - разделительно-дополнительная */
  --primary-color: #4a7aff; /* Основной синий */
  --primary-dark: #3a65d8; /* Темно-синий для hover эффектов */
  --primary-light: #7296ff; /* Светло-синий для акцентов */
  
  --secondary-color: #ff7a4a; /* Дополнительный оранжевый */
  --secondary-dark: #e86a3d; /* Темно-оранжевый */
  --secondary-light: #ff9473; /* Светло-оранжевый */
  
  --tertiary-color: #4aff9c; /* Третичный зеленый */
  --tertiary-dark: #35cc7e; /* Темно-зеленый */
  --tertiary-light: #7dffb8; /* Светло-зеленый */
  
  /* Нейтральные цвета */
  --dark: #222222;
  --dark-gray: #444444;
  --medium-gray: #888888;
  --light-gray: #e0e0e0;
  --off-white: #f8f8f8;
  --white: #ffffff;
  
  /* Цвета для фонов */
  --bg-light: var(--off-white);
  --bg-dark: var(--dark);
  --bg-gradient-1: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  --bg-gradient-2: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
  --bg-gradient-3: linear-gradient(135deg, var(--tertiary-light) 0%, var(--tertiary-color) 100%);
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Скругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-circle: 50%;
  
  /* Анимация */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Базовые стили */
html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

.title {
  margin-bottom: 1.5rem;
}

.subtitle {
  color: var(--medium-gray);
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal) var(--elastic);
}

section {
  padding: 5rem 0;
  position: relative;
}

section:nth-child(even) {
  background-color: var(--bg-light);
}

.container {
  padding: 0 1.5rem;
}

/* Биоморфные элементы */
.bio-shape {
  position: absolute;
  border-radius: var(--radius-circle);
  opacity: 0.15;
  z-index: 0;
}

.bio-shape-1 {
  width: 300px;
  height: 300px;
  background-color: var(--primary-light);
  top: -150px;
  right: -150px;
}

.bio-shape-2 {
  width: 200px;
  height: 200px;
  background-color: var(--secondary-light);
  bottom: -100px;
  left: -100px;
}

.bio-shape-3 {
  width: 250px;
  height: 250px;
  background-color: var(--tertiary-light);
  top: 50%;
  right: -125px;
}

/* Навигация */
.navbar {
  transition: background-color var(--transition-normal);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-item {
  font-weight: 500;
  transition: color var(--transition-normal);
}

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

.navbar-burger {
  height: 3.25rem;
  width: 3.25rem;
}

.navbar-brand .title {
  margin-bottom: 0;
}

/* Кнопки */
.button {
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal) var(--elastic);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.5rem;
}

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

.button:active {
  transform: translateY(0);
}

.button.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.button.is-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button.is-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.button.is-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.button.is-tertiary {
  background-color: var(--tertiary-color);
  border-color: var(--tertiary-color);
  color: var(--dark);
}

.button.is-tertiary:hover {
  background-color: var(--tertiary-dark);
  border-color: var(--tertiary-dark);
}

.button.is-outlined {
  background-color: transparent;
}

.button.is-outlined.is-primary {
  color: var(--primary-color);
}

.button.is-outlined.is-primary:hover {
  color: var(--white);
  background-color: var(--primary-color);
}

.button.is-light {
  color: var(--dark);
  background-color: var(--white);
  border-color: var(--white);
}

.button.is-light:hover {
  background-color: var(--off-white);
  border-color: var(--off-white);
}

.button.is-light.is-outlined {
  color: var(--white);
  border-color: var(--white);
}

.button.is-light.is-outlined:hover {
  background-color: var(--white);
  color: var(--dark);
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--white);
}

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 0;
}

.hero .hero-body {
  position: relative;
  z-index: 1;
}

.hero-body {
  padding: 8rem 1.5rem;
}

.arrow-down {
  width: 40px;
  height: 40px;
  border-right: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  transform: rotate(45deg);
  margin-bottom: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: rotate(45deg) translateY(0);
  }
  40% {
    transform: rotate(45deg) translateY(-20px);
  }
  60% {
    transform: rotate(45deg) translateY(-10px);
  }
}

/* Methodology Section */
.methodology-section {
  background-color: var(--white);
}

.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background-color: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: flex-start;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-color);
  z-index: 1;
  transition: all var(--transition-normal) var(--elastic);
}

.timeline-item:hover .timeline-marker {
  transform: translateX(-50%) scale(1.2);
  background-color: var(--primary-dark);
  box-shadow: 0 0 0 5px rgba(74, 122, 255, 0.2);
}

.timeline-content {
  width: 45%;
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 0;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline-content img {
  width: 100%;
  height: auto;
  margin-top: 1rem;
  border-radius: var(--radius-md);
}

/* Services Section */
.services-section {
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal) var(--elastic);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

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

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

.card-content p {
  flex-grow: 1;
  color: var(--dark-gray);
}

/* Resources Section */
.resources-section {
  background-color: var(--white);
}

.resource-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal) var(--elastic);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

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

.resource-card h3, 
.resource-card p {
  color: var(--white);
}

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

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

/* Customer Stories Section */
.stories-section {
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.story-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal) var(--elastic);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

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

.story-card .tags {
  margin-top: auto;
}

.tag {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.tag.is-primary {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.tag.is-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

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

.partner-card {
  padding: 1.5rem;
  transition: all var(--transition-normal) var(--elastic);
  text-align: center;
}

.partner-card img {
  max-width: 150px;
  height: auto;
  margin: 0 auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-normal);
}

.partner-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.partner-card h3 {
  font-size: 1rem;
  color: var(--dark-gray);
  margin-top: 1rem;
}

/* Blog Section */
.blog-section {
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal) var(--elastic);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

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

.blog-card .subtitle {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.blog-card .button {
  margin-top: auto;
}

/* Media Section */
.media-section {
  background-color: var(--white);
}

.tabs {
  margin-bottom: 2rem;
}

.tabs a {
  padding: 0.5rem 1.5rem;
  color: var(--dark-gray);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-normal);
}

.tabs li.is-active a {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.is-active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.image-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  cursor: pointer;
}

.image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.image-container:hover::after {
  opacity: 1;
}

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

.video-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.video-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: background-color var(--transition-normal);
}

.video-container:hover::before {
  background-color: rgba(0, 0, 0, 0.5);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  z-index: 2;
  transition: all var(--transition-normal) var(--elastic);
}

.play-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 25px solid var(--primary-color);
}

.video-container:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: rgba(255, 255, 255, 1);
}

.document-card {
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal) var(--elastic);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

.document-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* FAQ Section */
.faq-section {
  background-color: var(--bg-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--white);
  transition: all var(--transition-normal);
}

.faq-item.is-active {
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--dark);
  background-color: var(--white);
  transition: background-color var(--transition-normal);
}

.faq-item.is-active .faq-question {
  background-color: var(--primary-color);
  color: var(--white);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform var(--transition-normal) var(--elastic);
}

.faq-item.is-active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.is-active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 1000px;
}

/* Contact Section */
.contact-section {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-info {
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.contact-item h3 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.contact-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.contact-item ul {
  list-style: none;
  padding: 0;
}

.contact-item ul li {
  margin-bottom: 0.5rem;
}

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

.contact-form-container {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-form h3 {
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.input, .textarea, .select select {
  border-radius: var(--radius-md);
  border: 2px solid var(--light-gray);
  padding: 0.75rem 1rem;
  transition: all var(--transition-normal);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 122, 255, 0.2);
}

.label {
  color: var(--dark-gray);
  font-weight: 600;
}

.checkbox {
  display: flex;
  align-items: center;
}

.checkbox input {
  margin-right: 0.5rem;
}

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

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

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

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

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

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

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

.social-links a {
  color: var(--light-gray);
  transition: color var(--transition-normal);
  display: inline-block;
  margin-bottom: 0.5rem;
}

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

.newsletter .input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.newsletter .input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter .input:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--primary-light);
}

/* Additional pages styles */
.page-content {
  padding-top: 100px;
  min-height: 80vh;
}

.privacy-content, 
.terms-content {
  padding-top: 100px;
  min-height: 80vh;
}

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

.success-icon {
  width: 100px;
  height: 100px;
  background-color: var(--tertiary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  margin-bottom: 2rem;
  animation: success-pop 0.5s var(--elastic) forwards;
}

@keyframes success-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  80% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Cookie Consent */
#cookie-consent {
  border-top: 3px solid var(--primary-color);
}

#accept-cookies {
  background-color: var(--primary-color);
  transition: background-color var(--transition-normal);
}

#accept-cookies:hover {
  background-color: var(--primary-dark);
}

/* Responsive Adjustments */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: var(--dark);
  }
  
  .navbar-menu.is-active {
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-item {
    color: var(--white);
  }
  
  .navbar-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .timeline::before {
    left: 0;
  }
  
  .timeline-item {
    flex-direction: column !important;
    margin-left: 20px;
  }
  
  .timeline-marker {
    left: 0;
  }
  
  .timeline-content {
    width: 100%;
    margin: 1rem 0 0 0 !important;
  }
}

@media screen and (max-width: 768px) {
  .hero-body {
    padding: 6rem 1.5rem;
  }
  
  .title.is-1 {
    font-size: 2.5rem;
  }
  
  .subtitle.is-3 {
    font-size: 1.5rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .partner-card img {
    max-width: 100px;
  }
}

/* Animations */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* Read more links */
.button.is-primary.is-outlined.is-fullwidth {
  border-width: 2px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.button.is-primary.is-outlined.is-fullwidth::after {
  content: '→';
  position: absolute;
  right: -20px;
  transition: all var(--transition-normal) var(--elastic);
  opacity: 0;
}

.button.is-primary.is-outlined.is-fullwidth:hover::after {
  right: 20px;
  opacity: 1;
}

/* Links with underlines */
a:not(.button):not(.navbar-item):not(.footer-links a) {
  color: var(--primary-color);
  position: relative;
  text-decoration: none;
}

a:not(.button):not(.navbar-item):not(.footer-links a)::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s var(--elastic);
}

a:not(.button):not(.navbar-item):not(.footer-links a):hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}