/* ===== HOME PAGE CSS ===== */
/* Импорт всех компонентов */

@import url('home/hero.css');
@import url('home/quick-filters.css');
@import url('home/carousel.css');
@import url('home/how-it-works.css');

/* ===== CSS VARIABLES ===== */
:root {
  /* Размеры заголовков */
  --hero-title-size: 3.5rem;
  --hero-title-size-lg: 3rem;
  --hero-title-size-md: 2.5rem;
  --hero-title-size-sm: 2.2rem;
  --hero-title-size-xs: 1.8rem;

  --section-title-size: 2rem;
  --section-title-size-lg: 1.8rem;
  --section-title-size-md: 1.6rem;
  --section-title-size-sm: 1.4rem;

  /* Отступы */
  --hero-padding: 3rem 0 4rem;
  --hero-padding-sm: 2rem 0 3rem;

  --section-margin: 4rem;

  /* Размеры элементов */
  --step-number-size: 50px;
  --step-number-size-md: 40px;
  --step-number-size-sm: 35px;

  /* Кнопки */
  --hero-btn-padding: 1rem 2rem;
  --hero-btn-padding-sm: 0.875rem 1.5rem;
  --btn-hover-transform: translateY(-2px);

  /* Градиенты */
  --hero-gradient: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
  --hero-radial: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

/* Общие стили для секций */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.section-header h2 {
  margin: 0;
  font-size: var(--section-title-size);
  color: var(--text-light);
}

.section-header .btn {
  transition: var(--transition);
}

.section-header .btn:hover {
  transform: translateX(5px);
}

/* Текстовый градиент */
.text-gradient {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Кнопка с градиентом */
.btn-gradient {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  border: none;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s;
}

.btn-gradient:hover::before {
  left: 100%;
}

.btn-gradient:hover {
  transform: var(--btn-hover-transform);
  box-shadow: var(--btn-gradient-shadow);
}

/* Кнопка с обводкой и градиентом */
.btn-outline-gradient {
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, var(--secondary-color), var(--accent-color)) border-box;
  color: var(--secondary-color);
  transition: var(--transition);
}

.btn-outline-gradient:hover {
  background: linear-gradient(var(--surface-dark), var(--surface-dark)) padding-box,
              linear-gradient(135deg, var(--accent-color), var(--secondary-color)) border-box;
  color: var(--text-light);
  transform: var(--btn-hover-transform);
  box-shadow: var(--btn-outline-shadow);
}

/* Анимация появления секций */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-animate {
  animation: fadeInUp 0.6s ease forwards;
}

/* Адаптивность заголовков секций */
@media (max-width: 1200px) {
  .section-header h2 {
    font-size: var(--section-title-size-lg);
  }
}

@media (max-width: 992px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .section-header h2 {
    font-size: var(--section-title-size-md);
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: var(--section-title-size-sm);
    text-align: center;
    width: 100%;
  }
}