:root {
  /* Основные цвета */
  --primary-color: #ff9a8b;
  --primary-dark: #e87e70;
  --secondary-color: #8fc1e3;
  --secondary-dark: #6ca5c8;
  --accent-color: #c5a3ff;
  --accent-dark: #a683e0;

  /* Пастельная палитра */
  --pastel-pink: #ffd1dc;
  --pastel-blue: #c1e3ff;
  --pastel-green: #d0f0c0;
  --pastel-yellow: #fffacd;
  --pastel-lavender: #e6e6fa;

  /* Нейтральные цвета */
  --dark-text: #333333;
  --light-text: #ffffff;
  --medium-text: #555555;
  --border-color: #e0e0e0;
  --background-light: #f9f9f9;
  --background-dark: #222222;

  /* Типографика */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Source Sans Pro', sans-serif;

  /* Размеры и отступы */
  --section-padding: 4rem 2rem;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.section {
  padding: var(--section-padding);
}

.title {
  position: relative;
}

.title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0.5rem auto 2rem;
}

.subtitle {
  color: var(--medium-text);
}

/* Кнопки */
.button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

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

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

.button.is-light {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--dark-text);
  border-color: transparent;
}

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

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.5s ease;
}

.button:hover::before {
  left: 100%;
}

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

/* Header и Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
}

.navbar-item {
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

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

.navbar-item:hover::after {
  width: 80%;
}

.navbar-brand .logo {
  font-family: var(--heading-font);
  font-weight: 700;
}

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

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

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease;
}

.hero p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.4s ease;
}

.hero .buttons {
  animation: fadeInUp 1.6s ease;
}

.scroll-indicator {
  position: relative;
  height: 50px;
  width: 30px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.scroll-indicator span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background-color: var(--light-text);
  transform-origin: center;
  animation: scroll 1.5s ease-out infinite;
}

.scroll-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes scroll {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  80% {
    transform: translate(0, 20px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

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

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

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

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

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

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

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

.service-card .title {
  color: var(--dark-text);
  font-size: 1.5rem;
  text-align: center;
}

.service-card .title::after {
  margin: 0.5rem auto 1rem;
}

.service-card .content {
  color: var(--medium-text);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.progress {
  margin-top: auto;
  height: 0.5rem;
}

.progress.is-primary::-webkit-progress-value {
  background-color: var(--primary-color);
}

.progress.is-primary::-moz-progress-bar {
  background-color: var(--primary-color);
}

/* Gallery Section */
.gallery-section {
  background-color: var(--pastel-lavender);
}

.gallery-card {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.gallery-card .card-image {
  position: relative;
}

.before-after-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.gallery-card .card-content {
  padding: 1.2rem;
  background-color: var(--light-text);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.gallery-card .title::after {
  display: none;
}

/* External Resources Section */
.external-resources {
  background-color: var(--pastel-blue);
}

.resource-card {
  height: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.resource-card .card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.resource-card .title {
  color: var(--dark-text);
}

.resource-card .content {
  color: var(--medium-text);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.resource-card .button {
  margin-top: auto;
}

/* Webinars Section */
.webinars-section {
  background-color: var(--light-text);
}

.webinar-card {
  height: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.webinar-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

.webinar-card .image-container img {
  transition: transform 0.8s ease;
}

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

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

.webinar-card .title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.webinar-card .content {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.webinar-card strong {
  color: var(--primary-color);
}

/* Events Calendar Section */
.events-section {
  background-color: var(--pastel-lavender);
}

.calendar-box, .events-list {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background-color: var(--light-text);
  padding: 1.5rem;
}

.calendar-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
}

.calendar-table th {
  background-color: var(--pastel-pink);
  color: var(--dark-text);
  padding: 0.7rem;
  text-align: center;
  font-weight: 600;
}

.calendar-table td {
  padding: 0.7rem;
  text-align: center;
  position: relative;
  height: 60px;
  vertical-align: middle;
}

.calendar-table td.has-event {
  position: relative;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
}

.event-indicator {
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.events-list {
  height: 100%;
}

.events-list .title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.event-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.event-item:last-child {
  border-bottom: none;
}

.event-date {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.event-title {
  font-family: var(--heading-font);
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.event-description {
  color: var(--medium-text);
  font-size: 0.95rem;
}

/* Success Stories Section */
.success-stories {
  background-color: var(--light-text);
}

.testimonial-card {
  height: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card .card-content {
  padding: 1.5rem;
}

.testimonial-card .media {
  margin-bottom: 1.5rem;
}

.testimonial-card .media-left {
  margin-right: 1rem;
}

.testimonial-card .image.is-64x64 {
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
}

.testimonial-card .image img {
  transition: transform 0.8s ease;
}

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

.testimonial-card .title {
  margin-bottom: 0.2rem;
}

.testimonial-card .subtitle {
  color: var(--medium-text);
  font-size: 0.9rem;
}

.testimonial-card .content {
  margin-bottom: 1rem;
  color: var(--medium-text);
}

.rating {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
  background-color: var(--pastel-green);
}

.contact-form-box, .contact-info-box {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background-color: var(--light-text);
  padding: 2rem;
  height: 100%;
}

.contact-form-box .field {
  margin-bottom: 1.5rem;
}

.contact-form-box .label {
  color: var(--dark-text);
  font-weight: 600;
}

.contact-form-box .input, 
.contact-form-box .textarea, 
.contact-form-box .select select {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-box .input:focus, 
.contact-form-box .textarea:focus, 
.contact-form-box .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.125em rgba(255, 154, 139, 0.25);
}

.contact-info-box .title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  margin-bottom: 1.5rem;
}

.contact-info-item strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--primary-color);
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container img {
  width: 100%;
  height: auto;
  display: block;
}

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

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

.footer .title::after {
  background-color: var(--light-text);
  margin: 0.5rem 0 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

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

.social-links {
  margin-top: 1rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  margin-right: 1rem;
  transition: color 0.3s ease;
}

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

.newsletter-form .input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
}

.newsletter-form .input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.125em rgba(255, 154, 139, 0.25);
}

/* Modal */
.modal-card-head {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.modal-card-title {
  color: var(--light-text);
  font-family: var(--heading-font);
}

.modal-card-body {
  padding: 2rem;
}

.modal-card-body .columns {
  margin-top: 0;
}

.modal-card-body .column {
  padding: 0.75rem;
}

.modal-card-body img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.modal-card-foot {
  background-color: var(--light-text);
  border-top: 1px solid var(--border-color);
}

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

@keyframes morphing {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--pastel-lavender);
}

.success-container {
  max-width: 800px;
  padding: 3rem;
  background-color: var(--light-text);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

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

.success-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.success-message {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--medium-text);
}

/* Content Pages (Privacy, Terms) */
.content-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
}

.content-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.content-page h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page p {
  margin-bottom: 1.5rem;
}

.content-page ul, .content-page ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-page li {
  margin-bottom: 0.5rem;
}

/* Cookie Consent */
#cookie-consent {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#cookie-consent.hidden {
  opacity: 0;
  transform: translateY(100%);
}

#accept-cookies {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#accept-cookies:hover {
  background-color: #45a049 !important;
  transform: scale(1.05);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .title.is-2 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .contact-form-box, .contact-info-box {
    padding: 1.5rem;
  }
  
  .calendar-table th, .calendar-table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  
  .calendar-table td {
    height: 50px;
  }
  
  .footer {
    padding: 3rem 1rem 1.5rem;
  }
  
  .modal-card-body .column {
    padding: 0.5rem;
  }
  
  .modal-card-body img {
    height: 150px;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero .buttons {
    flex-direction: column;
  }
  
  .hero .button {
    margin: 0.5rem 0;
  }
  
  .title.is-2 {
    font-size: 1.5rem;
  }
  
  .subtitle.is-5 {
    font-size: 1rem;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .testimonial-card .media {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-card .media-left {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .testimonial-card .image.is-64x64 {
    margin: 0 auto;
  }
  
  .calendar-table {
    font-size: 0.8rem;
  }
  
  .calendar-table td {
    height: 40px;
  }
  
  .modal-card-foot {
    flex-direction: column;
  }
  
  .modal-card-foot .button {
    width: 100%;
    margin: 0.5rem 0;
  }
}