/* ===== Hero-секция ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 20px 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

/* Анимация фона — геометрические фигуры */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float 20s infinite ease-in-out;
}

.hero__bg-shape:nth-child(1) {
  width: 600px;
  height: 600px;
  background: var(--color-accent);
  top: -200px;
  left: -150px;
  animation-delay: 0s;
}

.hero__bg-shape:nth-child(2) {
  width: 400px;
  height: 400px;
  background: #818cf8;
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}

.hero__bg-shape:nth-child(3) {
  width: 200px;
  height: 200px;
  background: #22d3ee;
  top: 50%;
  left: 70%;
  animation-delay: -10s;
}

.hero__bg-shape:nth-child(4) {
  width: 150px;
  height: 150px;
  background: #f59e0b;
  top: 20%;
  left: 20%;
  animation-delay: -7s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -40px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(40px, 30px) scale(1.02);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--color-accent), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-secondary);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  background: var(--color-accent);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero__cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.35);
  color: #fff;
}

/* ===== Секция «Как это работает» ===== */
.steps {
  padding: 80px 20px;
  background: var(--color-bg-alt);
}

.steps__title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.steps__subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.step-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-card__text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===== Секция «Примеры работ» ===== */
.gallery {
  padding: 80px 20px;
}

.gallery__title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.gallery__subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.gallery-card__preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--color-bg);
}

.gallery-card__body {
  padding: 20px 24px 24px;
}

.gallery-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.gallery-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.gallery-card__btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

.gallery-card__btn:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

/* ===== Адаптив ===== */
/* Mobile-first — базовые стили уже mobile */

/* Mobile (< 375px specific adjustments) */
@media (max-width: 374px) {
  .hero__cta {
    padding: 14px 28px;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }

  .step-card {
    padding: 28px 20px;
  }
}

/* Tablet (375px–767px) */
@media (min-width: 375px) and (max-width: 767px) {
  .steps__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .gallery-card__preview {
    height: 160px;
  }
}

/* Tablet-landscape (768px–1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .steps__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card__preview {
    height: 180px;
  }
}

/* Desktop (>= 1200px) */
@media (min-width: 1200px) {
  .steps__grid {
    gap: 32px;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
