:root {
  /* Пастельная цветовая схема */
  --primary: #6d9dc5;
  --primary-dark: #5a83a3;
  --primary-light: #a3c2e0;
  --secondary: #e6a4b4;
  --secondary-dark: #c78895;
  --secondary-light: #f1c1cb;
  --accent: #f3d188;
  --accent-dark: #d9b76c;
  --accent-light: #f9e3b0;
  
  /* Нейтральные цвета */
  --dark: #2c3e50;
  --medium: #7f8c8d;
  --light: #ecf0f1;
  --white: #ffffff;
  
  /* Фоновые цвета */
  --bg-light: #f8f9fa;
  --bg-medium: #e9ecef;
  --bg-gradient-primary: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  --bg-gradient-secondary: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
  
  /* Тени для неоморфизма */
  --shadow-light: 10px 10px 20px rgba(166, 180, 200, 0.2), -10px -10px 20px rgba(255, 255, 255, 0.8);
  --shadow-inset: inset 5px 5px 10px rgba(166, 180, 200, 0.1), inset -5px -5px 10px rgba(255, 255, 255, 0.5);
  --shadow-hover: 15px 15px 30px rgba(166, 180, 200, 0.3), -15px -15px 30px rgba(255, 255, 255, 0.9);
  
  /* Скругления */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Отступы */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--dark);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-md);
}

h2:after {
  content: '';
  position: absolute;
  width: 60%;
  height: 4px;
  background: var(--primary);
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

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

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

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

ul {
  list-style: none;
  margin-bottom: var(--spacing-md);
}

/* Контейнер */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Секции */
section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--medium);
}

/* Кнопки - глобальные стили */
.btn,
button,
input[type='submit'] {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-light);
  background-color: var(--bg-light);
  color: var(--dark);
}

.btn:hover,
button:hover,
input[type='submit']:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn:active,
button:active,
input[type='submit']:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-inset);
}

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

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

/* Навигация */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
}

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

.logo a {
  display: block;
}

.logo img {
  max-height: 50px;
  border-radius: 0;
}

.nav-menu ul {
  display: flex;
  margin: 0;
}

.nav-menu li {
  margin-left: var(--spacing-md);
}

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

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

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

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

.burger-menu span {
  width: 100%;
  height: 2px;
  background-color: var(--dark);
  transition: all var(--transition-fast);
}

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

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero-content p {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.5s;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.7s;
}

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

/* Миссия */
.mission {
  background-color: var(--white);
}

.mission-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xl);
}

.mission-image,
.mission-text {
  flex: 1 1 45%;
}

.mission-image {
  text-align: center;
}

.mission-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

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

.mission-text h3 {
  margin-bottom: var(--spacing-md);
}

/* Insights секция */
.insights {
  background-color: var(--bg-medium);
  position: relative;
  overflow: hidden;
}

.insights:before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(163, 194, 224, 0.2);
  z-index: 0;
}

.insights-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  justify-content: center;
}

.insights .card {
  flex: 1 1 calc(33.333% - var(--spacing-lg));
  min-width: 300px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

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

.card-content h3 {
  margin-bottom: var(--spacing-sm);
}

.read-more {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

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

.read-more:hover:after {
  width: 100%;
}

/* Ресурсы */
.resources {
  background-color: var(--white);
}

.resources-intro {
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  text-align: center;
}

.resources-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.resource-item {
  background-color: var(--bg-light);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  text-align: center;
}

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

.resource-item h3 {
  margin-bottom: var(--spacing-xs);
  font-size: 1.4rem;
}

.resource-item p {
  margin-bottom: var(--spacing-sm);
  color: var(--medium);
}

.resource-item a {
  font-weight: 600;
  display: inline-block;
  margin-top: var(--spacing-xs);
}

/* Видение */
.vision {
  background-color: var(--bg-medium);
}

.vision-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xl);
}

.vision-text,
.vision-image {
  flex: 1 1 45%;
}

.vision-image {
  order: -1;
  text-align: center;
}

.vision-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

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

.vision-text h3 {
  margin-bottom: var(--spacing-md);
}

/* Карьеры */
.careers {
  background-color: var(--white);
}

.careers-intro {
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  text-align: center;
}

.accordion-container {
  max-width: 900px;
  margin: 0 auto;
}

.accordion {
  margin-bottom: var(--spacing-sm);
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.accordion-header {
  padding: var(--spacing-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: rgba(109, 157, 197, 0.1);
}

.accordion-header h3 {
  margin: 0;
}

.accordion-icon {
  font-size: 1.5rem;
  transition: transform var(--transition-fast);
}

.accordion.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 var(--spacing-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium), padding var(--transition-medium);
}

.accordion.active .accordion-content {
  padding: 0 var(--spacing-md) var(--spacing-md);
  max-height: 500px;
}

/* Блог */
.blog {
  background-color: var(--bg-medium);
}

.blog-posts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.blog .card {
  flex: 1 1 calc(33.333% - var(--spacing-lg));
  min-width: 300px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.post-date {
  color: var(--medium);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.blog-cta {
  text-align: center;
}

/* Контакты */
.contact {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact:after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(243, 209, 136, 0.2);
  z-index: 0;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.contact-info,
.contact-form {
  flex: 1 1 45%;
  min-width: 300px;
}

.contact-info {
  background-color: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
}

.contact-info h3,
.contact-form h3 {
  margin-bottom: var(--spacing-md);
}

.contact-info ul {
  margin-bottom: var(--spacing-md);
}

.contact-info li {
  margin-bottom: var(--spacing-sm);
}

.contact-social p {
  margin-bottom: var(--spacing-sm);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.social-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  color: var(--dark);
  font-weight: 600;
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: var(--primary);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  box-shadow: var(--shadow-inset);
  transition: box-shadow var(--transition-fast);
  font-family: 'Source Sans Pro', sans-serif;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 157, 197, 0.3), var(--shadow-inset);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding-top: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 1) 100%);
  z-index: -1;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  flex: 1 1 100%;
  max-width: 300px;
}

.footer-logo img {
  margin-bottom: var(--spacing-sm);
  border-radius: 0;
}

.footer-links {
  flex: 1 1 calc(100% - 300px - var(--spacing-lg));
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.footer-column {
  flex: 1 1 200px;
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-xs);
}

.footer-column h3:after {
  content: '';
  position: absolute;
  width: 50%;
  height: 2px;
  background: var(--primary);
  bottom: 0;
  left: 0;
}

.footer-column ul {
  margin: 0;
}

.footer-column li {
  margin-bottom: var(--spacing-xs);
}

.footer-column a,
.footer-column li {
  color: var(--light);
  transition: color var(--transition-fast);
}

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

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

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

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

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

.success-content {
  max-width: 700px;
  padding: var(--spacing-lg);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
}

/* Privacy and Terms pages */
.privacy-content,
.terms-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h1,
.terms-content h1 {
  margin-bottom: var(--spacing-lg);
}

.privacy-content h2,
.terms-content h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

/* Медиа-запросы */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  .mission-content,
  .vision-content {
    gap: var(--spacing-md);
  }
  
  .mission-image,
  .mission-text,
  .vision-text,
  .vision-image {
    flex: 1 1 100%;
  }
  
  .vision-image {
    order: 0;
    margin-bottom: var(--spacing-md);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .burger-menu {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md);
    transform: translateY(-150%);
    transition: transform var(--transition-medium);
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .nav-menu ul {
    flex-direction: column;
  }
  
  .nav-menu li {
    margin: var(--spacing-xs) 0;
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .footer-logo {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: var(--spacing-md);
  }
  
  .footer-links {
    flex: 1 1 100%;
  }
  
  .footer-column {
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: var(--spacing-md);
  }
  
  .footer-column h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
  
  section {
    padding: var(--spacing-lg) 0;
  }
  
  .section-header {
    margin-bottom: var(--spacing-lg);
  }
}