/* Главная: customer-first hero + задачи + how */

.home-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg, 18px);
  margin-bottom: var(--space-xl, 2rem);
  min-height: clamp(22rem, 52vw, 28rem);
  background: #0f172a;
  isolation: isolate;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  display: block;
}

.home-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.62) 42%, rgba(15, 23, 42, 0.28) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.55) 100%);
}

.home-hero__panel {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  color: #fff;
}

.home-hero__brand {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.home-hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.home-hero__lead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.home-hero__cta {
  min-height: 48px;
  font-weight: 700;
}

.home-hero__cta-secondary {
  min-height: 48px;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.home-hero__cta-secondary:hover,
.home-hero__cta-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.home-hero__promise {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.home-hero__seller {
  margin: 0;
  font-size: 0.85rem;
}

.home-hero__seller a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-hero__seller a:hover,
.home-hero__seller a:focus-visible {
  color: #fff;
}

/* Tasks */
.home-tasks {
  margin-bottom: var(--space-xl, 2rem);
}

.home-tasks__head {
  margin-bottom: 1rem;
}

.home-tasks__lead {
  margin: 0.35rem 0 0;
  color: var(--color-text-muted, #64748b);
}

.home-tasks__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-tasks__card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.home-tasks__card:hover,
.home-tasks__card:focus-visible {
  border-color: rgba(0, 122, 255, 0.4);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  outline: none;
  transform: translateY(-2px);
}

.home-tasks__card-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: #0f172a;
}

.home-tasks__card-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #64748b;
  flex: 1 1 auto;
}

.home-tasks__card-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent, #007aff);
}

/* How */
.home-how {
  margin-bottom: var(--space-xl, 2rem);
}

.home-how__lead {
  margin: 0.35rem 0 0;
  color: var(--color-text-muted, #64748b);
}

.home-how__steps {
  list-style: none;
  margin: 1.15rem 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.home-how__steps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.home-how__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--color-accent, #007aff);
  font-weight: 800;
  font-size: 0.9rem;
}

.home-how__step-title {
  margin: 0 0 0.2rem;
  font-weight: 700;
  color: #0f172a;
}

.home-how__step-text {
  margin: 0;
  font-size: 0.925rem;
  color: #64748b;
  line-height: 1.45;
}

.home-how__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
}

@media (max-width: 47.99rem) {
  .home-hero {
    min-height: 0;
  }

  .home-hero__img {
    object-position: center 35%;
    min-height: 16rem;
  }

  .home-hero__shade {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.78) 48%, rgba(15, 23, 42, 0.92) 100%);
  }

  .home-hero__panel {
    max-width: none;
    padding: 1.25rem 1.1rem 1.45rem;
  }

  .home-tasks__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 64rem) {
  .home-how__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .home-how__steps > li {
    grid-template-columns: 1fr;
  }
}

.home-gallery-teaser__head {
  margin-bottom: 0.75rem;
}

.home-gallery-teaser__lead {
  margin: 0.35rem 0 0;
  color: var(--color-muted, #64748b);
}

.home-gallery-teaser__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-gallery-teaser__link {
  font-weight: 600;
  text-decoration: none;
}

.home-gallery-teaser__link:hover,
.home-gallery-teaser__link:focus-visible {
  text-decoration: underline;
}

.home-gallery-teaser__more {
  margin: 0;
}

.home-page .hero-carousel--promo {
  margin-bottom: var(--space-xl, 2rem);
}

.home-page .hero-carousel--promo .carousel-track,
.home-page .hero-carousel--promo .carousel-slide {
  min-height: clamp(12rem, 28vw, 16rem);
}

.home-page .hero-carousel--promo .carousel-slide img,
.home-page .hero-carousel--promo .carousel-caption--solo {
  height: clamp(12rem, 28vw, 16rem);
  min-height: clamp(12rem, 28vw, 16rem);
}

.home-page .hero-carousel--promo .carousel-caption {
  padding: clamp(0.85rem, 2.5vw, 1.35rem);
}

.home-page .hero-carousel--promo .carousel-caption__title {
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
}

/* Мобилка: перебить critical/mobile.css (21.25rem + индикаторы поверх CTA) */
@media (max-width: 47.99rem) {
  .home-page .hero-carousel--promo .carousel-track,
  .home-page .hero-carousel--promo .carousel-slide {
    min-height: 11rem;
  }

  .home-page .hero-carousel--promo .carousel-slide img,
  .home-page .hero-carousel--promo .carousel-caption--solo {
    height: 11rem;
    min-height: 11rem;
    object-position: center center;
  }

  .home-page .hero-carousel--promo .carousel-caption {
    max-width: none;
    padding: 0.75rem 0.9rem 2.35rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 100%);
  }

  .home-page .hero-carousel--promo .carousel-caption__title {
    font-size: 1.05rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-transform: none;
  }

  .home-page .hero-carousel--promo .carousel-caption__text {
    font-size: 0.8125rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .home-page .hero-carousel--promo .carousel-caption__cta,
  .home-page .hero-carousel--promo .carousel-caption__cta.btn {
    font-size: 0.8125rem;
    padding: 0.45rem 0.85rem;
    white-space: nowrap;
    max-width: calc(100% - 4.5rem);
  }

  .home-page .hero-carousel--promo .carousel-indicators.carousel-indicators--glass {
    left: auto;
    right: 0.75rem;
    bottom: 0.65rem;
    transform: none;
    padding: 0.3rem 0.5rem;
  }

  .home-page .hero-carousel--promo .carousel-indicator {
    min-width: 1.5rem;
    min-height: 1.5rem;
  }
}

@media (max-width: 390px) {
  .home-page .hero-carousel--promo .carousel-track,
  .home-page .hero-carousel--promo .carousel-slide,
  .home-page .hero-carousel--promo .carousel-slide img,
  .home-page .hero-carousel--promo .carousel-caption--solo {
    min-height: 10rem;
    height: 10rem;
  }

  .home-page .hero-carousel--promo .carousel-caption__title {
    font-size: 0.95rem;
  }

  .home-page .hero-carousel--promo .carousel-caption__text {
    display: none;
  }
}
