/* ===== VARIABLES ===== */
:root {
  /* Основная цветовая схема (Раздельно-дополнительная) */
  --primary-color: #3a5cc9;
  --primary-dark: #2a419b;
  --primary-light: #5b78de;
  
  --secondary-color: #e67e22;
  --secondary-dark: #c26a1a;
  --secondary-light: #f39c4d;
  
  --accent-color: #8e44ad;
  --accent-dark: #6c3384;
  --accent-light: #a76cc6;
  
  --neutral-light: #f5f7fa;
  --neutral-medium: #e0e6ed;
  --neutral-dark: #2c3e50;
  
  --success-color: #27ae60;
  --warning-color: #f1c40f;
  --danger-color: #e74c3c;
  
  /* Типографика */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Source Sans Pro', sans-serif;
  
  /* Тени и эффекты */
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  
  /* Радиусы и переходы */
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --transition-speed: 0.3s;
  --transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all var(--transition-speed) var(--transition-bounce);
}

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

/* Контейнеры и секции */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== КОМПОНЕНТЫ ===== */

/* Кнопки */
.button {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) var(--transition-bounce);
  border: none;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: -2;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--transition-bounce);
}

.button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.button.is-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(58, 92, 201, 0.3);
}

.button.is-primary:active {
  transform: translateY(-1px);
}

.button.is-outlined {
  background-color: transparent;
  border: 2px solid currentColor;
}

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

.button.is-outlined.is-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(255, 255, 255, 0.2);
}

.button.is-large {
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

.button.is-fullwidth {
  display: block;
  width: 100%;
}

/* Карточки */
.card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all var(--transition-speed);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s;
}

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

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

.service-card .card-content {
  text-align: center;
}

.service-card .progress-container {
  width: 100%;
  height: 5px;
  background-color: var(--neutral-medium);
  border-radius: 10px;
  margin: 1rem 0;
}

.service-card .progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 10px;
  transition: width 1s var(--transition-bounce);
}

/* Формы */
.input, .textarea, .select select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--neutral-medium);
  border-radius: var(--border-radius);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: all var(--transition-speed);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 92, 201, 0.2);
  outline: none;
}

.field {
  margin-bottom: 1.5rem;
}

.label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ===== СЕКЦИИ САЙТА ===== */

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

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

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

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

.navbar-item {
  margin: 0 1rem;
  position: relative;
  padding: 0.5rem 0;
}

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

.navbar-item:hover::after {
  transform: scaleX(1);
}

.navbar-burger {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-body {
  width: 100%;
  padding: 2rem;
  z-index: 2;
}

.hero .title, .hero .subtitle {
  color: white;
  text-shadow: var(--text-shadow);
}

.hero .title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero .subtitle {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-foot {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  text-align: center;
}

.arrow-down {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.arrow-down:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(5px);
}

/* Services Section */
.services-section {
  padding: 6rem 0;
  background-color: var(--neutral-light);
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 0;
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.testimonial-card {
  padding: 2rem;
  text-align: center;
  height: 100%;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-quote::before,
.testimonial-quote::after {
  content: '"';
  font-family: Georgia, serif;
  font-size: 3rem;
  position: absolute;
  color: var(--primary-light);
  opacity: 0.3;
}

.testimonial-quote::before {
  top: -20px;
  left: -10px;
}

.testimonial-quote::after {
  bottom: -40px;
  right: -10px;
  transform: rotate(180deg);
}

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

/* Success Stories Section */
.success-stories-section {
  padding: 6rem 0;
  background-color: white;
}

.success-card {
  margin-bottom: 2rem;
  height: 100%;
}

.success-card .card-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.success-card .card-content ul li {
  margin-bottom: 0.5rem;
}

/* Recursos Externos Section */
.recursos-externos-section {
  padding: 6rem 0;
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.recurso-card {
  padding: 2rem;
  text-align: center;
  height: 100%;
}

/* Accolades Section */
.accolades-section {
  padding: 6rem 0;
  background-color: var(--neutral-light);
}

.accolade-card {
  text-align: center;
  height: 100%;
}

/* Gallery Section */
.gallery-section {
  padding: 6rem 0;
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  transform: translateY(100%);
  transition: transform 0.3s var(--transition-bounce);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Events Section */
.events-section {
  padding: 6rem 0;
  background-color: white;
}

.event-card {
  margin-bottom: 2rem;
  height: 100%;
  position: relative;
}

.event-date {
  position: absolute;
  top: -15px;
  right: 20px;
  z-index: 10;
}

.event-details {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--neutral-light);
  border-radius: var(--border-radius);
}

.event-details p {
  margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
  padding: 6rem 0;
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.faq-container {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1.5rem;
}

.faq-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 1rem 0;
}

.faq-question .icon {
  font-size: 1.2rem;
  transition: transform 0.3s var(--transition-bounce);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--transition-bounce);
  padding: 0 1rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background-color: var(--neutral-light);
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item .icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: rgba(58, 92, 201, 0.1);
  border-radius: 50%;
}

.contact-map {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.contact-form-container {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
}

/* Footer */
.footer {
  background-color: var(--neutral-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer .title {
  color: white;
}

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

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

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

.footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-speed);
}

.footer ul li a:hover {
  color: white;
  padding-left: 5px;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  transition: all var(--transition-speed) var(--transition-bounce);
}

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

.newsletter {
  margin-top: 2rem;
}

.newsletter-form .field {
  margin-bottom: 0;
}

hr {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* 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 {
  font-size: 5rem;
  color: var(--success-color);
  margin-bottom: 2rem;
}

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

.privacy-content, .terms-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

/* Медиа-запросы */
@media (max-width: 1024px) {
  .hero .title {
    font-size: 3rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .navbar-item {
    display: block;
    margin: 0.5rem 0;
    padding: 0.5rem;
  }
  
  .navbar-burger {
    display: block;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .column.is-one-third, .column.is-half {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .contact-item .icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Анимации */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.animate__animated {
  opacity: 0;
}

.animate__fadeIn {
  animation-duration: 1s;
  animation-fill-mode: both;
  opacity: 1;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

.testimonial-card:nth-child(1) {
  animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* Утилиты */
.has-text-centered {
  text-align: center;
}

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

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

.is-flex {
  display: flex;
}

.is-justify-content-center {
  justify-content: center;
}

.is-align-items-center {
  align-items: center;
}

.has-text-white {
  color: white !important;
}

/* Специальные эффекты для "гиперреалистичных текстур" */
.texture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('image/texture-overlay.jpg');
  background-size: cover;
  background-position: center;
  mix-blend-mode: overlay;
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
}