.home-page {
  display: grid;
  gap: 22px;
  padding: 0;
}

.home-intro {
  max-width: 820px;
  padding-top: 18px;
}

.home-intro h1 {
  margin: 0;
  font-size: var(--batya-font-xxl);
  line-height: 1.05;
  letter-spacing: -.01em;
}

.home-intro p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--batya-text-soft);
  font-size: var(--batya-font-base);
  line-height: 1.45;
}

.home-section {
  min-width: 0;
}

.home-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--batya-space-3);
  margin-bottom: 8px;
}

.home-section__head h2 {
  margin: 0;
  font-size: var(--batya-font-lg);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.home-section__more {
  flex: 0 0 auto;
  color: var(--batya-text-soft);
  font-size: var(--batya-font-sm);
  font-weight: var(--batya-weight-medium);
  white-space: nowrap;
}

.home-section__more:hover {
  color: var(--batya-brand-dark);
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.home-category-card {
  position: relative;
  display: block;
  min-height: 128px;
  overflow: hidden;
  padding: 13px;
  border: 1px solid var(--batya-border);
  border-radius: var(--batya-radius);
  background: var(--batya-card);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.home-category-card:hover {
  border-color: var(--batya-brand-border);
  background: #fffaf6;
  box-shadow: 0 5px 16px rgba(88, 55, 30, .045);
}

.home-category-card__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--batya-space-1);
  max-width: 64%;
}

.home-category-card__title {
  font-size: var(--batya-font-sm);
  font-weight: var(--batya-weight-medium);
  line-height: 1.18;
}

.home-category-card__count {
  color: var(--batya-text-soft);
  font-size: var(--batya-font-xs);
}

.home-category-card__media {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  place-items: end;
  width: 48%;
  height: 74%;
}

.home-category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.home-store-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  gap: var(--batya-space-2);
  overflow: hidden;
  padding: 8px;
  border-radius: var(--batya-radius-card);
  background: var(--batya-surface);
}

.home-store-card__pickup {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
  padding: 16px 18px;
}

.home-store-card__eyebrow {
  color: var(--batya-text-soft);
  font-size: var(--batya-font-xs);
  font-weight: var(--batya-weight-medium);
  line-height: 1.2;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.home-store-card__address {
  color: var(--batya-text);
  font-size: var(--batya-font-md);
  font-weight: var(--batya-weight-semibold);
  line-height: 1.2;
}

.home-store-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 14px;
  color: var(--batya-text-soft);
  font-size: var(--batya-font-sm);
  line-height: 1.35;
}

.home-store-card__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--batya-text);
  font-weight: var(--batya-weight-medium);
}

.home-store-card__status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--batya-brand);
  content: '';
  flex: 0 0 auto;
}

.home-store-card__help {
  display: grid;
  align-content: center;
  gap: 13px;
  min-width: 0;
  padding: 15px 18px;
  border-radius: var(--batya-radius-control);
  background: var(--batya-footer-bg);
  color: #fff;
}

.home-store-card__help-copy {
  display: grid;
  gap: 3px;
}

.home-store-card__help-copy span {
  color: #bdb4ad;
  font-size: var(--batya-font-xs);
  line-height: 1.25;
}

.home-store-card__help-copy strong {
  color: #fff;
  font-size: var(--batya-font-sm);
  line-height: 1.25;
}

.home-store-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 12px;
}

.home-store-card__links a {
  color: #ded6cf;
  font-size: var(--batya-font-sm);
  font-weight: var(--batya-weight-medium);
}

.home-store-card__links a:hover {
  color: #fff;
}

.home-store-card__links .home-store-card__phone {
  color: #fff;
  font-size: var(--batya-font-md);
  font-weight: var(--batya-weight-semibold);
  line-height: 1.15;
}

@media (max-width: 899px) {
  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-page {
    gap: var(--batya-space-4);
  }

  .home-intro,
  .home-catalog,
  .home-store-card {
    margin-inline: 8px;
  }

  .home-intro {
    padding-top: 10px;
  }

  .home-intro p {
    margin-top: 6px;
  }

  .home-section__head {
    margin-bottom: 6px;
  }

  .home-category-grid {
    gap: var(--batya-space-1);
  }

  .home-category-card {
    min-height: 108px;
    padding: 10px;
    border-radius: var(--batya-radius-control);
  }

  .home-category-card__content {
    max-width: 72%;
  }

  .home-category-card__media {
    width: 52%;
    height: 66%;
  }

  .home-products {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .home-products .home-section__head {
    padding-inline: 8px;
  }

  .home-store-card {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px;
    border-radius: var(--batya-radius);
  }

  .home-store-card__pickup {
    padding: 12px 10px;
  }

  .home-store-card__meta {
    display: grid;
    gap: var(--batya-space-1);
  }

  .home-store-card__help {
    gap: 10px;
    padding: 13px 14px;
    border-radius: var(--batya-radius-sm);
  }
}
