/* Náš príbeh: page styles. Tokens, tiles, buttons and footer live in base.css. */

main { display: block; }
.motion [data-tpop] { opacity: 0; }
figure { margin: 0; }
section, article { scroll-margin-top: 14px; }
.sec { overflow-x: clip; }
.sec-head { display: grid; gap: 4px; margin-bottom: clamp(26px, 4vw, 52px); }
.sec-head .note { margin: 0; }
.sec-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 32px; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow-x: clip; padding-block: clamp(4px, 2vw, 24px) clamp(48px, 6vw, 88px); }
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "copy art" "idx art";
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 5vw, 72px);
  align-items: center; align-content: center;
  min-height: clamp(380px, 54vh, 580px);
}
.hero-copy { grid-area: copy; align-self: end; }
.hero-art { grid-area: art; position: relative; aspect-ratio: 6 / 5; width: 100%; }
.idx { grid-area: idx; align-self: start; margin-top: clamp(14px, 2vw, 26px); }
.hero-note { margin: 0 0 16px; min-height: 1.2em; }
.hero-title { font-size: clamp(3.3rem, 0.4rem + 10vw, 8.2rem); margin: 0 0 clamp(14px, 2vw, 22px); }
.hero-title .l1, .hero-title .l2 { display: block; }
.hero-title .l2 { color: var(--forest); margin: 0.04em 0 0 0.16em; }
.hero-lead { max-width: 38ch; margin: 0 0 20px; text-wrap: pretty; }
.hero-photo { position: absolute; inset: 0; rotate: -1.4deg; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip { position: absolute; right: -4%; bottom: -8%; width: 21%; aspect-ratio: 1; rotate: 6deg; display: grid; place-items: center; }
.hero-chip img { width: 70%; }
.hero-stamp { position: absolute; left: 4%; bottom: -16px; background: var(--cream); color: var(--clay); padding: 5px 14px; font-size: 0.9rem; rotate: -3deg; }
.idx-label { margin: 0; font-size: 1.35rem; }
.idx ul { display: flex; flex-wrap: wrap; gap: 0 22px; }
.idx-link { min-height: 44px; font-family: var(--font-note); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.hero .s1 { top: 14%; left: 44%; }
.hero .s2 { right: 0.5%; bottom: 4%; }
.hero .s3 { left: 38%; bottom: 3%; }
.hero .s4 { right: 1%; top: 0; }

/* ---------- ZINE ---------- */
.zine { display: grid; gap: clamp(28px, 4vw, 56px); }
.spread {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(380px, 38vw, 520px);
  border: 2px solid var(--forest); border-radius: var(--r-tile);
  background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(30, 58, 40, 0.3) calc(50% - 1px), rgba(30, 58, 40, 0.3) calc(50% + 1px), transparent calc(50% + 1px)), var(--cream);
}
.spread:nth-child(odd) { rotate: -0.5deg; }
.spread:nth-child(even) { rotate: 0.5deg; }
.spread::before, .spread::after { content: ""; position: absolute; left: calc(50% - 15px); width: 30px; height: 5px; border-radius: 2px; background: var(--forest); z-index: 2; }
.spread::before { top: 17%; }
.spread::after { bottom: 17%; }
.page { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3.6vw, 56px) clamp(22px, 3.4vw, 52px) clamp(42px, 4.4vw, 62px); }
.page-img { align-items: center; }
.pg { position: absolute; bottom: 12px; font-family: var(--font-note); font-weight: 600; font-size: 1.25rem; color: var(--ink-soft); }
.page:first-child .pg { left: 24px; }
.page:last-child .pg { right: 24px; }
.kap { display: flex; align-items: baseline; gap: 12px; margin: 0 0 4px; }
.kap-n { font-family: var(--font-poster); font-weight: 900; font-size: clamp(3.8rem, 2.4rem + 3.8vw, 6.4rem); line-height: 0.8; color: var(--berry); font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144; }
.kap-l { font-family: var(--font-note); font-weight: 700; font-size: 1.6rem; color: var(--clay); }
.page-text h3 { font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.55rem); line-height: 1.06; margin: 6px 0 16px; }
.page-text p { max-width: 42ch; }
.drop::first-letter { font-family: var(--font-poster); font-weight: 900; font-size: 3.5em; float: left; line-height: 0.78; padding: 0.05em 0.1em 0 0; color: var(--berry); }
.page-text .link-hand { margin-top: 4px; align-self: flex-start; min-height: 44px; }
.cap { margin: 14px 0 0; text-align: center; font-size: 1.55rem; }
.pr-a, .pr-b, .pr-c { width: min(100%, 460px); }
.pr-a { rotate: -3deg; }
.pr-b { rotate: 2.5deg; }
.pr-c { rotate: -2deg; }
.pr-d { width: min(100%, 460px); rotate: 2deg; }
.print img { aspect-ratio: 4 / 3; }
.pg-art { position: absolute; width: clamp(46px, 5.4vw, 74px); right: 7%; bottom: 8%; rotate: 8deg; }
.sp2 .pg-art, .sp4 .pg-art { right: auto; left: 7%; rotate: -8deg; }

.quote { position: relative; margin: clamp(44px, 6vw, 84px) auto 0; max-width: 920px; padding: clamp(34px, 5vw, 68px) clamp(24px, 5vw, 72px) clamp(28px, 4vw, 52px); rotate: -0.8deg; }
.q-mark { position: absolute; left: clamp(10px, 2vw, 28px); top: -0.6em; font-family: var(--font-poster); font-weight: 900; font-size: clamp(8rem, 5rem + 10vw, 15rem); line-height: 1; color: var(--mustard); pointer-events: none; }
.quote blockquote { margin: clamp(30px, 4vw, 54px) 0 0; position: relative; }
.quote blockquote p { margin: 0; font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); line-height: 1.25; text-wrap: balance; font-variation-settings: "INFM" 50, "BNCE" 20; }
.quote figcaption { margin-top: 20px; }
.quote .stamp { background: var(--cream); color: var(--clay); padding: 4px 16px; font-size: 0.95rem; }
.sec-zine .z1 { right: 1%; top: 3%; }
.sec-zine .z2 { left: 0.5%; bottom: 3%; }

/* ---------- MIESTO ---------- */
.miesto-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(22px, 3.4vw, 52px); align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 14px); }
.facts li { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 164px; padding: clamp(14px, 1.8vw, 22px); }
.facts li > img { width: 46%; max-height: 74px; object-fit: contain; align-self: flex-start; }
.facts li > span { font-weight: 800; font-size: clamp(1rem, 0.85rem + 0.5vw, 1.2rem); line-height: 1.18; }
.f-680 b { font-family: var(--font-poster); font-weight: 900; font-size: clamp(3.6rem, 2rem + 4vw, 6rem); line-height: 0.85; font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144; }
.facts .f-680 > span { font-family: var(--font-note); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--mustard); }
.f-tri { grid-column: 1 / -1; position: relative; min-height: 0; padding: 14px 12px 8px; }
.tri { width: 100%; max-height: 250px; overflow: visible; }
.tri-t { font-family: var(--font-note); font-size: 27px; font-weight: 700; fill: var(--forest); }
.tri-c { position: absolute; left: 50%; top: 58%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; font-family: var(--font-note); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--clay); }
.tri-c img { width: 40px; }
.f-vrchy > img, .f-majer > img { width: 44%; }
.strips { display: grid; gap: clamp(10px, 1.2vw, 14px); }
.strip-box { aspect-ratio: 1.9; }
.strip-box img { width: 114%; max-width: none; height: 100%; margin-left: -7%; object-fit: cover; }
.sec-miesto .m1 { right: 1%; top: 3%; }
.sec-miesto .m2 { left: 0.5%; bottom: 4%; }

/* ---------- PRINCIPY ---------- */
.pr-frame { position: relative; padding: clamp(16px, 2.4vw, 32px); border: 2px solid var(--forest); }
.pr-frame::before { content: ""; position: absolute; inset: 7px; border: 1.5px solid var(--forest); pointer-events: none; }
.pr-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(22px, 3vw, 42px) clamp(22px, 3.4vw, 52px); margin-bottom: clamp(10px, 1.2vw, 14px); }
.pr-banner h2 { color: var(--cream); font-size: clamp(1.9rem, 1.1rem + 3.2vw, 4rem); margin-top: 4px; }
.pr-banner .note { color: var(--mustard); margin: 0; }
.pr-ban-art { flex: none; width: clamp(56px, 9vw, 120px); }
.pr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 14px); }
.pr {
  aspect-ratio: 1 / 1.04; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
  padding: clamp(10px, 1.5vw, 20px);
}
.pn { align-self: flex-start; font-family: var(--font-note); font-weight: 700; font-size: 1.6rem; line-height: 1; opacity: 0.9; }
.pr img { width: 52%; flex: 1 1 0; min-height: 0; object-fit: contain; margin-block: 2px; }
.pr h3 { font-size: clamp(0.98rem, 0.8rem + 0.5vw, 1.25rem); line-height: 1.16; }
.sec-principy .p1 { right: 0.2%; top: 2%; }

/* ---------- GALERIA ---------- */
.shake { border: 0; padding: 0 0 6px; min-height: 44px; background-color: transparent; cursor: pointer; font-size: 1.05rem; }
.shake .arr { transition: transform 420ms var(--ease-back); }
.shake:active .arr { transform: rotate(180deg); }
.gal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(6px, 1.4vw, 18px) clamp(2px, 0.8vw, 10px); padding-block: 18px; }
.g { position: relative; width: var(--w, 24%); }
.gi {
  rotate: var(--r, 0deg); translate: var(--tx, 0px) var(--ty, 0px); cursor: zoom-in;
  transition: rotate 340ms var(--ease-back), scale 340ms var(--ease-back), translate 340ms var(--ease-back);
}
.gi img { aspect-ratio: var(--ar, 4 / 3); }
.gi:focus-visible { outline: 2.5px solid var(--clay); outline-offset: 6px; }
.g.is-up, .g:focus-within { z-index: 8; }
.g.is-up .gi, .gi:focus-visible { rotate: 0deg; scale: 1.5; translate: 0 0; cursor: zoom-out; }
@media (hover: hover) {
  .g:hover { z-index: 8; }
  .g:hover .gi { rotate: 0deg; scale: 1.5; translate: 0 0; }
}
.g1 { --w: 31%; --r: -3.5deg; --ty: 10px; }
.g2 { --w: 22%; --r: 2.8deg; --ty: -16px; --ar: 1; }
.g3 { --w: 28%; --r: -1.6deg; --ty: 22px; }
.g4 { --w: 21%; --r: 4.6deg; --ty: -6px; --ar: 3 / 4; }
.g5 { --w: 27%; --r: 2deg; --ty: -12px; }
.g6 { --w: 20%; --r: -4.2deg; --ty: 14px; --ar: 1; }
.g7 { --w: 32%; --r: 1.2deg; --ty: -4px; --ar: 16 / 10; }
.g8 { --w: 25%; --r: -2.6deg; --ty: 18px; }
.g9 { --w: 22%; --r: 3.8deg; --ty: -14px; --ar: 1; }
.g10 { --w: 27%; --r: -1.2deg; --ty: 8px; }
.sec-galeria .gs1 { left: 0.5%; top: 30%; }
.sec-galeria .gs2 { right: 0.8%; bottom: 6%; }

/* ---------- CESTA ---------- */
.cesta-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 76px); align-items: start; }
.route-h { font-family: var(--font-note); font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem); font-weight: 700; color: var(--clay); line-height: 1; margin-bottom: 14px; }
.route { margin: 0 0 28px; }
.route li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding-bottom: 18px; }
.route li:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 54px; bottom: 0; border-left: 2.5px dashed var(--clay); }
.rn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--clay); color: var(--cream); font-family: var(--font-note); font-weight: 700; font-size: 2.1rem; line-height: 1; rotate: -6deg; }
.route li:nth-child(even) .rn { rotate: 5deg; background: var(--forest); }
.route p { margin: 10px 0 0; font-weight: 600; max-width: 46ch; }
.route-alt { padding: clamp(20px, 2.6vw, 32px); margin-bottom: 32px; }
.route-alt h3 { font-family: var(--font-note); font-size: 2rem; font-weight: 700; color: var(--clay); margin-bottom: 6px; line-height: 1; }
.route-alt p { margin: 0; max-width: 48ch; font-weight: 600; }
.cesta-contact .note { margin: 0 0 6px; }
.cc-links { display: grid; gap: 4px; justify-items: start; margin: 0 0 22px; }
.cc-links .link-hand { min-height: 44px; overflow-wrap: anywhere; }
.cesta-map { padding: 8px; position: sticky; top: 24px; rotate: 0.8deg; }
.cesta-map iframe { display: block; width: 100%; height: clamp(340px, 40vw, 560px); border: 0; border-radius: var(--r-tile); background: var(--paper-2); }
.sec-galeria { padding-bottom: clamp(48px, 6vw, 84px); }
.sec-cesta { padding-bottom: clamp(40px, 5vw, 70px); }
.sec-cesta .c1 { right: 1%; top: 3%; }
.walk-row { position: relative; height: 92px; margin-top: clamp(36px, 5vw, 64px); overflow: hidden; border-top: 2px dashed var(--line); }
.wk { position: absolute; left: 0; bottom: 4px; width: 72px; height: auto; }
.wk2 { bottom: 6px; width: 76px; }
.wk3 { width: 78px; }

/* ---------- tablet 641 to 960 ---------- */
@media (max-width: 960px) and (min-width: 641px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); grid-template-areas: "copy art" "idx idx"; grid-template-rows: auto auto; min-height: 0; }
  .hero-title { font-size: 8.6vw; }
  .hero .s3 { display: none; }
  .hero .s1 { left: 40%; }
  .hero-art { align-self: center; }
  .miesto-grid { grid-template-columns: minmax(0, 1fr); }
  .strips { grid-template-columns: 1fr 1fr; }
  .strip-box { aspect-ratio: 1.3; }
  .pr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cesta-grid { grid-template-columns: minmax(0, 1fr); }
  .cesta-map { position: relative; top: 0; }
  .g { --w: 30% !important; }
  .g7 { --w: 40% !important; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "copy" "idx"; grid-template-rows: auto; min-height: 0; }
  .hero-art { aspect-ratio: 1.45; margin: 4px 0 28px; }
  .hero-chip { right: -2%; bottom: -10%; width: 24%; }
  .hero-title { font-size: 21vw; }
  .hero-btn { width: 100%; justify-content: center; }
  .idx { margin-top: 12px; }
  .idx-link { font-size: 1.5rem; }
  .hero .s1 { top: 366px; left: auto; right: 8%; }
  .hero .s2 { top: 436px; right: 3%; bottom: auto; }

  .spread { grid-template-columns: minmax(0, 1fr); min-height: 0; background: var(--cream); }
  .spread::before, .spread::after { display: none; }
  .spread .page-text { order: -1; }
  .page + .page { border-top: 2px dashed var(--line); }
  .spread .page { padding: 26px 20px 46px; }
  .spread .page-text .pg { left: 20px; right: auto; }
  .page-img .pg-art { right: 8%; bottom: 6%; left: auto; }
  .sp2 .pg-art, .sp4 .pg-art { left: auto; right: 8%; }
  .quote blockquote { margin-top: 44px; }

  .miesto-grid { grid-template-columns: minmax(0, 1fr); }
  .facts li { min-height: 140px; }
  .strips { grid-template-columns: 1fr; }
  .strip-box { aspect-ratio: 1.7; }
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr { aspect-ratio: 1 / 1.16; }
  .pr-banner { padding: 22px 18px; }
  .pr-ban-art { width: 54px; }

  .gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; padding-block: 12px; align-items: start; }
  .g { width: auto !important; }
  .g:nth-child(odd) .gi { transform-origin: left center; }
  .g:nth-child(even) .gi { transform-origin: right center; }
  .g.is-up .gi, .gi:focus-visible { scale: 1.32; }
  .g7 { grid-column: 1 / -1; }

  .cesta-grid { grid-template-columns: minmax(0, 1fr); }
  .cesta-map { position: relative; top: 0; }
  .cesta-map iframe { height: 360px; }
  .cesta-contact .btn { width: 100%; justify-content: center; }
  .wk { width: 56px; }
  .wk2 { width: 60px; }
  .wk3 { width: 60px; }
}
