/* zanepro — styly webu. Hodnoty odpovídají návrhu „Zanepro Web“ z Claude Design;
   úpravy pro menší obrazovky jsou soustředěné na konci souboru. */

/* ---------- základ ---------- */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #05151b; }
a { text-decoration: none; }
::selection { background: rgba(243, 176, 131, 0.3); }
[hidden] { display: none !important; }
img, video { max-width: 100%; }

.zp-root {
  min-height: 100vh;
  background: #05151b;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.zp-skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 10px 18px; border: 1px solid #f3b083; border-radius: 999px;
  background: #05151b; color: #f3b083;
  font: 600 13px/1.4 Inter, system-ui, sans-serif;
}
.zp-skip:focus { top: 16px; }

.zp-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@keyframes zpSlowZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes zpShine {
  0% { transform: translateX(-130%); opacity: 0; }
  12% { opacity: 1; }
  60% { opacity: 1; }
  72%, 100% { transform: translateX(430%); opacity: 0; }
}

/* ---------- hlavička a menu ---------- */

.zp-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: transparent; pointer-events: none; }
.zp-header__inner { display: flex; align-items: center; gap: 14px; padding: 24px 48px; max-width: 1280px; margin: 0 auto; }
.zp-header__logo { display: flex; align-items: center; margin-right: auto; cursor: pointer; pointer-events: auto; }
.zp-header__logo img { height: 44px; width: auto; display: block; }
.zp-header__actions { display: flex; align-items: center; gap: 14px; position: relative; pointer-events: auto; }

.zp-round {
  display: flex; align-items: center; justify-content: center; flex: none;
  box-sizing: border-box; width: 40px; height: 40px; margin: 0; padding: 1px 6px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.zp-round:hover { border-color: #f3b083; }
.zp-menu-toggle__inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; }
.zp-menu-toggle__inner:hover { color: #f3b083; }
.zp-menu-toggle__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: background 0.25s ease; }
.zp-flag { display: block; width: 22px; height: 15px; border-radius: 2px; }

.zp-menu { position: absolute; top: 52px; right: -8px; width: 270px; z-index: 30; filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.85)); }
.zp-menu__panel {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 96px 20px 30px;
  background: rgba(2, 7, 9, 0.62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  clip-path: polygon(50% 0, 100% 27%, 100% 100%, 0 100%, 0 27%);
}
.zp-menu__link {
  display: block; width: 100%; box-sizing: border-box; padding: 10px 14px; border-radius: 6px;
  font-family: 'Playfair Display', serif; font-weight: 500; font-size: 17px;
  letter-spacing: 0.06em; text-transform: uppercase; text-align: center; color: #fff;
}
.zp-menu__link.is-active { color: #f3b083; }
.zp-menu__link:hover { background: rgba(243, 176, 131, 0.12); }
.zp-menu__outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- oddělovače, linky, tlačítka ---------- */

.zp-divider { position: relative; width: min(880px, 100%); height: 104px; margin: 0 auto; display: flex; align-items: center; gap: 22px; }
.zp-divider--wide { width: min(1000px, 100%); }
.zp-divider--band { margin: 0 auto 72px; }
.zp-divider--contact { margin: 0 auto 56px; }
.zp-divider__line {
  position: relative; overflow: hidden; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(243, 176, 131, 0) 0%, rgba(243, 176, 131, 0.6) 22%, rgba(243, 176, 131, 0.6) 100%);
}
.zp-divider__line--end { background: linear-gradient(90deg, rgba(243, 176, 131, 0.6) 0%, rgba(243, 176, 131, 0.6) 0%, rgba(243, 176, 131, 0) 100%); }
.zp-divider__line::after {
  content: ''; position: absolute; top: -1px; left: 0; width: 34%; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 236, 214, 0) 0%, rgba(255, 240, 220, 0.9) 50%, rgba(255, 236, 214, 0) 100%);
  filter: blur(0.7px); animation: zpShine 7s ease-in-out infinite 0s; pointer-events: none;
}
.zp-divider__line--end::after { animation-delay: 1.5s; }
.zp-divider__arrow {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0; padding: 0; border: none; background: transparent; cursor: pointer;
  opacity: 0.75; transition: transform 0.35s ease, opacity 0.25s ease;
}
.zp-divider__arrow:hover { opacity: 1; }

.zp-rule {
  position: relative; overflow: hidden; height: 1px;
  background: linear-gradient(90deg, rgba(243, 176, 131, 0) 0%, rgba(243, 176, 131, 0.6) 14%, rgba(243, 176, 131, 0.6) 86%, rgba(243, 176, 131, 0) 100%);
}
.zp-rule::after {
  content: ''; position: absolute; top: -1px; left: 0; width: 26%; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 236, 214, 0) 0%, rgba(255, 240, 220, 0.85) 50%, rgba(255, 236, 214, 0) 100%);
  filter: blur(0.6px); animation: zpShine 7s ease-in-out infinite;
}
.zp-rule--band { width: min(1000px, 100%); margin: 72px auto 0; }
.zp-rule--home { margin-top: 56px; }

.zp-pill {
  display: inline-block; box-sizing: border-box; padding: 18px 36px; cursor: pointer;
  font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 12px; line-height: normal;
  letter-spacing: 0.06em; text-transform: uppercase; text-align: center; color: #f3b083;
  background: transparent; border: 1px solid rgba(243, 176, 131, 0.6); border-radius: 999px;
}
.zp-pill:hover { background: rgba(243, 176, 131, 0.1); border-color: rgba(243, 176, 131, 0.9); }
.zp-pill--shine { position: relative; overflow: hidden; }
.zp-pill--shine::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 236, 214, 0) 0%, rgba(255, 240, 220, 0.22) 50%, rgba(255, 236, 214, 0) 100%);
  animation: zpShine 7s ease-in-out infinite;
}
.zp-pill--small { padding: 14px 30px; border-color: rgba(243, 176, 131, 0.5); }
.zp-pill--small:hover { background: rgba(243, 176, 131, 0.12); border-color: rgba(243, 176, 131, 0.5); }

/* ---------- patička s kontakty ---------- */

.zp-band { position: relative; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; text-align: center; }
.zp-band--home {
  min-height: calc(100vh - 208px); min-height: calc(100svh - 208px);
  padding: 56px 48px 40px; background: linear-gradient(180deg, #05151b 0%, #181310 100%);
}
.zp-band--page, .zp-band--contact { padding: 0 48px 72px; }
.zp-band--services { padding: 56px 48px 72px; }
.zp-band--privacy { display: block; padding: 72px 48px; }
.zp-band__main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.zp-band__body { max-width: 820px; margin: 0 auto 32px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, 0.8); text-align: center; }
.zp-band__cta { margin-bottom: 56px; }
.zp-band__logo { height: 90px; width: auto; margin-top: 88px; margin-bottom: 56px; }
.zp-band__logo--contact { margin: 24px 0 0; }
.zp-band__meta { margin-top: 28px; display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.zp-band__privacy { color: rgba(243, 176, 131, 0.8); }
.zp-band__privacy:hover { color: #f3b083; }

.zp-contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.zp-contacts__item { display: block; }
.zp-contacts__label { display: block; margin-bottom: 16px; font-family: 'Playfair Display', serif; font-size: 44px; color: #fff; }
.zp-contacts__value { display: block; font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.05em; color: #f3b083; }
.zp-contacts__value--upper { text-transform: uppercase; }

/* ---------- úvodní stránka ---------- */

.zp-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  height: calc(100vh - 104px); height: calc(100svh - 104px); min-height: 400px;
}
.zp-hero--services { margin: 0 0 8px; }
.zp-hero__media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.zp-hero__media--zoom { animation: zpSlowZoom 34s ease-in-out infinite; will-change: transform; }
.zp-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 21, 27, 0.55) 0%, rgba(5, 21, 27, 0.35) 45%, rgba(5, 21, 27, 0.9) 92%, #05151b 100%);
}
.zp-hero__shade--services {
  background:
    linear-gradient(180deg, rgba(5, 21, 27, 0.55) 0%, rgba(5, 21, 27, 0.35) 45%, rgba(5, 21, 27, 0.9) 92%, #05151b 100%),
    linear-gradient(90deg, rgba(5, 21, 27, 0.4) 0%, rgba(5, 21, 27, 0.08) 24%, rgba(5, 21, 27, 0.08) 76%, rgba(5, 21, 27, 0.4) 100%);
}
.zp-hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.zp-hero__kicker { margin: 0 0 20px; font-size: 14px; letter-spacing: 0.25em; text-transform: uppercase; color: #fff; }
.zp-hero__title { position: relative; text-align: center; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55); }

.zp-display {
  margin: 0; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 96px; line-height: 1;
  letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
}

.zp-intro {
  position: relative; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: calc(100vh - 208px); min-height: calc(100svh - 208px);
  max-width: 760px; margin: 0 auto; padding: 64px 48px; text-align: center;
}
.zp-intro__p { margin: 0 0 24px; font-size: 17px; color: rgba(255, 255, 255, 0.75); }
.zp-intro__p--lead { font-size: 22px; color: #fff; }
.zp-intro__p--last { margin-bottom: 48px; }

.zp-dream {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  height: calc(100vh - 208px); height: calc(100svh - 208px); min-height: 440px;
}
.zp-dream__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #05151b 0%, rgba(5, 21, 27, 0.9) 8%, rgba(5, 21, 27, 0.3) 55%, rgba(5, 21, 27, 0.9) 92%, #05151b 100%);
}
.zp-dream__content {
  position: relative; z-index: 1; box-sizing: border-box; height: 100%; padding: 130px 160px 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 56px;
}
.zp-dream__title {
  max-width: 820px; margin: 0; text-align: center;
  font-family: 'Playfair Display', serif; font-weight: 600; font-size: 58px; line-height: 1.15;
  letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
}
.zp-dream__actions { display: flex; gap: 32px; align-items: center; justify-content: center; flex: none; }
.zp-dream__subtitle-wrap { display: flex; flex-direction: column; align-items: center; }
.zp-dream__subtitle { max-width: 560px; margin: 0; font-size: 17px; color: rgba(255, 255, 255, 0.85); text-align: center; }

.zp-circle {
  display: flex; align-items: center; justify-content: center; flex: none;
  box-sizing: border-box; width: 130px; height: 130px; margin: 0; padding: 16px;
  border: 2px solid #f3b083; border-radius: 50%; background: transparent; cursor: pointer;
}
.zp-circle:hover { background: rgba(243, 176, 131, 0.15); }
.zp-circle__label { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 18px; line-height: 1.25; color: #fff; text-align: center; }
.zp-circle__label--lg { font-size: 20px; }

/* ---------- postupně psaný text ---------- */

.zp-type { position: relative; }
.zp-type__typed { display: none; }
.js .zp-type__full { opacity: 0; }
.js .zp-type__typed { display: block; position: absolute; top: 0; left: 0; right: 0; }

.zp-type--para {
  margin-bottom: 26px; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, 0.8);
  text-align: justify; -webkit-hyphens: auto; hyphens: auto;
}
.zp-type--lead { margin: 44px 0 26px; font-family: 'Playfair Display', serif; font-size: 22px; line-height: 1.5; color: #f3b083; text-align: center; }
.zp-type--center { margin-bottom: 10px; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, 0.8); text-align: center; }
.zp-type--closing { margin: 72px 0 0; font-family: 'Playfair Display', serif; font-size: 22px; line-height: 1.5; color: #f3b083; text-align: center; }

/* ---------- O nás ---------- */

.zp-about { max-width: 1280px; margin: 0 auto; padding: 140px 48px 96px; }
.zp-about__title { margin: 0 0 72px; text-align: center; }

.zp-timeline { position: relative; left: min(0px, max(-107px, calc((976px - 100vw) / 2))); max-width: 880px; margin: 0 auto 88px; }
.zp-timeline__row { display: grid; grid-template-columns: 130px 28px 1fr; gap: 28px; }
.zp-timeline__marker-col { position: relative; }
.zp-timeline__marker {
  position: absolute; top: 14px; left: 0; right: 0; transform: translateY(-50%);
  font-family: 'Playfair Display', serif; font-size: 22px; line-height: 1.2; letter-spacing: 0.04em;
  text-transform: uppercase; text-align: right; color: #f3b083; transition: opacity 0.25s ease;
}
.zp-timeline__marker--year { top: 11px; font-size: 27px; }
.zp-timeline__axis { position: relative; display: flex; justify-content: center; }
.zp-timeline__line {
  width: 1px; height: 100%; transform-origin: top center; transform: scaleY(var(--p, 1));
  background: linear-gradient(180deg, rgba(243, 176, 131, 0.45) 0%, rgba(243, 176, 131, 0.45) 18%, rgba(243, 176, 131, 0.45) 100%);
}
.zp-timeline__line--first { background: linear-gradient(180deg, rgba(243, 176, 131, 0) 0%, rgba(243, 176, 131, 0.45) 18%, rgba(243, 176, 131, 0.45) 100%); }
.zp-timeline__line--last { background: linear-gradient(180deg, rgba(243, 176, 131, 0.45) 0%, rgba(243, 176, 131, 0.45) 18%, rgba(243, 176, 131, 0) 100%); }
.zp-timeline__dot {
  position: absolute; top: 8.5px; width: 11px; height: 11px; border-radius: 50%;
  background: #05151b; box-shadow: 0 0 0 1.5px #f3b083;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.3, 1.4, 0.4, 1);
}
.zp-timeline__text {
  padding-bottom: 44px; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, 0.8);
  text-align: justify; -webkit-hyphens: auto; hyphens: auto;
}
.js .zp-timeline__row { --p: 0; }
.js .zp-timeline__row:not(.is-started) .zp-timeline__marker,
.js .zp-timeline__row:not(.is-started) .zp-timeline__dot { opacity: 0; }
.js .zp-timeline__row:not(.is-started) .zp-timeline__dot { transform: scale(0.4); }

.zp-about__photo { position: relative; width: 100%; height: 520px; margin-bottom: 80px; overflow: hidden; }
.zp-about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.zp-about__photo-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #05151b 0%, rgba(5, 21, 27, 0.35) 22%, rgba(5, 21, 27, 0.25) 70%, #05151b 100%),
    linear-gradient(90deg, #05151b 0%, rgba(5, 21, 27, 0.15) 20%, rgba(5, 21, 27, 0.15) 80%, #05151b 100%);
}

.zp-stats { max-width: 1000px; margin: 0 auto 80px; }
.zp-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 52px 0; }
.zp-stats__item { text-align: center; }
.zp-stats__num { margin-bottom: 16px; font-family: Roboto, sans-serif; font-weight: 700; font-size: 60px; line-height: 1; letter-spacing: 0.01em; color: #fff; }
.zp-stats__label { max-width: 230px; margin: 0 auto; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }

.zp-about__team-title {
  margin: 0 0 72px; text-align: center;
  font-family: 'Playfair Display', serif; font-weight: 600; font-size: 48px; line-height: 1.15;
  letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
}

.zp-about__closing { max-width: 820px; margin: 340px auto 120px; text-align: center; transition: margin-top 0.85s cubic-bezier(0.2, 0.02, 0.16, 1); }
.zp-about.has-open-envelope .zp-about__closing { margin-top: 216px; }
.zp-about__closing-title { margin: 0 0 28px; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 34px; line-height: 1.25; color: #fff; }
.zp-about__closing-body {
  margin: 0 0 20px; font-size: 16px; line-height: 1.8; color: rgba(255, 255, 255, 0.8);
  text-align: justify; -webkit-hyphens: auto; hyphens: auto;
}
.zp-about__closing-body--center { margin-bottom: 36px; text-align: center; -webkit-hyphens: manual; hyphens: manual; }
.zp-about__closing-thanks { margin: 0; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 34px; line-height: 1.25; color: #f3b083; }

/* ---------- pohlednice, dopisy a obálky ---------- */

.zp-postcards { display: flex; justify-content: center; width: 100%; margin: 0 0 88px; }
.zp-postcards__row { display: flex; gap: 56px; align-items: flex-start; flex-wrap: wrap; justify-content: center; padding: 16px 0 0; }

.zp-postcard-wrap { padding-bottom: 0; transition: padding-bottom 0.85s cubic-bezier(0.2, 0.02, 0.16, 1) 0.1s; }
.zp-postcard-wrap.is-open { padding-bottom: 450px; transition-delay: 1s; }

.zp-postcard {
  position: relative; width: 426px; height: 326px; cursor: pointer;
  filter: brightness(0.84) saturate(0.78) contrast(0.97);
  transform: rotate(-1.5deg) translateY(0px);
  transition: transform 0.7s cubic-bezier(0.22, 0.6, 0.2, 1), filter 0.7s ease;
}
.zp-postcard:hover { transform: rotate(-1.1deg) translateY(-7px); filter: brightness(0.9) saturate(0.84) contrast(0.98); }
.zp-postcard--b { transform: rotate(1.2deg) translateY(26px); }
.zp-postcard--b:hover { transform: rotate(0.8deg) translateY(19px); }
.zp-postcard:focus-visible { outline: 2px solid #f3b083; outline-offset: 8px; }

.zp-paper-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(30, 20, 8, 0.2) 0px, rgba(30, 20, 8, 0) 7px),
    linear-gradient(270deg, rgba(30, 20, 8, 0.2) 0px, rgba(30, 20, 8, 0) 7px),
    linear-gradient(180deg, rgba(30, 20, 8, 0.18) 0px, rgba(30, 20, 8, 0) 7px),
    linear-gradient(0deg, rgba(30, 20, 8, 0.22) 0px, rgba(30, 20, 8, 0) 8px),
    radial-gradient(circle 26px at 0% 0%, rgba(255, 248, 230, 0.16) 0%, rgba(255, 248, 230, 0) 70%),
    radial-gradient(circle 30px at 100% 100%, rgba(255, 248, 230, 0.13) 0%, rgba(255, 248, 230, 0) 70%),
    radial-gradient(circle 24px at 100% 0%, rgba(28, 18, 6, 0.14) 0%, rgba(28, 18, 6, 0) 72%),
    radial-gradient(circle 28px at 0% 100%, rgba(28, 18, 6, 0.12) 0%, rgba(28, 18, 6, 0) 72%);
}

.zp-postcard__photo {
  position: absolute; inset: 0; z-index: 0; box-sizing: border-box; padding: 13px; background: #e8dfcb;
  -webkit-mask-image: url(../img/pohlednice/edge-1.svg); mask-image: url(../img/pohlednice/edge-1.svg);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4), 0 14px 26px rgba(0, 0, 0, 0.42), 0 42px 72px rgba(0, 0, 0, 0.4);
}
.zp-postcard--b .zp-postcard__photo { -webkit-mask-image: url(../img/pohlednice/edge-2.svg); mask-image: url(../img/pohlednice/edge-2.svg); }
.zp-postcard__image { position: relative; width: 400px; height: 300px; }
.zp-postcard__image img { display: block; width: 400px; height: 300px; max-width: none; object-fit: cover; }
.zp-postcard--a .zp-postcard__image img { filter: brightness(1.14) contrast(0.98); }
.zp-postcard__grain {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: 0.28;
  background-image: url(../img/pohlednice/grain.svg); background-size: 180px 180px; background-repeat: repeat;
}
.zp-postcard--b .zp-postcard__grain { background-position: 40px 25px; }
.zp-postcard__cracks {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: url(../img/pohlednice/cracks.svg); background-size: cover; background-repeat: no-repeat;
}
.zp-postcard--b .zp-postcard__cracks { transform: scaleX(-1); }
.zp-postcard__image-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 21, 27, 0.34) 0%, rgba(5, 21, 27, 0.1) 24%, rgba(5, 21, 27, 0.08) 72%, rgba(5, 21, 27, 0.32) 100%),
    linear-gradient(90deg, rgba(5, 21, 27, 0.26) 0%, rgba(5, 21, 27, 0.06) 22%, rgba(5, 21, 27, 0.06) 78%, rgba(5, 21, 27, 0.26) 100%);
}

/* dopis, který po otevření obálky vyjede dolů */
.zp-postcard__note {
  position: absolute; z-index: 10; left: 13px; bottom: 13px; pointer-events: none;
  transform-origin: 50% 0%; transform: translateY(0px) scale(0.97); opacity: 0;
}
.zp-postcard-wrap.is-played .zp-postcard__note { transition: transform 0.7s cubic-bezier(0.5, 0.02, 0.4, 1) 0s, opacity 0.3s ease 0.4s; }
.zp-postcard-wrap.is-open .zp-postcard__note {
  transform: translateY(330px) scale(1); opacity: 1;
  transition: transform 0.95s cubic-bezier(0.2, 0.02, 0.16, 1) 1.12s, opacity 0.35s ease 1.12s;
}
.zp-note {
  position: relative; box-sizing: border-box; width: 400px; height: 470px;
  -webkit-mask-image: url(../img/pohlednice/edge-3.svg); mask-image: url(../img/pohlednice/edge-3.svg);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(172deg, #e3d6b4 0%, #dccda6 48%, #d3c399 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.36), 0 12px 22px rgba(0, 0, 0, 0.4), 0 34px 56px rgba(0, 0, 0, 0.32);
  border: 0.5px solid rgba(58, 44, 24, 0.28);
  transform: rotate(-1.4deg);
}
.zp-postcard--b .zp-note { -webkit-mask-image: url(../img/pohlednice/edge-4.svg); mask-image: url(../img/pohlednice/edge-4.svg); transform: rotate(1.1deg); }
.zp-note__stains {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background:
    radial-gradient(ellipse 76px 48px at 91% 14%, rgba(120, 86, 40, 0.26) 0%, rgba(120, 86, 40, 0) 70%),
    radial-gradient(ellipse 88px 54px at 5% 84%, rgba(108, 78, 38, 0.2) 0%, rgba(108, 78, 38, 0) 74%),
    radial-gradient(ellipse 54px 40px at 34% 8%, rgba(112, 80, 38, 0.14) 0%, rgba(112, 80, 38, 0) 72%),
    radial-gradient(circle 5px at 46% 61%, rgba(84, 58, 28, 0.28) 0%, rgba(84, 58, 28, 0) 82%);
}
.zp-postcard--b .zp-note__stains {
  background:
    radial-gradient(ellipse 84px 56px at 12% 18%, rgba(114, 82, 38, 0.27) 0%, rgba(114, 82, 38, 0) 72%),
    radial-gradient(ellipse 66px 46px at 88% 80%, rgba(104, 74, 36, 0.22) 0%, rgba(104, 74, 36, 0) 72%),
    radial-gradient(ellipse 48px 62px at 97% 44%, rgba(96, 68, 32, 0.16) 0%, rgba(96, 68, 32, 0) 72%),
    radial-gradient(circle 6px at 63% 33%, rgba(80, 56, 26, 0.24) 0%, rgba(80, 56, 26, 0) 82%);
}
.zp-note__wear {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: 0.9;
  background-image: url(../img/pohlednice/note-wear-1.svg); background-size: cover; background-repeat: no-repeat;
}
.zp-postcard--b .zp-note__wear { background-image: url(../img/pohlednice/note-wear-2.svg); }
.zp-note__cracks {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.1; mix-blend-mode: multiply;
  background-image: url(../img/pohlednice/cracks.svg); background-size: cover; background-repeat: no-repeat;
}
.zp-postcard--b .zp-note__cracks { transform: scaleX(-1); }
.zp-note__inset { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 26px rgba(72, 52, 26, 0.3), inset 0 0 4px rgba(38, 26, 12, 0.3); }
.zp-note__text {
  position: absolute; left: 36px; right: 36px; top: 76px; bottom: 148px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  font-family: Roboto, sans-serif; font-weight: 400; font-size: 10.5px; line-height: 1.66; letter-spacing: 0.005em;
  color: rgba(34, 26, 14, 0.84); text-align: left; text-wrap: pretty; -webkit-hyphens: auto; hyphens: auto;
}
.zp-note__text p { margin: 8px 0 0; }
.zp-note__text p:first-child { margin: 0; }
.zp-note__signature {
  position: absolute; left: 36px; right: 52px; bottom: 104px; height: 44px;
  display: flex; align-items: flex-end; justify-content: flex-end;
  font-family: Parisienne, cursive; font-size: 40px; line-height: 1.1; color: #1e3a82;
  transform: rotate(-1.4deg); transform-origin: 50% 100%;
}
.zp-postcard--b .zp-note__signature { transform: rotate(1.1deg); }

/* obálka — trhání/slepení řídí sprite maska tear-mask.png (34 snímků) */
.zp-postcard__envelope {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  -webkit-mask-image: url(../img/pohlednice/tear-mask.png); mask-image: url(../img/pohlednice/tear-mask.png);
  -webkit-mask-size: 100% 3400%; mask-size: 100% 3400%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0% 0%; mask-position: 0% 0%;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.34)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.42)) drop-shadow(0 44px 70px rgba(0, 0, 0, 0.34));
}
.zp-postcard-wrap.is-played .zp-postcard__envelope { animation: zpMend 0.8s linear 0s both; }
.zp-postcard-wrap.is-open .zp-postcard__envelope { animation: zpTear 1.25s linear 0s both; }

.zp-envelope__airmail {
  position: absolute; inset: 0; box-sizing: border-box; padding: 13px;
  background: repeating-linear-gradient(45deg, #8a3d37 0 7px, #d8cdb8 7px 14px, #2d3155 14px 21px, #d8cdb8 21px 28px);
}
.zp-envelope__paper {
  position: relative; box-sizing: border-box; width: 100%; height: 100%;
  background: linear-gradient(178deg, #e6ddca 0%, #ded4bd 62%, #d5cab1 100%);
  border: 0.5px solid rgba(58, 44, 24, 0.3);
  box-shadow: inset 0 0 30px rgba(72, 52, 26, 0.3), inset 0 0 4px rgba(38, 26, 12, 0.34);
}
.zp-envelope__stains {
  position: absolute; inset: 0; mix-blend-mode: multiply;
  background:
    radial-gradient(ellipse 78px 50px at 11% 88%, rgba(122, 88, 44, 0.2) 0%, rgba(122, 88, 44, 0) 72%),
    radial-gradient(ellipse 56px 42px at 89% 16%, rgba(118, 86, 42, 0.16) 0%, rgba(118, 86, 42, 0) 72%),
    radial-gradient(ellipse 96px 62px at 72% 94%, rgba(96, 70, 36, 0.15) 0%, rgba(96, 70, 36, 0) 74%),
    radial-gradient(ellipse 44px 32px at 38% 6%, rgba(122, 88, 44, 0.12) 0%, rgba(122, 88, 44, 0) 72%),
    radial-gradient(circle 5px at 63% 47%, rgba(88, 62, 30, 0.28) 0%, rgba(88, 62, 30, 0) 80%),
    radial-gradient(circle 3px at 24% 34%, rgba(88, 62, 30, 0.24) 0%, rgba(88, 62, 30, 0) 80%);
}
.zp-postcard--b .zp-envelope__stains {
  background:
    radial-gradient(ellipse 62px 44px at 84% 79%, rgba(112, 80, 38, 0.24) 0%, rgba(112, 80, 38, 0) 70%),
    radial-gradient(ellipse 88px 54px at 8% 22%, rgba(126, 92, 46, 0.19) 0%, rgba(126, 92, 46, 0) 74%),
    radial-gradient(ellipse 52px 68px at 96% 52%, rgba(92, 66, 32, 0.17) 0%, rgba(92, 66, 32, 0) 72%),
    radial-gradient(ellipse 70px 36px at 46% 99%, rgba(108, 78, 40, 0.15) 0%, rgba(108, 78, 40, 0) 72%),
    radial-gradient(circle 4px at 31% 63%, rgba(80, 56, 26, 0.3) 0%, rgba(80, 56, 26, 0) 80%),
    radial-gradient(circle 6px at 77% 29%, rgba(80, 56, 26, 0.2) 0%, rgba(80, 56, 26, 0) 82%);
}
.zp-envelope__folds {
  position: absolute; inset: 0;
  background:
    linear-gradient(101deg, transparent 27.6%, rgba(255, 249, 235, 0.2) 28.1%, rgba(72, 54, 28, 0.09) 28.6%, transparent 29.1%),
    linear-gradient(79deg, transparent 60.6%, rgba(72, 54, 28, 0.1) 61.1%, rgba(255, 249, 235, 0.14) 61.5%, transparent 62%),
    linear-gradient(186deg, transparent 43.6%, rgba(255, 249, 235, 0.13) 44.1%, transparent 44.6%);
}
.zp-postcard--b .zp-envelope__folds {
  background:
    linear-gradient(96deg, transparent 51.6%, rgba(255, 249, 235, 0.17) 52.1%, rgba(72, 54, 28, 0.1) 52.6%, transparent 53.1%),
    linear-gradient(84deg, transparent 19.6%, rgba(72, 54, 28, 0.11) 20.1%, rgba(255, 249, 235, 0.12) 20.5%, transparent 21%),
    linear-gradient(176deg, transparent 68.6%, rgba(255, 249, 235, 0.11) 69.1%, transparent 69.6%),
    linear-gradient(191deg, transparent 22.6%, rgba(66, 48, 24, 0.07) 23.1%, transparent 23.6%);
}
.zp-envelope__cracks {
  position: absolute; inset: 0; opacity: 0.34; mix-blend-mode: multiply;
  background-image: url(../img/pohlednice/cracks.svg); background-size: cover; background-repeat: no-repeat;
}
.zp-postcard--b .zp-envelope__cracks { opacity: 0.44; transform: scale(-1, 1) rotate(0.6deg); }
.zp-envelope__light {
  position: absolute; inset: 0;
  background:
    linear-gradient(150deg, rgba(255, 246, 226, 0.16) 0%, rgba(255, 246, 226, 0) 42%),
    radial-gradient(ellipse at 50% 100%, rgba(48, 34, 16, 0.18) 0%, rgba(48, 34, 16, 0) 58%);
}
.zp-postcard--b .zp-envelope__light {
  background:
    linear-gradient(212deg, rgba(255, 246, 226, 0.13) 0%, rgba(255, 246, 226, 0) 46%),
    radial-gradient(ellipse at 32% 0%, rgba(48, 34, 16, 0.2) 0%, rgba(48, 34, 16, 0) 56%);
}
.zp-envelope__grain {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: 0.55;
  background-image: url(../img/pohlednice/grain.svg); background-size: 150px 150px; background-repeat: repeat;
}
.zp-postcard--b .zp-envelope__grain { background-position: 24px 18px; }
.zp-envelope__vignette {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: radial-gradient(ellipse at 50% 40%, rgba(120, 92, 52, 0) 46%, rgba(84, 62, 34, 0.22) 100%);
}
.zp-envelope__tint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(158deg, rgba(255, 247, 228, 0.13) 0%, rgba(255, 247, 228, 0.03) 34%, rgba(24, 16, 6, 0.07) 72%, rgba(24, 16, 6, 0.15) 100%);
}
.zp-envelope__postmark {
  position: absolute; z-index: 6; top: 54px; left: 56px; width: 96px; height: 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1.4px solid rgba(18, 18, 18, 0.82); border-radius: 50%;
  mix-blend-mode: multiply; opacity: 0.82; filter: blur(0.25px); transform: rotate(-13deg);
}
.zp-postcard--b .zp-envelope__postmark { top: 46px; left: 66px; transform: rotate(-9deg); }
.zp-envelope__postmark-city { font-family: Roboto, sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0.12em; color: rgba(20, 20, 20, 0.88); }
.zp-envelope__postmark-rule { width: 52px; height: 1px; background: rgba(20, 20, 20, 0.7); }
.zp-envelope__postmark-date { font-family: Roboto, sans-serif; font-weight: 400; font-size: 10px; letter-spacing: 0.1em; color: rgba(20, 20, 20, 0.85); }
.zp-envelope__postmark-year { margin-top: 2px; font-size: 7px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(20, 20, 20, 0.7); }
.zp-envelope__paravion {
  position: absolute; z-index: 4; left: 35px; bottom: 39px; padding: 4px 9px; white-space: nowrap;
  font-family: Roboto, sans-serif; font-weight: 500; font-size: 10px; letter-spacing: 0.2em; color: rgba(26, 26, 32, 0.86);
  border: 0.8px solid rgba(26, 26, 32, 0.72); mix-blend-mode: multiply; opacity: 0.84; filter: blur(0.15px);
}
.zp-envelope__lines { position: absolute; left: 185px; top: 219px; width: 196px; display: flex; flex-direction: column; gap: 20px; }
.zp-envelope__lines div { height: 1px; background: rgba(30, 26, 20, 0.16); }
.zp-envelope__signature {
  position: absolute; right: 57px; top: 181px; white-space: nowrap; text-align: right;
  font-family: Parisienne, cursive; font-size: 40px; line-height: 1; color: #1e3a82;
  opacity: 0.88; filter: blur(0.18px);
}
.zp-envelope__stamp {
  --zp-perf: radial-gradient(circle 2.5px at center, rgba(0, 0, 0, 0) 96%, #000);
  position: absolute; z-index: 4; top: 20px; left: 24px; width: 56px; height: 70px;
  box-sizing: border-box; padding: 5px 4px; display: flex; flex-direction: column;
  background: #ece2cd; opacity: 0.9; transform: rotate(-3.2deg);
  -webkit-mask:
    linear-gradient(#000, #000) center / calc(100% - 10px) calc(100% - 10px) no-repeat,
    var(--zp-perf) left 0 top -5px / 10px 10px round no-repeat,
    var(--zp-perf) left 0 bottom -5px / 10px 10px round no-repeat,
    var(--zp-perf) left -5px top 0 / 10px 10px no-repeat round,
    var(--zp-perf) right -5px top 0 / 10px 10px no-repeat round;
  mask:
    linear-gradient(#000, #000) center / calc(100% - 10px) calc(100% - 10px) no-repeat,
    var(--zp-perf) left 0 top -5px / 10px 10px round no-repeat,
    var(--zp-perf) left 0 bottom -5px / 10px 10px round no-repeat,
    var(--zp-perf) left -5px top 0 / 10px 10px no-repeat round,
    var(--zp-perf) right -5px top 0 / 10px 10px no-repeat round;
  filter: sepia(0.18) saturate(0.72) contrast(0.94) brightness(0.94) drop-shadow(0 1.5px 2.5px rgba(0, 0, 0, 0.42));
}
.zp-postcard--b .zp-envelope__stamp { top: 13px; left: 34px; transform: rotate(4.2deg); }
.zp-envelope__stamp-tint {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 18% 78%, rgba(150, 120, 70, 0.1) 0%, rgba(150, 120, 70, 0) 30%), linear-gradient(150deg, rgba(255, 255, 255, 0.5) 0%, rgba(120, 95, 55, 0.06) 100%);
}
.zp-envelope__stamp-country { margin-bottom: 3px; font-family: Roboto, sans-serif; font-weight: 400; font-size: 5.4px; letter-spacing: 0.08em; text-align: center; color: rgba(30, 26, 18, 0.78); }
.zp-envelope__stamp-frame {
  position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 3px;
  border: 0.8px solid rgba(30, 26, 18, 0.6); background: linear-gradient(160deg, #e8dcc0 0%, #e0d2b0 100%);
}
.zp-envelope__stamp-frame img { width: 100%; height: auto; max-height: 100%; object-fit: contain; opacity: 0.82; filter: saturate(0.8) contrast(0.95); }
.zp-envelope__stamp-value { position: absolute; top: 2px; left: 3px; font-family: Roboto, sans-serif; font-weight: 500; font-size: 7px; letter-spacing: 0.02em; color: rgba(28, 24, 16, 0.78); }

.zp-postcard__vignette {
  position: absolute; inset: 0; z-index: 9; pointer-events: none; mix-blend-mode: multiply;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(5, 21, 27, 0) 34%, rgba(5, 21, 27, 0.42) 82%, rgba(5, 21, 27, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 21, 27, 0.3) 0%, rgba(5, 21, 27, 0) 26%, rgba(5, 21, 27, 0) 74%, rgba(5, 21, 27, 0.28) 100%);
}

@keyframes zpTear {
  0.000% { -webkit-mask-position: 0% 0.000%; mask-position: 0% 0.000%; animation-timing-function: step-end; }
  12.271% { -webkit-mask-position: 0% 3.030%; mask-position: 0% 3.030%; animation-timing-function: step-end; }
  18.600% { -webkit-mask-position: 0% 6.061%; mask-position: 0% 6.061%; animation-timing-function: step-end; }
  23.723% { -webkit-mask-position: 0% 9.091%; mask-position: 0% 9.091%; animation-timing-function: step-end; }
  28.192% { -webkit-mask-position: 0% 12.121%; mask-position: 0% 12.121%; animation-timing-function: step-end; }
  32.231% { -webkit-mask-position: 0% 15.152%; mask-position: 0% 15.152%; animation-timing-function: step-end; }
  35.957% { -webkit-mask-position: 0% 18.182%; mask-position: 0% 18.182%; animation-timing-function: step-end; }
  39.441% { -webkit-mask-position: 0% 21.212%; mask-position: 0% 21.212%; animation-timing-function: step-end; }
  42.731% { -webkit-mask-position: 0% 24.242%; mask-position: 0% 24.242%; animation-timing-function: step-end; }
  45.860% { -webkit-mask-position: 0% 27.273%; mask-position: 0% 27.273%; animation-timing-function: step-end; }
  48.853% { -webkit-mask-position: 0% 30.303%; mask-position: 0% 30.303%; animation-timing-function: step-end; }
  51.728% { -webkit-mask-position: 0% 33.333%; mask-position: 0% 33.333%; animation-timing-function: step-end; }
  54.500% { -webkit-mask-position: 0% 36.364%; mask-position: 0% 36.364%; animation-timing-function: step-end; }
  57.182% { -webkit-mask-position: 0% 39.394%; mask-position: 0% 39.394%; animation-timing-function: step-end; }
  59.782% { -webkit-mask-position: 0% 42.424%; mask-position: 0% 42.424%; animation-timing-function: step-end; }
  62.308% { -webkit-mask-position: 0% 45.455%; mask-position: 0% 45.455%; animation-timing-function: step-end; }
  64.768% { -webkit-mask-position: 0% 48.485%; mask-position: 0% 48.485%; animation-timing-function: step-end; }
  67.168% { -webkit-mask-position: 0% 51.515%; mask-position: 0% 51.515%; animation-timing-function: step-end; }
  69.511% { -webkit-mask-position: 0% 54.545%; mask-position: 0% 54.545%; animation-timing-function: step-end; }
  71.803% { -webkit-mask-position: 0% 57.576%; mask-position: 0% 57.576%; animation-timing-function: step-end; }
  74.047% { -webkit-mask-position: 0% 60.606%; mask-position: 0% 60.606%; animation-timing-function: step-end; }
  76.247% { -webkit-mask-position: 0% 63.636%; mask-position: 0% 63.636%; animation-timing-function: step-end; }
  78.405% { -webkit-mask-position: 0% 66.667%; mask-position: 0% 66.667%; animation-timing-function: step-end; }
  80.525% { -webkit-mask-position: 0% 69.697%; mask-position: 0% 69.697%; animation-timing-function: step-end; }
  82.607% { -webkit-mask-position: 0% 72.727%; mask-position: 0% 72.727%; animation-timing-function: step-end; }
  84.656% { -webkit-mask-position: 0% 75.758%; mask-position: 0% 75.758%; animation-timing-function: step-end; }
  86.671% { -webkit-mask-position: 0% 78.788%; mask-position: 0% 78.788%; animation-timing-function: step-end; }
  88.656% { -webkit-mask-position: 0% 81.818%; mask-position: 0% 81.818%; animation-timing-function: step-end; }
  90.612% { -webkit-mask-position: 0% 84.848%; mask-position: 0% 84.848%; animation-timing-function: step-end; }
  92.540% { -webkit-mask-position: 0% 87.879%; mask-position: 0% 87.879%; animation-timing-function: step-end; }
  94.442% { -webkit-mask-position: 0% 90.909%; mask-position: 0% 90.909%; animation-timing-function: step-end; }
  96.318% { -webkit-mask-position: 0% 93.939%; mask-position: 0% 93.939%; animation-timing-function: step-end; }
  98.171% { -webkit-mask-position: 0% 96.970%; mask-position: 0% 96.970%; animation-timing-function: step-end; }
  100.000% { -webkit-mask-position: 0% 100.000%; mask-position: 0% 100.000%; animation-timing-function: step-end; }
}
@keyframes zpMend {
  0.000% { -webkit-mask-position: 0% 100.000%; mask-position: 0% 100.000%; animation-timing-function: step-end; }
  12.271% { -webkit-mask-position: 0% 96.970%; mask-position: 0% 96.970%; animation-timing-function: step-end; }
  18.600% { -webkit-mask-position: 0% 93.939%; mask-position: 0% 93.939%; animation-timing-function: step-end; }
  23.723% { -webkit-mask-position: 0% 90.909%; mask-position: 0% 90.909%; animation-timing-function: step-end; }
  28.192% { -webkit-mask-position: 0% 87.879%; mask-position: 0% 87.879%; animation-timing-function: step-end; }
  32.231% { -webkit-mask-position: 0% 84.848%; mask-position: 0% 84.848%; animation-timing-function: step-end; }
  35.957% { -webkit-mask-position: 0% 81.818%; mask-position: 0% 81.818%; animation-timing-function: step-end; }
  39.441% { -webkit-mask-position: 0% 78.788%; mask-position: 0% 78.788%; animation-timing-function: step-end; }
  42.731% { -webkit-mask-position: 0% 75.758%; mask-position: 0% 75.758%; animation-timing-function: step-end; }
  45.860% { -webkit-mask-position: 0% 72.727%; mask-position: 0% 72.727%; animation-timing-function: step-end; }
  48.853% { -webkit-mask-position: 0% 69.697%; mask-position: 0% 69.697%; animation-timing-function: step-end; }
  51.728% { -webkit-mask-position: 0% 66.667%; mask-position: 0% 66.667%; animation-timing-function: step-end; }
  54.500% { -webkit-mask-position: 0% 63.636%; mask-position: 0% 63.636%; animation-timing-function: step-end; }
  57.182% { -webkit-mask-position: 0% 60.606%; mask-position: 0% 60.606%; animation-timing-function: step-end; }
  59.782% { -webkit-mask-position: 0% 57.576%; mask-position: 0% 57.576%; animation-timing-function: step-end; }
  62.308% { -webkit-mask-position: 0% 54.545%; mask-position: 0% 54.545%; animation-timing-function: step-end; }
  64.768% { -webkit-mask-position: 0% 51.515%; mask-position: 0% 51.515%; animation-timing-function: step-end; }
  67.168% { -webkit-mask-position: 0% 48.485%; mask-position: 0% 48.485%; animation-timing-function: step-end; }
  69.511% { -webkit-mask-position: 0% 45.455%; mask-position: 0% 45.455%; animation-timing-function: step-end; }
  71.803% { -webkit-mask-position: 0% 42.424%; mask-position: 0% 42.424%; animation-timing-function: step-end; }
  74.047% { -webkit-mask-position: 0% 39.394%; mask-position: 0% 39.394%; animation-timing-function: step-end; }
  76.247% { -webkit-mask-position: 0% 36.364%; mask-position: 0% 36.364%; animation-timing-function: step-end; }
  78.405% { -webkit-mask-position: 0% 33.333%; mask-position: 0% 33.333%; animation-timing-function: step-end; }
  80.525% { -webkit-mask-position: 0% 30.303%; mask-position: 0% 30.303%; animation-timing-function: step-end; }
  82.607% { -webkit-mask-position: 0% 27.273%; mask-position: 0% 27.273%; animation-timing-function: step-end; }
  84.656% { -webkit-mask-position: 0% 24.242%; mask-position: 0% 24.242%; animation-timing-function: step-end; }
  86.671% { -webkit-mask-position: 0% 21.212%; mask-position: 0% 21.212%; animation-timing-function: step-end; }
  88.656% { -webkit-mask-position: 0% 18.182%; mask-position: 0% 18.182%; animation-timing-function: step-end; }
  90.612% { -webkit-mask-position: 0% 15.152%; mask-position: 0% 15.152%; animation-timing-function: step-end; }
  92.540% { -webkit-mask-position: 0% 12.121%; mask-position: 0% 12.121%; animation-timing-function: step-end; }
  94.442% { -webkit-mask-position: 0% 9.091%; mask-position: 0% 9.091%; animation-timing-function: step-end; }
  96.318% { -webkit-mask-position: 0% 6.061%; mask-position: 0% 6.061%; animation-timing-function: step-end; }
  98.171% { -webkit-mask-position: 0% 3.030%; mask-position: 0% 3.030%; animation-timing-function: step-end; }
  100.000% { -webkit-mask-position: 0% 0.000%; mask-position: 0% 0.000%; animation-timing-function: step-end; }
}

/* ---------- Jak to funguje ---------- */

.zp-services { max-width: 1280px; margin: 0 auto; padding: 0 48px 96px; }
.zp-services__section {
  box-sizing: border-box; max-width: 880px; margin: 0 auto; padding-top: 120px;
  min-height: calc(100vh - 208px); min-height: calc(100svh - 208px);
}
.zp-services__title {
  margin: 0 0 48px; text-align: right;
  font-family: 'Playfair Display', serif; font-weight: 600; font-size: 48px; line-height: 1.15;
  letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
}

/* ---------- Reference ---------- */

.zp-reviews__wrap { max-width: 1180px; margin: 0 auto; padding: 112px 48px 0; }
.zp-reviews__hero { padding-top: 150px; }
.zp-reviews__quotes { padding-top: 88px; }
.zp-reviews__title { max-width: 15ch; margin: 0 0 24px; font-family: 'Playfair Display', serif; font-weight: 500; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.12; color: #fff; }
.zp-reviews__intro { max-width: 600px; margin: 0; font-size: 16px; line-height: 1.8; color: rgba(255, 255, 255, 0.7); }

.zp-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 56px 48px; }
.zp-quote { display: flex; flex-direction: column; gap: 20px; margin: 0; padding-top: 26px; border-top: 1px solid rgba(243, 176, 131, 0.4); }
.zp-quote__text { margin: 0; }
.zp-quote__text p { margin: 0; font-family: 'Playfair Display', serif; font-weight: 500; font-size: 19px; line-height: 1.62; color: rgba(255, 255, 255, 0.92); text-wrap: pretty; text-align: justify; }
.zp-quote__author { margin-top: auto; font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #f3b083; }

.zp-eyebrow { margin-bottom: 22px; font-family: Inter, system-ui, sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.zp-where { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px; align-items: center; }
.zp-where__title { margin: 0 0 20px; font-family: 'Playfair Display', serif; font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.22; color: #fff; }
.zp-where__intro { max-width: 44ch; margin: 0 0 40px; font-size: 15px; line-height: 1.8; color: rgba(255, 255, 255, 0.7); text-align: justify; }
.zp-where__stats { display: flex; flex-wrap: wrap; gap: 36px 44px; }
.zp-map-stat { display: flex; flex-direction: column; gap: 8px; max-width: 190px; }
.zp-map-stat__n { display: flex; align-items: baseline; gap: 2px; font-family: 'Playfair Display', serif; font-size: 40px; line-height: 1; color: #f3b083; }
.zp-map-stat__n span { font-size: 20px; }
.zp-map-stat__label { font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, 0.55); text-align: justify; }
.zp-where__map-col { display: flex; flex-direction: column; gap: 24px; }
.zp-map { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: transparent; }
.zp-map svg { display: block; width: 100%; height: 100%; }
.zp-chips, .zp-tags { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.zp-chips { gap: 8px 10px; }
.zp-chips li {
  padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(243, 176, 131, 0.3);
  font-family: Inter, system-ui, sans-serif; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(246, 204, 163, 0.9);
}

.zp-portfolio__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 36px; }
.zp-portfolio__title { margin: 0 0 14px; font-family: 'Playfair Display', serif; font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); color: #fff; }
.zp-portfolio__intro { max-width: 54ch; margin: 0; font-size: 15px; line-height: 1.8; color: rgba(255, 255, 255, 0.7); }
.zp-tags { gap: 8px; }
.zp-tags li {
  padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(243, 176, 131, 0.35);
  font-family: Inter, system-ui, sans-serif; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #f3b083;
}
.zp-portfolio { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.zp-property { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 2px; background: #0b1d24; box-shadow: 0 0 0 1px rgba(243, 176, 131, 0.18); }
.zp-property img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zp-property__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 21, 27, 0.35) 0%, rgba(5, 21, 27, 0.05) 34%, rgba(5, 21, 27, 0.72) 74%, rgba(5, 21, 27, 0.94) 100%);
}
.zp-property__status {
  position: absolute; top: 14px; left: 14px; pointer-events: none; padding: 6px 11px; border-radius: 999px;
  background: rgba(5, 21, 27, 0.72); border: 1px solid rgba(243, 176, 131, 0.55);
  font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #f3b083;
}
.zp-property__info { position: absolute; left: 20px; right: 20px; bottom: 18px; pointer-events: none; display: flex; flex-direction: column; gap: 6px; }
.zp-property__country { font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #f3b083; }
.zp-property__type { margin: 0; font-family: 'Playfair Display', serif; font-weight: 500; font-size: 24px; line-height: 1.2; color: #fff; }
.zp-property__price { font-family: Inter, system-ui, sans-serif; font-size: 13px; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.75); }

/* ---------- Kontakt ---------- */

.zp-contact { position: relative; display: block; }
.zp-contact__bg { position: absolute; top: 0; left: 0; right: 0; height: 130vh; height: 130svh; overflow: hidden; pointer-events: none; }
.zp-contact__bg-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 21, 27, 0.78) 0%, rgba(5, 21, 27, 0.72) 46%, rgba(5, 21, 27, 0.88) 76%, #05151b 100%);
}
.zp-contact__inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 140px 48px 0; }
.zp-contact__intro { max-width: 880px; margin: 0 auto 120px; }
.zp-contact__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 88px; max-width: 1120px; margin: 0 auto; align-items: start; }
.zp-contact__title {
  margin: 0 0 40px; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 34px; line-height: 1.2;
  letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
}
.zp-contact__success { padding: 40px 0; border-top: 1px solid rgba(243, 176, 131, 0.5); border-bottom: 1px solid rgba(243, 176, 131, 0.5); }
.zp-contact__success-title { margin-bottom: 12px; font-family: 'Playfair Display', serif; font-size: 28px; color: #f3b083; }
.zp-contact__success p { margin: 0; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, 0.8); }

.zp-form { display: flex; flex-direction: column; gap: 30px; }
.zp-form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.zp-form__label { display: block; margin-bottom: 2px; font-family: Inter, system-ui, sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243, 176, 131, 0.85); }
.zp-form__input {
  box-sizing: border-box; width: 100%; min-height: 52px; padding: 14px 0 12px;
  font-family: Inter, system-ui, sans-serif; font-size: 15px; color: #fff;
  background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.22); border-radius: 0; outline: none;
}
.zp-form__input:focus { border-bottom-color: #f3b083; }
.zp-form__textarea { min-height: 132px; resize: vertical; line-height: 1.7; }
.zp-form__consent { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.7); cursor: pointer; }
.zp-form__consent input { flex: none; width: 16px; height: 16px; margin: 3px 3px 3px 4px; accent-color: #f3b083; }
.zp-form__consent a { color: #f3b083; }
.zp-form__submit {
  padding: 18px 40px; cursor: pointer;
  font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #f3b083;
  background: transparent; border: 1px solid #f3b083; border-radius: 999px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.zp-form__submit:disabled { color: rgba(255, 255, 255, 0.4); border-color: rgba(255, 255, 255, 0.2); cursor: not-allowed; }

.zp-contact__info { display: flex; flex-direction: column; gap: 44px; padding-top: 14px; }
.zp-contact__eyebrow { margin-bottom: 18px; font-family: Inter, system-ui, sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243, 176, 131, 0.85); }
.zp-contact__company { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.65); }
.zp-contact__company-name { font-family: 'Playfair Display', serif; font-size: 22px; color: #fff; }
.zp-contact__links { display: flex; flex-direction: column; gap: 20px; }
.zp-contact__link-label { display: block; margin-bottom: 6px; font-family: Inter, system-ui, sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.zp-contact__link-value { display: block; font-family: 'Playfair Display', serif; font-size: 26px; color: #f3b083; }
.zp-contact__closing { max-width: 880px; margin: 0 auto; }

/* ---------- Ochrana osobních údajů ---------- */

.zp-privacy { display: block; max-width: 820px; margin: 0 auto; padding: 150px 48px 40px; }
.zp-privacy__title {
  margin: 0 0 20px; font-family: 'Playfair Display', serif; font-weight: 600; font-size: clamp(30px, 4vw, 54px); line-height: 1.1;
  letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
}
.zp-privacy__updated { margin-bottom: 48px; font-family: Inter, system-ui, sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243, 176, 131, 0.8); }
.zp-privacy__sections { display: flex; flex-direction: column; gap: 40px; }
.zp-privacy__section h2 { margin: 0 0 14px; font-family: 'Playfair Display', serif; font-weight: 500; font-size: 24px; line-height: 1.25; color: #fff; }
.zp-privacy__paras { display: flex; flex-direction: column; gap: 14px; }
.zp-privacy__paras p { margin: 0; font-size: 15px; line-height: 1.8; color: rgba(255, 255, 255, 0.72); text-align: justify; }
.zp-privacy__back { margin-top: 56px; }

/* ---------- lišta cookies ---------- */

.zp-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.zp-cookies__box {
  pointer-events: auto; box-sizing: border-box; width: 100%; max-width: 880px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 18px 22px; border-radius: 4px;
  background: rgba(2, 10, 14, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(243, 176, 131, 0.28);
}
.zp-cookies__text { flex: 1 1 320px; min-width: 0; margin: 0; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, 0.78); }
.zp-cookies__text a { color: #f3b083; }
.zp-cookies__actions { display: flex; gap: 10px; flex: none; }
.zp-cookies__decline {
  padding: 11px 20px; cursor: pointer; border-radius: 999px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: Inter, system-ui, sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.65);
}
.zp-cookies__decline:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.zp-cookies__accept {
  padding: 11px 22px; cursor: pointer; border-radius: 999px; background: transparent; border: 1px solid rgba(243, 176, 131, 0.6);
  font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: #f3b083;
}
.zp-cookies__accept:hover { background: rgba(243, 176, 131, 0.14); }

/* ---------- omezení pohybu ---------- */

@media (prefers-reduced-motion: reduce) {
  .zp-divider__line::after, .zp-rule::after, .zp-pill--shine::after { animation: none; opacity: 0; }
  .zp-hero__media--zoom { animation: none; }
  .zp-divider__arrow, .zp-about__closing, .zp-postcard, .zp-postcard-wrap { transition: none; }
}

/* ---------- menší obrazovky (návrh je navržený pro desktop) ---------- */

@media (max-width: 900px) {
  .zp-display { font-size: clamp(44px, 11vw, 96px); }
  .zp-dream__content { padding: 110px 40px 80px; }
  .zp-contact__grid { grid-template-columns: 1fr; gap: 64px; }
  .zp-contact__info { padding-top: 0; }
}

@media (max-width: 760px) {
  .zp-header__inner { padding: 16px 20px; }
  .zp-hero__kicker { font-size: 12px; letter-spacing: 0.2em; margin-bottom: 16px; }

  .zp-intro { padding: 56px 24px; }
  .zp-intro__p { font-size: 16px; }
  .zp-intro__p--lead { font-size: 20px; }

  .zp-dream { height: auto; min-height: max(440px, calc(100vh - 208px)); min-height: max(440px, calc(100svh - 208px)); }
  .zp-dream__content { height: auto; padding: 96px 24px 72px; gap: 40px; }
  .zp-dream__title { font-size: 36px; }
  .zp-dream__actions { gap: 20px; }
  .zp-circle { width: 118px; height: 118px; padding: 12px; }
  .zp-circle__label { font-size: 16px; }
  .zp-circle__label--lg { font-size: 18px; }
  .zp-dream__subtitle { font-size: 16px; }

  .zp-band--home, .zp-band--page, .zp-band--services, .zp-band--contact, .zp-band--privacy { padding-left: 20px; padding-right: 20px; }
  .zp-contacts { grid-template-columns: 1fr; gap: 32px; }
  .zp-contacts__label { font-size: 36px; margin-bottom: 8px; }
  .zp-band__logo { margin-top: 64px; margin-bottom: 40px; }
  .zp-band__logo--contact { margin: 16px 0 0; }
  .zp-divider--band { margin-bottom: 48px; }

  .zp-about { padding: 112px 20px 72px; }
  .zp-about__title { margin-bottom: 48px; }
  .zp-timeline__row { grid-template-columns: 20px 1fr; gap: 0 16px; }
  .zp-timeline__marker-col { grid-column: 2; grid-row: 1; }
  .zp-timeline__marker { position: static; transform: none; margin: 0 0 6px; font-size: 18px; text-align: left; }
  .zp-timeline__marker--year { font-size: 22px; }
  .zp-timeline__axis { grid-column: 1; grid-row: 1 / span 2; }
  .zp-timeline__dot { top: 6px; }
  .zp-timeline__text { grid-column: 2; grid-row: 2; padding-bottom: 36px; }
  .zp-about__photo { height: 300px; margin-bottom: 56px; }
  .zp-stats__grid { grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
  .zp-stats__num { font-size: 52px; }
  .zp-about__team-title { font-size: 30px; margin-bottom: 48px; }
  .zp-about__closing { margin-top: 140px; margin-bottom: 72px; }
  .zp-about.has-open-envelope .zp-about__closing { margin-top: 72px; }
  .zp-about__closing-title, .zp-about__closing-thanks { font-size: 28px; }

  .zp-services { padding: 0 20px 72px; }
  .zp-services__section { padding-top: 72px; }
  .zp-services__title { font-size: 32px; margin-bottom: 32px; }
  .zp-type--lead { font-size: 20px; }

  .zp-reviews__wrap { padding: 80px 20px 0; }
  .zp-reviews__hero { padding-top: 120px; }
  .zp-reviews__quotes { padding-top: 64px; }
  .zp-where { grid-template-columns: 1fr; gap: 40px; }
  .zp-where__stats { flex-wrap: nowrap; gap: 24px; }
  .zp-map-stat { flex: 1 1 0; }
  .zp-map-stat__label { text-align: left; }
  .zp-portfolio { grid-template-columns: 1fr; }

  .zp-contact__inner { padding: 112px 20px 0; }
  .zp-contact__intro { margin-bottom: 72px; }
  .zp-contact__title { font-size: 28px; }
  .zp-form__pair { grid-template-columns: 1fr; }
  .zp-form__input { font-size: 16px; }
  .zp-type--closing { margin-top: 56px; font-size: 20px; }

  .zp-privacy { padding: 120px 20px 32px; }
  .zp-cookies { left: 12px; right: 12px; bottom: 12px; }
}

@media (max-width: 480px) {
  .zp-postcard-wrap { zoom: 0.8; }
}

@media (max-width: 400px) {
  .zp-postcard-wrap { zoom: 0.74; }
  .zp-dream__title { font-size: 32px; }
}

@media (max-width: 350px) {
  .zp-postcard-wrap { zoom: 0.66; }
}
