/* resources/css/home.css */

/* === Цветовая палитра: природные, тёплые тона === */
:root {
  --color-primary: #4a7c59;      /* Мягкий зелёный */
  --color-primary-dark: #3a6347;
  --color-secondary: #c9a961;    /* Тёплый песочный */
  --color-bg-light: #f8f5f0;     /* Тёплый фон */
  --color-text-dark: #2d3748;
  --color-text-light: #f9f7f4;
}

/* === Hero секция === */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.85) 0%, rgba(58, 99, 71, 0.9) 100%),
    url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* === Кнопки === */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #c9a961 0%, #b8964e 100%);
  color: #2d3748;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(201, 169, 97, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.6);
  background: linear-gradient(135deg, #b8964e 0%, #a38542 100%);
}

.btn-secondary {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

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

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* === Карточки возможностей === */
.feature-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 1rem 0;
}

.feature-text {
  color: #64748b;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* === Блок "Как это работает" (мягкий) === */
.how-it-works {
  background: linear-gradient(180deg, var(--color-bg-light) 0%, #ffffff 100%);
}

.step-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.step-title {
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.step-text {
  color: #64748b;
  line-height: 1.6;
}

/* === Галерея === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* === CTA секция === */
.cta-section {
  background: linear-gradient(135deg, #5d7a6a 0%, #4a7c59 100%);
  padding: 4rem 1rem;
  text-align: center;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

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

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

.animate-fade-in:nth-child(2) { animation-delay: 0.1s; }
.animate-fade-in:nth-child(3) { animation-delay: 0.2s; }

/* === Адаптивность === */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
    padding: 2rem 0;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 3rem 1rem;
  }
}

/* === Плавная прокрутка === */
html {
  scroll-behavior: smooth;
}
