/* ============= ОСНОВНЫЕ ПЕРЕМЕННЫЕ И СБРОС ============= */
:root {
  /* Основная цветовая схема (триада) */
  --primary-color: #3273dc;
  --primary-dark: #1a5cbf;
  --primary-light: #5e8fe1;
  
  --secondary-color: #dc3273;
  --secondary-dark: #bf1a5c;
  --secondary-light: #e15e8f;
  
  --tertiary-color: #73dc32;
  --tertiary-dark: #5cbf1a;
  --tertiary-light: #8fe15e;
  
  /* Монохроматические цвета */
  --dark: #121212;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  --gradient-tertiary: linear-gradient(135deg, var(--tertiary-color), var(--tertiary-dark));
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Скругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;
  
  /* Переходы и анимации */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Шрифты */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  /* Размеры текста */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
}

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

html {
  scroll-behavior: smooth;
}

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

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

p {
  margin-bottom: 1.5rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============= ШАПКА И НАВИГАЦИЯ ============= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

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

.navbar-brand h1 {
  margin-bottom: 0;
}

.navbar-brand span {
  color: var(--primary-color);
}

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

.navbar-item {
  margin-left: 1.5rem;
  font-weight: 600;
  position: relative;
}

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

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

.navbar-burger {
  display: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}

.navbar-burger span {
  position: absolute;
  width: 24px;
  height: 2px;
  left: 4px;
  background-color: var(--dark-gray);
  transition: var(--transition-normal);
}

.navbar-burger span:nth-child(1) {
  top: 8px;
}

.navbar-burger span:nth-child(2) {
  top: 15px;
}

.navbar-burger span:nth-child(3) {
  top: 22px;
}

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

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

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

/* ============= ГЕРОЙ СЕКЦИЯ ============= */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem;
}

.hero.is-fullheight .hero-body {
  min-height: 100vh;
}

.hero-body .title,
.hero-body .subtitle,
.hero-body p {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-foot {
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
}

.hero-foot .icon {
  animation: bounce 2s infinite;
}

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

/* ============= КНОПКИ ============= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button:active {
  transform: translateY(1px);
}

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

.button.is-primary:hover {
  background-color: var(--primary-dark);
}

.button.is-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.button.is-secondary:hover {
  background-color: var(--secondary-dark);
}

.button.is-tertiary {
  background-color: var(--tertiary-color);
  color: var(--white);
}

.button.is-tertiary:hover {
  background-color: var(--tertiary-dark);
}

.button.is-light {
  background-color: var(--white);
  color: var(--dark-gray);
}

.button.is-light:hover {
  background-color: var(--light-gray);
}

.button.is-rounded {
  border-radius: 2rem;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.buttons.is-centered {
  justify-content: center;
}

/* ============= СЕКЦИИ ============= */
.section {
  padding: 5rem 1.5rem;
}

.section .title {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section .title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.section .subtitle {
  color: var(--medium-gray);
  margin-bottom: 2.5rem;
}

.section.has-background-primary-light {
  background-color: rgba(50, 115, 220, 0.1);
}

.section.has-background-info-light {
  background-color: rgba(32, 156, 238, 0.1);
}

.section.has-background-dark {
  background-color: var(--dark);
  color: var(--white);
}

/* ============= КОЛОНКИ ============= */
.columns {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.column {
  padding: 0.75rem;
  flex: 1 1 0;
}

.columns.is-centered {
  justify-content: center;
}

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

.column.is-2 {
  flex: none;
  width: 16.66667%;
}

.column.is-3 {
  flex: none;
  width: 25%;
}

.column.is-4 {
  flex: none;
  width: 33.33333%;
}

.column.is-5 {
  flex: none;
  width: 41.66667%;
}

.column.is-6 {
  flex: none;
  width: 50%;
}

.column.is-7 {
  flex: none;
  width: 58.33333%;
}

.column.is-two-thirds {
  flex: none;
  width: 66.66667%;
}

.column.is-10 {
  flex: none;
  width: 83.33333%;
}

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

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

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

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

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

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content .title {
  font-size: var(--text-xl);
  margin-bottom: 1rem;
}

.card-content .subtitle {
  font-size: var(--text-base);
  color: var(--medium-gray);
  margin-bottom: 1rem;
}

.card-content .content {
  flex-grow: 1;
}

/* ============= МИССИЯ СЕКЦИЯ ============= */
#mission .content {
  text-align: justify;
}

#mission .title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ============= СТАТИСТИКА СЕКЦИЯ ============= */
#statistics .box {
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  text-align: center;
  height: 100%;
}

#statistics .box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

#statistics .title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

#statistics .subtitle {
  font-size: var(--text-base);
  line-height: 1.5;
}

/* ============= ИССЛЕДОВАНИЕ СЕКЦИЯ ============= */
#research .box {
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

#research a {
  position: relative;
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition-normal);
}

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

#research a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary-color);
  transition: var(--transition-normal);
}

#research a:hover::after {
  height: 2px;
}

/* ============= КОМАНДА СЕКЦИЯ ============= */
#team .card-image {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

#team .card-content {
  text-align: center;
}

#team .title {
  margin-bottom: 0.5rem;
}

#team .subtitle {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* ============= КОНТАКТ СЕКЦИЯ ============= */
#contact .info-list {
  margin-bottom: 2rem;
}

#contact .info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#contact .box {
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

#contact .field {
  margin-bottom: 1.5rem;
}

#contact .label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

#contact .input,
#contact .textarea,
#contact .select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

#contact .input:focus,
#contact .textarea:focus,
#contact .select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(50, 115, 220, 0.25);
  outline: none;
}

#contact .select {
  position: relative;
  height: 2.5rem;
}

#contact .select select {
  width: 100%;
  height: 100%;
  padding: 0 1rem;
  border: none;
  background-color: transparent;
  appearance: none;
  cursor: pointer;
}

#contact .select::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--medium-gray);
  pointer-events: none;
}

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

.footer .title {
  color: var(--white);
}

.footer .title span {
  color: var(--primary-color);
}

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

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

.footer-links a {
  color: var(--light-gray);
  transition: var(--transition-normal);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  color: var(--light-gray);
  transition: var(--transition-normal);
}

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

/* ============= СТРАНИЦА УСПЕХА ============= */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.success-icon {
  font-size: 5rem;
  color: var(--tertiary-color);
  margin-bottom: 2rem;
}

/* ============= СТРАНИЦЫ PRIVACY И TERMS ============= */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

.privacy-page .content,
.terms-page .content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* ============= УТИЛИТЫ ============= */
.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

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

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

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

.mr-3 {
  margin-right: 0.75rem;
}

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

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

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

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

.is-size-5 {
  font-size: var(--text-xl);
}

.is-medium {
  font-size: var(--text-lg);
}

.is-fullwidth {
  width: 100%;
}

/* ============= АНИМАЦИИ И ПЕРЕХОДЫ ============= */
[data-aos] {
  opacity: 0;
  transition: var(--transition-slow);
}

[data-aos="fade-up"] {
  transform: translateY(50px);
}

[data-aos="fade-down"] {
  transform: translateY(-50px);
}

[data-aos="fade-left"] {
  transform: translateX(50px);
}

[data-aos="fade-right"] {
  transform: translateX(-50px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ============= АДАПТИВНОСТЬ ============= */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1rem;
  }
  
  .navbar-menu.is-active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .navbar-item {
    margin: 0.5rem 0;
    width: 100%;
  }
  
  .navbar-burger {
    display: block;
  }
  
  .column.is-3,
  .column.is-4,
  .column.is-6 {
    width: 50%;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .hero-body {
    padding: 6rem 1rem;
  }
  
  .column.is-3,
  .column.is-4,
  .column.is-5,
  .column.is-6,
  .column.is-7,
  .column.is-two-thirds {
    width: 100%;
  }
  
  .columns {
    margin-left: 0;
    margin-right: 0;
  }
  
  .buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .button {
    width: 100%;
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 12px;
  }
  
  .navbar-brand h1 {
    font-size: var(--text-lg);
  }
  
  .hero-body .title {
    font-size: var(--text-3xl);
  }
  
  .hero-body .subtitle {
    font-size: var(--text-xl);
  }
  
  .section .title {
    font-size: var(--text-2xl);
  }
  
  .section .subtitle {
    font-size: var(--text-lg);
  }
  
  .image-container {
    height: 200px;
  }
}