/* 
============================================
  Футуристический асимметричный дизайн
  Автор: AutoExpert
============================================
*/

/* ================ ОСНОВНЫЕ ПЕРЕМЕННЫЕ ================ */
:root {
  /* Основная цветовая схема (пастельная) */
  --primary-color: #84b6f4;
  --primary-dark: #6d95d1;
  --primary-light: #9dc5fa;
  --secondary-color: #f8c9d4;
  --secondary-dark: #e0a8b5;
  --secondary-light: #ffd8e2;
  --accent-color: #a8e6cf;
  --accent-dark: #8fcdb9;
  --accent-light: #c2f0df;

  /* Нейтральные цвета */
  --neutral-100: #ffffff;
  --neutral-200: #f8f9fa;
  --neutral-300: #e9ecef;
  --neutral-400: #dee2e6;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;

  /* Функциональные цвета */
  --success: #a8e6cf;
  --info: #84b6f4;
  --warning: #ffd166;
  --danger: #ef767a;

  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);

  /* Радиусы скругления */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Интервалы */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;
  --spacing-xxl: 4rem;

  /* Анимации */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Шрифты */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Z-индексы */
  --z-overlay: 10;
  --z-dropdown: 20;
  --z-fixed: 30;
  --z-modal: 40;
  --z-popover: 50;
  --z-tooltip: 60;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

.section-title {
  position: relative;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--neutral-800);
}

.section-divider {
  height: 4px;
  width: 60px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  margin: 0 auto 2rem;
  border-radius: var(--radius-full);
}

/* ================ УТИЛИТЫ ================ */
.bg-light {
  background-color: var(--neutral-200) !important;
}

.bg-dark {
  background-color: var(--neutral-900) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.text-white {
  color: var(--neutral-100) !important;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* ================ КНОПКИ ================ */
.btn {
  font-family: var(--font-heading);
  font-weight: 500;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}

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

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--neutral-100);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--neutral-100);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--neutral-800);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--neutral-800);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--neutral-100);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--neutral-100);
  border-color: var(--neutral-100);
}

.btn-outline-light:hover {
  background-color: var(--neutral-100);
  color: var(--neutral-900);
}

.btn-lg {
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* ================ НАВИГАЦИЯ ================ */
.navbar {
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--neutral-100);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--neutral-100);
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-light);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after {
  width: 70%;
}

/* ================ ГЕРОЙ ================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 800px;
  width: 100%;
  overflow: hidden;
  color: var(--neutral-100);
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: -1;
}

.hero-section h1, .hero-section h2, .hero-section p {
  color: var(--neutral-100);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-section h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

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

/* ================ СЕКЦИЯ О НАС ================ */
.about-section {
  padding: var(--spacing-xl) 0;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

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

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

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--neutral-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

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

.feature-icon {
  margin-bottom: 1rem;
}

.feature-icon img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

/* ================ СЕКЦИЯ УСЛУГ ================ */
.services-section {
  padding: var(--spacing-xl) 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

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

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

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

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

.card-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-text {
  flex-grow: 1;
  color: var(--neutral-700);
}

/* ================ СЕКЦИЯ ПРЕИМУЩЕСТВ ================ */
.advantages-section {
  padding: var(--spacing-xl) 0;
}

.advantage-card {
  height: 100%;
  background-color: var(--neutral-100);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.advantage-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.advantage-icon img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

/* ================ СЕКЦИЯ ГАЛЕРЕИ ================ */
.gallery-section {
  padding: var(--spacing-xl) 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

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

.gallery-item:hover .image-container img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay-content {
  color: var(--neutral-100);
  text-align: center;
}

.overlay-content h4 {
  margin-bottom: 0.5rem;
  color: var(--neutral-100);
}

.overlay-content p {
  color: var(--neutral-300);
  margin-bottom: 0;
}

/* ================ СЕКЦИЯ РЕСУРСОВ ================ */
.resources-section {
  padding: var(--spacing-xl) 0;
}

.resource-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background-color: var(--neutral-100);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.resource-card .card-image {
  width: 100%;
  height: 200px;
  margin-bottom: 1.5rem;
}

.resource-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ================ СЕКЦИЯ ОТЗЫВОВ ================ */
.testimonials-section {
  padding: var(--spacing-xl) 0;
}

.testimonial-card {
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: -40px auto 1rem;
  border: 4px solid var(--neutral-100);
  box-shadow: var(--shadow-sm);
}

.testimonial-rating {
  color: var(--warning);
  font-size: 1.25rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--neutral-700);
}

.testimonial-author {
  margin-top: auto;
}

/* ================ СЕКЦИЯ СООБЩЕСТВА ================ */
.community-section {
  padding: var(--spacing-xl) 0;
}

.community-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

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

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

.event-list {
  padding: 1rem;
  background-color: var(--neutral-200);
  border-radius: var(--radius-md);
}

.event-date {
  background-color: var(--primary-color);
  color: var(--neutral-100);
  width: 50px;
  height: 60px;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.day {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ================ СЕКЦИЯ НОВОСТЕЙ ================ */
.news-section {
  padding: var(--spacing-xl) 0;
}

.news-card {
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

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

.news-card .card-image {
  height: 200px;
  overflow: hidden;
}

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

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

.news-date {
  display: block;
  margin-bottom: 0.5rem;
}

.news-card .btn {
  align-self: flex-start;
}

/* ================ СЕКЦИЯ FAQ ================ */
.faq-section {
  padding: var(--spacing-xl) 0;
}

.accordion-button {
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: rgba(132, 182, 244, 0.1);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-light);
}

.accordion-button::after {
  background-size: 1.25rem;
  transition: transform var(--transition-normal);
}

.accordion-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--neutral-300);
}

.accordion-body {
  padding: 1.5rem;
  color: var(--neutral-700);
}

/* ================ СЕКЦИЯ КОНТАКТОВ ================ */
.contact-section {
  padding: var(--spacing-xl) 0;
}

.contact-info, .contact-form-container {
  height: 100%;
  background-color: var(--neutral-100);
  border-radius: var(--radius-md);
}

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

.info-icon img {
  width: 30px;
  height: 30px;
}

.map-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form .form-control, .contact-form .form-select {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neutral-300);
  transition: all var(--transition-normal);
}

.contact-form .form-control:focus, .contact-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(132, 182, 244, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
}

/* ================ ФУТЕР ================ */
.footer-section {
  padding-top: var(--spacing-xl);
  background-color: var(--neutral-900);
  color: var(--neutral-300);
}

.footer-section h3 {
  color: var(--neutral-100);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  color: var(--neutral-300);
  transition: color var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--neutral-100);
  transform: translateX(5px);
}

.social-links a {
  position: relative;
  display: inline-block;
  margin-right: 1rem;
  text-transform: capitalize;
  transition: all var(--transition-normal);
}

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

/* ================ ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ================ */
/* Success page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

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

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

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

.privacy-content, .terms-content, .about-content {
  background-color: var(--neutral-100);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* ================ МЕДИА ЗАПРОСЫ ================ */
@media (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section h2 {
    font-size: 1.25rem;
  }

  .advantage-card, .service-card, .testimonial-card {
    margin-bottom: 2rem;
  }
  
  .gallery-item {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 500px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section h2 {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .feature-card, .advantage-card {
    margin-bottom: 1rem;
  }
}

/* ================ АНИМАЦИИ ================ */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.animate__fadeInUp {
  animation-name: slideUp;
}

.animate__delay-1s {
  animation-delay: 1s;
}

.animate__delay-2s {
  animation-delay: 2s;
}