/* ===== CSS VARIABLES ===== */
:root {
  /* Аналоговая цветовая схема - Океанская палитра */
  --primary-color: #2E86AB;
  --primary-light: #A23B72;
  --primary-dark: #F18F01;
  --secondary-color: #C73E1D;
  --accent-color: #F18F01;
  --accent-light: #FFE66D;
  
  /* Нейтральные цвета */
  --white: #FFFFFF;
  --black: #1A1A1A;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  
  /* Биоморфные градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-color) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(46, 134, 171, 0.9) 0%, rgba(162, 59, 114, 0.8) 100%);
  
  /* Нейроморфные тени */
  --shadow-light: 8px 8px 16px rgba(0, 0, 0, 0.1), -8px -8px 16px rgba(255, 255, 255, 0.8);
  --shadow-inset: inset 4px 4px 8px rgba(0, 0, 0, 0.1), inset -4px -4px 8px rgba(255, 255, 255, 0.8);
  --shadow-card: 12px 12px 24px rgba(0, 0, 0, 0.1), -12px -12px 24px rgba(255, 255, 255, 0.6);
  --shadow-hover: 16px 16px 32px rgba(0, 0, 0, 0.15), -16px -16px 32px rgba(255, 255, 255, 0.9);
  
  /* Типографика */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Размеры */
  --border-radius-sm: 12px;
  --border-radius-md: 20px;
  --border-radius-lg: 32px;
  --border-radius-xl: 48px;
  
  /* Анимации */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-elastic: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  font-size: 1.125rem;
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0.8;
}

/* ===== ГЛОБАЛЬНЫЕ СТИЛИ КНОПОК ===== */
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.025em;
  border: none;
  border-radius: var(--border-radius-md);
  padding: 1rem 2rem;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-light);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
  color: var(--white);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-light);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px) scale(1.02);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  border-radius: var(--border-radius-lg);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-smooth);
}

.btn:hover::before {
  left: 100%;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  z-index: 1000;
}

.navbar-brand img {
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.75rem 1rem;
}

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

.nav-link:hover::after {
  width: 80%;
}

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

/* ===== HERO СЕКЦИЯ ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  z-index: 2;
}

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

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.z-index-2 {
  z-index: 2;
}

/* ===== КАРТОЧКИ ===== */
.card {
  background: var(--white);
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

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

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

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

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.card-text {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Специализированные карточки */
.service-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
}

.story-card,
.career-card,
.resource-card,
.press-card {
  background: var(--white);
  border-left: 4px solid var(--primary-color);
}

.story-card:hover,
.career-card:hover,
.resource-card:hover,
.press-card:hover {
  border-left-color: var(--accent-color);
}

/* ===== СТАТИСТИКА ===== */
.stat-widget {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.stat-widget:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ===== ТАЙМЛАЙН ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -1rem;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-light);
}

.timeline-content {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hover);
}

/* ===== АККОРДЕОН FAQ ===== */
.accordion-item {
  background: var(--white);
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background: var(--white);
  border: none;
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--gray-800);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.accordion-button:not(.collapsed) {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.accordion-body {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

/* ===== ФОРМЫ ===== */
.contact-form-wrapper {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-card);
}

.form-control,
.form-select {
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
  font-family: var(--font-secondary);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(46, 134, 171, 0.25);
}

.form-label {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

/* ===== ФУТЕР ===== */
.footer {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: var(--gray-300);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-primary);
}

.footer-title {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

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

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

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-color);
  text-decoration: none;
  transform: translateX(4px);
}

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

.social-links a {
  color: var(--gray-400);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  font-size: 0.9rem;
  font-weight: 500;
}

.social-links a:hover {
  color: var(--white);
  background: var(--primary-color);
  transform: translateY(-2px);
  text-decoration: none;
}

.copyright-text {
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ===== СПЕЦИАЛЬНЫЕ СТИЛИ ===== */
.resource-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.press-date {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.career-requirements {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.min-vh-100 {
  min-height: 100vh;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .timeline {
    padding-left: 1rem;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
  
  .social-links {
    flex-wrap: wrap;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Применение анимаций */
.card {
  animation: fadeInUp 0.6s ease-out;
}

.timeline-item {
  animation: slideInLeft 0.6s ease-out;
}

.stat-widget {
  animation: pulse 2s ease-in-out infinite;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ ===== */
.bg-light {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%) !important;
}

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

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.flex-direction-column {
  flex-direction: column;
}

.g-4 > * {
  margin-bottom: 1.5rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.me-3 {
  margin-right: 1rem;
}

.ms-auto {
  margin-left: auto;
}

/* ===== СТРАНИЦЫ С ОТСТУПОМ ОТ ХЕДЕРА ===== */
.privacy-content,
.terms-content,
.about-content {
  padding-top: 100px;
}

/* ===== СТРАНИЦА SUCCESS ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
}

.success-content {
  max-width: 600px;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-card);
}

/* ===== ЧИТАТЬ ДАЛЕЕ ССЫЛКИ ===== */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-primary);
  transition: var(--transition-smooth);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  background: rgba(46, 134, 171, 0.1);
}

.read-more:hover {
  color: var(--white);
  background: var(--primary-color);
  transform: translateX(4px);
  text-decoration: none;
}

.read-more::after {
  content: '→';
  transition: var(--transition-smooth);
}

.read-more:hover::after {
  transform: translateX(4px);
}