/* AUTOGENEROVANO CORALEM, neupravovat.
 * Zdroj pravdy je stejnojmenny .less soubor, tento .css se pri kazde
 * synchronizaci prepisuje. Upravy delej v .less souboru. */
/* Hlína, tři aktivity (Hlína 37): velká fotka, přes její spodní hranu
   nálepka s kreslenou nádobou, pod tím název, popis, cena s kapacitou
   a hlavní tlačítko. Karta si řádky půjčuje z mřížky sekce (subgrid),
   takže názvy, popisy, ceny i tlačítka stojí ve všech kartách vedle sebe.

   Hlína 87 (Ondra 23. 9. 2026: karty „jsou brutálně vysoké"): na PC fotka
   na šířku místo na výšku, na telefonu pás karet na posunutí prstem se
   špičkou další karty a tečkami, sekce je tak vysoká jako jedna karta. */
.h-akt {
  padding-top: 28px;
}
.h-akt__hlava {
  margin-bottom: 26px;
  max-width: 60ch;
}
.h-akt__hlava p {
  margin: 0;
}
/* telefon: pás karet od kraje ke kraji displeje, karta drží čáru obsahu */
.h-akt__karty {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(calc(100% - 38px), 340px);
  column-gap: 14px;
  row-gap: 0;
  margin: 0 calc(var(--h-gutter) * -1);
  padding: 6px var(--h-gutter) 30px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--h-gutter);
  scrollbar-width: none;
}
.h-akt__karty::-webkit-scrollbar {
  display: none;
}
.h-akt__karta {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
  scroll-snap-align: start;
  border-radius: var(--h-radius);
  background: #fbf6ef;
  border: 1px solid #e7d9c6;
  box-shadow: var(--h-stin);
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.h-akt__karta:hover {
  border-color: #d8c5ab;
  box-shadow: 0 30px 60px -34px rgba(42, 29, 23, 0.45), 0 2px 6px -2px rgba(42, 29, 23, 0.08);
}
.h-akt__foto {
  position: relative;
  margin: 0 0 30px;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 50% 40%, #f5ede3 0%, #e7d9c6 100%);
}
.h-akt__foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
}
/* najetí: fotka se jen pomalu přiblíží uvnitř rámu, karta sama nepovyskočí */
.h-akt__karta:hover .h-akt__foto img {
  transform: scale(1.035);
}
.h-akt__foto {
  overflow: visible;
}
.h-akt__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 29, 23, 0) 55%, rgba(42, 29, 23, 0.22) 100%);
  pointer-events: none;
}
.h-akt__foto {
  clip-path: inset(0 0 -60px 0 round var(--h-radius) var(--h-radius) 0 0);
}
.h-akt__nalepka {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: -30px;
  width: 76px;
  height: 76px;
  padding: 8px;
  border-radius: 50%;
  background: #fbf6ef;
  border: 1px solid #d8c5ab;
  box-shadow: 0 12px 24px -14px rgba(42, 29, 23, 0.55);
  transform: rotate(-6deg);
}
.h-akt__nalepka svg {
  display: block;
  width: 100%;
  height: 100%;
}
.h-akt__nazev {
  margin: 0;
  padding: 4px 16px 6px;
  font-size: clamp(22px, calc(20.3px + 0.442vw), 26px);
}
.h-akt__popis {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 15px;
  color: #7d6252;
}
.h-akt__udaje {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 24px;
  margin: 0;
  padding: 0 16px 18px;
}
.h-akt__udaje div {
  display: flex;
  flex-direction: column;
}
.h-akt__udaje dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7d6252;
  font-weight: 600;
}
.h-akt__udaje dd {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #2a1d17;
}
.h-akt__udaje dd span {
  font-size: 13px;
  font-weight: 400;
  color: #7d6252;
}
.h-akt__akce {
  padding: 0 16px 16px;
  align-self: end;
}
/* karty mimo displej se neobjevují animací, přijíždějí s pásem */
.h-akt__karta:not(:first-child).je-videt {
  animation: none;
}
/* tečka sedí v horní části plochy pro prst, stín karty na ni nepadá */
.h-akt__tecky {
  display: flex;
  justify-content: center;
  margin-top: -8px;
}
.h-akt__tecka {
  display: grid;
  place-items: start center;
  padding: 8px 0 0;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.h-akt__tecka::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d8c5ab;
  transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.35s ease;
}
.h-akt__tecka.je-aktivni::before {
  width: 26px;
  background: #c4633b;
}
.h-akt__tecka:focus-visible {
  outline: none;
}
.h-akt__tecka:focus-visible::before {
  box-shadow: 0 0 0 3px rgba(196, 99, 59, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .h-akt__foto img {
    transition: none;
  }
  .h-akt__karta:hover .h-akt__foto img {
    transform: none;
  }
}
@media (min-width: 768px) {
  .h-akt {
    padding-top: 24px;
  }
  .h-akt__karty {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    column-gap: 22px;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .h-akt__karta:not(:first-child).je-videt {
    animation: h-objev 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .h-akt__tecky {
    display: none;
  }
  .h-akt__foto {
    aspect-ratio: 3 / 2;
  }
  .h-akt__nalepka {
    width: 88px;
    height: 88px;
    left: 20px;
    bottom: -34px;
  }
  .h-akt__foto {
    margin-bottom: 36px;
  }
  .h-akt__nazev {
    padding: 4px 22px 6px;
  }
  .h-akt__popis {
    padding: 0 22px 16px;
  }
  .h-akt__udaje {
    padding: 0 22px 20px;
  }
  .h-akt__akce {
    padding: 0 22px 22px;
  }
}
