/* Root Variables - Тетрада цветовая схема */
:root {
  /* Основные цвета тетрады */
  --primary-color: #6366f1;
  --secondary-color: #f59e0b;
  --tertiary-color: #10b981;
  --quaternary-color: #ef4444;
  
  /* Градиенты для динамических переходов */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-secondary: linear-gradient(135deg, var(--tertiary-color), var(--quaternary-color));
  --gradient-tertiary: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
  --gradient-quaternary: linear-gradient(135deg, var(--secondary-color), var(--quaternary-color));
  
  /* Дополнительные цвета */
  --dark-primary: #4f46e5;
  --dark-secondary: #d97706;
  --dark-tertiary: #047857;
  --dark-quaternary: #dc2626;
  
  /* Нейтральные цвета */
  --white: #ffffff;
  --light-gray: #f8fafc;
  --gray: #64748b;
  --dark-gray: #334155;
  --black: #0f172a;
  
  /* Шрифты */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  
  /* Размеры */
  --container-max-width: 1200px;
  --border-radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark-gray);
  background: var(--white);
  overflow-x: hidden;
}

/* Контейнеры */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--black);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

h3 {
  font-size: 2rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

/* Кнопки - глобальные стили */
.btn, .button, input[type='submit'] {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover, .button:hover, input[type='submit']:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.btn:hover::before, .button:hover::before, input[type='submit']:hover::before {
  left: 0;
}

.btn.is-light {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn.is-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* Навигация */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.navbar-brand strong {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
}

.navbar-item {
  color: var(--dark-gray);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

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

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

/* Burger menu */
.navbar-burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.navbar-burger span {
  width: 25px;
  height: 3px;
  background: var(--dark-gray);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero секция */
.hero {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(245, 158, 11, 0.1));
  animation: parallax-bg 20s ease-in-out infinite;
}

.hero-body {
  position: relative;
  z-index: 2;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.hero .title {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero .subtitle {
  color: var(--white) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
  color: var(--white) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero .buttons {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Секции */
.section {
  padding: 80px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--light-gray);
}

.section:nth-child(odd) {
  background: var(--white);
}

/* Карточки */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.card-content .title {
  color: var(--black);
  margin-bottom: 15px;
}

.card-content p {
  color: var(--dark-gray);
  margin-bottom: 20px;
}

/* About секция */
#about {
  background: var(--white);
}

#about .title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--black);
}

#about .subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 4rem;
}

/* Innovation секция */
#innovation {
  background: var(--light-gray);
  position: relative;
}

#innovation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-tertiary);
  opacity: 0.05;
  animation: parallax-slow 30s linear infinite;
}

/* Resources секция */
#resources {
  background: var(--white);
}

#resources .card {
  border-left: 4px solid var(--primary-color);
}

#resources .card:nth-child(2n) {
  border-left-color: var(--secondary-color);
}

#resources .card:nth-child(3n) {
  border-left-color: var(--tertiary-color);
}

/* External Resources секция */
#external-resources {
  background: var(--light-gray);
}

#external-resources .card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

/* Press секция */
#press {
  background: var(--white);
}

#press .card {
  border-top: 4px solid var(--quaternary-color);
}

/* Behind the Scenes секция */
#behind-scenes {
  background: var(--light-gray);
}

#behind-scenes .card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Contact секция */
#contact {
  background: var(--white);
  padding: 100px 0;
}

#contact .title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--black);
}

#contact .subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 4rem;
}

/* Формы */
.field {
  margin-bottom: 25px;
}

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

.input, .textarea, .select select {
  width: 100%;
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

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

.select {
  position: relative;
}

.select::after {
  content: '▼';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  pointer-events: none;
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.1;
}

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

.footer .has-text-light {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer .has-text-light:hover {
  color: var(--white);
  text-decoration: none;
}

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

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes parallax-bg {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-20px); }
}

@keyframes parallax-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Утилиты */
.has-text-centered {
  text-align: center;
}

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

.has-text-light {
  color: rgba(255, 255, 255, 0.8) !important;
}

.mb-6 {
  margin-bottom: 4rem !important;
}

.is-size-5 {
  font-size: 1.25rem !important;
}

/* Читать далее ссылки */
.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

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

.read-more:hover {
  color: var(--dark-primary);
}

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

/* Страница success.html */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  text-align: center;
}

.success-content {
  background: var(--white);
  padding: 60px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  width: 90%;
}

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

.success-content p {
  color: var(--dark-gray);
  margin-bottom: 30px;
}

/* Страницы privacy и terms */
.content-page {
  padding-top: 120px;
  min-height: 100vh;
  background: var(--light-gray);
}

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

.content-page .content {
  background: var(--white);
  padding: 60px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.content-page .content h1 {
  color: var(--black);
  margin-bottom: 30px;
}

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

.content-page .content p {
  color: var(--dark-gray);
  margin-bottom: 20px;
}

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

.content-page .content li {
  color: var(--dark-gray);
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px;
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .navbar-burger {
    display: flex;
  }
  
  .navbar-item {
    display: block;
    padding: 10px 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .column {
    margin-bottom: 30px;
  }
  
  .success-content {
    padding: 40px 20px;
  }
  
  .content-page .content {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .btn, .button {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .btn.is-large {
    padding: 15px 30px;
    font-size: 1rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .section {
    padding: 30px 0;
  }
}

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

/* Focus styles */
button:focus, .btn:focus, .input:focus, .textarea:focus, .select select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #ff8c00;
    --tertiary-color: #008000;
    --quaternary-color: #ff0000;
  }
}