/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
  /* Раздельно-дополнительная цветовая схема */
  --primary-color: #00d4ff;
  --primary-dark: #0099cc;
  --primary-light: #66e0ff;
  --secondary-color: #ff6b00;
  --secondary-dark: #cc5500;
  --secondary-light: #ff9966;
  --accent-color: #ff0080;
  --accent-dark: #cc0066;
  --accent-light: #ff66b3;
  
  /* Нейтральные цвета */
  --dark-bg: #0a0a0a;
  --dark-surface: #1a1a1a;
  --dark-card: #252525;
  --light-bg: #ffffff;
  --light-surface: #f8f9fa;
  --light-card: #ffffff;
  
  /* Текстовые цвета */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --text-white: #ffffff;
  --text-dark: #222222;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  --gradient-dark: linear-gradient(135deg, var(--dark-bg), var(--dark-surface));
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4));
  
  /* Тени */
  --shadow-small: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-large: 0 8px 32px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 20px rgba(0,212,255,0.3);
  
  /* Размеры */
  --border-radius: 12px;
  --border-radius-large: 20px;
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Шрифты */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  /* Переходы */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* ===== ТИПОГРАФИЯ ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

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

/* ===== КОНТЕЙНЕРЫ ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

/* ===== КНОПКИ ===== */
.btn, .button, input[type="submit"], button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before, .button::before, 
input[type="submit"]::before, button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before, .button:hover::before,
input[type="submit"]:hover::before, button[type="submit"]:hover::before {
  left: 100%;
}

.btn.is-primary, .button.is-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-medium);
}

.btn.is-primary:hover, .button.is-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
}

.btn.is-secondary, .button.is-secondary {
  background: var(--gradient-secondary);
  color: var(--text-white);
  box-shadow: var(--shadow-medium);
}

.btn.is-light, .button.is-light {
  background: var(--light-card);
  color: var(--text-primary);
  border: 2px solid var(--primary-color);
}

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

.btn.is-large, .button.is-large {
  padding: 16px 40px;
  font-size: 1.125rem;
}

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

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

.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);
}

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

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

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow-small);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  min-height: var(--header-height);
}

.navbar-brand h1 {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
  margin: 0;
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-end {
  display: flex;
  gap: 30px;
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-primary);
  padding: 10px 0;
  position: relative;
  transition: var(--transition);
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.navbar-item:hover {
  color: var(--primary-color);
  text-decoration: none;
}

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

/* Мобильное меню */
.navbar-burger {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 30px;
  cursor: pointer;
  position: relative;
}

.navbar-burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition);
}

.navbar-burger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.navbar-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 100px 0;
}

.hero .title {
  color: var(--text-white) !important;
  font-size: 4rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}

.hero .subtitle {
  color: var(--text-white) !important;
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
}

.hero p {
  color: var(--text-white) !important;
  font-size: 1.125rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
}

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

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-large);
}

.buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== СЕКЦИИ ===== */
.section .title {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

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

.section .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* ===== ИССЛЕДОВАНИЯ ===== */
.research-card {
  margin-bottom: 30px;
}

.research-card .card-content {
  text-align: left;
}

/* ===== ВНЕШНИЕ РЕСУРСЫ ===== */
.resource-card {
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

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

.resource-card .title a {
  color: var(--text-dark);
  transition: var(--transition);
}

.resource-card .title a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* ===== МЕТОДОЛОГИЯ ===== */
.methodology-accordion .accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  overflow: hidden;
}

.methodology-accordion .accordion-header {
  padding: 20px;
  background: var(--light-surface);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  margin: 0;
}

.methodology-accordion .accordion-header:hover {
  background: var(--primary-color);
  color: var(--text-white);
}

.methodology-accordion .accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.methodology-accordion .accordion-content.active {
  padding: 20px;
  max-height: 300px;
}

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

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

.methodology-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
}

/* ===== ЭКСПЕРТЫ ===== */
.instructor-card {
  text-align: center;
  margin-bottom: 30px;
}

.instructor-card .card-image {
  height: 300px;
}

.instructor-card .card-image img {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin: 0 auto;
}

/* ===== МЕДИА КАРУСЕЛЬ ===== */
.media-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
}

.carousel-container {
  position: relative;
}

.carousel-slide {
  display: none;
  padding: 40px;
  background: var(--light-card);
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
  pointer-events: none;
}

.carousel-btn {
  background: rgba(0,0,0,0.7);
  color: var(--text-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  pointer-events: all;
}

.carousel-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

/* ===== КОНТАКТНАЯ ФОРМА ===== */
.contact-form-container {
  background: var(--light-card);
  padding: 40px;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
}

.field {
  margin-bottom: 25px;
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.input, .textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--light-bg);
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  background: var(--light-surface);
  padding: 30px;
  border-radius: var(--border-radius-large);
  height: fit-content;
}

.contact-item {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-bg);
  color: var(--text-white);
  padding: 60px 0 30px;
}

.footer .title {
  color: var(--text-white);
  margin-bottom: 20px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer a {
  color: #cccccc;
  transition: var(--transition);
}

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

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

.social-links a {
  color: #cccccc;
  font-weight: 500;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.footer hr {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 40px 0 20px;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.modal.is-active {
  display: flex;
}

.modal-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: auto;
  max-width: 500px;
  width: 90%;
  z-index: 2001;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-white);
  cursor: pointer;
  z-index: 2002;
}

.box {
  background: var(--light-card);
  padding: 40px;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-large);
}

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

.success-content {
  text-align: center;
  max-width: 600px;
  padding: 60px 40px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-large);
}

.success-content .title {
  color: var(--text-white);
  margin-bottom: 20px;
}

.success-content p {
  color: var(--text-white);
  margin-bottom: 30px;
  font-size: 1.125rem;
}

/* ===== СТРАНИЦЫ ПОЛИТИК ===== */
.content-page {
  padding-top: 100px;
  min-height: 100vh;
}

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

.content-page .content {
  line-height: 1.8;
}

.content-page .content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.content-page .content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.content-page .content ul, 
.content-page .content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.content-page .content li {
  margin-bottom: 10px;
}

/* ===== КОЛОНКИ ===== */
.columns {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}

.column {
  padding: 15px;
  flex: 1;
}

.column.is-half {
  flex: 0 0 50%;
  max-width: 50%;
}

.column.is-one-third {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.column.is-two-thirds {
  flex: 0 0 66.666%;
  max-width: 66.666%;
}

.columns.is-vcentered {
  align-items: center;
}

.columns.is-multiline {
  flex-wrap: wrap;
}

/* ===== УТИЛИТЫ ===== */
.has-text-centered {
  text-align: center;
}

.has-text-white {
  color: var(--text-white) !important;
}

.is-size-5 {
  font-size: 1.125rem;
}

.is-size-6 {
  font-size: 1rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }
  
  .hero .title {
    font-size: 3rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .column.is-half {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .column.is-one-third {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .column.is-two-thirds {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 50px 0;
    transition: var(--transition);
  }
  
  .navbar-menu.is-active {
    left: 0;
  }
  
  .navbar-end {
    flex-direction: column;
    gap: 20px;
  }
  
  .navbar-burger {
    display: flex;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.125rem;
  }
  
  .buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .buttons .button {
    width: 100%;
    max-width: 300px;
  }
  
  .contact-form-container {
    padding: 25px;
  }
  
  .contact-info {
    margin-top: 30px;
    padding: 20px;
  }
  
  .carousel-controls {
    padding: 0 10px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section .title {
    font-size: 1.75rem;
  }
  
  .section .subtitle {
    font-size: 1rem;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .instructor-card .card-image img {
    width: 150px;
    height: 150px;
  }
  
  .methodology-accordion .accordion-header {
    padding: 15px;
  }
  
  .methodology-accordion .accordion-content.active {
    padding: 15px;
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

/* ===== ПАРАЛЛАКС ===== */
.parallax-element {
  transform: translateY(0);
  transition: transform 0.1s ease-out;
}

/* ===== ГЛАССМОРФИЗМ ===== */
.glass-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.glass-dark {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}