:root {
  /* Цветовая палитра в пастельных тонах */
  --primary: #6b9080;
  --primary-light: #a4c3b2;
  --primary-dark: #4a6855;
  --secondary: #cce3de;
  --accent: #f6bd60;
  --accent-light: #f8d89c;
  --accent-dark: #e29e2e;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
  --info: #2196f3;

  /* Типографика */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Merriweather', serif;
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Размеры */
  --border-radius: 8px;
  --container-padding: 1.5rem;
}

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

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

h1, h2, h3, h4, h5, h6,
.title, .subtitle {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

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

/* Утилиты */
.h-100 {
  height: 100%;
}

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

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

/* Навигация */
.navbar {
  background-color: var(--background-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.navbar-brand .title {
  font-weight: 700;
  color: var(--primary);
}

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

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

.navbar-burger {
  margin-top: auto;
  margin-bottom: auto;
}

@media screen and (max-width: 1023px) {
  .navbar-menu.is-active {
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 30;
  }
}

/* Hero секция */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

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

.hero-body {
  display: flex;
  align-items: center;
  z-index: 2;
}

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

.hero .button {
  margin-top: 1.5rem;
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero .button:hover {
  transform: scale(1.05);
}

/* Кнопки */
.button {
  font-family: var(--heading-font);
  font-weight: 600;
  border: none;
  transition: all var(--transition-normal);
}

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

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

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

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

.pulse-button {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(107, 144, 128, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(107, 144, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(107, 144, 128, 0);
  }
}

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

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

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

.image-container {
  width: 100%;
  height: 0;
  padding-bottom: 66.67%; /* Соотношение сторон 3:2 */
  position: relative;
  overflow: hidden;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

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

.card .title {
  margin-bottom: 0.75rem;
}

.card .content {
  flex: 1;
}

/* Timeline */
.timeline {
  margin-top: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: var(--primary-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 30px;
}

.timeline-marker {
  position: absolute;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--background-white);
  top: 5px;
}

.timeline-content {
  position: relative;
}

.timeline-content .heading {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Vision Section */
#vision {
  background-color: var(--background-light);
}

#vision .content {
  font-size: 1.1rem;
}

/* Sustainability Section */
#sustainability .card {
  margin-bottom: 2rem;
}

/* Success Stories Section */
#success .card {
  transition: transform var(--transition-normal);
}

#success .card:hover {
  transform: translateY(-5px);
}

/* Insights Section */
#insights .statistic-widget {
  background-color: var(--secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
}

#insights .statistic-widget .heading {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

#insights .statistic-widget .title {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-top: 0;
}

/* External Resources Section */
#resources .card {
  text-align: center;
}

#resources .button {
  margin-top: auto;
}

/* Awards Section */
.award-card .media-left .image {
  background-color: var(--background-light);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonial-card .media-left .image.is-64x64 {
  border: 3px solid var(--primary-light);
  overflow: hidden;
}

.custom-slider {
  width: 100%;
  position: relative;
}

/* Gallery Section */
#gallery .card {
  margin-bottom: 2rem;
  text-align: center;
}

#gallery .card-content {
  padding: 1rem;
}

#gallery .title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Team Section */
.team-card {
  text-align: center;
}

.team-card .card-image {
  padding-top: 1.5rem;
}

.team-card .image-container {
  width: 100px !important;
  height: 100px !important;
  padding-bottom: 100%;
  border-radius: 50%;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
}

.team-card .image-container img {
  width: 100%;
  height: 100%;
}

.team-card .card-content {
  padding-top: 1rem;
}

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

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

/* Specialists Section (Instructors) */
.specialist-card .image {
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-light);
}

.specialist-card .title {
  margin-bottom: 0.25rem;
}

.specialist-card .subtitle {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.specialist-card ul {
  list-style: disc;
  margin-left: 1.5rem;
}

.specialist-card li {
  margin-bottom: 0.5rem;
}

/* Contact Section */
#contact .card {
  height: 100%;
}

#contact .input,
#contact .textarea {
  border-color: var(--secondary);
  box-shadow: none;
  transition: border-color var(--transition-fast);
}

#contact .input:focus,
#contact .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-light);
}

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

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 200px;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.footer .title,
.footer h3 {
  color: var(--text-light);
}

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

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

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

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer .social-links a {
  display: inline-block;
  margin-right: 1rem;
  font-weight: 600;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-content {
  max-width: 600px;
}

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

/* Privacy & Terms Pages */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

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

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.5rem !important;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .timeline::before {
    left: 5px;
  }
  
  .timeline-marker {
    width: 12px;
    height: 12px;
  }
  
  .team-card .image-container {
    width: 150px;
    height: 150px;
  }
}

@media screen and (max-width: 480px) {
  .hero .title {
    font-size: 2rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.2rem !important;
  }
  
  .section {
    padding: 2rem 0.75rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .timeline-content .heading {
    font-size: 1rem;
  }
  
  .specialist-card .media {
    flex-direction: column;
    text-align: center;
  }
  
  .specialist-card .media-left {
    margin: 0 auto 1rem;
  }
  
  .specialist-card .media-content {
    margin-left: 0;
  }
  
  .award-card .media {
    flex-direction: column;
    text-align: center;
  }
  
  .award-card .media-left {
    margin: 0 auto 1rem;
  }
  
  .award-card .media-content {
    margin-left: 0;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Custom ScrollReveal styles will be applied via JS */
.reveal {
  opacity: 0;
}

/* Special button styles */
.read-more {
  display: inline-block;
  color: var(--primary);
  font-family: var(--heading-font);
  font-weight: 600;
  position: relative;
  padding-right: 1.5rem;
}

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

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

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

/* Адаптивная типографика */
@media screen and (min-width: 769px) {
  html {
    font-size: 16px;
  }
  
  h1, .title.is-1 {
    font-size: 3.5rem;
  }
  
  h2, .title.is-2 {
    font-size: 2.5rem;
  }
  
  h3, .title.is-3 {
    font-size: 2rem;
  }
  
  h4, .title.is-4 {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  h1, .title.is-1 {
    font-size: 2.5rem;
  }
  
  h2, .title.is-2 {
    font-size: 2rem;
  }
  
  h3, .title.is-3 {
    font-size: 1.75rem;
  }
  
  h4, .title.is-4 {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  h1, .title.is-1 {
    font-size: 2rem;
  }
  
  h2, .title.is-2 {
    font-size: 1.75rem;
  }
  
  h3, .title.is-3 {
    font-size: 1.5rem;
  }
  
  h4, .title.is-4 {
    font-size: 1.25rem;
  }
}

.navbar-brand .title {
  color: var(--primary) !important;
}

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