/* ===== CSS VARIABLES ===== */
:root {
  /* Монохромная цветовая схема */
  --primary-color: #2c3e50;
  --primary-dark: #1a252f;
  --primary-light: #34495e;
  --secondary-color: #ecf0f1;
  --secondary-dark: #bdc3c7;
  --accent-color: #3498db;
  --accent-dark: #2980b9;
  --accent-light: #85c1e9;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --gradient-accent: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  --gradient-overlay: linear-gradient(rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.6));
  
  /* Текстовые цвета */
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #ecf0f1;
  --text-white: #ffffff;
  
  /* Фоновые цвета */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #2c3e50;
  --bg-glass: rgba(236, 240, 241, 0.1);
  
  /* Тени и эффекты */
  --shadow-light: 0 2px 10px rgba(44, 62, 80, 0.1);
  --shadow-medium: 0 8px 30px rgba(44, 62, 80, 0.15);
  --shadow-heavy: 0 20px 60px rgba(44, 62, 80, 0.3);
  --blur-effect: blur(10px);
  
  /* Шрифты */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Размеры */
  --border-radius: 12px;
  --border-radius-large: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4, h5, h6, .title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.title.is-1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}

.title.is-2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  opacity: 0.9;
}

p, .content {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ===== ГЛОБАЛЬНЫЕ СТИЛИ КНОПОК ===== */
.btn, .button, input[type='submit'] {
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.btn-hover, .button {
  background: var(--gradient-accent);
  color: var(--text-white);
  box-shadow: var(--shadow-light);
  transform: translateY(0) scale(1);
}

.btn-hover:hover, .button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-medium);
  background: var(--gradient-primary);
}

.btn-hover:active, .button:active {
  transform: translateY(0) scale(0.98);
}

.button.is-outlined {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

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

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

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

/* 3D эффект для кнопок */
.btn-hover::before, .button::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);
}

.btn-hover:hover::before, .button:hover::before {
  left: 100%;
}

/* ===== НАВИГАЦИЯ ===== */
.header-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(44, 62, 80, 0.95);
  backdrop-filter: var(--blur-effect);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.navbar {
  padding: 0.5rem 0;
}

.navbar-item {
  font-family: var(--font-body);
  font-weight: 500;
  color: #000;
  transition: var(--transition);
  position: relative;
  margin: 0 0.5rem;
}

.navbar-item:hover {
  color: var(--accent-light);
  transform: translateY(-1px);
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-item:hover::after {
  width: 80%;
}

.navbar-burger {
  color: var(--text-white);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero.is-fullheight {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-body {
  padding: 8rem 1.5rem 4rem;
  position: relative;
  z-index: 2;
}

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

.hero .title {
  margin-bottom: 2rem;
}

.hero .subtitle {
  margin-bottom: 3rem;
  font-size: 1.25rem;
  opacity: 0.95;
}

/* ===== PARALLAX SECTIONS ===== */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 1.5rem;
  position: relative;
}

.section.has-background-light {
  background: var(--bg-secondary);
}

/* ===== КАРТОЧКИ ===== */
.card {
  border: none;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  background: var(--bg-primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transform: translateZ(0);
  will-change: transform;
}

.card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: var(--shadow-heavy);
}

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

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

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

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

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

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

.card-content p {
  color: var(--text-secondary);
  flex: 1;
}

/* ===== СТАТИСТИЧЕСКИЕ ВИДЖЕТЫ ===== */
.stat-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== ПРОГРЕСС ИНДИКАТОРЫ ===== */
.progress-indicator {
  position: relative;
  margin: 1rem 0;
}

.progress-bar {
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: var(--transition-slow);
}

.career-progress {
  margin: 1.5rem 0;
}

.progress {
  height: 8px;
  border-radius: 4px;
  background: var(--secondary-color);
}

.progress::-webkit-progress-bar {
  background: var(--secondary-color);
  border-radius: 4px;
}

.progress::-webkit-progress-value {
  background: var(--gradient-accent);
  border-radius: 4px;
  transition: var(--transition-slow);
}

/* ===== ФОРМЫ ===== */
.contact-form {
  max-width: 100%;
}

.field {
  margin-bottom: 1.5rem;
}

.label {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.input, .textarea, .select select {
  font-family: var(--font-body);
  border: 2px solid var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background: var(--bg-primary);
  color: var(--text-primary);
  width: 100%;
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  outline: none;
}

.select {
  width: 100%;
}

.select::after {
  border-color: var(--accent-color);
}

/* ===== ФУТЕР ===== */
.footer {
  background: var(--bg-dark);
  padding: 4rem 1.5rem 2rem;
  color: var(--text-light);
}

.footer .title, .footer h4, .footer h5 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

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

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

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 400;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--blur-effect);
}

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

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-card {
  border-radius: var(--border-radius-large);
  overflow: hidden;
}

.modal-card-head {
  background: var(--gradient-primary);
  color: var(--text-white);
}

.modal-card-body {
  padding: 2rem;
}

.modal-card-foot {
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
}

/* ===== АНИМАЦИИ ===== */
.animate-element {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.animate-element.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animated-icon {
  display: inline-block;
  animation: bounce 2s infinite;
}

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

/* 3D эффекты для карточек */
.card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(2deg);
}

/* Гласморфизм эффекты */
.glass-effect {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-effect);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-large);
}

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

.privacy-page, .terms-page {
  padding-top: 100px;
}

.privacy-page .section, .terms-page .section {
  padding-top: 2rem;
}

/* ===== ЧИТАТЬ ДАЛЕЕ ССЫЛКИ ===== */
.read-more-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more-link:hover {
  color: var(--accent-dark);
  transform: translateX(5px);
}

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

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

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
  .hero-body {
    padding: 6rem 1.5rem 3rem;
  }
  
  .section {
    padding: 4rem 1.5rem;
  }
  
  .title.is-1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .card:hover {
    transform: translateY(-5px) scale(1.02);
  }
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
  
  .parallax-section {
    background-attachment: scroll;
  }
  
  .hero-body {
    padding: 4rem 1rem 2rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .button.is-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-body {
    padding: 3rem 0.75rem 1.5rem;
  }
  
  .section {
    padding: 2rem 0.75rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .title.is-2 {
    font-size: 1.75rem;
  }
  
  .footer {
    padding: 2rem 1rem 1rem;
  }
}

/* ===== УТИЛИТАРНЫЕ КЛАССЫ ===== */
.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.mt-large {
  margin-top: 3rem;
}

.p-large {
  padding: 3rem;
}

.shadow-hover {
  transition: var(--transition);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-heavy);
}

/* ===== ПРОИЗВОДИТЕЛЬНОСТЬ ===== */
.card, .button, .animate-element {
  will-change: transform;
  transform: translateZ(0);
}

img {
  will-change: auto;
}

/* Предзагрузка критических анимаций */
@media (prefers-reduced-motion: no-preference) {
  .animate-element {
    animation-fill-mode: both;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}