/* Kancelaria Prokop-Majchrzak — the dark room, split by the hyphen */
@view-transition { navigation: auto; }

:root {
  /* toga: black ground, ivory ink; the jabot colours mark the two practices */
  --bg: #0e0f11;
  --surface: #181a1d;
  --ink: #e8e6e1;
  --muted: #c5bfb5;
  --accent: #e8e6e1;
  --on-accent: #0e0f11;
  --radca: #1f3c70;    /* radca prawny: niebieski żabot */
  --adwokat: #1c5e40;  /* adwokat: zielony żabot */
  --field: var(--surface);

  --m: clamp(16px, 2.4vw, 36px);
  --gap: clamp(120px, 14vw, 220px);
  --display: "Unbounded", system-ui, sans-serif;
  --text: "Onest", system-ui, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-hero: clamp(2.6rem, 1rem + 7vw, 8.4rem);

  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- logo ---------- */
.mark { width: 1em; height: 1em; display: block; }
.logo { display: inline-flex; align-items: center; gap: .7em; text-decoration: none; font-size: 40px; }
.logo__word { font: 800 13px/1.15 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.logo__word small { display: block; font: 400 13px/1.3 var(--text); letter-spacing: 0; text-transform: none; color: var(--muted); }

/* ---------- header ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--m);
  transition: background-color .4s var(--ease), padding .4s var(--ease);
}
.bar.is-solid { background: var(--bg); padding-block: 12px; }
@media (max-width: 900px) {
  .bar nav a:not(.btn) { display: none; }
  .logo__word small { display: none; }
}
.bar nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: var(--step-small); }
.bar nav a:not(.btn) { text-decoration: none; position: relative; padding-block: 6px; }
.bar nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.bar nav a:not(.btn):hover::after, .bar nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--accent); color: var(--on-accent);
  font: 500 var(--step-small)/1 var(--text);
  padding: 14px 20px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s;
}
.btn:hover { transform: translateY(-2px); background: #fff; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- the split ---------- */
.split {
  --s: .5;
  position: relative; height: 100svh; min-height: 560px;
  display: flex; overflow: hidden; background: var(--bg);
}
.half {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  flex: 0 0 calc(var(--s) * 100%);
  padding: var(--m); padding-bottom: clamp(32px, 7vh, 72px);
  text-decoration: none; overflow: hidden; isolation: isolate;
}
.half--r { flex-basis: calc((1 - var(--s)) * 100%); }
.half.half--r { align-items: flex-end; text-align: right; }
.half__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.5) contrast(1.06) saturate(.85);
  transition: filter 1s var(--ease), opacity 1.6s ease;
  animation: drift 24s ease-in-out infinite alternate;
}
.half__img--b { opacity: 0; }
.half__img.is-on { opacity: 1; }
.half__img.is-off { opacity: 0; }
.half--l .half__img:first-of-type { view-transition-name: hero-firmy; }
.half--r .half__img { view-transition-name: hero-prywatnie; }
.half::after { /* neutral scrim under the text */
  content: ""; position: absolute; inset: 40% 0 0 0; z-index: -1;
  background: linear-gradient( /* taste-skill-ignore */to top, rgba(9, 10, 12, .85), rgba(9, 10, 12, 0));
}
.half:hover .half__img, .half:focus-visible .half__img { filter: brightness(.72) contrast(1.06) saturate(1); }
.split.is-leaning .half:not(:hover) .half__img { filter: brightness(.32) contrast(1.06) saturate(.6); }
.half { align-items: flex-start; }
.half__title { font-size: clamp(2.4rem, 5vw, 6rem); margin: 0 0 18px; white-space: nowrap; }
.half__lead b { font-weight: 500; display: block; }
.half__lead { max-width: 34ch; margin-bottom: 28px; min-height: calc(4 * 1.55em); } /* both halves keep the same block height, titles share one line */
.half .btn { pointer-events: none; }
.half--l .btn { background: var(--radca); color: var(--ink); }
.half--r .btn { background: var(--adwokat); color: var(--ink); }
.half:hover .btn { background: var(--ink); color: var(--bg); }
.half:hover .btn .arr { transform: translateX(6px); }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }

.seam {
  position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 100%); z-index: 3;
  width: 6px; margin-left: -3px; background: var(--ink); pointer-events: none;
  transform-origin: top;
}
.seam__mark {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 96px; height: 96px; display: grid; place-items: center;
  background: var(--bg); color: var(--ink); font-size: 56px; isolation: isolate;
}
.seam__mark::before, .seam__mark::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; z-index: -1; }
.seam__mark::before { left: 0; background: var(--radca); }
.seam__mark::after { right: 0; background: var(--adwokat); }
.split__title {
  position: absolute; z-index: 4; left: 50%; top: clamp(96px, 17vh, 170px); translate: -50% 0;
  width: min(1100px, calc(100% - 2 * var(--m)));
  text-align: center;
}
.split__title h1 {
  font: 800 clamp(1.1rem, .4rem + 2.6vw, 3rem)/1 var(--display);
  letter-spacing: .32em; text-transform: uppercase; margin-right: -.32em;
}
.split__title p { margin-top: 18px; font-size: var(--step-lead); color: var(--ink); }

@media (max-width: 760px) {
  .split { flex-direction: column; height: auto; min-height: 100svh; }
  .half, .half.half--r { flex: 1 0 auto; min-height: 50svh; padding-top: 150px; align-items: stretch; text-align: left; }
  .half .btn { justify-content: space-between; }
  .half__lead { max-width: none; }
  .half--l { padding-top: 190px; }
  .seam { display: none; }
  .half--r { box-shadow: inset 0 6px 0 var(--ink); } /* filled seam bar, taste-skill-ignore */
  .split__title { top: 92px; }
  .split__title h1 { letter-spacing: .16em; margin-right: -.16em; }
  .split__title p { font-size: 1.125rem; margin-top: 10px; }
  .half__title { white-space: normal; font-size: clamp(2.4rem, 12vw, 4rem); }
}

/* ---------- sections ---------- */
.wrap { padding-inline: var(--m); }
.section { padding-block: var(--gap) 0; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.h2 { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.4; }
.muted { color: var(--muted); }

/* intro: heading + facts */
.intro__head { grid-column: 1 / 6; }
.intro__text { grid-column: 7 / 13; display: grid; gap: 24px; }
.intro__text .lead { max-width: 40ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin-top: 16px; }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { font-size: var(--step-lead); line-height: 1.25; margin-top: 4px; overflow-wrap: anywhere; }

/* pinned sentence, photographs pass */
.pin { position: relative; height: 150svh; margin-top: 40px; }
.pin__stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.pin__stage p {
  width: clamp(320px, 40vw, 640px); text-align: center;
  font: 500 clamp(1.5rem, 1rem + 1.6vw, 2.25rem)/1.25 var(--text);
}
.pin__pass { position: absolute; inset: 0; z-index: 1; }
.pin__pass figure { position: absolute; }
.pin__pass img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) contrast(1.05); }
.pin__pass figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 10px; }
.pp1 { left: var(--m); top: 4svh; width: min(24vw, 440px); }
.pp2 { right: var(--m); top: 38svh; width: min(24vw, 440px); }
.pp3 { left: var(--m); top: 84svh; width: min(24vw, 440px); }
.pin__pass img { aspect-ratio: 4/5; }
@media (max-width: 900px) {
  .intro__head, .intro__text { grid-column: 1 / -1; }
  .intro__text { margin-top: 32px; }
}
@media (max-width: 760px) {
  .pin__stage p { width: auto; padding-inline: var(--m); font-size: 1.5rem; }
  .pin { height: auto; }
  .pin__stage { position: static; height: auto; padding-block: 64px; }
  .pin__pass { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-inline: var(--m); }
  .pin__pass figure { position: static; width: auto; }
  .pin__pass .pp1 { grid-column: span 2; }
}

/* the two people, divided by the seam */
.people { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); gap: 0; margin-top: 56px; }
.people::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 6px; margin-left: -3px; background: var(--ink); }
.person { grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 20px; align-content: start; padding: 8px clamp(24px, 4vw, 72px) 8px 0; }
.person > * { max-width: 62ch; }
.person__name { align-self: end; }
.person + .person { padding: 8px 0 8px clamp(24px, 4vw, 72px); }
.person__name { font-size: clamp(1.5rem, 2.9vw, 2.75rem); }
.person dd, .bio__text dd { overflow-wrap: anywhere; }
.person__role { font-size: var(--step-lead); }
.person dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; font-size: var(--step-small); }
.person dt { color: var(--muted); }
.link-more { display: inline-flex; gap: .5em; font-weight: 500; text-underline-offset: 6px; }
.link-more .arr { transition: transform .35s var(--ease); }
.link-more:hover .arr { transform: translateX(6px); }
@media (max-width: 900px) {
  .people { grid-template-columns: 1fr; grid-template-rows: none; }
  .person { grid-row: auto; grid-template-rows: none; }
  .people::before { display: none; }
  .person, .person + .person { padding: 0; }
  .person + .person { margin-top: 64px; padding-top: 40px; box-shadow: inset 0 6px 0 var(--ink); } /* filled seam bar, taste-skill-ignore */
}

/* prices like a menu */
.fees__head h2 { font-size: clamp(2rem, 2.8vw, 3rem); }
.fees__head { grid-column: 1 / 5; display: grid; gap: 28px; align-content: start; }
.fees__head img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: brightness(.6) contrast(1.05); }
.fees__head figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 10px; }
.fees__list { grid-column: 6 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-content: start; }
.fees__group h3 { font: 500 1.5rem/1.2 var(--text); margin: 0 0 28px; }
.fees__group + .fees__group h3 { margin-top: 0; }
.fee { display: grid; gap: 4px; margin-bottom: 26px; }
.fee__row { display: flex; justify-content: space-between; gap: 16px; font-size: 1.1875rem; }
.fee__row b { font-weight: 500; }
.fee p { font-size: 1rem; color: var(--muted); max-width: 36ch; }
@media (max-width: 900px) {
  .fees__head, .fees__list { grid-column: 1 / -1; }
  .fees__head img { width: 60%; }
  .fees__list { grid-template-columns: 1fr; margin-top: 48px; }
  .fees__group + .fees__group h3 { margin-top: 40px; }
}

/* contact: the number as display type, inverse field */
.contact {
  margin-top: clamp(80px, 9vw, 140px); background: var(--ink); color: var(--bg);
  display: grid; gap: clamp(56px, 8vw, 120px); padding: clamp(48px, 7vw, 104px) var(--m) 32px;
}
.contact ::selection { background: var(--bg); color: var(--ink); }
.contact__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact__top p { font-size: var(--step-lead); line-height: 1.35; max-width: 26ch; }
.contact__lines { align-self: end; display: grid; gap: clamp(8px, 2vw, 24px); }
.tel { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; text-decoration: none; }
.tel span { font-size: var(--step-small); text-align: right; }
.tel b {
  font: 800 clamp(2rem, 6.2vw, 7rem)/.95 var(--display); letter-spacing: -0.04em;
  transition: color .3s, transform .5s var(--ease); display: inline-block; white-space: nowrap;
}
.tel:hover b { transform: translateX(12px); }
.tel--radca b { color: var(--radca); }
.tel--adwokat b { color: var(--adwokat); }
.tel:hover b, .contact--side .tel:hover b { color: var(--bg); }
.contact--side { background: var(--field); color: var(--ink); }
.contact--side ::selection { background: var(--ink); color: var(--bg); }
.contact__foot { display: flex; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; font-size: var(--step-small); }
.contact__foot a { text-underline-offset: 4px; }
@media (max-width: 760px) {
  .tel { flex-wrap: wrap; justify-content: flex-start; gap: 4px 12px; }
  .tel span { text-align: left; }
  .tel b { font-size: 7.6vw; }
  .contact__foot { display: grid; gap: 12px; }
}

/* footer: one quiet line */
.foot { padding: 30svh var(--m) 30px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px 24px; align-items: end; font-size: var(--step-small); }
.foot .muted:last-child { text-align: right; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.credits { padding: 0 var(--m) 24px; font-size: 13px; color: var(--muted); max-width: 70ch; }
.credits a { color: var(--muted); }
@media (max-width: 760px) {
  .foot { grid-template-columns: 1fr; padding-top: 20svh; }
  .foot nav { justify-content: flex-start; }
  .foot .muted:last-child { text-align: left; }
}

/* ---------- practice pages ---------- */
.p-hero { position: relative; min-height: 100svh; display: grid; align-content: end; padding: 140px var(--m) clamp(40px, 8vh, 88px); isolation: isolate; overflow: hidden; }
.p-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) contrast(1.06); }
.p-hero::after { content: ""; position: absolute; inset: 35% 0 0 0; z-index: -1; /* scrim, taste-skill-ignore */ background: linear-gradient(to top, rgba(9, 10, 12, .9), rgba(9, 10, 12, 0)); }
.p-hero h1 { font-size: clamp(2.8rem, 1rem + 8vw, 10rem); }
.p-hero__row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-top: 28px; }
.p-hero__row p { max-width: 44ch; font-size: var(--step-lead); line-height: 1.4; }
.p-hero--firmy .p-hero__img { view-transition-name: hero-firmy; }
.p-hero--prywatnie .p-hero__img { view-transition-name: hero-prywatnie; }

/* close-ups on a board: tiles size to their content, no empty fields */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding-inline: var(--m); max-width: 1760px; margin-inline: auto; }
.tile { position: relative; overflow: hidden; padding: clamp(22px, 2.4vw, 36px); display: flex; flex-direction: column; gap: 16px; background: var(--surface); min-height: 260px; }
.tile h3 { font: 500 var(--step-lead)/1.2 var(--text); position: relative; max-width: 22ch; }
.tile ul { position: relative; z-index: 1; display: grid; gap: 8px; font-size: 1rem; }
.tile li { display: grid; grid-template-columns: 8px 1fr; gap: 12px; align-items: baseline; }
.tile li::before { content: ""; width: 7px; height: 7px; background: currentColor; transform: translateY(-2px); }
.tile--field { background: var(--field); }
.tile--ink { background: var(--ink); color: var(--bg); }
.tile--head { background: var(--bg); padding-left: 0; justify-content: center; }
.tile--head h2 { font-size: clamp(2.2rem, 1rem + 2.6vw, 3.75rem); }
.tile--head .lead { max-width: 34ch; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.32); transition: transform 1.2s var(--ease), filter .6s; }
.tile--photo:hover img { transform: scale(1.06); filter: brightness(.42); }
.tile[data-glyph]::after {
  content: attr(data-glyph); position: absolute; right: -.06em; bottom: -.28em; pointer-events: none;
  font: 800 clamp(8rem, 4rem + 9vw, 14rem)/1 var(--display); letter-spacing: -0.06em; opacity: .08;
  transition: transform 1.2s var(--ease);
}
.tile[data-glyph]:hover::after { transform: translate(-3%, -4%) rotate(-3deg); }
.w12 { grid-column: span 12; min-height: 0; }
.w12 ul { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.w6 { grid-column: span 6; }
.w4 { grid-column: span 4; }
@media (max-width: 1100px) {
  .w4 { grid-column: span 6; }
  .w12 ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .board { grid-template-columns: 1fr; gap: 6px; }
  .w4, .w6, .w12 { grid-column: span 1; }
  .w12 ul { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .tile[data-glyph]::after { display: none; }
}

/* one person, lit */
.bio__fig { grid-column: 1 / 6; }
.bio__fig img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: brightness(.62) contrast(1.05); }
.bio__fig figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 10px; }
.bio__text { grid-column: 7 / 13; display: grid; gap: 24px; align-content: center; }
.bio__text .person__name { font-size: clamp(1.5rem, 3.3vw, 3.1rem); }
.bio__text dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 24px; margin-top: 8px; }
.bio__text dt { color: var(--muted); }
@media (max-width: 760px) {
  .bio__fig, .bio__text { grid-column: 1 / -1; }
  .bio__fig img { width: 78%; }
  .bio__text { margin-top: 36px; }
}

.other-side { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; text-decoration: none; padding-block: 48px; }
.other-side b { font: 800 clamp(1.8rem, 1rem + 4vw, 5.5rem)/1 var(--display); text-transform: uppercase; letter-spacing: -0.03em; transition: transform .6s var(--ease); }
.other-side:hover b { transform: translateX(16px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
}

/* each practice wears its own jabot colour */
.strona-firmy { --field: var(--radca); }
.strona-prywatna { --field: var(--adwokat); }

/* ---------- content sections ---------- */
.sec-head { display: grid; gap: 20px; max-width: 62ch; margin-bottom: clamp(40px, 5vw, 72px); }

/* how we work: the seam turned on its side becomes the timeline */
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); padding-top: 56px; }
.process::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--ink); transform-origin: left; transform: scaleX(var(--draw, 1)); }
.process__tip {
  position: absolute; top: 3px; left: calc(var(--draw, 1) * 100%); translate: -50% -50%; z-index: 1;
  width: 48px; height: 48px; display: grid; place-items: center; font-size: 28px; color: var(--ink); isolation: isolate;
}
.process__tip::before, .process__tip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; z-index: -1; }
.process__tip::before { left: 0; background: var(--radca); }
.process__tip::after { right: 0; background: var(--adwokat); }
.process li { display: grid; gap: 12px; align-content: start; }
.process h3 { font: 800 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: -0.02em; }
.process p { max-width: 34ch; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* what to bring */
.prep { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prep__col { padding: clamp(24px, 3vw, 48px); display: grid; gap: 20px; align-content: start; }
.prep__col--radca { background: var(--radca); }
.prep__col--adwokat { background: var(--adwokat); }
.prep__col h3 { font: 500 var(--step-lead)/1.2 var(--text); }
.ticks { display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 12px 1fr; gap: 14px; align-items: baseline; }
.ticks li::before { content: ""; width: 10px; height: 10px; background: currentColor; transform: translateY(-1px); }
@media (max-width: 760px) { .prep { grid-template-columns: 1fr; } }

/* questions and scope: open one at a time, no lines, tone steps only */
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.qa__head { grid-column: 1 / 5; display: grid; gap: 20px; align-content: start; position: sticky; top: 110px; align-self: start; }
.qa__list { grid-column: 6 / 13; display: grid; gap: 8px; }
.qa details { background: var(--surface); transition: background-color .3s; }
.qa details[open] { background: #23262b; }
.strona-firmy .qa details[open], .strona-prywatna .qa details[open] { background: var(--field); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding: 22px 24px; font: 500 1.1875rem/1.35 var(--text); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 800 1.5rem/1 var(--display); transition: transform .4s var(--ease); flex: none; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { background: rgba(232, 230, 225, .06); }
.qa__body { padding: 0 24px 26px; display: grid; gap: 12px; max-width: 68ch; }
.qa__body ul { display: grid; gap: 8px; }
.qa__body li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: baseline; }
.qa__body li::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.qa__body small { font-size: var(--step-small); color: var(--muted); }
@media (max-width: 900px) {
  .qa__head, .qa__list { grid-column: 1 / -1; }
  .qa__head { position: static; margin-bottom: 32px; }
  .qa summary { padding: 18px; font-size: 1.0625rem; }
  .qa__body { padding: 0 18px 22px; }
}

/* deadline calculator */
.terms { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.terms__head { grid-column: 1 / 6; display: grid; gap: 20px; align-content: start; }
.terms__tool { grid-column: 7 / 13; background: var(--field); padding: clamp(24px, 3.4vw, 56px); display: grid; gap: 22px; }
.terms__tool label { display: grid; gap: 8px; font-size: var(--step-small); }
.terms__tool select, .terms__tool input {
  font: 500 1.0625rem/1.3 var(--text); color: var(--bg); background: var(--ink);
  border: 0; padding: 14px 16px; width: 100%; appearance: none; border-radius: 0;
}
.terms__tool select { background-image: none; cursor: pointer; }
.terms__tool output { display: grid; gap: 8px; min-height: 9em; padding-bottom: 8px; }
.terms__tool output b { font: 800 clamp(1.6rem, 1rem + 2.2vw, 2.8rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: -0.02em; }
.terms__tool output span { font-size: var(--step-lead); }
.terms__tool output small { font-size: var(--step-small); color: var(--muted); }
.terms__tool output.is-late span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.terms__note { font-size: var(--step-small); color: var(--muted); }
@media (max-width: 900px) {
  .terms__head, .terms__tool { grid-column: 1 / -1; }
  .terms__tool { margin-top: 32px; }
}
.qa details:not([open]) .qa__body { display: none; }
.qa__head .h2 { font-size: clamp(2rem, 1rem + 2.4vw, 3.4rem); }

/* calm intro on the main page, on every load: the mark draws itself, then the curtain lifts */
.curtain { display: none; }
.has-curtain:not(.curtain-open) body { overflow: hidden; }
.has-curtain .curtain {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px;
  padding: 16px; text-align: center; background: var(--bg); color: var(--ink); cursor: pointer;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.curtain.is-gone { opacity: 0; visibility: hidden; }
.curtain > :not(video) { position: relative; z-index: 1; }
.curtain__sea { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); opacity: 0; animation: c-fade 2.4s forwards; }
/* darker in the middle so the mark and the name stay readable over the water */
.curtain::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 48%, rgb(14 15 17 / .72), rgb(14 15 17 / .35)); }
.curtain__mark { width: clamp(88px, 10vw, 136px); height: auto; margin-bottom: 14px; }
.curtain__mark path { fill: none; stroke: currentColor; stroke-width: 11; stroke-dasharray: 1; stroke-dashoffset: 1; animation: c-draw 1.4s var(--ease) forwards; }
.curtain__mark path:last-child { animation-delay: .5s; }
.curtain__mark rect { fill: currentColor; transform-origin: 50% 50%; transform: scaleY(0); animation: c-grow 1s .3s var(--ease) forwards; }
.curtain__name { margin: 0; font: 800 clamp(1.2rem, .8rem + 1.6vw, 2rem)/1 var(--display); letter-spacing: .3em; text-transform: uppercase; opacity: 0; animation: c-name 1.6s 1.1s var(--ease) forwards; }
.curtain__rule { display: grid; grid-template-columns: 1fr 1fr; width: min(320px, 60vw); height: 4px; transform: scaleX(0); animation: c-grow-x 1.2s 1.5s var(--ease) forwards; }
.curtain__rule::before { content: ""; background: var(--radca); }
.curtain__rule::after { content: ""; background: var(--adwokat); }
.curtain__sub { margin: 0; color: var(--muted); opacity: 0; animation: c-fade 1s 2s forwards; }
.curtain__hint { position: absolute !important; bottom: 32px; left: 0; right: 0; font-size: 14px; color: var(--muted); opacity: 0; animation: c-fade 1s 2.6s forwards; }
@keyframes c-draw { to { stroke-dashoffset: 0; } }
@keyframes c-grow { to { transform: scaleY(1); } }
@keyframes c-grow-x { to { transform: scaleX(1); } }
@keyframes c-name { from { letter-spacing: .6em; } to { opacity: 1; letter-spacing: .14em; } }
@keyframes c-fade { to { opacity: 1; } }

/* privacy policy: one readable column under the solid bar */
.legal { max-width: calc(68ch + 2 * var(--m)); padding-block: 140px 96px; }
.legal h1 { font-size: var(--step-head); margin-bottom: 24px; }
.legal .lead { margin-bottom: 56px; }
.legal h2 { font: 500 var(--step-lead)/1.25 var(--text); margin: 48px 0 16px; padding-top: 16px; border-top: 4px solid; border-image: linear-gradient(90deg, var(--radca) 50%, var(--adwokat) 50%) 1; }
.legal p, .legal li { max-width: 68ch; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 14px; }
.legal ul { display: grid; gap: 10px; padding-left: 1.1em; }
.legal a { text-underline-offset: 3px; }
