/* ====== Переменные и основные стили ====== */
:root {
  /* Основная цветовая схема */
  --primary-color: #6200ea;
  --primary-dark: #3700b3;
  --primary-light: #bb86fc;
  --secondary-color: #03dac6;
  --secondary-dark: #018786;
  --accent-color: #ff4081;
  --accent-dark: #c51162;
  
  /* Нейтральные цвета */
  --background: #ffffff;
  --background-alt: #f5f5f5;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  
  /* Тени для нейроморфизма */
  --shadow-small: 3px 3px 6px rgba(0, 0, 0, 0.1), -3px -3px 6px rgba(255, 255, 255, 0.8);
  --shadow-medium: 5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 10px rgba(255, 255, 255, 0.8);
  --shadow-large: 10px 10px 20px rgba(0, 0, 0, 0.1), -10px -10px 20px rgba(255, 255, 255, 0.8);
  --shadow-inset: inset 3px 3px 6px rgba(0, 0, 0, 0.1), inset -3px -3px 6px rgba(255, 255, 255, 0.8);
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
  
  /* Скругления */
  --border-radius-small: 8px;
  --border-radius-medium: 12px;
  --border-radius-large: 20px;
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ====== Основные стили ====== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

.section {
  padding: 5rem 1.5rem;
}

/* ====== Утилиты ====== */
.has-shadow-small {
  box-shadow: var(--shadow-small);
}

.has-shadow-medium {
  box-shadow: var(--shadow-medium);
}

.has-shadow-large {
  box-shadow: var(--shadow-large);
}

.has-shadow-inset {
  box-shadow: var(--shadow-inset);
}

.has-bg-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.has-bg-secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.has-bg-accent {
  background: var(--accent-color);
  color: var(--text-light);
}

.has-gradient-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
}

.has-gradient-secondary {
  background: var(--gradient-secondary);
  color: var(--text-light);
}

.has-gradient-accent {
  background: var(--gradient-accent);
  color: var(--text-light);
}

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

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

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

/* ====== Компоненты ====== */

/* Навигация */
.navbar {
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background);
  z-index: 100;
  transition: background-color var(--transition-medium);
}

.navbar.is-transparent {
  background-color: transparent;
  box-shadow: none;
}

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

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

/* Кнопки */
.button {
  transition: all var(--transition-medium);
  border-radius: var(--border-radius-small);
  font-weight: 600;
  box-shadow: var(--shadow-small);
}

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

.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-inset);
}

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

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

.button.is-secondary {
  background: var(--secondary-color);
  color: var(--text-light);
  border: none;
}

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

.button.is-accent {
  background: var(--accent-color);
  color: var(--text-light);
  border: none;
}

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

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

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

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

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

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

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

/* ====== Секции ====== */

/* Герой */
.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: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

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

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--text-light);
}

.hero-body .buttons {
  margin-top: 2rem;
}

/* О нас */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-image {
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.about-image img {
  transition: transform var(--transition-slow);
}

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

/* Услуги */
.services-section {
  background-color: var(--background-alt);
}

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

.service-card .card-image {
  height: 220px;
}

.service-card h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Ресурсы */
.resources-section {
  position: relative;
}

.resource-card .card-image {
  height: 200px;
}

/* Цены */
.pricing-section {
  background-color: var(--background-alt);
}

.pricing-card {
  text-align: center;
  padding: 2rem 1rem;
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 2px solid var(--primary-color);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.pricing-card .price span {
  font-size: 3rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-card li:last-child {
  border-bottom: none;
}

/* Блог */
.blog-section {
  position: relative;
}

.blog-card .card-image {
  height: 220px;
}

.blog-card .subtitle {
  color: var(--text-secondary);
}

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

/* Команда */
.team-section {
  background-color: var(--background-alt);
}

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

.team-card .card-image {
  height: 300px;
  width: 300px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  margin-top: 1.5rem;
}

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

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

.team-card h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.team-card .subtitle {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Сообщество */
.community-section {
  position: relative;
}

.community-links {
  margin-top: 2rem;
}

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

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

.upcoming-events .event-date {
  color: var(--primary-color);
  font-weight: 700;
}

/* Контакт */
.contact-section {
  background-color: var(--background-alt);
}

.contact-form-card, 
.contact-info-card {
  height: 100%;
}

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

.contact-form .control {
  position: relative;
}

.contact-info .map-container {
  border-radius: var(--border-radius-small);
  overflow: hidden;
  height: 300px;
}

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

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

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

/* Футер */
.footer {
  background-color: #2c2c2c;
  color: #ffffff;
  padding: 4rem 0 2rem;
}

.footer h3, 
.footer h4, 
.footer h5 {
  color: #ffffff;
}

.footer p, 
.footer ul {
  margin-bottom: 1rem;
}

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

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

.footer a {
  color: #bbbbbb;
  transition: color var(--transition-fast);
}

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

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  color: #bbbbbb;
  transition: color var(--transition-fast);
}

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

.newsletter-form .input {
  border-radius: var(--border-radius-small) 0 0 var(--border-radius-small);
}

.newsletter-form .button {
  border-radius: 0 var(--border-radius-small) var(--border-radius-small) 0;
}

/* FAQ */
.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

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

.faq-item h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Успех */
.success-hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.success-container {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-large);
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-large);
}

.success-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
}

/* Политика конфиденциальности и Условия использования */
.legal-hero {
  padding-top: 100px;
}

.legal-content h3,
.legal-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 1.5rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

/* ====== Адаптивность ====== */
@media screen and (max-width: 768px) {
  .navbar-menu {
    background-color: var(--background);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }
  
  .pricing-card.featured {
    transform: scale(1);
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  
  .team-card .card-image {
    width: 200px;
    height: 200px;
  }
}

/* ====== Анимации ====== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeIn {
  animation: fadeIn var(--transition-medium);
}

/* Параллакс-эффект */
.parallax {
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Специфические стили для страниц */
.about-hero,
.contact-hero,
.legal-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Значки достижений */
.achievement-box {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius-medium);
  background-color: var(--background);
  box-shadow: var(--shadow-small);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

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

.achievement-box h4 {
  color: var(--primary-color);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Логотипы партнеров */
.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  opacity: 0.7;
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Карточки ценности */
.value-card {
  padding: 2rem;
  text-align: center;
  height: 100%;
}

.value-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* CTA секция */
.cta-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

/* Следующие шаги после успешной отправки */
.next-steps-section {
  padding: 5rem 0;
}

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

.next-step-card .card-image {
  height: 200px;
}

.next-step-card .buttons {
  justify-content: center;
}

/* Дополнительные стили для карточек */
.service-card,
.resource-card,
.blog-card,
.team-card,
.pricing-card,
.next-step-card,
.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card .card-content,
.resource-card .card-content,
.blog-card .card-content,
.team-card .card-content,
.pricing-card .card-content,
.next-step-card .card-content,
.value-card .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}