/* 
 * Cüzdan Uyumu - Main Stylesheet
 * Футуристический дизайн с адаптивной типографикой и пастельной цветовой схемой
 */

:root {
  /* Основная пастельная цветовая палитра */
  --primary-color: #8a7cef;
  --primary-light: #b9aaff;
  --primary-dark: #6453c8;
  --secondary-color: #ffae73;
  --secondary-light: #ffc89a;
  --secondary-dark: #e89355;
  --accent-color: #65dfc9;
  --accent-light: #87f5e5;
  --accent-dark: #42b9a4;
  
  /* Нейтральные цвета */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f7f9fc;
  --bg-dark: #2d3748;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  --gradient-dark: linear-gradient(135deg, rgba(45, 55, 72, 0.9), rgba(45, 55, 72, 0.7));
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Скругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

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

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Общие классы-утилиты */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 2rem; padding-bottom: 2rem; }
.py-6 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-5 { padding-left: 2rem; padding-right: 2rem; }
.px-6 { padding-left: 3rem; padding-right: 3rem; }

/* Адаптивная типографика */
.title.is-1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

.title.is-2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

.title.is-3 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.title.is-4 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.subtitle {
  font-weight: 400;
  line-height: 1.5;
}

.subtitle.is-3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.subtitle.is-5 {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.is-size-4 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

.is-size-5 {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

/* Хедер и навигация */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color var(--transition-normal);
}

.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

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

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

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

.navbar-menu.is-active {
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
}

/* Стили для кнопок */
.button {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.button.is-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

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

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

.button.is-medium {
  padding: 1.25rem 1.75rem;
  font-size: 0.95rem;
}

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

/* Hero секция */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-light);
}

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

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

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

.scroll-down {
  display: inline-block;
  margin-top: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

/* Секции */
.section {
  padding: 5rem 0;
}

.section:nth-child(odd) {
  background-color: var(--gray-100);
}

/* Карточки услуг */
.services-section .card,
.accolade-card,
.resource-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: none;
}

.services-section .card:hover,
.accolade-card:hover,
.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

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

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

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

.card .title {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.progress-container {
  margin-top: auto;
  padding-top: 1rem;
}

.progress {
  height: 0.5rem;
  border-radius: var(--radius-full);
  overflow: hidden;
}

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

.progress-text {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
  text-align: right;
}

/* Вака Исследования / Таймлайн */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.5rem;
  width: 2px;
  background: var(--gray-300);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 3.5rem;
}

.timeline-marker {
  position: absolute;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(138, 124, 239, 0.3);
  z-index: 1;
}

.timeline-content {
  padding: 0.5rem;
}

.results {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.result-item {
  flex: 1;
  text-align: center;
  padding: 1rem;
  background-color: var(--gray-100);
  border-radius: var(--radius-md);
}

.result-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.result-label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Внешние ресурсы */
.external-resources-section .card {
  height: 100%;
}

.resource-card .card-content {
  padding: 1.75rem;
}

.resource-card a {
  color: var(--text-dark);
  transition: color var(--transition-normal);
}

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

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

.tag {
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

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

.tag.is-light {
  background-color: var(--gray-200);
  color: var(--gray-700);
}

/* Галерея */
.gallery-section .image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.gallery-section img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.image-container:hover .image-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Устойчивость */
.sustainability-section {
  background-color: var(--gray-100);
}

.sustainability-list li {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.sustainability-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sustainability-quote {
  padding: 2rem;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.sustainability-quote blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sustainability-quote .author {
  text-align: right;
  font-weight: 500;
  color: var(--gray-600);
}

/* Достижения */
.accolades-section {
  background-color: white;
}

.accolade-card {
  text-align: center;
}

.accolade-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background-color: var(--gray-100);
  overflow: hidden;
}

.accolade-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Контактная форма */
.contact-section {
  background-color: var(--gray-100);
}

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

.contact-section .label {
  color: var(--text-dark);
  font-weight: 500;
}

.contact-section .input,
.contact-section .textarea,
.contact-section .select select {
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  box-shadow: none;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.contact-section .input:focus,
.contact-section .textarea:focus,
.contact-section .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(138, 124, 239, 0.2);
}

.contact-section .select:not(.is-multiple):not(.is-loading)::after {
  border-color: var(--primary-color);
}

.contact-info {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
}

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

.contact-item h3,
.contact-item h4 {
  color: var(--text-dark);
}

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

.footer .title {
  color: white;
}

.footer p {
  color: var(--gray-400);
}

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

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

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

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-links a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
  display: inline-block;
}

.social-links a:hover {
  color: white;
}

.copyright {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Cookie Consent */
.cookie-consent {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  text-align: center;
}

.cookie-consent p {
  margin-bottom: 1rem;
}

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

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

/* Privacy and Terms pages */
.privacy-page,
.terms-page {
  padding-top: 100px;
  padding-bottom: 3rem;
}

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

/* Медиа-запросы */
@media (min-width: 768px) {
  .timeline::before {
    left: calc(50% - 1px);
  }
  
  .timeline-item {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 4rem;
  }
  
  .timeline-marker {
    left: calc(50% - 0.75rem);
  }
  
  .timeline-content {
    width: 45%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
    margin-left: 0;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 3rem 0;
  }
  
  .card-image img {
    height: 200px;
  }
  
  .gallery-section img {
    height: 250px;
  }
  
  .sustainability-list li,
  .sustainability-quote {
    padding: 1.25rem;
  }
  
  .contact-info {
    margin-top: 2rem;
  }
}

/* Анимации при прокрутке */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos="fade-up"] {
  transform: translateY(50px);
}

[data-aos="fade-down"] {
  transform: translateY(-50px);
}

[data-aos="fade-left"] {
  transform: translateX(50px);
}

[data-aos="fade-right"] {
  transform: translateX(-50px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}