:root {
  /* Раздельно-дополнительная цветовая схема */
  --primary-color: #6a4c93;
  --primary-dark: #53397a;
  --primary-light: #8c6db9;
  
  --secondary-color: #f72585;
  --secondary-dark: #d01f70;
  --secondary-light: #ff5cad;
  
  --tertiary-color: #4cc9f0;
  --tertiary-dark: #23b5e6;
  --tertiary-light: #7adbf8;
  
  --accent-color: #ffd166;
  --accent-dark: #efc050;
  --accent-light: #ffe18c;
  
  /* Нейтральные цвета */
  --dark: #1d1e2c;
  --medium-dark: #2e2f42;
  --medium: #4a4b65;
  --medium-light: #8b8caa;
  --light: #f3f4fd;
  
  /* Неоморфизм - тени */
  --neomorphic-light-shadow: 8px 8px 16px rgba(136, 165, 191, 0.48), -8px -8px 16px rgba(255, 255, 255, 0.8);
  --neomorphic-dark-shadow: 8px 8px 16px rgba(0, 0, 0, 0.25), -8px -8px 16px rgba(255, 255, 255, 0.1);
  --neomorphic-inset-shadow: inset 6px 6px 12px rgba(136, 165, 191, 0.48), inset -6px -6px 12px rgba(255, 255, 255, 0.8);
  
  /* Радиусы и переходы */
  --border-radius-small: 8px;
  --border-radius-medium: 12px;
  --border-radius-large: 20px;
  --transition-fast: all 0.2s ease;
  --transition-medium: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Шрифты */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Merriweather', serif;
  --line-height: 1.6;
}

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

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: var(--line-height);
  color: var(--medium);
  background-color: #f8f9fa;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

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

.container {
  padding: 0 15px;
}

.section {
  padding: 5rem 1.5rem;
}

/* Неоморфические стили */
.neomorphic-box {
  border-radius: var(--border-radius-medium);
  background-color: #f8f9fa;
  box-shadow: var(--neomorphic-light-shadow);
  padding: 2rem;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.neomorphic-box:hover {
  box-shadow: var(--neomorphic-dark-shadow);
  transform: translateY(-5px);
}

.neomorphic-image {
  border-radius: var(--border-radius-small);
  box-shadow: var(--neomorphic-light-shadow);
  transition: var(--transition-medium);
}

.neomorphic-image:hover {
  transform: scale(1.02);
  box-shadow: var(--neomorphic-dark-shadow);
}

.neomorphic-button, 
.button.is-primary.neomorphic-button {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--neomorphic-light-shadow);
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.neomorphic-button:hover, 
.button.is-primary.neomorphic-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--neomorphic-dark-shadow);
  background: var(--primary-dark);
}

.neomorphic-button:active, 
.button.is-primary.neomorphic-button:active {
  transform: translateY(0);
  box-shadow: var(--neomorphic-inset-shadow);
}

.neomorphic-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
  z-index: -1;
}

.neomorphic-button-light, 
.button.is-light.neomorphic-button-light {
  background: var(--light);
  color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--neomorphic-light-shadow);
  transition: var(--transition-medium);
}

.neomorphic-button-light:hover, 
.button.is-light.neomorphic-button-light:hover {
  transform: translateY(-3px);
  box-shadow: var(--neomorphic-dark-shadow);
  background: var(--light);
}

.neomorphic-button-small, 
.button.is-small.neomorphic-button-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  box-shadow: 4px 4px 8px rgba(136, 165, 191, 0.48), -4px -4px 8px rgba(255, 255, 255, 0.8);
}

.neomorphic-button-small:hover, 
.button.is-small.neomorphic-button-small:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2), -4px -4px 10px rgba(255, 255, 255, 0.9);
}

.neomorphic-input,
.neomorphic-textarea,
.neomorphic-select select {
  border: none;
  background-color: #f8f9fa;
  box-shadow: var(--neomorphic-inset-shadow);
  border-radius: var(--border-radius-small);
  padding: 0.75rem 1rem;
  transition: var(--transition-fast);
}

.neomorphic-input:focus,
.neomorphic-textarea:focus,
.neomorphic-select select:focus {
  outline: none;
  box-shadow: inset 4px 4px 8px rgba(136, 165, 191, 0.6), 
              inset -4px -4px 8px rgba(255, 255, 255, 0.9),
              0 0 0 3px rgba(106, 76, 147, 0.1);
}

/* Заголовки секций */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--medium);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  margin: 0.5rem auto 2rem;
  border-radius: 2px;
  display: block;
}

/* Header & Navigation */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar {
  padding: 1rem 0;
}

.navbar-item {
  font-family: var(--heading-font);
  font-weight: 500;
  color: var(--medium-dark);
  transition: var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary-color);
  background-color: transparent !important;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(106, 76, 147, 0.8) 0%, rgba(247, 37, 133, 0.7) 100%);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

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

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* About Section */
.about-section {
  background-color: #f8f9fa;
  position: relative;
}

.about-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--medium);
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.image-container img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius-medium);
  transition: var(--transition-medium);
  box-shadow: var(--neomorphic-light-shadow);
}

/* History Section */
.history-section {
  background-color: #f0f2f5;
  position: relative;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 1.5rem 0 1.5rem 50px;
}

.timeline-marker {
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  box-shadow: var(--neomorphic-light-shadow);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}

.timeline-marker::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 50%;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.1);
  background-color: var(--secondary-color);
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Portfolio Section */
.portfolio-section {
  background-color: #f8f9fa;
  position: relative;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.portfolio-filter li {
  margin: 0 0.5rem;
}

.portfolio-filter li a {
  display: block;
  padding: 0.5rem 1.5rem;
  font-family: var(--heading-font);
  font-weight: 500;
  color: var(--medium);
  background-color: #f8f9fa;
  border-radius: var(--border-radius-small);
  box-shadow: var(--neomorphic-light-shadow);
  transition: var(--transition-fast);
  cursor: pointer;
}

.portfolio-filter li a:hover,
.portfolio-filter li.is-active a {
  color: white;
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.portfolio-items {
  margin-top: 2rem;
}

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

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

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

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

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

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

.card-content .subtitle {
  color: var(--medium-light);
  margin-bottom: 1rem;
}

/* Research Section */
.research-section {
  background-color: #f0f2f5;
  position: relative;
}

.research-image {
  margin: 2rem 0;
  text-align: center;
}

.research-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-medium);
}

/* News Section */
.news-section {
  background-color: #f8f9fa;
  position: relative;
}

.news-date {
  font-family: var(--heading-font);
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

/* Press Section */
.press-section {
  background-color: #f0f2f5;
  position: relative;
}

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

.media-left img {
  border-radius: var(--border-radius-medium);
  box-shadow: var(--neomorphic-light-shadow);
}

.media-content {
  padding-left: 1rem;
}

.press-date {
  font-family: var(--heading-font);
  font-size: 0.9rem;
  color: var(--medium-light);
  margin-top: 0.5rem;
}

/* Resources Section */
.resources-section {
  background-color: #f8f9fa;
  position: relative;
}

.resource-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.resource-card ul {
  list-style: none;
  padding-left: 0;
}

.resource-card ul li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.resource-card ul li::before {
  content: '•';
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.partner img {
  width: 150px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-medium);
}

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

/* Testimonials Section */
.testimonials-section {
  background-color: #f8f9fa;
  position: relative;
}

.testimonial-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.testimonial-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--neomorphic-light-shadow);
}

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

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--medium);
  position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 2rem;
  line-height: 0;
  color: var(--primary-light);
}

.testimonial-author {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.testimonial-position {
  font-family: var(--heading-font);
  font-size: 0.9rem;
  color: var(--medium-light);
}

/* Accolades Section */
.accolades-section {
  background-color: #f0f2f5;
  position: relative;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.award-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.award-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 50%;
  box-shadow: var(--neomorphic-light-shadow);
  padding: 1rem;
  background-color: white;
  transition: var(--transition-medium);
}

.award-item:hover img {
  transform: translateY(-5px);
  box-shadow: var(--neomorphic-dark-shadow);
}

.certification-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.certification-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.certification-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  transition: var(--transition-medium);
}

.certification-item:hover img {
  transform: scale(1.1);
}

/* Contact Section */
.contact-section {
  background-color: #f8f9fa;
  position: relative;
}

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

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

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

.contact-item .icon {
  margin-right: 1rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.social-media {
  margin-top: 2rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  color: var(--medium);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-small);
  background-color: #f8f9fa;
  box-shadow: var(--neomorphic-light-shadow);
}

.social-link:hover {
  color: white;
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--neomorphic-dark-shadow);
}

.map-container {
  overflow: hidden;
  border-radius: var(--border-radius-medium);
}

.map-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius-medium);
}

/* Footer Section */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 4rem 1.5rem 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--tertiary-color));
}

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

.footer-brand h2 {
  color: white;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--medium-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-title {
  font-family: var(--heading-font);
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 1.5px;
}

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

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

.footer-links a {
  color: var(--medium-light);
  transition: var(--transition-fast);
  position: relative;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--tertiary-light);
  transform: translateX(5px);
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -15px;
  color: var(--tertiary-color);
  opacity: 0;
  transition: var(--transition-fast);
}

.footer-links a:hover::before {
  opacity: 1;
  left: -20px;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: var(--medium-light);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #f8f9fa;
}

.success-content {
  max-width: 600px;
  padding: 3rem;
  border-radius: var(--border-radius-large);
  background-color: white;
  box-shadow: var(--neomorphic-light-shadow);
}

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

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  background-color: #f8f9fa;
}

.privacy-content, .terms-content {
  background-color: white;
  border-radius: var(--border-radius-medium);
  padding: 3rem;
  box-shadow: var(--neomorphic-light-shadow);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Styles */
@media screen and (max-width: 1023px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-marker {
    width: 30px;
    height: 30px;
    top: 1.7rem;
  }
  
  .timeline-marker::before {
    width: 12px;
    height: 12px;
  }
  
  .timeline-item {
    padding-left: 40px;
  }
}

@media screen and (max-width: 767px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .title-underline {
    width: 60px;
  }
  
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .press-item .media {
    flex-direction: column;
  }
  
  .press-item .media-left {
    margin-bottom: 1rem;
  }
  
  .press-item .media-content {
    padding-left: 0;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 479px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .awards-grid {
    grid-template-columns: 1fr;
  }
  
  .certification-list {
    gap: 1rem;
  }
  
  .certification-item {
    width: 40%;
  }
  
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.5rem; }
.p-6 { padding: 2rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }