:root {
  /* Неоморфная цветовая палитра */
  --primary-color: #2d46b9;
  --primary-dark: #1c2f96;
  --primary-light: #3e58c7;
  
  --secondary-color: #ff7e3d;
  --secondary-dark: #e66020;
  --secondary-light: #ff9a65;
  
  --accent-color: #36b38e;
  --accent-dark: #29a07f;
  --accent-light: #4fc5a0;
  
  --text-color: #2e3a59;
  --text-light: #5a6480;
  --text-dark: #1b2133;
  
  --bg-color: #f5f7fa;
  --bg-dark: #e7eaf0;
  --bg-light: #ffffff;
  
  /* Тени для неоморфизма */
  --shadow-light: 12px 12px 24px rgba(166, 180, 200, 0.2), -12px -12px 24px rgba(255, 255, 255, 0.7);
  --shadow-inset: inset 6px 6px 12px rgba(166, 180, 200, 0.15), inset -6px -6px 12px rgba(255, 255, 255, 0.7);
  
  /* Типографика */
  --heading-font: 'Space Grotesk', sans-serif;
  --body-font: 'DM Sans', sans-serif;
  
  /* Размеры и отступы */
  --container-width: 1200px;
  --section-padding: 5rem 0;
  --card-padding: 1.5rem;
  --border-radius: 12px;
  --border-radius-sm: 6px;
  
  /* Анимации */
  --transition-slow: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-medium: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: all 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

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

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, 2vw, 1.75rem);
}

p {
  margin-bottom: 1.5rem;
}

ul {
  list-style: none;
}

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

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

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

/* Контейнер и сетка */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Кнопки */
.btn-primary, .btn-secondary, 
button, input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-medium);
  border: none;
  font-family: var(--body-font);
  font-size: 1rem;
  box-shadow: var(--shadow-light);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-3px);
}

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

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: white;
  transform: translateY(-3px);
}

.resource-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 0.5rem;
  position: relative;
  padding-bottom: 3px;
}

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

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

/* Карточки и контейнеры */
.card {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

.card-content {
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

/* Макеты сеток */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

.services-grid, 
.team-grid,
.resources-grid,
.research-cards,
.methodology-content,
.vision-content,
.behind-scenes-gallery,
.press-grid,
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .services-grid, 
  .team-grid,
  .resources-grid,
  .research-cards,
  .press-grid,
  .awards-grid {
    grid-template-columns: 1fr;
  }
}

/* Хедер и навигация */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition-medium);
}

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

.logo h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
}

.desktop-nav li {
  margin-left: 1.5rem;
}

.desktop-nav a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.desktop-nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition-medium);
}

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

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin-bottom: 5px;
  border-radius: 3px;
  transition: var(--transition-fast);
}

.mobile-nav {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  padding: 2rem;
  z-index: 99;
  transform: translateX(100%);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

.mobile-nav a {
  color: var(--text-dark);
  font-size: 1.2rem;
  font-weight: 600;
}

@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  body.menu-open .mobile-nav {
    transform: translateX(0);
  }
  
  body.menu-open .mobile-menu-toggle span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  body.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  body.menu-open .mobile-menu-toggle span:last-child {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

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

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  color: white;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  color: white;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content .btn-primary {
  animation: fadeInUp 1s ease-out 0.4s both;
  margin-top: 1rem;
}

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

/* Vision секция */
.vision-section {
  background-color: var(--bg-light);
  overflow: hidden;
}

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

.vision-image {
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

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

@media (max-width: 992px) {
  .vision-content {
    grid-template-columns: 1fr;
  }
}

/* Services секция */
.services-section {
  background: linear-gradient(135deg, var(--bg-color), var(--bg-light));
}

/* Methodology секция */
.methodology-section {
  background-color: var(--bg-light);
}

.methodology-content {
  grid-template-columns: 1fr 1.5fr;
}

.methodology-text h3 {
  color: var(--primary-color);
}

.methodology-text h4 {
  color: var(--secondary-color);
  margin-top: 1.5rem;
}

.methodology-image {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 992px) {
  .methodology-content {
    grid-template-columns: 1fr;
  }
}

/* Research секция */
.research-section {
  background-color: var(--bg-color);
}

/* Resources секция */
.resources-section {
  background-color: var(--bg-light);
}

.resource-item {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.resource-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

/* Team секция */
.team-section {
  background-color: var(--bg-color);
}

.team-grid .card .position {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Partners & Testimonials секция */
.partners-section {
  background-color: var(--bg-light);
}

.partners-logos {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  align-items: center;
}

.partners-logos img {
  max-width: 180px;
  height: auto;
  margin: 1rem;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-medium);
}

.partners-logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-text {
  font-style: italic;
  position: relative;
}

.testimonial-text:before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-light);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: var(--heading-font);
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
}

/* Press секция */
.press-section {
  background-color: var(--bg-color);
}

.press-item {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition-medium);
}

.press-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.press-item img {
  max-width: 180px;
  height: auto;
  margin: 0 auto 1rem;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-medium);
}

.press-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.press-item p {
  font-style: italic;
}

/* Awards секция */
.awards-section {
  background: linear-gradient(135deg, var(--bg-color), var(--bg-light));
}

.award-item {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.award-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.award-item img {
  max-width: 100%;
  margin: 0 auto 1.5rem;
}

.award-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.award-item p {
  color: var(--text-light);
}

.achievements {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-top: 2rem;
}

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

.achievements ul {
  padding-left: 1.5rem;
}

.achievements li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.achievements li:before {
  content: '✓';
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Behind the Scenes секция */
.behind-scenes-section {
  background-color: var(--bg-color);
}

.behind-scenes-gallery {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.gallery-item img {
  transition: var(--transition-medium);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item p {
  padding: 1rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
  font-weight: 500;
}

.team-culture {
  margin-top: 3rem;
}

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

/* Contact секция */
.contact-section {
  background: linear-gradient(135deg, var(--bg-color), var(--bg-light));
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

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

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

.info-item h4 {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.map {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.contact-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.form-group:nth-child(5),
.form-group:nth-child(6) {
  grid-column: 1 / 3;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--bg-dark);
  border-radius: var(--border-radius-sm);
  background: var(--bg-light);
  font-family: var(--body-font);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-inset);
}

.contact-form button {
  grid-column: 1 / 3;
  justify-self: center;
  margin-top: 1rem;
  width: 200px;
}

@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .contact-form form {
    grid-template-columns: 1fr;
  }
  
  .form-group:nth-child(5),
  .form-group:nth-child(6) {
    grid-column: 1;
  }
  
  .contact-form button {
    grid-column: 1;
  }
}

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

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

.footer-logo h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: var(--bg-dark);
}

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

.link-group h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.link-group ul li {
  margin-bottom: 0.75rem;
}

.link-group ul li a {
  color: var(--bg-dark);
  transition: var(--transition-fast);
}

.link-group ul li a:hover {
  color: white;
}

.footer-social h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.social-links {
  display: flex;
  flex-direction: column;
}

.social-links a {
  color: var(--bg-dark);
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
  display: inline-block;
  font-weight: 500;
}

.social-links a:hover {
  color: white;
  transform: translateX(5px);
}

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

.footer-bottom p {
  color: var(--bg-dark);
  margin: 0;
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}

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

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

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

.success-content p {
  margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.content-page {
  padding-top: 100px;
}

.content-page .container {
  max-width: 800px;
}

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

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

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

.content-page ul, .content-page ol {
  padding-left: 1.5rem;
}

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

/* Анимации для ScrollReveal */
.fade-in {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.fade-in.visible {
  opacity: 1;
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Дополнительные адаптивные стили */
@media (max-width: 1200px) {
  :root {
    --section-padding: 4rem 0;
  }
}

@media (max-width: 992px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .container {
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 2.5rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .partners-logos img {
    max-width: 120px;
  }
  
  .contact-content,
  .vision-content,
  .methodology-content {
    display: flex;
    flex-direction: column;
  }
  
  .contact-form form {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  :root {
    --section-padding: 2rem 0;
    --card-padding: 1.25rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .partners-logos {
    flex-direction: column;
  }
  
  .partners-logos img {
    margin: 1.5rem 0;
  }
}