:root {
  /* Триадная цветовая схема */
  --primary-color: #e63946; /* Красный */
  --secondary-color: #2a9d8f; /* Бирюзовый */
  --tertiary-color: #f4a261; /* Оранжевый */
  
  /* Оттенки для глубины */
  --primary-dark: #c1121f;
  --secondary-dark: #1d7268;
  --tertiary-dark: #e08338;
  
  /* Нейтральные цвета */
  --dark: #222222;
  --medium-dark: #444444;
  --medium: #777777;
  --light-medium: #aaaaaa;
  --light: #eeeeee;
  --white: #ffffff;
  
  /* Утилитарные цвета */
  --success: #2a9d8f;
  --warning: #f4a261;
  --danger: #e63946;
  --info: #457b9d;
  
  /* Шрифты */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Merriweather', serif;
  
  /* Размеры */
  --container-width: 1200px;
  --gutter: 30px;
  --card-radius: 8px;
  --button-radius: 5px;
  
  /* Тени */
  --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 10px 20px rgba(0,0,0,0.15);
  
  /* Анимации */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ======= Базовые стили ======= */
html {
  scroll-behavior: smooth;
}

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

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

p {
  margin-bottom: 1.5rem;
  color: var(--medium-dark);
}

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

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

.section {
  padding: 5rem 1.5rem;
  position: relative;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======= Навигация ======= */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
}

.navbar-brand .title {
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: 1px;
}

.navbar-item {
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

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

.navbar-burger:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.navbar.is-fixed-top {
  padding: 0.5rem 0;
}

/* ======= Кнопки ======= */
.button {
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--button-radius);
  transition: all var(--transition-fast);
}

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

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

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

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

.button.is-medium {
  padding: 1rem 1.75rem;
  height: auto;
  font-size: 1rem;
}

.button:focus {
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.25);
}

/* ======= Hero секция ======= */
.hero {
  position: relative;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  transition: background-position 0.5s ease;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65));
  z-index: 0;
}

.hero-body {
  z-index: 1;
  position: relative;
}

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

.hero .title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero .subtitle {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero .button {
  margin-right: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}

/* Параллакс эффект для Hero */
@media (min-width: 769px) {
  .hero {
    background-attachment: fixed;
  }
}

/* ======= Mission секция ======= */
.mission-section {
  background-color: var(--white);
}

.mission-content {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--primary-color);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

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

/* ======= Team секция ======= */
.team-section {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
  color: var(--white);
}

.team-section .title {
  position: relative;
  z-index: 1;
}

.card {
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--white);
}

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

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

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

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

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

.card .title {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.card .subtitle {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ======= Vacancies секция ======= */
.vacancies-section {
  background-color: var(--light);
}

.vacancy-cards .card {
  margin-bottom: 1.5rem;
  border-top: 4px solid var(--primary-color);
}

/* ======= Events секция ======= */
.events-section {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
}

.events-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
  z-index: 0;
}

.events-section .container {
  position: relative;
  z-index: 1;
}

.event-card {
  height: 100%;
  border-top: 4px solid var(--tertiary-color);
}

.event-card .title {
  color: var(--tertiary-color);
}

.event-card .subtitle {
  color: var(--medium);
  font-style: italic;
}

/* ======= Awards секция ======= */
.awards-section {
  background-color: var(--white);
}

.award-card {
  text-align: center;
  border-top: 4px solid var(--secondary-color);
}

.award-card .title {
  color: var(--secondary-color);
}

.award-card .subtitle {
  font-style: italic;
  color: var(--medium);
}

/* ======= Resources секция ======= */
.resources-section {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
}

.resources-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  z-index: 0;
}

.resources-section .container {
  position: relative;
  z-index: 1;
}

.resource-card {
  height: 100%;
  border-top: 4px solid var(--info);
}

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

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

.resource-links a {
  display: block;
  padding: 0.5rem 0;
  color: var(--info);
  transition: all var(--transition-fast);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.resource-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* ======= News секция ======= */
.news-section {
  background-color: var(--light);
}

.news-card {
  height: 100%;
  border-top: 4px solid var(--danger);
}

.news-card .title {
  color: var(--danger);
}

.news-card .subtitle {
  font-style: italic;
  color: var(--medium);
}

/* ======= Blog секция ======= */
.blog-section {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
}

.blog-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  z-index: 0;
}

.blog-section .container {
  position: relative;
  z-index: 1;
}

.blog-card {
  height: 100%;
  border-top: 4px solid var(--tertiary-color);
}

.blog-card .title {
  color: var(--tertiary-color);
}

.blog-card .subtitle {
  font-style: italic;
  color: var(--medium);
}

/* ======= Testimonials секция ======= */
.testimonials-section {
  background-color: var(--white);
}

.testimonial-card {
  height: 100%;
  text-align: center;
  border-top: 4px solid var(--primary-color);
}

.testimonial-card .media-content {
  text-align: center;
}

.testimonial-card .title {
  color: var(--primary-color);
}

.testimonial-card .subtitle {
  color: var(--medium);
}

.testimonial-card .content {
  font-style: italic;
}

/* ======= Contact секция ======= */
.contact-section {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
  z-index: 0;
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

.contact-card,
.contact-form-card {
  height: 100%;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-family: var(--heading-font);
}

.map-container {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-form-card .label {
  color: var(--dark);
  font-family: var(--heading-font);
  font-weight: 600;
}

.input, .textarea, .select select {
  border-radius: var(--card-radius);
  border: 2px solid var(--light-medium);
  padding: 0.75rem;
  transition: all var(--transition-fast);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.25);
}

/* ======= Footer ======= */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 4rem 1.5rem 2rem;
}

.footer .title {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--light-medium);
}

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

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

.footer-links a {
  color: var(--light-medium);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-color);
}

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

.social-links a {
  color: var(--light-medium);
  transition: all var(--transition-fast);
  text-decoration: none;
  font-family: var(--heading-font);
  font-weight: 600;
}

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

.newsletter .title {
  margin-bottom: 1rem;
}

/* ======= Success Page ======= */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--light);
  text-align: center;
}

.success-content {
  max-width: 600px;
  padding: 3rem;
  background-color: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-lg);
}

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

/* ======= Privacy & Terms Pages ======= */
.privacy-page,
.terms-page {
  padding-top: 100px;
  background-color: var(--white);
}

.privacy-content,
.terms-content {
  padding: 3rem;
  background-color: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
}

/* ======= Cookies Popup ======= */
#cookie-consent {
  background-color: rgba(34, 34, 34, 0.95) !important;
  color: var(--white) !important;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

#accept-cookies {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  font-family: var(--heading-font);
  font-weight: 600;
  transition: all var(--transition-fast);
}

#accept-cookies:hover {
  background-color: var(--primary-dark) !important;
  transform: translateY(-2px);
}

/* ======= Микроанимации ======= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.slide-up {
  animation: slideUp 0.5s ease forwards;
}

.pulse {
  animation: pulse 2s infinite;
}

/* Hover эффекты для кнопок */
.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ======= Медиа-запросы ======= */
@media screen and (max-width: 1023px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 4rem 1rem;
  }
}

.select select:not([multiple]) {
  height: max-content;
}
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2rem;
  }

  .hero-body {
    padding: 80px 0 60px;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }

  .card-content {
    padding: 0;
  }
  
  .section {
    padding: 3rem 0.75rem;
  }
  
  .mission-content,
  .contact-card,
  .contact-form-card {
    padding: 1.5rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
}

/* Дополнительные утилиты */
.has-text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.has-bg-shadow {
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

/* Ретро элементы */
.retro-border {
  border: 2px solid var(--dark);
  box-shadow: 4px 4px 0 var(--dark);
}

.retro-text {
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Улучшенные "Читать далее" ссылки */
a.read-more {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-top: 1rem;
  position: relative;
  padding-right: 1.5rem;
  transition: all var(--transition-fast);
}

a.read-more:after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-fast);
}

a.read-more:hover {
  color: var(--primary-dark);
  padding-right: 1.75rem;
}

a.read-more:hover:after {
  transform: translate(5px, -50%);
}

.image.is-4by3,
.image.is-16by9 {
  width: 100%;
}

.title:not(.is-spaced)+.subtitle {
  margin-top: 0 !important;
}

.navbar-end {
  flex-wrap: wrap;

}

.navbar-menu {
  flex-shrink: unset;
}

.terms-container {
  margin-top: 60px;
}