/* ══════════════════════════════════════
   SUBPAGE COMPONENTS — shared across
   pro-firmy, o-nas, kontakt, faq, legal
   ══════════════════════════════════════ */

/* ── Active nav ── */
.pill-nav.is-active {
  background: var(--color-royal-blue);
  border-color: var(--color-royal-blue);
  color: var(--color-white);
}

/* ── Subpage hero ── */
.subpage-hero {
  position: relative;
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-xl);
  overflow: hidden;
}

.subpage-hero--orange { background: var(--color-orangy-red); }
.subpage-hero--blue   { background: var(--color-royal-blue); }
.subpage-hero--purple { background: var(--color-dark-purple); }
.subpage-hero--pink   { background: var(--color-barbie-pink); }
.subpage-hero--green  { background: var(--color-electric-green); color: var(--color-black); }
.subpage-hero--white  { background: var(--color-white); color: var(--color-black); }

.subpage-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
}

.subpage-hero--split .subpage-hero__inner {
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
}

.subpage-hero__eyebrow {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: var(--fs-small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: var(--space-sm);
}

.subpage-hero__title {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 0.94;
  margin-bottom: var(--space-md);
}

.subpage-hero__lead {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  max-width: 560px;
  margin-bottom: var(--space-md);
  line-height: 1.4;
  text-wrap: pretty;
}

.subpage-hero__cta {
  display: inline-flex;
}

/* CTA uvnitř hlavičky sekce (např. „Prozkoumat produktovou nabídku“) */
.subpage-section__cta {
  display: inline-flex;
  margin-top: var(--space-md);
}

/* ── Logo marquee (reference firem) ──
   Stejný princip jako .star-bar: obsah je v HTML zdvojený a track
   se posouvá o -50 %, takže smyčka nemá viditelný sešv. */
.logo-bar {
  margin-top: var(--space-lg);
  overflow: hidden;
  border-top: 1.5px solid var(--color-black);
  border-bottom: 1.5px solid var(--color-black);
  padding: var(--space-sm) 0;
}

.logo-bar__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logo-bar-scroll 22s linear infinite;
  will-change: transform;
}

.logo-bar__item {
  flex-shrink: 0;
  height: clamp(1.5rem, 3.2vw, 2.25rem);
  width: auto;
  /* Mezera patří DOVNITŘ položky, ne do `gap`: posun o -50 % pak odpovídá
     přesně jedné sadě log. S `gap` chybí půl mezery a smyčka viditelně
     poskočí („půlka řady zmizí“). */
  margin-right: clamp(2rem, 6vw, 5rem);
}

@media (max-width: 768px) {
  /* Na úzkém displeji je vidět jen pár log naráz — projet sadu rychleji. */
  .logo-bar__track { animation-duration: 13s; }
}

@keyframes logo-bar-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-bar__track { animation: none; }
}

.subpage-hero__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subpage-hero__image img {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
}

/* ── Section wrapper for subpages ── */
.subpage-section {
  padding: var(--space-xl) 0;
}

.subpage-section--tight { padding: var(--space-lg) 0; }

.subpage-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.subpage-section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.subpage-section__eyebrow {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: var(--fs-small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-royal-blue);
  margin-bottom: var(--space-xs);
}

.subpage-section__title {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1;
  margin-bottom: var(--space-sm);
  color: var(--color-black);
}

.subpage-section__lead {
  font-family: var(--font-obviously);
  font-weight: 400;
  font-size: var(--fs-body);
  max-width: 620px;
  margin: 0 auto;
  color: var(--color-black);
  opacity: 0.85;
}

.subpage-section--on-color {
  color: var(--color-white);
}

.subpage-section--on-color .subpage-section__title,
.subpage-section--on-color .subpage-section__lead,
.subpage-section--on-color .subpage-section__eyebrow {
  color: var(--color-white);
}

/* ── Feature grid (3-up cards) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-black);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card--blue  { background: var(--color-royal-blue);    color: var(--color-white); border-color: var(--color-royal-blue); }
.feature-card--pink  { background: var(--color-barbie-pink);   color: var(--color-white); border-color: var(--color-barbie-pink); }
.feature-card--green { background: var(--color-electric-green); color: var(--color-black); border-color: var(--color-electric-green); }
.feature-card--orange{ background: var(--color-orangy-red);    color: var(--color-white); border-color: var(--color-orangy-red); }
.feature-card--purple{ background: var(--color-dark-purple);   color: var(--color-white); border-color: var(--color-dark-purple); }

.feature-card__number {
  font-family: var(--font-offbit);
  font-weight: 400;
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.feature-card__title {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.05;
  margin-bottom: var(--space-xs);
}

.feature-card__body {
  font-family: var(--font-obviously);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ── Steps list (numbered horizontal) ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.step {
  text-align: left;
}

.step__num {
  font-family: var(--font-offbit);
  font-weight: 400;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--color-royal-blue);
  margin-bottom: var(--space-xs);
}

.step__title {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.step__body {
  font-family: var(--font-obviously);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.5;
}

.steps-grid--on-color .step__num { color: var(--color-white); }
.steps-grid--on-color .step__title,
.steps-grid--on-color .step__body { color: var(--color-white); }

/* ── Story block (text + image) ── */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) 0;
}

.story-block--reverse .story-block__image { order: 2; }

.story-block__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
}

.story-block__image--bleed img {
  border-radius: 0;
}

.story-block__content h2 {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.story-block__content p {
  font-family: var(--font-obviously);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  text-wrap: pretty;
}

.story-block__content .btn {
  margin-top: var(--space-sm);
}

/* ── FAQ accordion ── */
.faq-list {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-category {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.05;
  color: var(--color-royal-blue);
  margin: clamp(1.7rem, 4vw, 3rem) 0 0.15rem;
}

.faq-category:first-child { margin-top: 0; }

.faq-item {
  border: 1.5px solid #73736f;
  border-radius: 1.35rem;
  padding: 0;
  background: #f8f8f6;
  overflow: hidden;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.faq-item[open] { background: #f8f8f6; }

.faq-item__summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem clamp(1.15rem, 3vw, 1.5rem) 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.3;
  color: var(--color-black);
  gap: 1rem;
}

.faq-item__summary::-webkit-details-marker { display: none; }
.faq-item__summary::marker { content: ''; }

.faq-item__summary::after {
  content: '+';
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1;
  color: #73736f;
  flex-shrink: 0;
}

.faq-item[open] .faq-item__summary::after {
  content: '−';
}

.faq-item__body {
  padding: 0 clamp(1.15rem, 3vw, 1.5rem) 1.25rem;
  font-family: var(--font-obviously);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.45;
  color: var(--color-black);
}

.faq-item__body p {
  max-width: 900px;
}

.faq-item__body a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(29, 29, 27, 0.5);
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.16em;
  transition: text-decoration-color var(--transition-fast);
}

.faq-item__body a:hover {
  text-decoration-color: currentColor;
}

.faq-item__summary:focus-visible {
  outline: 3px solid var(--color-royal-blue);
  outline-offset: -4px;
  border-radius: 1.15rem;
}

@media (hover: hover) and (pointer: fine) {
  .faq-item:hover {
    border-color: var(--color-black);
    background: var(--color-white);
  }
}

/* ── Legal long-form content ── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-obviously);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-black);
}

.legal-content h2 {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.05;
  margin: var(--space-md) 0 var(--space-sm);
  color: var(--color-black);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: var(--fs-h3);
  margin: var(--space-md) 0 var(--space-xs);
}

.legal-content p { margin-bottom: var(--space-sm); }

.legal-content ul,
.legal-content ol {
  margin: 0 0 var(--space-sm) 1.5rem;
}

.legal-content li { margin-bottom: 0.4em; }

.legal-content strong { font-weight: 500; }

.legal-content a {
  color: var(--color-royal-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover { color: var(--color-dark-purple); }

.legal-meta {
  font-family: var(--font-obviously);
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--color-black);
  opacity: 0.65;
  margin-bottom: var(--space-md);
}

/* ── Big CTA section ── */
.subpage-cta {
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--color-white);
}

.subpage-cta--blue   { background: var(--color-royal-blue); }
.subpage-cta--orange { background: var(--color-orangy-red); }
.subpage-cta--purple { background: var(--color-dark-purple); }
.subpage-cta--pink   { background: var(--color-barbie-pink); }

.subpage-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.subpage-cta__title {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1;
}

.subpage-cta__lead {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  margin-bottom: var(--space-xs);
}

.subpage-cta__inner .btn {
  align-self: center;
}

/* ── Contact info cards (used on kontakt.html) ── */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-info-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-black);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  text-decoration: none;
  color: var(--color-black);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  background: var(--color-royal-blue);
  color: var(--color-white);
  border-color: var(--color-royal-blue);
}

.contact-info-card__label {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.contact-info-card__value {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.1;
  word-break: break-word;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .feature-grid       { grid-template-columns: repeat(2, 1fr); }
  .feature-grid--4    { grid-template-columns: repeat(2, 1fr); }
  .steps-grid         { grid-template-columns: repeat(2, 1fr); }
  .contact-info-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .subpage-hero--split .subpage-hero__inner {
    grid-template-columns: 1fr;
  }
  .subpage-hero__image { order: -1; }
  .feature-grid,
  .feature-grid--2,
  .feature-grid--4    { grid-template-columns: 1fr; }
  .steps-grid         { grid-template-columns: 1fr; }
  .contact-info-grid  { grid-template-columns: 1fr; }
  .story-block        { grid-template-columns: 1fr; gap: var(--space-md); }
  .story-block--reverse .story-block__image { order: -1; }
  .subpage-hero       { padding: var(--space-lg) 0; }
  .subpage-section    { padding: var(--space-lg) 0; }
}

/* ══════════════════════════════════════
   WORKSHOPY page
   ══════════════════════════════════════ */

/* ── Overview (grass photo) ── */
/* Full-bleed section (the photo keeps its own max-width) so hero cards have
   the side gutters to overhang into. overflow-x: clip stops any remainder
   from growing a page scrollbar — clip, not hidden, so no scroll container. */
.workshop-overview {
  padding: var(--space-md) var(--space-md) 0;
  overflow-x: clip;
}

.workshop-overview img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

/* Mobile visitors use the readable product cards below the overview. */
@media (max-width: 767px) {
  .workshop-overview { display: none; }
}

/* ── Interactive hotspots over the grass photo ── */
.workshop-hero {
  position: relative;
  width: min(100%, 1440px);
  margin: 0 auto;
}

/* Overlay follows the same responsive box as the photo. */
.workshop-hero__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  container-type: inline-size;
}

.workshop-hero__spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  border-radius: var(--radius-sm);
  /* label is there for screen readers, not to be seen */
  font-size: 0;
  color: transparent;
}

.workshop-hero__spot:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: -3px;
}

/* two classes so these win over the shared .workshop-popisek base,
   which is declared later in this file */
.workshop-popisek.workshop-hero__card {
  --card-width: max(22cqw, 170px);
  /* Keep the intended overhang on wide screens, but stop the card 1rem
     before the viewport edge at narrower desktop/tablet widths. */
  left: clamp(
    1rem,
    var(--card-l),
    calc(50vw + 50cqw - var(--card-width) - 1rem)
  );
  top: var(--card-t);
  right: auto;
  bottom: auto;
  width: var(--card-width);
  min-width: 0;
  max-width: calc(100vw - 2rem);
  height: auto;
  padding: 1.6em 1.5em 1.5em;
  border-radius: var(--radius-sm);
  font-size: 1cqw;
  z-index: 2;
}

/* JS keeps a single card open across the gap between hotspot and card. */
.workshop-hero__spot.is-open + .workshop-hero__card {
  opacity: 1;
  pointer-events: auto;
}

/* Below the grid breakpoint the photo is too small for readable cards —
   the product grid underneath carries the same information. */
@media (max-width: 767px) {
  .workshop-hero__layer { display: none; }
}

/* ── Intro / CTA ── */
.workshop-intro {
  padding: calc(var(--space-xl) / 2) var(--space-md) var(--space-lg);
  text-align: center;
}

.workshop-intro__title {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Product grid ── */
.workshop-grid-section {
  padding: 0 var(--space-md) var(--space-xl);
  scroll-margin-top: calc(var(--header-height) + var(--space-sm));
}

.workshop-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 2rem);
}

.workshop-card {
  min-width: 0;
}

.workshop-card__media {
  position: relative;
  aspect-ratio: 2279 / 3020;
  border-radius: var(--radius-card);
  overflow: hidden;
  /* so the detail card below can size its type against the card width */
  container-type: inline-size;
  isolation: isolate;
}

.workshop-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--transition-fast, 0.3s ease);
}

@media (hover: hover) and (pointer: fine) {
  .workshop-card:hover .workshop-card__media img {
    transform: scale(1.04);
  }
}

/* ── Detail card revealed on hover ── */
.workshop-popisek {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 11% 10% 8%;
  background: var(--color-dark-purple);
  color: var(--color-white);
  font-family: var(--font-obviously);
  /* cqw keeps the type in proportion to the card at every breakpoint */
  font-size: 4.4cqw;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast, 0.3s ease);
  z-index: 1;
}

.workshop-card:focus-within .workshop-popisek,
.workshop-card.is-open .workshop-popisek {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .workshop-card:hover .workshop-popisek {
    opacity: 1;
    pointer-events: auto;
  }
}

.workshop-popisek__title {
  font-weight: 500;
  font-size: 2em;
  line-height: 0.98;
  text-transform: uppercase;
}

.workshop-popisek__subtitle {
  font-weight: 400;
  font-size: 1.4em;
  line-height: 1.1;
  margin-top: 0.15em;
}

.workshop-popisek__rule {
  width: 100%;
  height: 0;
  border: 0;
  border-top: 0.26em dashed currentColor;
  margin: 1em 0 1.2em;
}

.workshop-popisek__row {
  font-size: 1.1em;
  line-height: 1.25;
  margin-bottom: 0.85em;
}

.workshop-popisek__row strong { font-weight: 500; }

.workshop-popisek__note {
  font-size: 1.1em;
  line-height: 1.35;
}

.workshop-popisek__cta {
  margin-top: auto;
  align-self: center;
  padding: 0.7em 1.5em;
  border-radius: var(--radius-pill);
  background: var(--color-electric-green);
  color: var(--color-dark-purple);
  font-size: 1.1em;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.workshop-popisek__cta:hover { filter: brightness(1.08); }

.workshop-card__title {
  font-family: var(--font-offbit);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-top: var(--space-sm);
}

.workshop-card__price {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: var(--fs-body);
  margin-top: 2px;
}

.workshop-card__desc {
  font-family: var(--font-obviously);
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-black);
  opacity: 0.65;
  margin-top: 4px;
}

/* ── Calendar ── */
.workshop-calendar-section {
  scroll-margin-top: calc(var(--header-height) + var(--space-sm));
  padding: 0 clamp(0.75rem, 3vw, 2rem) var(--space-2xl);
  text-align: center;
}

.workshop-calendar-section__title {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: var(--space-lg);
}

.workshop-calendar {
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  margin: 0 auto;
  text-align: left;
}

.workshop-calendar__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.workshop-calendar__month {
  font-family: var(--font-offbit);
  font-weight: 400;
  font-size: clamp(1.5rem, 8vw, 2rem);
  text-transform: uppercase;
}

.workshop-calendar__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 44px;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.workshop-calendar__nav [data-calendar-today] {
  min-width: 0;
  min-height: 44px;
}

.workshop-calendar__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-black);
  background: var(--color-white);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-fast, 0.2s ease), color var(--transition-fast, 0.2s ease);
}

.workshop-calendar__arrow:hover {
  background: var(--color-royal-blue);
  color: var(--color-white);
  border-color: var(--color-royal-blue);
}

.workshop-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1.5px solid var(--color-black);
  border-bottom: none;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow: hidden;
}

.workshop-calendar__weekdays > span {
  min-width: 0;
  padding: 0.65em 0.1em;
  text-align: center;
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-right: 1px solid var(--color-black);
}

.workshop-calendar__weekdays > span:last-child { border-right: none; }

.workshop-calendar__weekday-full { display: none; }
.workshop-calendar__weekday-short { display: inline; }

.workshop-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1.5px solid var(--color-black);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  overflow: hidden;
}

.workshop-calendar__cell {
  min-width: 0;
  min-height: clamp(64px, 18vw, 84px);
  padding: 0.25em;
  border-right: 1px solid var(--color-black);
  border-top: 1px solid var(--color-black);
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  overflow: hidden;
}

.workshop-calendar__grid .workshop-calendar__cell:nth-child(7n) { border-right: none; }
.workshop-calendar__grid .workshop-calendar__cell:nth-child(-n+7) { border-top: none; }

.workshop-calendar__cell--empty { background: rgba(29, 29, 27, 0.02); }

.workshop-calendar__daynum {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: 0.72rem;
}

.workshop-calendar__cell--today .workshop-calendar__daynum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--color-royal-blue);
  color: var(--color-white);
}

.workshop-calendar__event {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  padding: 0.3em 0.22em;
  color: var(--color-white);
  text-decoration: none;
}

.workshop-calendar__event--light-ink {
  color: var(--color-black);
}

.workshop-calendar__event-title {
  display: block;
  min-width: 0;
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: 0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.workshop-calendar__event-title::before {
  content: attr(data-short-title);
  font-size: clamp(0.44rem, 1.8vw, 0.56rem);
}

.workshop-calendar__event-meta {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  font-family: var(--font-obviously);
  font-size: 0.58rem;
  line-height: 1.3;
  opacity: 0.9;
}

@media (min-width: 600px) {
  .workshop-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .workshop-calendar__nav {
    display: flex;
    width: auto;
  }

  .workshop-calendar__arrow {
    width: 44px;
    height: 44px;
  }

  .workshop-calendar__weekdays > span {
    padding: 0.85em 0.6em;
    font-size: 0.8rem;
  }

  .workshop-calendar__weekday-full { display: inline; }
  .workshop-calendar__weekday-short { display: none; }

  .workshop-calendar__cell {
    min-height: 108px;
    padding: 0.6em;
    gap: 0.4em;
    overflow: visible;
  }

  .workshop-calendar__daynum { font-size: 0.85rem; }

  .workshop-calendar__event {
    border-radius: var(--radius-sm);
    padding: 0.4em 0.55em;
  }

}

@media (min-width: 900px) {
  .workshop-calendar__event-title {
    font-size: 0.62rem;
    line-height: 1.25;
  }

  .workshop-calendar__event-title::before { display: none; }

  .workshop-calendar__event-meta {
    position: static;
    width: auto;
    height: auto;
    padding: initial;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: pre-line;
    border: 0;
  }
}

@media (min-width: 601px) {
  .workshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .workshop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .workshop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ══════════════════════════════════════
   O NÁS — tým
   ══════════════════════════════════════ */

.team-showcase {
  position: relative;
  overflow: clip;
  background: var(--color-white);
  padding-block: clamp(4rem, 9vw, 8rem);
  isolation: isolate;
}

.team-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../images/team-yarn-background.webp');
  background-position: center top;
  background-repeat: repeat-y;
  background-size: min(52rem, 180vw) auto;
  pointer-events: none;
}

.team-showcase__inner {
  position: relative;
  z-index: 2;
}

.team-canvas {
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3.75rem, 11vw, 6rem);
  max-width: 22rem;
  margin: 0 auto;
}

.team-card {
  --team-color: var(--color-royal-blue);
  --team-ink: var(--color-white);
  --team-rotation: -2deg;
  min-width: 0;
  transform: rotate(var(--team-rotation));
}

.team-card--green {
  --team-color: var(--color-electric-green);
  --team-ink: var(--color-black);
  --team-rotation: 2.25deg;
}

.team-card--orange {
  --team-color: var(--color-orangy-red);
  --team-ink: var(--color-white);
  --team-rotation: -1.5deg;
}

.team-card--red {
  --team-color: #f04b37;
  --team-ink: var(--color-white);
  --team-rotation: 1.75deg;
}

.team-card--pink {
  --team-color: var(--color-barbie-pink);
  --team-ink: var(--color-white);
  --team-rotation: -2.4deg;
}

.team-card--blue-alt {
  --team-color: var(--color-royal-blue);
  --team-rotation: 1.4deg;
}

.team-card--purple {
  --team-color: var(--color-dark-purple);
  --team-rotation: -1.25deg;
}

.team-card__toggle {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.team-card__toggle:focus-visible {
  outline: 4px solid var(--team-color);
  outline-offset: 0.75rem;
}

.team-card__stack {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  isolation: isolate;
}

.team-card__backdrop {
  position: absolute;
  inset: 3% -4% -3% 4%;
  z-index: 0;
  border: 2px solid var(--team-color);
  background: var(--team-color);
  transform: rotate(3deg);
  transition: transform var(--transition-base);
}

.team-card__photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border: 2px solid var(--team-color);
  background: var(--color-white);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.team-card__bio {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: clamp(1.35rem, 4vw, 2.25rem);
  border: 2px solid var(--team-color);
  background: var(--team-color);
  color: var(--team-ink);
  font-family: var(--font-obviously);
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.28;
  opacity: 0;
  transform: translateY(93%);
  transition: opacity var(--transition-fast), transform var(--transition-base);
}

.team-card__name {
  position: absolute;
  left: 7%;
  bottom: -1.2rem;
  z-index: 5;
  min-width: 42%;
  padding: 0.55rem 1rem 0.45rem;
  border: 2px solid var(--team-color);
  background: var(--team-color);
  color: var(--team-ink);
  font-family: var(--font-obviously);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  line-height: 1;
  text-align: center;
  transition: transform var(--transition-base);
}

.team-card__clip {
  position: absolute;
  top: -1.15rem;
  left: 50%;
  z-index: 6;
  width: 1.45rem;
  height: 3.8rem;
  border: 0.24rem solid #a9aaad;
  border-radius: 999px;
  filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.25));
  transform: translateX(-50%) rotate(10deg);
}

.team-card__clip::after {
  content: '';
  position: absolute;
  inset: 0.28rem;
  border: 0.16rem solid #d7d8da;
  border-radius: inherit;
}

.team-card.is-open .team-card__bio,
.team-card__toggle[aria-expanded='true'] .team-card__bio {
  opacity: 1;
  transform: translateY(0);
}

.team-card.is-open .team-card__photo,
.team-card__toggle[aria-expanded='true'] .team-card__photo {
  opacity: 0.08;
  transform: translate(-3%, 4%) rotate(-2deg);
}

.team-card.is-open .team-card__backdrop,
.team-card__toggle[aria-expanded='true'] .team-card__backdrop {
  transform: translate(3%, -4%) rotate(5deg);
}

@media (hover: hover) and (pointer: fine) {
  .team-card:hover .team-card__bio {
    opacity: 1;
    transform: translateY(0);
  }

  .team-card:hover .team-card__photo {
    opacity: 0.08;
    transform: translate(-3%, 4%) rotate(-2deg);
  }

  .team-card:hover .team-card__backdrop {
    transform: translate(3%, -4%) rotate(5deg);
  }
}

@media (min-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2.5rem, 8vw, 5rem);
    row-gap: clamp(4.5rem, 9vw, 6.5rem);
    max-width: 48rem;
    padding-inline: clamp(1rem, 3vw, 2rem);
  }

  .team-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - clamp(2.5rem, 8vw, 5rem)) / 2);
    justify-self: center;
  }
}

@media (min-width: 900px) {
  .team-showcase::before {
    background-position: center 8rem;
    background-repeat: no-repeat;
    background-size: min(86rem, 140vw) auto;
  }

  .team-canvas {
    max-width: 70rem;
    margin: 0 auto;
  }

  .team-grid {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(2.25rem, 5vw, 4.75rem);
    row-gap: clamp(5rem, 8vw, 7.5rem);
    max-width: 70rem;
    padding-inline: 2rem;
  }

  .team-card:nth-child(2),
  .team-card:nth-child(5) {
    transform: translateY(2.75rem) rotate(var(--team-rotation));
  }

  .team-card:last-child {
    grid-column: 2;
    width: 100%;
  }

  .team-card__bio {
    font-size: clamp(0.95rem, 1.45vw, 1.2rem);
  }
}

@media (max-width: 420px) {
  .faq-item__summary {
    padding: 1rem 1rem 0.55rem;
  }

  .faq-item__body {
    padding: 0 1rem 1rem;
  }

  .team-grid {
    width: min(100%, 20rem);
    padding-inline: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card__photo,
  .team-card__bio,
  .team-card__backdrop,
  .team-card__name {
    transition: none;
  }
}
