:root {
  /* Color Palette - Монохромная схема с акцентом */
  --primary-color: #2e50b1;
  --primary-light: #4a7aff;
  --primary-dark: #1e3289;
  --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  
  --secondary-color: #f7f7f9;
  --secondary-dark: #e6e6e6;
  --secondary-light: #ffffff;
  
  --text-dark: #2c2c2c;
  --text-medium: #555555;
  --text-light: #f7f7f9;
  
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-round: 50%;
  
  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  
  /* Animation Speed */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Card Heights */
  --card-image-height: 240px;
  --instructor-image-height: 300px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--secondary-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

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

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

p {
  margin-bottom: 1rem;
}

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

ul {
  list-style-position: inside;
  margin-bottom: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1.5em;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-transform: uppercase;
}

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

.button.is-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.button.is-light:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button.is-link {
  background-color: transparent;
  color: var(--primary-color);
  text-decoration: underline;
  padding: 0.5em 0;
}

.button.is-link:hover {
  color: var(--primary-light);
  transform: translateY(-2px);
}

.button.is-link.is-outlined {
  text-decoration: none;
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-sm);
  padding: 0.5em 1em;
}

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

.button.is-fullwidth {
  width: 100%;
}

.button.is-large {
  font-size: 1.2rem;
  padding: 0.8em 2em;
}

/* Navbar */
.navbar {
  background-color: white;
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 0;
  transition: all var(--transition-normal);
  z-index: 30;
}

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

.navbar-brand h1 {
  color: var(--primary-color);
  margin: 0;
}

.navbar-item {
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
}

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

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

.navbar-burger {
  display: none;
  cursor: pointer;
  margin-left: auto;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.hero-body {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) 0;
  min-height: 80vh;
}

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

.hero .buttons {
  margin-top: var(--spacing-md);
}

/* Statistics Section */
.statistics-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--secondary-light);
}

.statistic-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
  text-align: center;
  transition: transform var(--transition-normal);
  height: 100%;
}

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

.statistic-value {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.statistic-label {
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: var(--spacing-sm);
}

.progress-container {
  width: 100%;
  height: 6px;
  background-color: var(--secondary-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  background-color: var(--primary-color);
  transition: width 1.5s ease-in-out;
}

/* Methodology Section */
.methodology-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--secondary-color);
}

.methodology-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.methodology-card .card-image {
  overflow: hidden;
}

.methodology-card .image-container {
  height: var(--card-image-height);
  overflow: hidden;
}

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

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

.methodology-card .card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.progress-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-xs);
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-round);
  background-color: var(--secondary-dark);
  transition: background-color var(--transition-fast);
}

.progress-dot.active {
  background-color: var(--primary-color);
}

.progress-text {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Instructors Section */
.instructors-section {
  padding: var(--spacing-xl) 0;
  background-color: white;
}

.instructor-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.instructor-card .card-image {
  overflow: hidden;
}

.instructor-card .image-container {
  height: var(--instructor-image-height);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.instructor-card .card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  text-align: center;
}

/* History Section */
.history-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--secondary-color);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 20px;
  margin-left: -2px;
}

.timeline-item {
  position: relative;
  padding: 10px 40px;
  margin-bottom: var(--spacing-md);
}

.timeline-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: white;
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  z-index: 1;
  left: 0;
  top: 15px;
}

.timeline-content {
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.timeline-content:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

/* Community Section */
.community-section {
  padding: var(--spacing-xl) 0;
  background-color: white;
}

.community-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all var(--transition-normal);
}

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

.community-card .card-image {
  overflow: hidden;
}

.community-card .image-container {
  height: var(--card-image-height);
  overflow: hidden;
}

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

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

.community-card .card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
  height: 100%;
  transition: all var(--transition-normal);
}

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

.media {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.media-left {
  margin-right: var(--spacing-sm);
}

.is-rounded {
  border-radius: var(--radius-round);
}

/* Sustainability Section */
.sustainability-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--secondary-color);
}

.sustainability-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.sustainability-card .card-image {
  overflow: hidden;
}

.sustainability-card .image-container {
  height: 400px;
  overflow: hidden;
}

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

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

.sustainability-card .card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
}

.progress-circle {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto var(--spacing-md);
}

.progress-circle svg {
  transform: rotate(-90deg);
}

.progress-circle .progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.progress-label {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* Resources Section */
.resources-section {
  padding: var(--spacing-xl) 0;
  background-color: white;
}

.resource-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all var(--transition-normal);
}

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

.resource-card .card-image {
  overflow: hidden;
}

.resource-card .image-container {
  height: var(--card-image-height);
  overflow: hidden;
}

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

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

.resource-card .card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Contact Section */
.contact-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--secondary-color);
}

.contact-form-card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.contact-form-card .card-content {
  padding: var(--spacing-md);
}

.field {
  margin-bottom: var(--spacing-sm);
}

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

.control {
  position: relative;
}

.input, .textarea, .select select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--secondary-dark);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  transition: border-color var(--transition-fast);
}

.input:focus, .textarea:focus, .select select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(46, 80, 177, 0.2);
}

.select {
  display: block;
  position: relative;
}

.select::after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--text-medium);
  pointer-events: none;
  font-size: 0.8rem;
}

.select select {
  appearance: none;
  padding-right: 2.5rem;
}

.checkbox {
  display: flex;
  align-items: center;
}

.checkbox input {
  margin-right: 0.5rem;
}

.contact-details {
  margin-top: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-xs);
}

.contact-item .icon {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer .title {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.footer p {
  color: var(--secondary-dark);
}

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

.footer ul li {
  margin-bottom: var(--spacing-xs);
}

.footer a {
  color: var(--secondary-dark);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: white;
}

.social-links {
  margin-top: var(--spacing-md);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.social-icons a {
  color: var(--secondary-dark);
  transition: color var(--transition-fast);
}

.social-icons a:hover {
  color: white;
  text-decoration: underline;
}

.copyright {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Utilities */
.mt-4 {
  margin-top: 1rem;
}

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

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

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

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

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

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.success-content {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

/* Privacy and Terms Pages */
.privacy-content,
.terms-content {
  padding-top: 100px;
  padding-bottom: var(--spacing-xl);
}

/* Animation Effects */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
  }

  .navbar-menu.is-active {
    display: block;
  }

  .navbar-burger {
    display: block;
  }
  
  .navbar-end {
    flex-direction: column;
  }
  
  .navbar-item {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--secondary-dark);
  }
  
  .navbar-item:last-child {
    border-bottom: none;
  }
}

@media screen and (max-width: 768px) {
  .hero-body {
    min-height: 60vh;
  }
  
  .title.is-1 {
    font-size: 2.5rem;
  }
  
  .subtitle.is-3 {
    font-size: 1.5rem;
  }
  
  .statistic-value {
    font-size: 2.5rem;
  }
  
  .timeline::after {
    left: 15px;
  }
  
  .timeline-marker {
    left: 0;
  }
}

/* Script-related styles */
.navbar-burger {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  height: 3.25rem;
  position: relative;
  width: 3.25rem;
  margin-left: auto;
}

.navbar-burger span {
  background-color: var(--text-dark);
  display: block;
  height: 2px;
  width: 20px;
  left: calc(50% - 10px);
  position: absolute;
  transition: all var(--transition-normal);
}

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

.navbar-burger span:nth-child(2) {
  top: calc(50% - 1px);
}

.navbar-burger span:nth-child(3) {
  top: calc(50% + 6px);
}

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

/* Image containers for centering */
.image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0 auto;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

/* Card flex layout fixes */
.card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

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

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

/* Prevent image overflow */
.card img, .item img, .testimonial img, .team-member img {
  max-width: 100%;
  margin: 0 auto;
}