:root {
  /* Триадная цветовая схема */
  --primary-color: #ff6b6b; /* Основной цвет - яркий коралловый */
  --secondary-color: #4ecdc4; /* Вторичный цвет - бирюзовый */
  --tertiary-color: #ffd166; /* Третичный цвет - янтарный */
  
  /* Оттенки и дополнительные цвета */
  --primary-dark: #e05a5a;
  --secondary-dark: #3ba39b;
  --tertiary-dark: #e0b950;
  
  /* Нейтральные цвета */
  --dark: #2d3436;
  --dark-medium: #636e72;
  --medium: #b2bec3;
  --light-medium: #dfe6e9;
  --light: #f5f6fa;
  
  /* Типографика */
  --heading-font: 'Raleway', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  
  /* Радиусы */
  --border-radius-small: 8px;
  --border-radius-medium: 15px;
  --border-radius-large: 25px;
  --border-radius-round: 50px;
  
  /* Тени */
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.15);
  
  /* Переходы */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* Общие стили */
body {
  font-family: var(--body-font);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.title.is-2, .title.is-3 {
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.title.is-2::after, .title.is-3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--primary-color);
  border-radius: var(--border-radius-small);
}

.subtitle {
  color: var(--dark-medium);
  margin-bottom: 2rem;
}

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

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

.section {
  padding: 5rem 1.5rem;
}

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

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

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

.card-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  text-align: center;
}

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

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

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

.image-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: var(--border-radius-medium);
  margin-bottom: 1.5rem;
}

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

/* Стили для кнопок (глобальные) */
.button {
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.75em 1.5em;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

.button.is-outlined.is-light {
  border-color: white;
  color: white;
}

.button.is-outlined.is-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

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

/* Анимации появления при прокрутке */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Биоморфные формы */
.bio-shape-container {
  position: relative;
  padding: 2rem;
  border-radius: var(--border-radius-large);
  overflow: hidden;
}

.bio-shape-container::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 107, 107, 0.1);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: -1;
  animation: morph 8s ease-in-out infinite;
}

.bio-shape-container::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(78, 205, 196, 0.1);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: -1;
  animation: morph 8s ease-in-out infinite alternate-reverse;
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  25% {
    border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
  }
  50% {
    border-radius: 30% 70% 70% 30% / 50% 60% 30% 60%;
  }
  75% {
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
  }
  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
}

/* Навигация */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-fast);
  background-color: transparent !important;
}

.navbar.is-scrolled {
  background-color: white !important;
  box-shadow: var(--shadow-light);
}

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

.navbar-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar-item:hover::after {
  width: 100%;
  left: 0;
}

/* Мобильное меню */
.navbar-burger {
  color: var(--dark);
}

.navbar-burger span {
  background-color: currentColor;
}

/* Hero секция */
.hero {
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: 8rem 1.5rem;
}

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

/* История */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: var(--medium);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 30px;
  position: relative;
  margin-bottom: 2rem;
  width: 50%;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 30px;
  padding-right: 0;
  left: 50%;
}

.timeline-marker {
  position: absolute;
  top: 15px;
  right: -7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid white;
  box-shadow: var(--shadow-light);
}

.timeline-item:nth-child(even) .timeline-marker {
  right: auto;
  left: -7px;
}

.timeline-content {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
}

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

/* Сервисы */
.service-card .card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card .button {
  align-self: flex-start;
  margin-top: auto;
}

/* Мастер-классы */
.workshop-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.workshop-card .card-image {
  height: 250px;
}

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

.workshop-card .button {
  align-self: flex-start;
  margin-top: auto;
}

/* Партнеры */
.partner-card {
  text-align: center;
  height: 100%;
}

.partner-card .card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Ресурсы */
.resource-card {
  height: 100%;
  background-color: white;
  transition: var(--transition-medium);
}

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

.resource-card ul {
  padding-left: 1rem;
}

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

/* Пресса */
.press-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

/* Контактная форма */
.contact-form-card, .contact-info-card {
  height: 100%;
}

.input, .textarea, .select select {
  border-radius: var(--border-radius-small);
  transition: var(--transition-fast);
  border: 2px solid var(--light-medium);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.label {
  color: var(--dark);
  font-weight: 600;
}

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

.contact-item h4 {
  margin-bottom: 0.5rem;
}

/* Футер */
.footer {
  background-color: var(--dark);
  padding: 4rem 1.5rem 2rem;
  color: white;
}

.footer .title {
  color: white;
}

.footer-divider {
  margin: 2rem 0;
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

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

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

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Cookie Consent */
#cookieConsent {
  border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
  box-shadow: var(--shadow-heavy);
}

#acceptCookies {
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

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

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

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

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

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

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.legal-container h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.legal-container p {
  margin-bottom: 1.5rem;
}

/* Медиа-запросы */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: 6rem 1.5rem;
  }
  
  .title.is-1 {
    font-size: 2.5rem !important;
  }
  
  .title.is-2 {
    font-size: 2rem !important;
  }
  
  .title.is-3 {
    font-size: 1.5rem !important;
  }
  
  .section {
    padding: 3rem 1.5rem;
  }
  
  .timeline-container::before {
    left: 0;
  }
  
  .timeline-item, .timeline-item:nth-child(even) {
    width: 100%;
    padding-left: 40px;
    padding-right: 0;
    left: 0;
  }
  
  .timeline-marker, .timeline-item:nth-child(even) .timeline-marker {
    left: 0;
    right: auto;
  }
  
  .bio-shape-container::before, .bio-shape-container::after {
    width: 150px;
    height: 150px;
  }
}

@media screen and (max-width: 480px) {
  .hero-body {
    padding: 4rem 1rem;
  }
  
  .title.is-1 {
    font-size: 2rem !important;
  }
  
  .title.is-2 {
    font-size: 1.75rem !important;
  }
  
  .buttons .button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Анимации при наведении для ссылок "Читать далее" */
.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  padding-right: 25px;
  transition: var(--transition-fast);
}

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

.read-more:hover {
  color: var(--primary-dark);
  padding-right: 30px;
}

.read-more:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Переключатели (Switches) */
.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(--medium);
  transition: var(--transition-fast);
  border-radius: 34px;
}

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

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

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

/* Анимированные иконки */
.animated-icon {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 50px;
  margin: 1rem;
  transition: var(--transition-medium);
}

.animated-icon:hover {
  transform: scale(1.1);
}

/* Обеспечение высокого контраста текста на изображениях */
[style*="background-image"] {
  position: relative;
}

[style*="background-image"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
  z-index: 1;
}

[style*="background-image"] > * {
  position: relative;
  z-index: 2;
}

/* Стили для успешной отправки формы */
.success-message {
  text-align: center;
  padding: 3rem;
  background-color: white;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
  max-width: 600px;
  margin: 0 auto;
}

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

/* Дополнительные стили для карточек с изображениями */
.card .card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card .card-image img {
  display: block;
  margin: 0 auto;
}

/* Стили для модальных окон */
.modal-content {
  background-color: white;
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
}

.modal-header {
  padding: 1.5rem;
  background-color: var(--light);
  border-bottom: 1px solid var(--light-medium);
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.5rem;
  background-color: var(--light);
  border-top: 1px solid var(--light-medium);
  display: flex;
  justify-content: flex-end;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-medium);
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--dark);
}