/* CSS Variables */
:root {
  /* Аналоговая цветовая схема */
  --primary-color: #4a7aff;
  --primary-dark: #3762d9;
  --primary-light: #6b8fff;
  --secondary-color: #4a65ff;
  --accent-color: #4a8cff;
  --accent-dark: #3a70cc;
  
  /* Нейтральные цвета */
  --dark: #333333;
  --dark-text: #222222;
  --light: #ffffff;
  --light-gray: #f5f7fa;
  --medium-gray: #e0e5ee;
  --dark-gray: #6c757d;
  
  /* Тени и эффекты */
  --card-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  --btn-shadow: 0 4px 10px rgba(74, 122, 255, 0.25);
  --hover-shadow: 0 8px 30px rgba(74, 122, 255, 0.3);
  --input-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-medium: all 0.3s ease-in-out;
  --transition-slow: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  
  /* Typography */
  --title-font: 'Playfair Display', serif;
  --body-font: 'Source Sans Pro', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-round: 50%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--title-font);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  color: var(--dark-text);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-sm);
}

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

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

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

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

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

.section {
  padding: var(--space-xl) 0;
}

.has-background-light {
  background-color: var(--light-gray);
}

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

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

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

/* Button Styles */
.button {
  display: inline-block;
  font-family: var(--body-font);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-medium);
  text-align: center;
  box-shadow: var(--btn-shadow);
}

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

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

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

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

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

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

.button.is-medium {
  font-size: 1.1rem;
  padding: 0.85rem 1.75rem;
}

.button.is-rounded {
  border-radius: 50px;
}

.buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

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

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

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

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

.navbar-burger span {
  background-color: var(--dark);
  display: block;
  height: 2px;
  width: 25px;
  position: absolute;
  left: calc(50% - 12.5px);
  transition: var(--transition-fast);
}

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

.navbar-menu {
  display: flex;
  flex-grow: 1;
  justify-content: flex-end;
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  margin-top: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--light);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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;
  width: 100%;
}

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

/* Services Section */
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-medium);
  background-color: var(--light);
}

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

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

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

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

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

.card-content .content {
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

/* Progress Steps */
.progress-container {
  margin: var(--space-lg) 0;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-md);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.progress-step::before {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(-50% + 20px);
  width: calc(100% - 40px);
  height: 3px;
  background-color: var(--medium-gray);
  z-index: 1;
}

.progress-step:first-child::before {
  display: none;
}

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

.step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background-color: var(--medium-gray);
  color: var(--light);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  transition: var(--transition-medium);
}

.step-title {
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
}

/* About/History Section */
.image-container {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

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

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background-color: var(--primary-light);
  color: var(--light);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Team/Instructors Section */
.instructor-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-medium);
  background-color: var(--light);
}

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

/* Resources Section */
.resource-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  transition: var(--transition-medium);
  background-color: var(--light);
}

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

/* Press & Media Section */
.media-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  transition: var(--transition-medium);
  background-color: var(--light);
}

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

/* Gallery */
.gallery {
  margin-top: var(--space-md);
}

.gallery .image-container {
  height: 250px;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--light);
  font-size: 2rem;
  cursor: pointer;
}

/* Contact Section */
.info-item {
  margin-bottom: var(--space-md);
}

.info-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark-text);
}

.field {
  margin-bottom: var(--space-md);
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.input,
.textarea,
.select select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-md);
  font-family: var(--body-font);
  font-size: 1rem;
  box-shadow: var(--input-shadow);
  transition: var(--transition-fast);
}

.input:focus,
.textarea:focus,
.select select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 122, 255, 0.25);
}

/* Footer */
.footer {
  padding: var(--space-xl) 0;
  background-color: var(--dark);
  color: var(--light);
}

.footer h3,
.footer h4 {
  color: var(--light);
  margin-bottom: var(--space-md);
}

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

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: var(--medium-gray);
  transition: var(--transition-fast);
}

.footer ul li a:hover {
  color: var(--light);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-links a {
  color: var(--medium-gray);
  transition: var(--transition-fast);
}

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

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: var(--transition-medium);
}

.modal.is-active {
  display: flex;
  opacity: 1;
}

.modal-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: auto;
  background-color: var(--light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transform: scale(0.9);
  transition: var(--transition-medium);
}

.modal.is-active .modal-card {
  transform: scale(1);
}

.modal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--medium-gray);
}

.modal-card-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark-text);
}

.modal-card-body {
  padding: var(--space-md);
  max-height: 70vh;
  overflow-y: auto;
}

.modal-card-foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: var(--light-gray);
  border-top: 1px solid var(--medium-gray);
}

.delete {
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  width: 24px;
  height: 24px;
}

.delete::before,
.delete::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--dark-gray);
  top: 50%;
  left: 0;
}

.delete::before {
  transform: rotate(45deg);
}

.delete::after {
  transform: rotate(-45deg);
}

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

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

/* Pages with static content (privacy, terms) */
.content-page {
  padding-top: 100px; /* Prevents overlap with fixed header */
}

.content-page .container {
  max-width: 800px;
}

/* Cookie Consent */
#cookieConsent {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

#acceptCookies:hover {
  background-color: var(--primary-dark);
}

/* Responsive Styles */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: var(--space-md);
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .navbar-end {
    display: flex;
    flex-direction: column;
  }
  
  .navbar-burger {
    display: block;
  }
  
  .progress-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  
  .progress-step {
    flex-direction: row;
    width: 100%;
    gap: var(--space-sm);
  }
  
  .progress-step::before {
    display: none;
  }
  
  .step-title {
    text-align: left;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .buttons {
    justify-content: center;
  }
  
  .hero {
    text-align: center;
  }
  
  .gallery .image-container {
    height: 200px;
  }
  
  .modal-card {
    width: 95%;
    margin: auto 10px;
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.scale-in {
  animation: scaleIn 0.5s ease-in-out forwards;
}

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

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

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

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

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

.is-fullwidth {
  width: 100%;
}

@media (max-width: 768px) {
  .navbar-brand{
    width: 100%;
  }
}
html,body{
  overflow-x: hidden;
}