/* TOPPLACHTY — NAPNUTO · /sluzby/ only. Authority: _spec/DESIGN.md §3 (M3), §5, §7.2.
   Base state is always fully visible; every animation lives inside prefers-reduced-motion: no-preference. */

/* ---------- intro band: a black tarp band hung from the rail ---------- */
.svc-intro { border-top: 14px solid; border-image: var(--al) 1; padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.svc-intro h1 { font-size: clamp(3.4rem, 9vw, 9rem); text-transform: uppercase; line-height: .86; letter-spacing: -.01em; }
.svc-intro-grid { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 900px) {
  .svc-intro-grid { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 2.5rem; }
  .svc-intro-grid .lede { max-width: 30ch; text-align: right; font-family: var(--f-mono); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.7; opacity: .85; }
}

/* ---------- layout: sticky side index + articles ---------- */
.svc-layout { display: block; }
.side-index { display: none; }
.svc-articles { display: grid; gap: clamp(3.5rem, 7vw, 6.5rem); }
@media (min-width: 1280px) {
  .svc-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .side-index { display: grid; gap: .55rem; position: sticky; top: 96px; }
  .side-index a { text-decoration: none; color: inherit; opacity: .62; line-height: 1.4; padding: .1rem 0; border-left: 2px solid transparent; padding-left: .7rem; }
  .side-index a[aria-current] { opacity: 1; border-left-color: var(--yellow-deep); }
}
@media (prefers-reduced-motion: no-preference) { .side-index a { transition: opacity var(--t-fast), border-color var(--t-fast); } }

.svc-articles article > h2 { margin-bottom: 1.4rem; }
.svc-articles h3 { margin-top: 2.2em; margin-bottom: .5em; }
.svc-articles article::after { content: ""; display: block; clear: both; }

/* okno placed between H2 and prose: full-width by default */
.svc-articles .okno { margin-bottom: 1.6rem; }
/* side family: floats right at 44% on desktop, stacks above prose on narrower screens */
.okno.side { margin-bottom: 1.6rem; }
@media (min-width: 1024px) {
  .okno.side { float: right; width: 44%; margin: 0 0 1rem 2rem; }
}

/* ---------- M3 „Rolování" — the pergola wall rolls up on scroll ---------- */
.roll-okno { --roll: 1; }
.roll-frame { position: relative; overflow: hidden; }
.roll-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.roll-okno { --brown: #57371c; --hemw: clamp(26px, 5vw, 52px); --hemt: clamp(22px, 4vw, 40px); }
.roll-wall { /* their pergola wall: brown welded hems around a truly clear PVC film — the terrace is seen THROUGH it */
  position: absolute; left: 0; right: 0; top: 0;
  height: calc(100% * (1 - var(--roll)));
  overflow: hidden;
  background: transparent;
  box-shadow: inset var(--hemw) 0 0 var(--brown), inset calc(-1 * var(--hemw)) 0 0 var(--brown), inset 0 var(--hemt) 0 var(--brown), inset 0 -3px 6px rgba(0,0,0,.35);
  z-index: 2;
}
.roll-wall::before { /* the clear film */
  content: ""; position: absolute; left: var(--hemw); right: var(--hemw); top: var(--hemt); bottom: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.26) 47%, rgba(255,255,255,.06) 55%, rgba(255,255,255,0) 68%),
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(1.2px) saturate(1.05); backdrop-filter: blur(1.2px) saturate(1.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 0 40px rgba(255,255,255,.08);
}
.roll-wall::after { /* eyelets along the top hem, weave on the hems */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 48px calc(var(--hemt) / 2), rgba(0,0,0,.7) 0 3.5px, #e2e2e2 4px 5.5px, #7a7a7a 6px 7.5px, #f2f2f2 8px 9px, transparent 9.5px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px);
  background-size: 96px 100%, auto;
  background-repeat: repeat-x, repeat;
  -webkit-mask: linear-gradient(#000, #000) top / 100% var(--hemt) no-repeat, linear-gradient(#000, #000) left / var(--hemw) 100% no-repeat, linear-gradient(#000, #000) right / var(--hemw) 100% no-repeat;
  mask: linear-gradient(#000, #000) top / 100% var(--hemt) no-repeat, linear-gradient(#000, #000) left / var(--hemw) 100% no-repeat, linear-gradient(#000, #000) right / var(--hemw) 100% no-repeat;
}
.roll-tube { /* the rolled tarp around its zatěžovací trubka */
  position: absolute; left: -3%; right: -3%; bottom: 0; transform: translateY(50%);
  height: clamp(14px, calc(14px + 30px * var(--roll)), 44px);
  border-radius: 999px;
  background: linear-gradient(180deg, #7d5533 0%, #57371c 38%, #2c1a0b 62%, #6a4527 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.25);
  z-index: 3;
}
.roll-strap { /* two straps holding the wall from the top rail; height shrinks with the wall */
  position: absolute; top: 0; width: 10px; height: 100%;
  background: repeating-linear-gradient(0deg, #101010 0 3px, #1c1c1c 3px 6px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
  z-index: 3;
}
.roll-strap.l { left: 16%; } .roll-strap.r { right: 16%; }
.roll-rail { position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--al); box-shadow: 0 2px 3px rgba(0,0,0,.45); z-index: 4; }
@media (prefers-reduced-motion: no-preference) { .roll-wall, .roll-tube { transition: height var(--t-fast) linear; } }

/* ---------- Provedení — the drawn cross-section ---------- */
.provedeni { display: block; width: 100%; height: auto; margin: 1.4rem 0; background: var(--cream-3); }
.provedeni .ln { stroke: var(--ink); stroke-width: 2; fill: none; }
.provedeni .ln-thin { stroke: var(--ink); stroke-width: 1; fill: none; opacity: .55; }
.provedeni .fill { fill: var(--cream); stroke: var(--ink); stroke-width: 2; }
.provedeni text { font-family: var(--f-mono); font-size: 13px; letter-spacing: .03em; fill: var(--ink); }

/* ---------- utilities local to this page ---------- */
.svc-articles .prose ul.uses { padding-left: 1.2em; list-style: square; }
