.hsp-landing {
  --hsp-surface: #fffdfa;
  --hsp-border: #e8dfd1;
  --hsp-heading: #2f281f;
}

.hsp-landing > section:not(.hero) {
  padding-top: 0;
  padding-bottom: 0;
  margin-block: clamp(34px, 5vw, 64px) 0;
}

.hsp-landing > .hero {
  --hsp-hero-shade: linear-gradient(90deg, rgb(27 21 15 / 84%), rgb(27 21 15 / 65%) 40%, rgb(27 21 15 / 10%) 80%);
  display: flex;
  min-height: 345px;
  align-items: center;
  background-image: var(--hsp-hero-shade), var(--hsp-hero-image);
  background-position: center 55%;
  box-shadow: 0 14px 28px rgb(45 35 22 / 16%);
}

.hsp-landing .hero-copy {
  width: 100%;
  max-width: 610px;
  margin: 0;
  padding: clamp(22px, 4.5vw, 54px);
  text-align: left;
}

.hsp-landing .hero h1 {
  margin: 0 0 14px;
  font-size: clamp(29px, 4.4vw, 55px);
}

.hsp-landing .hero p {
  max-width: 46ch;
  margin: 0 0 22px;
}

.hsp-landing .hero #search-form {
  max-width: 480px;
  margin-inline: 0;
}

.hsp-landing > #magazin .section-head {
  margin: 0 0 16px;
}

.hsp-landing > #magazin .section-head h2 {
  margin: 5px 0 0;
}

.hsp-landing > #magazin .article-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hsp-landing > #magazin .article-list > a {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
  margin: 0;
  padding: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--hsp-border);
  border-radius: 14px;
  background: var(--hsp-surface);
  color: var(--hsp-heading);
  text-decoration: none;
  box-shadow: 0 3px 14px rgb(58 47 34 / 6%);
}

.hsp-landing > #magazin .article-list > a:hover {
  border-color: #ac936a;
}

.hsp-landing > #magazin .article-list .article-thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: 158px;
  aspect-ratio: 2.3;
  object-fit: cover;
  margin: 0 0 5px;
  border-radius: 0;
}

.hsp-landing > #magazin .article-list > a:not(:has(img)) {
  padding-top: 16px;
}

.hsp-landing > #magazin .article-list > a > :is(h2, p, span) {
  margin: 0;
  padding-inline: 15px;
}

.hsp-landing > #magazin .article-list h2 {
  font-size: clamp(17px, 1.75vw, 20px);
  line-height: 1.25;
}

.hsp-landing > #magazin .article-list p {
  color: #5b554e;
  font-size: 14px;
  line-height: 1.45;
}

.hsp-landing > #magazin .article-list > a > span {
  margin-top: auto;
  color: #76501d;
  font-size: 13px;
  font-weight: 700;
}

.hsp-landing > #magazin a:focus-visible {
  outline: 3px solid #896124;
  outline-offset: 3px;
}

.hsp-landing > #magazin > p {
  margin: 14px 0 0;
}

.hsp-landing > .catalog-home {
  border-top: 1px solid var(--hsp-border);
  padding-top: clamp(21px, 3vw, 32px);
}

.hsp-landing > .catalog-home > h2 {
  margin: 0 0 6px;
}

.hsp-landing > .catalog-home > p {
  margin: 0 0 14px;
}

.hsp-landing .catalog-home .product-grid {
  gap: 14px;
  margin: 0 0 13px;
}

.hsp-landing .catalog-home .product-card {
  gap: 7px;
  padding: 12px;
  border-color: var(--hsp-border);
}

.hsp-landing .catalog-home .product-card img {
  height: clamp(100px, 14vw, 150px);
}

.hsp-landing .catalog-home .product-card h3 {
  margin: 7px 0 3px;
  font-size: 15px;
  line-height: 1.3;
}

.hsp-landing .catalog-home .product-card .price {
  font-size: 18px;
  margin: 0;
}

.hsp-landing > :is(#vyber-pruvodce, #prakticke-tipy-k-vyberu, #ajprodukty-featured) {
  box-sizing: border-box;
  max-width: none;
  padding: clamp(16px, 2.6vw, 28px);
  border: 1px solid var(--hsp-border);
  border-radius: 16px;
  background: var(--hsp-surface);
}

.hsp-landing > :is(#vyber-pruvodce, #prakticke-tipy-k-vyberu) h2 {
  margin: 0 0 10px;
}

.hsp-landing > :is(#vyber-pruvodce, #prakticke-tipy-k-vyberu) p {
  max-width: 82ch;
  margin: 0 0 10px;
  line-height: 1.55;
}

.hsp-landing .ajprodukty-shop-image {
  max-height: 270px;
}

@media (max-width: 760px) {
  .hsp-landing > .hero {
    --hsp-hero-shade: linear-gradient(90deg, rgb(27 21 15 / 87%), rgb(27 21 15 / 48%));
    min-height: 285px;
  }

  .hsp-landing > #magazin .article-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hsp-landing > #magazin .article-list > a:has(img) {
    display: grid;
    grid-template-columns: clamp(92px, 27vw, 156px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: 5px 11px;
    min-height: 112px;
    padding: 0 10px 0 0;
  }

  .hsp-landing > #magazin .article-list > a > .article-thumb {
    grid-row: 1 / -1;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
  }

  .hsp-landing > #magazin .article-list > a:has(img) > :is(h2,p,span) {
    padding: 0;
  }

  .hsp-landing > #magazin .article-list > a:has(img) > h2 {
    margin-top: 10px;
    font-size: 16px;
  }

  .hsp-landing > #magazin .article-list > a:has(img) > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
  }

  .hsp-landing > #magazin .article-list > a:has(img) > span {
    margin: 0 0 10px;
    font-size: 12px;
  }

  .hsp-landing .catalog-home .product-grid {
    gap: 10px;
  }
}

@media (min-width: 360px) and (max-width: 380px) {
  body[data-home-audit="yes"] .hsp-landing .catalog-home .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hsp-home-categories {
  scroll-margin-top: 30px;
}

.hsp-home-categories h2 {
  margin: 0 0 22px;
  font-size: clamp(24px, 2.5vw, 32px);
  letter-spacing: -.02em;
}

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

.hsp-category-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-width: 0;
  min-height: 224px;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  padding: 17px 58px 18px 17px;
  border-radius: 16px;
  background: #4b3b2d;
  box-shadow: 0 6px 18px rgb(58 47 34 / 12%);
}

.hsp-category-card img,
.hsp-category-card::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hsp-category-card img {
  z-index: -2;
  display: block;
  object-fit: cover;
  transition: transform .26s ease;
}

.hsp-category-card::after {
  z-index: -1;
  content: '';
  background: linear-gradient(to top, rgb(25 21 15 / 96%), rgb(25 21 15 / 74%) 30%, transparent 72%);
}

.hsp-category-card,
.hsp-category-card:hover {
  color: #fff;
  text-decoration: none;
}

.hsp-category-caption h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.hsp-category-caption span {
  display: block;
  color: #fff5e4;
  font-size: 13px;
  line-height: 1.4;
}

.hsp-category-arrow {
  position: absolute;
  inset-inline-end: 14px;
  inset-block-end: 17px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgb(255 248 230 / 55%);
  border-radius: 50%;
  color: #fff;
  font: 18px/1 Arial, sans-serif;
  transition: background .2s ease, color .2s ease;
}

.hsp-category-card:focus-visible {
  outline: 3px solid #896124;
  outline-offset: 4px;
}

.hsp-category-card:is(:focus-visible, :hover) .hsp-category-arrow {
  color: #342413;
  background: #f1e0bd;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hsp-category-card:hover img {
    transform: scale(1.045);
  }
}

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

  .hsp-category-card {
    aspect-ratio: 1.35;
  }
}

@media (max-width: 520px) {
  .hsp-category-grid {
    gap: 10px;
  }

  .hsp-category-card {
    width: 100%;
    box-sizing: border-box;
    aspect-ratio: auto;
    min-height: 166px;
    padding: 12px 34px 12px 11px;
  }

  .hsp-category-caption h3 {
    font-size: 16px;
  }

  .hsp-category-caption span {
    font-size: 11px;
  }

  .hsp-category-arrow {
    inset-inline-end: 8px;
    inset-block-end: 12px;
    width: 22px;
    height: 22px;
    font-size: 14px;
  }
}
