/* BE4CAR URSUS — character A «Bokс»: near-black box, cool white light lines, one bottle green from their Land Rover film.
   Mobile first: base styles are the 390 px phone; wider screens only through min-width. */
:root {
  --bg: #0b0d0c; --bg2: #121614; --bg3: #181d1b;
  --fg: #f2f0ea; --mute: #a3a9a4; --line: rgb(242 240 234 / .14); --line2: rgb(242 240 234 / .32);
  --green: #4a6762; --green-hi: #7fa39b;
  --f: "Archivo", "Arial Narrow", Arial, sans-serif;
  --scr: "Alex Brush", "Brush Script MT", cursive;
  --pad: max(16px, 4vw);
  --kit-fg: var(--fg); --kit-bg: var(--bg); --kit-accent: var(--green-hi); --kit-line: var(--line); --kit-radius: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--fg); font: 400 16px/1.5 var(--f); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--green-hi); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--f); font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(28px, 7.4vw, 56px); }
p { margin: 0; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 8px; top: -64px; z-index: 99; padding: 10px 14px; background: var(--fg); color: var(--bg); }
.skip:focus { top: 8px; }
.nw { white-space: nowrap; }
.scr { font-family: var(--scr); font-weight: 400; font-stretch: 100%; letter-spacing: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; font: 600 16px/1 var(--f); text-decoration: none; border: 1px solid transparent; transition: background-color .2s ease, border-color .2s ease; }
.btn svg { flex: none; }
.btn--line { border-color: var(--line2); color: var(--fg); background: transparent; }
.btn--line:hover { border-color: var(--fg); }
.btn--green { background: var(--green); color: #f4f2ec; }
.btn--green:hover { background: #3f5853; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--green-hi); text-underline-offset: 5px; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgb(11 13 12 / .94); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 12px; height: 56px; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand__logo { width: 46px; height: 45px; }
.demo-tag { padding: 3px 8px; font: 500 12px/1.2 var(--f); color: var(--mute); border: 1px solid var(--line2); }
.top__nav, .top__tel, .top__book { display: none; }
.top__burger { display: grid; place-items: center; width: 48px; height: 48px; margin-left: auto; margin-right: -12px; background: none; border: 0; }
.top__panel { display: grid; padding: 4px var(--pad) 12px; border-top: 1px solid var(--line); background: var(--bg); }
.top__panel[hidden] { display: none; }
.top__panel a { display: flex; align-items: center; min-height: 48px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }

/* hero: phone — the film on top, edge to edge, text under it */
.hero__media { position: relative; overflow: hidden; background: var(--bg2); aspect-ratio: 4 / 5; max-height: 56svh; width: 100%; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__text { padding: 20px var(--pad) 24px; }
.hero h1 { font-size: clamp(27px, 7.6vw, 72px); max-width: 15ch; }
.hero__lead { margin-top: 10px; font-size: 17px; line-height: 1.4; color: var(--mute); max-width: 34ch; }
.hero__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }

/* signature «Wykończenie»: one 4:5 frame, caption over its bottom, 2×2 finish tiles under it (pattern plsw .dn) */
.fin { padding: 28px 0 28px; border-top: 1px solid var(--line); }
.fin__in { display: grid; gap: 12px; }
.fin__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; width: min(100%, calc((100svh - 300px) * 4 / 5)); justify-self: center; background: var(--bg2); }
.fin__pane { position: absolute; inset: 0; }
.fin__pane[hidden] { display: none; }
.fin__pane video, .fin__pane img { width: 100%; height: 100%; object-fit: cover; }
.fin__cap { position: absolute; inset: auto 0 0; padding: 56px 14px 12px; background: linear-gradient(180deg, rgb(11 13 12 / 0), rgb(11 13 12 / .9) 62%); pointer-events: none; }
.fin__svc { font: 600 13px/1.35 var(--f); color: var(--green-hi); }
.fin__say { margin-top: 4px; font-size: 15px; line-height: 1.4; max-width: 40ch; }
/* the light sweep: one 2 px line of light crosses the frame once on every finish change */
.fin__frame::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent calc(50% - 1px), rgb(244 242 236 / .85) calc(50% - 1px), rgb(244 242 236 / .85) calc(50% + 1px), transparent calc(50% + 1px)); transform: translateY(-50%); }
.fin__frame.is-sweep::after { animation: sweep .7s cubic-bezier(.4, .1, .3, 1) both; }
@keyframes sweep { 0% { opacity: 0; transform: translateY(-50%); } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(50%); } }
.fin__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: min(100%, calc((100svh - 300px) * 4 / 5)); justify-self: center; }
.fin__t { position: relative; display: grid; align-content: center; min-height: 60px; padding: 6px 12px; text-align: left; background: none; border: 1px solid var(--line); color: var(--mute); }
.fin__t::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--green-hi); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s ease-out; }
.fin__t[aria-pressed="true"] { color: var(--fg); border-color: var(--line2); }
.fin__t[aria-pressed="true"]::before { transform: scaleX(1); }
.fin__w { font: 400 30px/1 var(--scr); }
.fin__car { margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--mute); }
.fin__d { display: none; }

/* before / after (pattern starcar/plsw .ba): one stage, pair thumbnails under it */
.ba { padding: 28px 0 28px; border-top: 1px solid var(--line); }
.ba__in { display: grid; gap: 12px; }
.ba__stage { width: min(100%, calc((100svh - 300px) * 4 / 5)); justify-self: center; }
.ba__item { display: none; }
.ba__item.is-cur { display: block; }
.ba__frame { --kit-bg: var(--bg); width: 100%; background: var(--bg2); }
.kit-ba__tag { font: 500 13px/1.3 var(--f); }
.bapairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: min(100%, calc((100svh - 300px) * 4 / 5)); justify-self: center; }
.bap { display: grid; grid-template-columns: 1fr; align-content: start; gap: 6px; min-height: 60px; padding: 4px 4px 6px; text-align: left; background: none; border: 1px solid var(--line); color: var(--mute); }
.bap img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.bap b { display: block; font-weight: 600; font-size: 13px; line-height: 1.25; color: inherit; }
.bap small { display: block; font-size: 12px; line-height: 1.3; }
.bap[aria-pressed="true"] { color: var(--fg); border-color: var(--green-hi); }

/* works: mosaic with no holes (pattern maa / plsw .mz) */
.works { padding: 28px 0 28px; border-top: 1px solid var(--line); }
.mzw { container-type: inline-size; --n: 2; --gap: 2px; margin-top: 16px; }
.mz { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-auto-rows: calc((100cqw - (var(--n) - 1) * var(--gap)) / var(--n)); grid-auto-flow: dense; gap: var(--gap); }
.mz__t { position: relative; padding: 0; margin: 0; overflow: hidden; background: var(--bg2); border: 0; cursor: zoom-in; }
.mz__t--b { grid-column: span 2; grid-row: span 2; }
.mz__t--h { grid-row: span 2; }
.mz__t img, .mz__t video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .1, 1); }
.mz__t:hover img, .mz__t:hover video { transform: scale(1.03); }
.mz__t:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .mz__t img, .mz__t video { transition: none; } .mz__t:hover img, .mz__t:hover video { transform: none; } }

/* services: accordion with media per row (pattern chistayastolica .sv) */
.svc { padding: 28px 0 28px; border-top: 1px solid var(--line); }
.svc__note { margin-top: 8px; color: var(--mute); }
.svc__list { margin-top: 14px; border-bottom: 1px solid var(--line); }
.sv__h { margin: 0; font: inherit; border-top: 1px solid var(--line); }
.sv__btn { display: grid; grid-template-columns: 1fr 28px; align-items: center; column-gap: 10px; width: 100%; min-height: 58px; padding: 6px 0; text-align: left; background: none; border: 0; }
.sv__name { font: 400 29px/1.1 var(--scr); }
.sv__meta { display: none; font-size: 12px; color: var(--mute); white-space: nowrap; }
.acr { font-family: var(--f); font-weight: 600; font-stretch: 100%; font-size: .56em; letter-spacing: .02em; vertical-align: .12em; }
.sv__btn svg { width: 24px; height: 24px; transition: rotate .2s ease; }
.sv__btn[aria-expanded="true"] svg { rotate: 180deg; }
.sv__in { display: grid; gap: 12px; padding-bottom: 16px; }
.sv__media { margin: 0; height: 240px; overflow: hidden; background: var(--bg2); }
.sv__media video, .sv__media img { width: 100%; height: 100%; object-fit: cover; }
.lines { margin: 0; padding: 0; list-style: none; }
.lines li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.lines li:first-child { border-top: 0; }
.lines b { font-weight: 500; font-size: 13px; color: var(--mute); white-space: nowrap; }
.fnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.nav-fn { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 12px; text-align: left; font-weight: 600; font-size: 14px; line-height: 1.2; background: none; border: 1px solid var(--line2); }
.nav-fn svg { flex: none; width: 20px; height: 20px; color: var(--green-hi); }

/* reviews: sideways cards on the phone (pattern chistayastolica .rev) */
.rev { padding: 28px 0 28px; border-top: 1px solid var(--line); }
.rev__rating { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; }
.rev__rating svg { color: var(--fg); }
.rev__list { display: flex; gap: 10px; margin: 16px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.rev__list::-webkit-scrollbar { display: none; }
.rev__list li { flex: 0 0 86%; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--line); scroll-snap-align: start; }
.rev__list blockquote { margin: 0; font-size: 15px; line-height: 1.5; }
.rev__by { margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--mute); }

/* function: protection picker (working mock) */
.dob { padding: 28px 0 28px; border-top: 1px solid var(--line); background: var(--bg2); }
.dob__in { display: grid; gap: 16px; }
.dob__lead { margin-top: 8px; color: var(--mute); }
.chips { margin: 0 0 12px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips legend { width: 100%; margin-bottom: 6px; padding: 0; font-size: 13px; color: var(--mute); }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; border: 1px solid var(--line2); }
.chips input:checked + span { border-color: var(--green-hi); background: rgb(74 103 98 / .35); color: var(--fg); }
.chips input:focus-visible + span { outline: 2px solid var(--green-hi); outline-offset: 2px; }
.fm__go { width: 100%; margin-top: 4px; }
.fm__row { display: grid; gap: 6px; margin-bottom: 12px; }
.fm__lab { font-size: 13px; color: var(--mute); }
.fm input:not([type="hidden"]):not([type="radio"]):not([type="file"]), .fm select { width: 100%; min-height: 48px; padding: 0 12px; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line2); border-radius: 0; color-scheme: dark; }
.fm input[type="file"] { min-height: 48px; font-size: 14px; color: var(--mute); }
.fm__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fm__prev:empty { display: none; }
.fm__prev { margin-bottom: 12px; }
.kit-mock__note { margin: 16px 0 8px; font-size: 12px; letter-spacing: 0; text-transform: none; opacity: 1; color: var(--green-hi); }
.ans { padding: 16px; background: var(--bg); border: 1px solid var(--line); }
.ans__k { font-size: 13px; color: var(--mute); }
.ans__big { margin-top: 4px; font-weight: 800; font-stretch: 125%; font-size: 22px; line-height: 1.15; }
.ans__txt { margin-top: 8px; color: var(--mute); }
.ans__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ans__redo { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0; font-weight: 600; background: none; border: 0; text-decoration: underline; text-decoration-color: var(--green-hi); text-underline-offset: 5px; }
.dob__form.is-answered fieldset, .dob__form.is-answered .fm__go { display: none; }
.dob__form.is-answered .kit-mock__note { margin-top: 0; }

/* contacts (pattern chistayastolica: dl with 84 px labels, pin map) */
.ct { padding: 28px 0 28px; border-top: 1px solid var(--line); }
.ct__grid { display: grid; gap: 16px; }
.ct__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ct__top h2 .scr { font-size: 1.25em; line-height: .8; }
.ct__logo { width: 60px; height: 62px; flex: none; }
.ct__dl { margin: 14px 0 0; }
.ct__dl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 2px 12px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.ct__dl dt { font-size: 13px; color: var(--mute); }
.ct__dl dd { margin: 0; }
.ct__dl a { display: inline-flex; align-items: center; min-height: 44px; }
.ct__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ct__map { aspect-ratio: auto; height: 200px; }
.kit-map > a { color: var(--fg); }

/* footer: two-line word mask BE4CAR / URSUS (pattern moonshine + kit-foot-split) */
.foot { padding: 28px 0 calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #070908; }
.foot__wm { font-family: var(--f); font-weight: 800; font-stretch: 125%; font-size: calc((100vw - 2 * var(--pad)) / 6.2); line-height: .9; letter-spacing: -.01em; --kit-fg: #3a403d; }
.foot__info { margin-top: 18px; display: grid; gap: 8px; }
.foot__demo { color: var(--mute); }
.foot__links { display: flex; gap: 20px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }

/* bottom sheets for the mock buttons */
.sheet { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; background: transparent; color: var(--fg); }
.sheet::backdrop { background: rgb(0 0 0 / .6); }
.sheet__box { position: relative; padding: 22px var(--pad) calc(22px + env(safe-area-inset-bottom)); background: var(--bg2); border-top: 1px solid var(--line2); }
.sheet__h { margin: 0 48px 14px 0; font-size: 22px; }
.sheet__x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 0; }
.sheet__x svg { width: 22px; height: 22px; }
.bon { display: grid; justify-items: start; gap: 6px; margin-bottom: 12px; padding: 18px; background: var(--bg); border: 1px solid var(--green-hi); }
.bon__logo { width: 56px; height: 58px; }
.bon__k { font-size: 13px; color: var(--mute); }
.bon__job { font: 400 34px/1.05 var(--scr); }
.bon__who { font-size: 14px; color: var(--mute); }

/* sticky bar on the phone */
.bar { grid-template-columns: 1fr 1fr; }
.kit-bar.bar > a.btn { display: inline-flex; min-height: 48px; }

@media (min-width: 600px) {
  .rev__list li { flex-basis: 60%; }
}

@media (min-width: 900px) {
  .fin, .ba, .works, .svc, .rev, .dob, .ct { padding: 88px 0 96px; }
  .top__in { height: 64px; gap: 20px; }
  .top__tel { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; font-weight: 600; text-decoration: none; }
  .top__book { display: inline-flex; min-height: 44px; }
  .top__burger { margin-left: 0; }
  /* signature: list left, frame right, hover switches (kit) */
  .fin__in { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
  .fin__h { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 24px; }
  .fin__frame { grid-column: 2; grid-row: 1 / span 2; width: 100%; }
  .fin__tiles { grid-column: 1; grid-row: 2; grid-template-columns: 1fr; gap: 0; width: 100%; align-content: start; }
  .fin__t { grid-template-columns: minmax(150px, 34%) 1fr; column-gap: 24px; align-items: baseline; min-height: 104px; padding: 22px 8px 22px 0; border: 0; border-top: 1px solid var(--line); }
  .fin__t:last-child { border-bottom: 1px solid var(--line); }
  .fin__t[aria-pressed="true"] { border-color: var(--line); }
  .fin__t::before { left: 0; right: auto; width: 96px; }
  .fin__w { grid-row: 1 / span 2; font-size: clamp(44px, 4.2vw, 64px); }
  .fin__car { margin: 0; font-size: 18px; font-weight: 600; color: inherit; }
  .fin__d { display: block; grid-column: 2; font-size: 15px; line-height: 1.4; color: var(--mute); }
  .fin__cap { padding: 80px 20px 18px; }
  .fin__say { font-size: 16px; }
  /* before / after: stage left, pair list right */
  .ba__in { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
  .ba__h { grid-column: 1 / -1; margin-bottom: 20px; }
  .ba__stage { grid-column: 1; width: 100%; }
  .bapairs { grid-column: 2; grid-template-columns: 1fr; gap: 12px; width: 100%; align-self: center; }
  .bap { grid-template-columns: 160px 1fr; align-items: center; gap: 22px; padding: 10px; }
  .bap img { width: 160px; height: 160px; aspect-ratio: 1; }
  .bap b { font-size: 20px; }
  .bap small { font-size: 15px; margin-top: 4px; }
  .mzw { --n: 4; --gap: 4px; margin-top: 32px; }
  .svc__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
  .svc__list { margin-top: 0; grid-column: 2; grid-row: 1 / span 2; }
  .fnrow { grid-column: 1; grid-template-columns: 1fr; align-self: start; }
  .sv__btn { grid-template-columns: 1fr auto 28px; min-height: 84px; }
  .sv__name { font-size: 40px; }
  .sv__meta { display: block; font-size: 14px; }
  .sv__in { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-bottom: 24px; }
  .sv__in:not(:has(.sv__media)) { grid-template-columns: minmax(0, 1fr); }
  .sv__media { grid-column: 2; grid-row: 1; height: auto; aspect-ratio: 4 / 5; }
  .sv__in .lines { grid-column: 1; grid-row: 1; }
  .rev__list { display: block; columns: 3; column-gap: 12px; margin: 28px 0 0; padding: 0; overflow: visible; }
  .rev__list li { break-inside: avoid; margin-bottom: 12px; }
  .rev__list li { padding: 22px; }
  .dob__in { grid-template-columns: 5fr 6fr; column-gap: 72px; align-items: start; }
  .dob__form { max-width: 600px; }
  .ct__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: stretch; }
  .ct__map { height: auto; min-height: 420px; }
  .ct__cta { grid-template-columns: auto auto; justify-content: start; }
  .ct__logo { width: 84px; height: 87px; }
  .foot { padding: 56px 0 56px; }
  .foot__wm { font-size: calc(100cqw / 6); }
  .foot__info { margin-top: 0; }
  .sheet { width: min(560px, 100%); margin: auto; }
  .sheet__box { border: 1px solid var(--line2); }
}

@media (min-width: 1024px) {
  /* hero: text left, film right half, full first-screen height */
  .hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(88vh, 860px); }
  .hero__text { grid-column: 1; grid-row: 1; align-self: center; padding: 48px 48px 48px max(var(--pad), calc((100vw - 1320px) / 2 + var(--pad))); }
  .hero__media { grid-column: 2; grid-row: 1; aspect-ratio: auto; max-height: none; height: 100%; }
  .hero h1 { font-size: clamp(40px, 3.9vw, 64px); max-width: 12em; }
  .hero__lead { font-size: 20px; margin-top: 16px; }
  .hero__cta { display: flex; gap: 10px; margin-top: 28px; }
  .hero__cta .btn { min-width: 180px; }
  }

@media (min-width: 1200px) {
  .top__nav { display: flex; gap: 22px; margin-left: 28px; }
  .top__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--mute); }
  .top__nav a:hover { color: var(--fg); }
  .top__burger, .top__panel { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fin__frame.is-sweep::after { animation: none; }
  .fin__t::before, .sv__btn svg { transition: none; }
}
