:root {
  /* Основные цвета */
  --primary-color: #3A506B;
  --primary-dark: #253447;
  --primary-light: #4F6E8D;
  --secondary-color: #5B5F97;
  --accent-color: #EB5E55;
  --accent-light: #F38375;
  
  /* Нейтральные цвета */
  --neutral-100: #FFFFFF;
  --neutral-200: #F5F5F5;
  --neutral-300: #E0E0E0;
  --neutral-400: #BDBDBD;
  --neutral-500: #9E9E9E;
  --neutral-600: #757575;
  --neutral-700: #616161;
  --neutral-800: #424242;
  --neutral-900: #212121;
  
  /* Тени для неоморфизма */
  --neomorph-light: rgba(255, 255, 255, 0.8);
  --neomorph-shadow: rgba(0, 0, 0, 0.15);
  
  /* Радиусы скругления */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Анимации */
  --transition-slow: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --transition-medium: 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --transition-fast: 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

img {
  object-fit: cover;
}

/* Основные стили */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--neutral-800);
  background-color: var(--neutral-200);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--neutral-900);
}

p {
  margin-bottom: 1.5rem;
  color: var(--neutral-800);
}

/* Неоморфические стили */
.neomorph-card {
  border-radius: var(--radius-md);
  background: var(--neutral-200);
  box-shadow: 
    8px 8px 16px var(--neomorph-shadow),
    -8px -8px 16px var(--neomorph-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  overflow: hidden;
}

.neomorph-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    12px 12px 20px var(--neomorph-shadow),
    -12px -12px 20px var(--neomorph-light);
}

.neomorph-button {
  border-radius: var(--radius-sm);
  background: var(--primary-color);
  color: var(--neutral-100);
  box-shadow: 
    4px 4px 8px var(--neomorph-shadow),
    -4px -4px 8px var(--neomorph-light);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
  font-weight: 600;
}

.neomorph-button:hover, .neomorph-button:focus {
  transform: translateY(-2px);
  box-shadow: 
    6px 6px 10px var(--neomorph-shadow),
    -6px -6px 10px var(--neomorph-light);
  color: var(--neutral-100) !important;
}

.neomorph-button:active {
  transform: translateY(1px);
  box-shadow: 
    2px 2px 5px var(--neomorph-shadow),
    -2px -2px 5px var(--neomorph-light);
}

.neomorph-input, .neomorph-textarea, .neomorph-select select {
  border-radius: var(--radius-sm);
  background: var(--neutral-200);
  border: 1px solid var(--neutral-300);
  box-shadow: 
    inset 4px 4px 8px var(--neomorph-shadow),
    inset -4px -4px 8px var(--neomorph-light);
  transition: box-shadow var(--transition-fast);
}

.neomorph-input:focus, .neomorph-textarea:focus, .neomorph-select select:focus {
  box-shadow: 
    inset 6px 6px 10px var(--neomorph-shadow),
    inset -6px -6px 10px var(--neomorph-light);
  border-color: var(--primary-color);
}

/* Статистические виджеты */
.statistics-widget {
  text-align: center;
  padding: 2rem;
}

.statistics-widget .title {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.statistics-widget .subtitle {
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Кнопки */
.button {
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color 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(--neutral-100);
  color: var(--primary-color);
}

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

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

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

/* Переключатели */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--neutral-400);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--neutral-200);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 0.5rem 0;
}

.navbar-item {
  font-weight: 500;
  color: var(--neutral-700);
  transition: color var(--transition-fast);
}

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

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

@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: var(--neutral-200);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
}

/* Hero Section */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 4rem;
}

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

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

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

/* Section Styles */
.section {
  padding: 5rem 1.5rem;
}

.section:nth-of-type(even) {
  background-color: var(--neutral-200);
}

.section:nth-of-type(odd) {
  background-color: var(--neutral-100);
}

.section .title.is-2 {
  position: relative;
  margin-bottom: 3rem;
  color: var(--primary-dark);
}

.section .title.is-2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* About Us */
#about .content {
  padding: 2rem;
}

/* Process Cards */
#process .neomorph-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#process .title.is-4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
}

#process .title.is-4::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Statistics Section */
#statistics .neomorph-card {
  transition: transform var(--transition-medium);
  border-radius: var(--radius-lg);
}

#statistics .neomorph-card:hover {
  transform: translateY(-10px) scale(1.02);
}

/* Instructors Section */
#instructors .card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#instructors .card-image {
  overflow: hidden;
}

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

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

#instructors .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Success Stories */
#success .card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#success .card-image {
  overflow: hidden;
  height: 225px;
}

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

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

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

/* Testimonials */
#testimonials .card {
  height: 100%;
}

#testimonials .media-left {
  margin-right: 1.5rem;
}

#testimonials .media-left img {
  border-radius: 50%;
  object-fit: cover;
  width: 48px;
  height: 48px;
}

/* Press Section */
#press .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#press .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#press .button {
  align-self: flex-start;
  margin-top: auto;
}

/* Contact Form */
#contact .neomorph-card {
  padding: 2rem;
}

#contact .label {
  color: var(--neutral-700);
  font-weight: 500;
}

#contact .button {
  margin-top: 1rem;
}

/* Footer */
.footer {
  background-color: var(--neutral-800);
  color: var(--neutral-300);
  padding: 4rem 1.5rem;
}

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

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

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

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

.footer a:hover {
  color: var(--neutral-100);
  text-decoration: underline;
}

/* Images */
.image {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.image img {
  transition: transform var(--transition-medium);
}

.image:hover img {
  transform: scale(1.03);
}

/* Card Images */
.card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Additional Pages */
.privacy-page, .terms-page {
  padding-top: 120px;
  padding-bottom: 4rem;
}

.privacy-page .container, .terms-page .container {
  max-width: 800px;
}

.privacy-page h1, .terms-page h1 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.privacy-page h2, .terms-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

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

.success-page .neomorph-card {
  max-width: 600px;
  padding: 3rem;
}

.success-page .title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

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

/* Animation Classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

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

/* Utility Classes */
.has-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.has-background-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--neutral-100);
}

.is-centered-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

/* Read More Links */
.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-right: 1.5rem;
  transition: color var(--transition-fast);
}

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

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

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

/* Media Queries */
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  
  .section .title.is-2 {
    font-size: 1.75rem;
  }
  
  .hero .title.is-1 {
    font-size: 2.5rem;
  }
  
  .hero .subtitle.is-3 {
    font-size: 1.5rem;
  }
  
  .statistics-widget .title {
    font-size: 2.5rem;
  }
  
  .column {
    margin-bottom: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .hero .title.is-1 {
    font-size: 2rem;
  }
  
  .hero .subtitle.is-3 {
    font-size: 1.25rem;
  }
  
  .section .title.is-2 {
    font-size: 1.5rem;
  }
  
  .statistics-widget .title {
    font-size: 2rem;
  }
  
  .neomorph-card {
    padding: 1.5rem !important;
  }
}

/* Cookie Consent Styles */
#cookieConsent {
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 20px;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

#acceptCookies {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

#acceptCookies:hover {
  background-color: var(--accent-light);
}