/* Strona usługi: hero i wstęp jak na stronie projektu (project.css), listy jak w projektach (pages.css). */
body[data-page="service"] main { padding-bottom: 0; }
.s-hero .p-hero-text h1 { grid-column: 1 / 9; font-size: clamp(52px, 8vw, 132px); }

/* 2. wstęp: spis usług po lewej (przyklejony), opis po prawej */
.s-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 120px var(--gutter) 160px; }
.s-index { grid-column: 1 / 4; align-self: start; position: sticky; top: 140px; }
.s-index .label { margin-bottom: 12px; }
.s-index a { display: flex; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--muted); transition: color .3s, padding .5s var(--ease); }
.s-index li:last-child a { border-bottom: 1px solid var(--line); }
.s-index a:hover { color: var(--fg); padding-left: 8px; }
.s-index a[aria-current="page"] { color: var(--fg); }
.s-index .num { font-size: var(--fs-s); padding-top: 2px; font-variant-numeric: tabular-nums; }
.s-intro .p-story { grid-column: 5 / 12; }
.p-story a { border-bottom: 1px solid var(--line); }
.p-story a:hover { border-color: var(--fg); }
.s-uses { display: grid; grid-template-columns: 160px 1fr; gap: var(--gutter); margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--fg); font-size: var(--fs); }
.s-uses .label { padding-top: 2px; }

/* 3. taśma: przyklejony ekran, zdjęcia przesuwają się w bok, każde na innej głębokości */
.s-strip { height: calc(100vh + var(--n) * 28vh); }
.s-strip-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding: var(--head) 0 var(--gutter); }
.s-strip-head { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter); }
.s-strip-head .muted { font-variant-numeric: tabular-nums; }
.s-track { flex: 1; display: flex; align-items: center; gap: 7vw; padding: 0 var(--gutter) 0 40vw; width: max-content; will-change: transform; }
.s-shot { margin: 0; flex: none; height: var(--h, 52vh); aspect-ratio: var(--ar); will-change: transform; }
.s-shot img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--soft); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 40px -24px rgba(0, 0, 0, .35); }
.s-shot:nth-child(4n + 1) { --h: 46vh; }
.s-shot:nth-child(4n + 2) { --h: 30vh; }
.s-shot:nth-child(4n + 3) { --h: 40vh; }
.s-shot:nth-child(4n + 4) { --h: 26vh; }

/* 4. myśl przewodnia */
.s-statement { padding: 160px var(--gutter); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.s-statement p { grid-column: 2 / 12; display: flex; gap: 20px; font-size: var(--fs-l); line-height: 1.15; letter-spacing: -.02em; }
.s-statement .plus { flex: none; width: 18px; height: 18px; margin-top: 10px; }
.s-statement a { border-bottom: 1px solid var(--line); }

/* 5–7. listy: projekty, pytania, blog */
.s-block { padding: 0 0 140px; }
.s-block-head { display: flex; justify-content: space-between; align-items: center; margin: 0 var(--gutter); padding-bottom: 14px; border-bottom: 1px solid var(--fg); }
.s-list .date { white-space: nowrap; }
.s-faq-list { padding: 0 var(--gutter); }
.s-faq details { border-bottom: 1px solid var(--line); }
.s-faq summary { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding: 18px 0; cursor: pointer; list-style: none; font-size: var(--fs-m); line-height: 1.25; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary span { grid-column: 4 / 11; }
.s-faq summary .plus { grid-column: 12; justify-self: end; width: 12px; height: 12px; margin-top: 5px; transition: transform .5s var(--ease); }
.s-faq details[open] summary .plus { transform: rotate(45deg); }
.s-faq details p { padding-bottom: 24px; color: var(--muted); line-height: 1.45; padding-left: calc((100% - 11 * var(--gutter)) / 12 * 3 + 3 * var(--gutter)); padding-right: calc((100% - 11 * var(--gutter)) / 12 * 3 + 3 * var(--gutter)); display: block; }
.s-faq details a { border-bottom: 1px solid var(--line); }

/* ścieżki: co robimy (4 kolumny, każda prowadzi do specjalizacji) i jak pracujemy (4 kroki) */
.s-does-list, .s-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); padding: 0 var(--gutter); }
.s-does-list > li > a, .s-does-list > li > div { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px 0 28px; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.s-does-list .num, .s-steps .num { font-size: var(--fs-s); color: var(--muted); font-variant-numeric: tabular-nums; }
.s-does-list b, .s-steps b { font-weight: 400; font-size: var(--fs-m); line-height: 1.2; display: flex; gap: 10px; }
.s-does-list b .plus { flex: none; width: 10px; height: 10px; margin-top: 6px; transition: transform .5s var(--ease); }
.s-does-list .muted { max-width: 30ch; }
.s-does-list .s-more { margin-top: auto; padding-top: 12px; align-self: flex-start; border-bottom: 1px solid currentColor; font-size: var(--fs-s); text-transform: uppercase; letter-spacing: .08em; }
.s-does-list a:hover { padding-top: 10px; }
.s-does-list a:hover b .plus { transform: rotate(90deg); }
.s-steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }
.s-steps li + li { border-left: 1px solid var(--line); padding-left: var(--gutter); margin-left: calc(var(--gutter) * -1); }
.s-steps p { max-width: 32ch; line-height: 1.45; }
.s-index ol + .label { margin-top: 28px; }

/* 8. kontakt */
.s-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 120px var(--gutter) 64px var(--corner);
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat, var(--bg);
}
.s-cta h2 { font-size: var(--fs-xl); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.s-cta .muted { max-width: 46ch; font-size: var(--fs-m); line-height: 1.3; }
.s-cta-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.s-cta-links > a:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 800px) {
  .s-hero .p-hero-text h1 { grid-column: 1 / -1; font-size: 48px; }
  .s-intro { padding-top: 80px; padding-bottom: 96px; }
  .s-index { grid-column: 1 / -1; position: static; margin-bottom: 48px; }
  .s-intro .p-story { grid-column: 1 / -1; }
  .s-uses { grid-template-columns: 1fr; gap: 6px; }
  .s-strip { height: calc(100vh + var(--n) * 36vh); }
  .s-track { padding-left: 20vw; gap: 10vw; }
  /* phones: size by width so wide frames never overflow the screen */
  .s-shot { height: auto; width: var(--w, 70vw); max-height: 52vh; }
  .s-shot:nth-child(4n + 1) { --w: 80vw; }
  .s-shot:nth-child(4n + 2) { --w: 58vw; }
  .s-shot:nth-child(4n + 3) { --w: 70vw; }
  .s-shot:nth-child(4n + 4) { --w: 50vw; }
  .s-statement { padding: 96px var(--gutter); }
  .s-statement p { grid-column: 1 / -1; font-size: 24px; gap: 12px; }
  .s-statement .plus { width: 12px; height: 12px; margin-top: 7px; }
  .s-block { padding-bottom: 96px; }
  .s-faq summary span { grid-column: 1 / 12; }
  .s-does-list, .s-steps { grid-template-columns: 1fr; }
  .s-steps li + li { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--line); margin-top: 18px; }
  .s-faq details p { padding-left: 0; padding-right: 0; }
  .s-cta { padding-top: 80px; }
}
