/* Portfolio „Další práce“ + tlačítko na titulce – navazuje na styl šablony (tokeny z :root). */

/* Tlačítko pod devíti ukázkami na titulce */
.portfolio__more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.portfolio__more .btn { gap: .6rem; padding: 0 30px; min-height: 54px; }
.portfolio__more .btn span[aria-hidden] { transition: transform .2s ease; }
.portfolio__more .btn:hover span[aria-hidden] { transform: translateX(4px); }

/* Ilustrace v pravém horním rohu karet služeb („Co nabízím“) */
.mtype-card__mascot {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 1;
  width: auto;
  height: 118px;            /* stejná výška u všech tří, ať působí vyrovnaně */
  max-width: 44%;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.mtype-card:hover .mtype-card__mascot { transform: translateY(-6px) rotate(3deg) scale(1.05); }
@media (max-width: 720px) {
  .mtype-card__mascot { top: 14px; right: 14px; height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .mtype-card__mascot { transition: none; }
  .mtype-card:hover .mtype-card__mascot { transform: none; }
}

/* Podstránky */
.portfolio-page { min-height: 100vh; }
.portfolio-page .portfolio { border-top: 0; padding: 56px 0 110px; }

.pf-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}
.pf-back:hover { color: var(--green); }

.pf-archive .section-heading h1,
.pf-single__head h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.12;
}
.pf-archive .section-heading { margin-bottom: 0; }
.pf-archive .portfolio__grid { margin-top: 44px; }

/* Karta ve výpisu */
.pf-card { text-decoration: none; color: inherit; height: 100%; }
.pf-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
}
.pf-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), filter .3s ease;
}
.pf-card:hover .pf-card__img { transform: scale(1.04); filter: brightness(1.06) saturate(1.06); }
.pf-card__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 16, 15, .72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.pf-card .pcard__info { flex: 1; }
.pf-card__title { font-family: inherit; font-size: 1rem; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.pf-card__meta { margin-top: 8px !important; color: var(--green) !important; font-size: .76rem !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pf-card:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.pf-empty { margin-top: 3rem; opacity: .6; font-style: italic; }

/* Detail */
.pf-single__head { max-width: 820px; margin-bottom: 40px; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 24px 0 0; padding: 0; }
.pf-meta div { display: flex; flex-direction: column; gap: 2px; }
.pf-meta dt { color: var(--green); font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.pf-meta dd { margin: 0; font-weight: 700; }

.pf-gallery { columns: 2 420px; column-gap: 16px; }
.pf-gallery--single { columns: 1; max-width: 980px; }
.pf-gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  cursor: zoom-in;
  break-inside: avoid;
  transition: transform .3s ease, box-shadow .3s ease;
}
.pf-gallery__item:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, .36); }
.pf-gallery__item:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.pf-gallery__item img { display: block; width: 100%; height: auto; }

/* Předchozí / další */
.pf-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pf-pager__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.pf-pager__link:hover { border-color: var(--green); transform: translateY(-2px); }
.pf-pager__link span { color: var(--green); font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.pf-pager__link strong { font-size: .95rem; line-height: 1.35; }
.pf-pager__link--next { text-align: right; }

/* Výzva k akci */
.pf-cta {
  margin-top: 72px;
  padding: 44px 32px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(29, 211, 176, .10), rgba(57, 167, 255, .08));
}
.pf-cta h2 { margin-bottom: 10px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.pf-cta p { max-width: 560px; margin: 0 auto 24px; color: var(--muted); }

@media (max-width: 720px) {
  .portfolio-page .portfolio { padding: 36px 0 80px; }
  .pf-pager { grid-template-columns: 1fr; }
  .pf-pager__link--next { text-align: left; }
  .pf-gallery { columns: 1; }
  .pf-cta { padding: 32px 20px; margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-card__img, .pf-gallery__item, .pf-pager__link { transition: none; }
}
