/* ==========================================================================
   AP Services — Alexander Ptak
   Arkusz stylów: tokeny, układ, sekcje, podglądy projektów
   ========================================================================== */

:root {
  /* Kolory */
  --bg: #F8F5EF;
  --bg-alt: #F1ECE3;
  --surface: #FFFFFF;
  --ink: #14171D;
  --text: #2B2F36;
  --muted: #595E67;
  --line: #E2DACC;
  --line-strong: #CFC5B4;
  --blue: #1C3B6F;
  --blue-dark: #132A52;
  --blue-deep: #0F213F;
  --blue-soft: #E5ECF6;
  --blue-tint: #EEF2F8;
  --accent: #B4683F;
  --on-dark: #F4EFE6;
  --on-dark-muted: #BFC8D8;
  --focus: #2D5BB0;

  /* Typografia */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rozmiary */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;

  --shadow-sm: 0 1px 2px rgba(20, 23, 29, .06), 0 2px 8px rgba(20, 23, 29, .04);
  --shadow-md: 0 2px 4px rgba(20, 23, 29, .04), 0 12px 32px -8px rgba(20, 23, 29, .14);
  --shadow-lg: 0 4px 10px rgba(20, 23, 29, .05), 0 30px 60px -20px rgba(15, 33, 63, .28);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon { width: 1.15em; height: 1.15em; flex: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Typografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.eyebrow-light { color: #A9BDE0; }

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 1.3rem + 2.9vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  font-variation-settings: "opsz" 90;
}
.h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.35;
  letter-spacing: -.01em;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8em 1.45em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -8px rgba(28, 59, 111, .7); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(255,255,255,.6); }
.btn-sm { min-height: 44px; padding: .55em 1.15em; font-size: .9375rem; }
.btn-block { width: 100%; }

.btn-link {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 44px; padding: .5em .9em; margin: -.5em -.9em;
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: .9375rem; color: var(--blue);
  white-space: nowrap;
}
.btn-link:hover { background: var(--blue-tint); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 239, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(20,23,29,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand { gap: .75rem; }
.brand-logo { width: 48px; height: 28px; fill: currentColor; flex: none; transition: transform .35s var(--ease); }
.brand:hover .brand-logo { transform: translateX(-2px); }
.brand-name { font-weight: 800; font-size: 1.125rem; letter-spacing: -.015em; }

.nav-list { display: flex; gap: .25rem; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .9375rem; border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav-list a:hover { color: var(--blue); background: rgba(28,59,111,.06); }
.nav-list a.is-active { color: var(--blue); }

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  min-height: 44px; padding: 0 .9rem 0 .75rem; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 700; font-size: .9375rem;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-contact { display: none; }

@media (min-width: 960px) {
  .nav-menu { display: flex; align-items: center; gap: 1.25rem; }
}

@media (max-width: 959.98px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(20,23,29,.3);
    padding: 8px var(--gutter) 24px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav-menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a { display: flex; min-height: 56px; padding: 0 4px; font-size: 1.125rem; border-radius: 0; }
  .nav-list a:hover { background: none; }
  .nav-cta { width: 100%; margin-top: 16px; min-height: 52px; font-size: 1rem; }
  .nav-contact { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
  .nav-contact a { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 600; text-decoration: none; }
}

/* ---------- Sekcje ---------- */
.section { padding-block: clamp(80px, 10vw, 140px); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head .h2 { margin-bottom: 0; }
.section-head .section-intro { margin-top: 1.25rem; }
.split-head { max-width: none; display: grid; gap: 1.25rem 64px; align-items: end; }
.split-head .section-intro { margin: 0; }
@media (min-width: 900px) { .split-head { grid-template-columns: 1.15fr 1fr; } }
.section-intro { font-size: 1.125rem; color: var(--muted); max-width: 56ch; }

/* ---------- Badge „Przykładowy projekt” ---------- */
.sample-badge {
  position: absolute; z-index: 5; top: -12px; left: 18px;
  display: inline-flex; align-items: center; gap: .45em;
  padding: .38em .8em; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.sample-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #E9B88F; }
.sample-badge-static { position: static; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(80px, 9vw, 130px); overflow-x: clip; }
.hero-grid { display: grid; gap: clamp(56px, 7vw, 72px); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; } }

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  font-variation-settings: "opsz" 96;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--blue); font-weight: 400; }
.hero-lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 33em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.25rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .9375rem; font-weight: 600; color: var(--text); }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points .icon { color: var(--blue); }
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .hero-points { flex-direction: column; }
}

/* Wizualizacja hero */
.hero-visual { position: relative; padding: 0 12% 11% 0; }
@media (min-width: 1024px) { .hero-visual { padding: 0 9% 12% 0; margin-right: -3%; } }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -6% 0 10%; z-index: -1;
  background: var(--blue-soft); border-radius: 40px;
  transform: rotate(-2deg);
}
.hero-visual .sample-badge { top: -14px; left: 16px; }

.device-browser {
  container-type: inline-size;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(20,23,29,.07);
}
.browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: #F2EFEA; border-bottom: 1px solid #E7E2D9;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #D7D1C6; }
.url {
  flex: 1; max-width: 260px; margin-inline: auto; padding: 3px 12px; border-radius: 999px;
  background: #fff; color: #7A7F87; font-size: 11px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Strona kwiaciarni w podglądzie hero */
.hm { font-size: 1.7cqw; color: #3A3530; background: #FBF7F2; line-height: 1.45; }
.hm span { display: block; }
.hm-nav { display: flex !important; align-items: center; gap: 2em; padding: 1.4em 2.4em; }
.hm-logo { font-family: var(--font-display); font-size: 1.75em; font-weight: 500; color: #2F3A2B; line-height: 1; }
.hm-logo small { display: block; font-family: var(--font-body); font-size: .4em; letter-spacing: .14em; text-transform: uppercase; color: #8A8273; margin-top: .3em; }
.hm-links { display: flex !important; gap: 1.6em; margin-left: auto; font-weight: 600; color: #5B554C; }
.hm-btn { display: inline-block !important; padding: .65em 1.3em; border-radius: 999px; background: #2F4A33; color: #fff; font-weight: 700; white-space: nowrap; }
.hm-btn-light { background: transparent; color: #2F4A33; box-shadow: inset 0 0 0 1.5px #2F4A33; }
.hm-hero { display: grid !important; grid-template-columns: 1.05fr 1fr; gap: 2em; padding: 1.2em 2.4em 2em; align-items: center; }
.hm-kicker { font-size: .8em; letter-spacing: .14em; text-transform: uppercase; color: #9A6B55; font-weight: 700; margin-bottom: .9em; }
.hm-title { font-family: var(--font-display); font-size: 3.1em; line-height: 1.05; color: #23301F; letter-spacing: -.02em; margin-bottom: .45em; }
.hm-lead { color: #6D665C; margin-bottom: 1.4em; max-width: 26em; }
.hm-actions { display: flex !important; gap: .8em; flex-wrap: wrap; }
.hm-photo {
  aspect-ratio: 4 / 4.2; border-radius: 1.4em; display: grid !important; place-items: center;
  background: radial-gradient(120% 90% at 30% 20%, #F6E3D8 0%, #EBD3C4 45%, #DDBFAE 100%);
  position: relative; overflow: hidden;
}
.hm-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; background: #CFAE98; opacity: .45; }
.hm-photo svg { width: 78%; height: 78%; position: relative; z-index: 1; }
.hm-strip { display: grid !important; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #EAE1D4; background: #fff; }
.hm-strip > span { padding: 1.2em 2.4em; color: #7A7268; font-size: .92em; }
.hm-strip > span + span { border-left: 1px solid #EAE1D4; }
.hm-strip b { display: block; color: #2F3A2B; font-size: 1.08em; margin-bottom: .1em; }

/* Telefon w hero */
.device-phone {
  container-type: inline-size;
  position: absolute; right: 0; bottom: 0; width: 33%;
  background: #15181E; border-radius: 13% / 6.2%;
  padding: 3.2% 3.2% 4%;
  box-shadow: 0 30px 60px -20px rgba(15,33,63,.45), 0 8px 16px -6px rgba(15,33,63,.25);
}
.phone-notch { position: absolute; top: 2.6%; left: 50%; transform: translateX(-50%); width: 30%; height: 3%; background: #15181E; border-radius: 999px; z-index: 2; }
.pm {
  font-size: 6.4cqw; line-height: 1.4; color: #3A3530;
  background: #FBF7F2; border-radius: 10% / 4.8%; overflow: hidden;
  padding: 16% 7% 8%;
}
.pm > span, .pm-row span { display: block; }
.pm-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8em; }
.pm-logo { font-family: var(--font-display); font-size: 1.35em; color: #2F3A2B; }
.pm-burger { width: 1.4em; height: 1.4em; color: #2F3A2B; }
.pm-photo {
  aspect-ratio: 1 / .78; border-radius: .9em; margin-bottom: .9em; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 30% 20%, #F6E3D8 0%, #EBD3C4 50%, #DDBFAE 100%);
}
.pm-photo svg { width: 70%; height: 90%; }
.pm-title { font-family: var(--font-display); font-size: 1.45em; line-height: 1.12; color: #23301F; margin-bottom: .7em; }
.pm-btn { display: flex !important; align-items: center; justify-content: center; gap: .45em; padding: .7em; border-radius: 999px; background: #2F4A33; color: #fff; font-weight: 700; margin-bottom: .9em; }
.pm-btn svg { width: 1.1em; height: 1.1em; }
.pm-hours { background: #fff; border-radius: .8em; padding: .7em .8em; box-shadow: 0 1px 0 #EAE1D4; font-size: .88em; }
.pm-hours-title { display: flex !important; align-items: center; gap: .4em; font-weight: 700; color: #2F3A2B; margin-bottom: .3em; }
.pm-hours-title svg { width: 1.1em; height: 1.1em; }
.pm-row { display: flex !important; justify-content: space-between; padding: .2em 0; color: #6D665C; }
.pm-row.is-today { color: #2F4A33; font-weight: 700; }

/* ==========================================================================
   KORZYŚCI
   ========================================================================== */
.benefits { background: var(--surface); border-block: 1px solid var(--line); }
.benefit-rows { display: grid; gap: clamp(64px, 9vw, 120px); }
.benefit { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .benefit { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; }
  .benefit-reverse .benefit-text { order: 2; }
}
.benefit-text { max-width: 30rem; }
.benefit-num {
  display: block; font-family: var(--font-display); font-size: 3.5rem; line-height: 1; font-weight: 400;
  color: var(--blue); opacity: .9; margin-bottom: 1.2rem; font-variation-settings: "opsz" 144;
}
.benefit .h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); font-family: var(--font-display); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 1rem; }
.benefit-text p { color: var(--muted); margin: 0; }
.benefits-note { margin: clamp(64px, 8vw, 96px) auto 0; max-width: 46rem; text-align: center; color: var(--muted); font-size: 1rem; padding-top: 32px; border-top: 1px solid var(--line); }

.benefit-visual {
  position: relative; min-height: 340px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 44px);
  display: grid; align-content: center; gap: 16px;
  overflow: hidden;
}
.ui-card {
  background: var(--surface); border-radius: 14px; border: 1px solid var(--line);
  box-shadow: var(--shadow-md); padding: 18px 20px; font-size: .9375rem;
}
.ui-card-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); margin-bottom: .75rem; font-size: .9375rem; }
.ui-card-head .icon { color: var(--blue); }

.ui-hours { max-width: 360px; }
.ui-hours li { display: flex; justify-content: space-between; gap: 12px; padding: .45rem 0; color: var(--muted); border-top: 1px dashed var(--line); }
.ui-hours li.is-today { color: var(--ink); font-weight: 700; }
.ui-hours li em { font-style: normal; font-size: .75rem; font-weight: 700; color: #fff; background: var(--blue); border-radius: 999px; padding: .1em .55em; margin-left: .3em; }
.ui-menu { max-width: 360px; margin-left: auto; margin-top: -8px; }
.ui-menu .ui-card-head { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.ui-menu li { display: flex; align-items: baseline; gap: 8px; padding: .3rem 0; color: var(--text); }
.ui-menu li i { flex: 1; border-bottom: 1.5px dotted var(--line-strong); transform: translateY(-4px); }
.ui-menu li span:last-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* Kalendarz i koszyk (korzyść 01) */
.ui-cal { max-width: 340px; width: 100%; padding-bottom: 58px; }
.ui-cal-month { margin-left: auto; font-weight: 600; font-size: .8125rem; color: var(--muted); }
.ui-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: .8125rem; }
.ui-cal-grid .wd { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-bottom: 2px; }
.ui-cal-grid .d { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 9px; font-weight: 600; color: var(--ink); transition: background-color .25s, color .25s, transform .3s var(--ease); }
.ui-cal-grid .d.off { color: #B5AEA2; font-weight: 500; text-decoration: line-through; }
.ui-cal-grid .d.free::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); opacity: .55; }
.ui-cal-grid .d.is-hover { background: var(--blue-tint); }
.ui-cal-grid .d.is-selected { background: var(--blue); color: #fff; transform: scale(1.08); }
.ui-cal-grid .d.is-selected::after { background: #fff; opacity: .9; }
.ui-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.slot { padding: .32rem .62rem; border-radius: 8px; border: 1px solid var(--line-strong); font-size: .8125rem; font-weight: 600; color: var(--text); transition: background-color .25s, color .25s, border-color .25s, opacity .3s, transform .3s var(--ease); }
.slot.is-selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.ui-cart { max-width: 300px; width: 100%; margin: -44px 0 0 auto; position: relative; }
.ui-bag { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--blue-tint); color: var(--blue); }
.ui-bag .icon { width: 18px; height: 18px; }
.ui-badge { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .6875rem; line-height: 18px; text-align: center; }
.ui-cart-when { margin: 0 0 .4rem; font-size: .8125rem; color: var(--muted); }
.ui-cart-when b { color: var(--ink); }
.ui-cart-items { min-height: 116px; }
.ui-cart-items li { display: flex; justify-content: space-between; gap: 10px; padding: .4rem 0; border-top: 1px dashed var(--line); font-size: .875rem; color: var(--text); }
.ui-cart-items li b { color: var(--ink); white-space: nowrap; }
.ui-cart-items:empty::before { content: "Koszyk jest pusty"; display: block; padding: .4rem 0; font-size: .8125rem; color: #B5AEA2; }
.ui-cart-total { display: flex; justify-content: space-between; padding: .6rem 0 .1rem; border-top: 1px solid var(--line-strong); font-weight: 700; color: var(--ink); }
.ui-total { font-variant-numeric: tabular-nums; }
.ui-cart .ui-submit { margin-top: 10px; }
@media (max-width: 520px) { .ui-cal { padding-bottom: 40px; } .ui-cart { margin-top: -28px; } }
@media (prefers-reduced-motion: no-preference) {
  .benefit.is-visible .ui-cal { animation: card-in .9s cubic-bezier(.16,1,.3,1) .15s both; }
  .benefit.is-visible .ui-cart { animation: card-in .9s cubic-bezier(.16,1,.3,1) .4s both; }
  .ui-cal-grid .d.is-selected { animation: day-pick .5s cubic-bezier(.34,1.56,.64,1); }
  .ui-slots.is-waiting .slot { opacity: 0; transform: translateY(6px); }
  .ui-slots .slot:nth-child(2) { transition-delay: .05s; }
  .ui-slots .slot:nth-child(3) { transition-delay: .1s; }
  .ui-slots .slot:nth-child(4) { transition-delay: .15s; }
  .ui-cart-items li.is-new { animation: item-in .55s cubic-bezier(.34,1.56,.64,1) both; }
  .ui-badge.is-bump { animation: badge-bump .45s cubic-bezier(.34,1.56,.64,1); }
  .ui-cart-when.is-new b { animation: build-up .5s var(--ease) both; }
}
@keyframes day-pick { 0% { transform: scale(.8); } 60% { transform: scale(1.18); } 100% { transform: scale(1.08); } }
@keyframes item-in { from { opacity: 0; transform: translateX(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes badge-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.ui-form { max-width: 380px; display: grid; gap: 10px; }
.ui-form .ui-card-head { margin-bottom: 2px; }
.ui-field { display: grid; gap: 4px; }
.ui-label { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ui-input { display: block; padding: .55rem .75rem; border: 1px solid var(--line-strong); border-radius: 9px; background: #FCFBF8; color: var(--text); font-size: .9rem; }
.ui-textarea { min-height: 70px; }
.ui-input:empty::before { content: "\200b"; } /* puste pole zachowuje wysokość */
.ui-submit { display: block; text-align: center; padding: .7rem; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; margin-top: 4px; }
.ui-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ui-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-weight: 700; font-size: .875rem; color: var(--ink); box-shadow: var(--shadow-sm); }
.ui-pill-dark { background: var(--ink); color: #fff; border-color: var(--ink); }


.ui-gallery { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 120px 100px; gap: 10px; }
.ui-gallery .g { border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.ui-gallery .g svg { width: 70%; height: 90%; }
.g1 { grid-row: span 2; background: radial-gradient(110% 90% at 30% 20%, #F3DFD3, #E2C4B3); }
.g2 { background: linear-gradient(160deg, #CFD9C6 0%, #A9B99C 100%); position: relative; }
.g2::after { content: ""; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50% 50% 8px 8px; background: #EFE8DB; bottom: 0; left: 27%; }
.g3 { background: #EDE3D2; }
.g4 { background: linear-gradient(180deg, #D8E0EC 0 55%, #C9B9A2 55% 100%); position: relative; }
.g4::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 30%; height: 28%; background: #F7F2EA; border-radius: 4px 4px 0 0; box-shadow: inset 0 -6px 0 #B9A68B; }
.ui-visit { max-width: 340px; display: grid; gap: 4px; margin-top: -40px; margin-left: auto; margin-right: 8%; position: relative; }
.ui-visit-title { display: flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--ink); }
.ui-visit-title .icon { color: var(--accent); }
.ui-visit-text { color: var(--muted); font-size: .9rem; }

/* ==========================================================================
   KONCEPCJE (przykładowe projekty)
   ========================================================================== */
.concepts { background: var(--bg); }
.concept-grid { display: grid; gap: clamp(48px, 6vw, 72px) 40px; }
@media (min-width: 900px) {
  .concept-grid { grid-template-columns: 1fr 1fr; }
  .concept-wide { grid-column: 1 / -1; }
}
.concept { margin: 0; }
.concept-frame { position: relative; }
.concept-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 32px; padding-top: 22px; flex-wrap: wrap; }
.concept-caption > div { flex: 1 1 260px; }
.concept-caption .h3 { margin-bottom: .3rem; font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.concept-caption p { color: var(--muted); margin: 0; font-size: 1rem; max-width: 46ch; }
.concept-caption .btn-link { margin-top: 0; }

.mock-browser {
  container: site / inline-size;
  background: var(--surface);
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(20,23,29,.08);
  box-shadow: var(--shadow-lg);
}
.mock-screen { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; }
.concept:not(.concept-wide) .mock-screen { aspect-ratio: 4 / 3.4; }
.mock-screen::after { content: ""; position: absolute; inset: auto 0 0; height: 60px; background: linear-gradient(to bottom, transparent, var(--fade, #fff)); pointer-events: none; }

/* Wspólna baza mini-stron */
.site { --pad: 2.2em; line-height: 1.45; min-height: 100%; }
.site span, .site b { display: block; }
.site .s-nav { display: flex; align-items: center; gap: 1.6em; padding: 1.2em var(--pad); }
.site .s-links { display: flex; gap: 1.4em; margin-left: auto; font-weight: 600; }
.site .s-btn { display: inline-block; padding: .62em 1.25em; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.site .s-burger { display: none; width: 1.6em; height: 1.6em; margin-left: auto; }
.site .s-h { font-weight: 700; margin-bottom: .7em; }
.site .s-actions { display: flex; flex-wrap: wrap; gap: .7em; }

/* --- Restauracja --- */
.site-resto { font-size: clamp(9px, 1.38cqw, 15px); background: #1D1915; color: #D9CDB8; --fade: #1D1915; }
.concept-wide { --fade: #1D1915; }
.site-resto .s-logo { font-family: var(--font-display); font-size: 1.6em; color: #F3E9D7; line-height: 1; }
.site-resto .s-logo em { font-style: italic; color: #D7A55A; }
.site-resto .s-links { color: #CBBFA9; }
.site-resto .s-btn { background: #D7A55A; color: #1D1915; }
.site-resto .s-btn-line { background: transparent; color: #F3E9D7; box-shadow: inset 0 0 0 1.5px rgba(243,233,215,.5); }
.site-resto .s-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4em; align-items: center; padding: 1.6em var(--pad) 2.2em; }
.site-resto .s-kicker { font-size: .82em; letter-spacing: .16em; text-transform: uppercase; color: #D7A55A; margin-bottom: 1em; font-weight: 700; }
.site-resto .s-title { font-family: var(--font-display); font-size: 3.3em; line-height: 1.04; color: #F7EEDF; margin-bottom: .45em; letter-spacing: -.02em; }
.site-resto .s-lead { color: #BFB39E; margin-bottom: 1.5em; max-width: 28em; }
.site-resto .s-photo { aspect-ratio: 4 / 3; border-radius: 1em; background: radial-gradient(90% 90% at 50% 45%, #5B4632 0%, #3A2D21 60%, #2A211A 100%); display: grid; place-items: center; }
.site-resto .s-photo svg { width: 64%; height: 84%; filter: drop-shadow(0 1.2em 1.2em rgba(0,0,0,.35)); }
.site-resto .s-cols { display: grid; grid-template-columns: 1.15fr .9fr 1fr; gap: 2em; padding: 2em var(--pad) 2.6em; border-top: 1px solid rgba(243,233,215,.12); background: #231E19; }
.site-resto .s-h { color: #F3E9D7; font-family: var(--font-display); font-weight: 500; font-size: 1.35em; }
.site-resto .s-item { display: flex; align-items: baseline; gap: .6em; padding: .38em 0; }
.site-resto .s-item i { flex: 1; border-bottom: 1px dotted rgba(217,205,184,.4); transform: translateY(-.3em); }
.site-resto .s-item b { color: #D7A55A; }
.site-resto .s-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .6em; min-height: 11em; }
.site-resto .s-gallery span { border-radius: .7em; }
.site-resto .s-gallery span:nth-child(1) { grid-row: span 2; background: linear-gradient(170deg, #6B4E35, #3B2C20); }
.site-resto .s-gallery span:nth-child(2) { background: radial-gradient(circle at 50% 60%, #C98B4B 0 28%, #4B3A2B 30%); }
.site-resto .s-gallery span:nth-child(3) { background: linear-gradient(135deg, #8DA36B, #4E5E3A); }
.site-resto .s-map { position: relative; height: 5.5em; border-radius: .7em; margin-bottom: .8em; display: grid; place-items: center;
  background:
    linear-gradient(90deg, transparent 46%, rgba(243,233,215,.18) 46% 50%, transparent 50%),
    linear-gradient(0deg, transparent 58%, rgba(243,233,215,.18) 58% 62%, transparent 62%),
    linear-gradient(35deg, transparent 30%, rgba(243,233,215,.1) 30% 33%, transparent 33%),
    #2E2822; }
.site-resto .s-map svg { width: 1.8em; height: 1.8em; color: #D7A55A; }
.site-resto .s-line { font-size: .95em; padding: .1em 0; }
.site-resto .s-line b { color: #F3E9D7; }

/* --- Salon beauty --- */
.site-beauty { font-size: clamp(10px, 2.05cqw, 15px); background: #FBF3EF; color: #6E5A55; --fade: #FBF3EF; }
#concept-beauty { --fade: #FBF3EF; }
.site-beauty .s-logo { font-family: var(--font-display); font-size: 1.5em; color: #4A3431; font-weight: 400; letter-spacing: .02em; line-height: 1; }
.site-beauty .s-logo em { font-style: italic; color: #9E5B5B; }
.site-beauty .s-links { color: #7D6863; }
.site-beauty .s-btn { background: #8F4F50; color: #fff; }
.site-beauty .s-hero { text-align: center; padding: 1.6em var(--pad) 2em; display: grid; justify-items: center;
  background: radial-gradient(60% 90% at 50% 0%, #F3DCD5 0%, transparent 70%); }
.site-beauty .s-kicker { font-size: .78em; letter-spacing: .18em; text-transform: uppercase; color: #9E5B5B; margin-bottom: .8em; font-weight: 700; }
.site-beauty .s-title { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: 2.7em; line-height: 1.08; color: #3E2B28; margin-bottom: .7em; max-width: 12em; }
.site-beauty .s-prices { margin: 0 var(--pad); padding: 1.3em 1.5em; background: #fff; border-radius: 1em; box-shadow: 0 .2em 1.2em rgba(143,79,80,.08); }
.site-beauty .s-h { color: #3E2B28; font-family: var(--font-display); font-weight: 500; font-size: 1.3em; }
.site-beauty .s-item { display: flex; justify-content: space-between; gap: 1em; padding: .5em 0; border-top: 1px solid #F1E3DE; }
.site-beauty .s-item b { color: #8F4F50; }
.site-beauty .s-book { padding: 1.4em var(--pad) 2em; }
.site-beauty .s-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; text-align: center; }
.site-beauty .s-days span { padding: .6em .2em; border-radius: .7em; background: #fff; border: 1px solid #EBD8D2; font-size: .92em; line-height: 1.35; }
.site-beauty .s-days .on { background: #8F4F50; color: #fff; border-color: #8F4F50; }

/* --- Firma usługowa --- */
.site-service { font-size: clamp(10px, 2.05cqw, 15px); background: #fff; color: #4A5260; --fade: #F3F5F8; }
#concept-uslugi { --fade: #F3F5F8; }
.site-service .s-nav { border-bottom: 1px solid #E6E9EE; }
.site-service .s-logo { display: flex; align-items: center; gap: .5em; font-weight: 800; color: #172033; font-size: 1.15em; letter-spacing: -.01em; }
.site-service .s-logo-mark { width: 1.3em; height: 1.3em; border-radius: .3em; background: #F2B33D; box-shadow: inset -.35em -.35em 0 #1F3A5F; }
.site-service .s-links { color: #4A5260; }
.site-service .s-btn { background: #1F3A5F; color: #fff; border-radius: .45em; }
.site-service .s-hero { padding: 1.8em var(--pad) 1.4em; background: linear-gradient(180deg, #F3F5F8, #fff); }
.site-service .s-title { font-weight: 800; font-size: 2.3em; line-height: 1.1; color: #172033; letter-spacing: -.025em; margin-bottom: .4em; max-width: 13em; }
.site-service .s-lead { max-width: 30em; }
.site-service .s-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; padding: .4em var(--pad) 1.4em; }
.site-service .s-svc { padding: 1em; border: 1px solid #E6E9EE; border-radius: .6em; font-size: .9em; line-height: 1.35; }
.site-service .s-svc svg { width: 1.7em; height: 1.7em; color: #1F3A5F; margin-bottom: .5em; padding: .3em; background: #FDF0D5; border-radius: .4em; box-sizing: content-box; }
.site-service .s-svc b { color: #172033; font-size: 1.05em; margin-bottom: .15em; }
.site-service .s-form { margin: 0 var(--pad) 2em; padding: 1.3em; background: #F3F5F8; border-radius: .8em; display: grid; gap: .6em; }
.site-service .s-h { color: #172033; margin-bottom: .1em; }
.site-service .s-input { background: #fff; border: 1px solid #D5DBE4; border-radius: .45em; padding: .6em .8em; color: #8A93A2; }
.site-service .s-area { min-height: 4em; }
.site-service .s-form .s-btn { justify-self: start; background: #F2B33D; color: #172033; }

/* Wąski kontener → mobilny układ mini-strony */
@container site (max-width: 520px) {
  .site { --pad: 1.3em; font-size: 12.5px; }
  .site .s-links, .site .s-nav > .s-btn { display: none; }
  .site .s-burger { display: block; }
  .site-resto .s-hero { grid-template-columns: 1fr; gap: 1.4em; }
  .site-resto .s-title { font-size: 2.3em; }
  .site-resto .s-cols { grid-template-columns: 1fr; gap: 1.8em; }
  .site-beauty .s-title { font-size: 2.1em; }
  .site-service .s-title { font-size: 1.8em; }
  .site-service .s-services { grid-template-columns: 1fr; }
  .site-service .s-svc { display: grid; grid-template-columns: auto 1fr; column-gap: .8em; align-items: center; }
  .site-service .s-svc svg { grid-row: span 2; margin: 0; }
}

/* ==========================================================================
   OBSŁUGA (sekcja ciemna)
   ========================================================================== */
.service { background: var(--blue-deep); color: var(--on-dark-muted); position: relative; overflow: hidden; }
.service::before {
  content: ""; position: absolute; right: -6%; top: 4%; z-index: 0;
  width: clamp(22rem, 52vw, 46rem); aspect-ratio: 958 / 559;
  background: rgba(255,255,255,.035); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%22150%20373%20958%20559%22%3E%3Cpath%20d%3D%22M502%20373L634%20610L512%20613.5C505%20614%20500%20617%20496%20622L314%20881.5H150Z%22/%3E%3Cpath%20d%3D%22M596%20373H915A192%20192%200%200%201%20915%20757H729L830%20931H682L536%20672C531%20662%20536%20653%20552%20648C566%20643%20580%20639%20600%20638H912A70%2070%200%200%200%20912%20497.5H665Z%22/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%22150%20373%20958%20559%22%3E%3Cpath%20d%3D%22M502%20373L634%20610L512%20613.5C505%20614%20500%20617%20496%20622L314%20881.5H150Z%22/%3E%3Cpath%20d%3D%22M596%20373H915A192%20192%200%200%201%20915%20757H729L830%20931H682L536%20672C531%20662%20536%20653%20552%20648C566%20643%20580%20639%20600%20638H912A70%2070%200%200%200%20912%20497.5H665Z%22/%3E%3C/svg%3E") no-repeat center / contain;
}
.service-grid { position: relative; z-index: 1; display: grid; gap: 56px; }
@media (min-width: 1000px) { .service-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 96px; align-items: start; } }
.service .h2 { color: #fff; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); margin-bottom: 1.75rem; }
.service-copy p:not(.eyebrow) { font-size: 1.125rem; max-width: 34em; }
@media (min-width: 1000px) { .service-copy { position: sticky; top: calc(var(--header-h) + 40px); } }
.service-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.service-contact a {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .6rem 1.1rem;
  border-radius: 999px; border: 1.5px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; font-weight: 700;
  transition: background-color .2s, border-color .2s; overflow-wrap: anywhere;
}
.service-contact a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }
.service :focus-visible { outline-color: #9DBBF0; }

.scope-list { display: grid; }
.scope-list li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.scope-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.scope-num { font-family: var(--font-display); font-size: 1.25rem; color: #8EA9D6; padding-top: .1rem; }
.scope-list h3 { color: #fff; font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); font-family: var(--font-display); font-weight: 500; margin-bottom: .35rem; letter-spacing: -.01em; }
.scope-list p { margin: 0; color: var(--on-dark-muted); }

/* ==========================================================================
   PROCES
   ========================================================================== */
.steps { display: grid; gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 0 2.5rem 4.5rem; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 1.45rem; top: 3rem; bottom: .5rem; width: 1.5px; background: var(--line-strong); }
.step:last-child::before { display: none; }
.step-num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--blue); color: var(--blue);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
}
.step .h3 { margin: .55rem 0 .5rem; font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { padding: 4.75rem 0 0; }
  .step::before { left: 3.75rem; right: -32px; top: 1.5rem; bottom: auto; width: auto; height: 1.5px; }
  .step:last-child::before { display: none; }
  .step-num { width: 3rem; height: 3rem; }
  .step .h3 { margin-top: 0; }
}

/* Akcent: obsługa w jednych rękach */
.solo {
  margin-top: clamp(64px, 8vw, 104px);
  display: grid; gap: 24px 40px; align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--blue-tint); border: 1px solid #CFDAEA;
}
@media (min-width: 900px) { .solo { grid-template-columns: auto 1fr auto; } }
.solo-mark { width: 84px; height: 49px; fill: var(--blue); }
.solo-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.2; letter-spacing: -.015em; color: var(--ink); margin-bottom: .6rem; text-wrap: balance; }
.solo-text p:not(.solo-title) { color: var(--muted); margin: 0; max-width: 46em; }
@media (max-width: 520px) { .solo-cta { width: 100%; } }

/* ==========================================================================
   O MNIE
   ========================================================================== */
.about { background: var(--bg-alt); }
.about-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 88px; } }
.portrait {
  position: relative; margin: 0; aspect-ratio: 4 / 4.6; max-width: 460px; width: 100%;
  border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(255,255,255,.12), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px),
    var(--blue);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-mono { position: relative; display: block; width: 58%; padding-bottom: 14%; }
.portrait-mono svg { display: block; width: 100%; aspect-ratio: 958 / 559; fill: #F4EFE6; }
.portrait-mono::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 2px; background: rgba(244,239,230,.35); }
.portrait-caption { position: absolute; left: 28px; bottom: 24px; color: #F4EFE6; font-weight: 700; line-height: 1.3; }
.portrait-caption small { font-weight: 500; color: var(--on-dark-muted); font-size: .875rem; }
@media (max-width: 899.98px) { .portrait { aspect-ratio: 16 / 12; max-width: none; padding-bottom: 64px; } .portrait-mono { width: min(46%, 260px); } }

.about-copy .h2 { margin-bottom: 1.6rem; }
.about-lead { font-size: 1.25rem; color: var(--ink); line-height: 1.55; }
.about-copy p:not(.eyebrow) { color: var(--muted); max-width: 38em; }
.about-copy .about-lead { color: var(--ink); }
.about-facts { display: grid; gap: 0; margin: 2rem 0 0; border-top: 1px solid var(--line-strong); }
.about-facts div { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line-strong); }
.about-facts dt { font-weight: 700; color: var(--ink); }
.about-facts dd { margin: 0; color: var(--muted); }
@media (max-width: 480px) { .about-facts div { grid-template-columns: 1fr; gap: .1rem; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 80px; } .faq-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }
.faq-head .h2 { margin-bottom: 1.25rem; }
.faq-head p:not(.eyebrow) { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 1.4rem 0; min-height: 44px;
  font-weight: 700; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink);
  border-radius: 4px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background:
    linear-gradient(var(--blue), var(--blue)) center / 11px 1.75px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 1.75px 11px no-repeat;
  transition: transform .25s var(--ease), background-color .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--blue-tint); }
.faq-list summary:hover { color: var(--blue); }
.faq-answer { padding: 0 3.5rem 1.5rem 0; color: var(--muted); }
.faq-answer p { margin: 0; }
@media (max-width: 520px) { .faq-answer { padding-right: 0; } }

/* ==========================================================================
   KONTAKT
   ========================================================================== */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; } }
.contact .h2 { font-size: clamp(2.3rem, 1.3rem + 4vw, 4rem); margin-bottom: 1.5rem; }
.contact-copy > p:not(.eyebrow):not(.contact-sign) { color: var(--muted); font-size: 1.125rem; max-width: 32em; }
.contact-list { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.contact-list li { display: grid; gap: .2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-label { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); color: var(--ink); text-decoration: none; letter-spacing: -.01em; overflow-wrap: anywhere; justify-self: start; }
a.contact-value { color: var(--blue); }
a.contact-value:hover { text-decoration: underline; }
.contact-sign { margin-top: 1.5rem; font-weight: 700; color: var(--ink); }

.form-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
}
.form-title { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; margin-bottom: 1.25rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: .9375rem; margin-bottom: .4rem; }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px;
  padding: .8rem .95rem; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #8A8F97; }
.field input:hover, .field textarea:hover { border-color: #B5AA98; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(45,91,176,.18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #A4231B; font-size: .875rem; font-weight: 600; margin: .4rem 0 0; }
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }

.form-status { margin: 1rem 0 0; font-size: .9375rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-info { color: var(--blue-dark); background: var(--blue-tint); padding: .8rem 1rem; border-radius: 10px; }
.form-status.is-success { color: #1E5B34; background: #E6F2EA; padding: .8rem 1rem; border-radius: 10px; }
.form-status.is-error { color: #8C1D16; background: #FBEAE8; padding: .8rem 1rem; border-radius: 10px; }
.form-note { margin: 1rem 0 0; font-size: .8125rem; color: var(--muted); }

/* ==========================================================================
   STOPKA
   ========================================================================== */
.site-footer { background: var(--blue-deep); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: .9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer :focus-visible { outline-color: #9DBBF0; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer:hover { color: #fff; text-decoration: none !important; }
.brand-footer .brand-logo { fill: #fff; }
.footer-brand p { margin: 0; }
.footer-nav ul { display: grid; gap: .1rem; }
.footer-nav a, .footer-contact a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-contact { display: grid; align-content: start; }
.footer-contact span { padding-top: .5rem; }
.footer-bottom { padding-top: 24px; }
.footer-bottom p { margin: 0; font-size: .875rem; }

/* ==========================================================================
   MODAL PODGLĄDU
   ========================================================================== */
.preview-dialog {
  width: min(1120px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: 18px;
  background: var(--bg); color: var(--text);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.45);
  overflow: hidden;
}
.preview-dialog[open] { display: flex; flex-direction: column; }
.preview-dialog::backdrop { background: rgba(15, 20, 30, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dialog-head > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.dialog-title { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; }
.dialog-close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.dialog-close:hover { border-color: var(--ink); }
.dialog-close .icon { width: 20px; height: 20px; }
.dialog-body { overflow: auto; padding: clamp(16px, 3vw, 32px); overscroll-behavior: contain; }
.dialog-body .mock-screen { aspect-ratio: auto; overflow: visible; }
.dialog-body .mock-screen::after { display: none; }
.dialog-body .mock-browser { box-shadow: var(--shadow-md); }
.dialog-body .site-beauty, .dialog-body .site-service { font-size: clamp(11px, 1.6cqw, 16px); }
.dialog-body .site-resto { font-size: clamp(11px, 1.4cqw, 16px); }
@media (max-width: 600px) {
  .preview-dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .dialog-body { padding: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .preview-dialog[open] { animation: dialog-in .28s var(--ease); }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
}
body.dialog-open { overflow: hidden; }

/* ==========================================================================
   ANIMACJE WEJŚCIA
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .hero-visual.reveal { transition-delay: .12s; }
  .mock-browser { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
  .concept-frame:hover .mock-browser { transform: translateY(-4px); }
}
/* ==========================================================================
   RUCH I EFEKTY
   ========================================================================== */

/* Pasek postępu przewijania */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  pointer-events: none;
}

/* Słowa w nagłówkach */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .16em 0; margin: 0 -.06em -.16em 0; }
[data-split] .wi { display: inline-block; }

/* Pasek branż */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); background: var(--bg);
  padding-block: clamp(18px, 2.4vw, 28px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee span {
  display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 56px); padding-right: clamp(28px, 4vw, 56px);
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 3rem); line-height: 1.1; color: var(--ink); white-space: nowrap;
  font-variation-settings: "opsz" 144;
}
.marquee span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; }
.marquee span:nth-child(3n+2) { color: var(--blue); }

/* Powiadomienie w hero */
.hero-toast {
  position: absolute; z-index: 4; left: -4%; bottom: 14%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: rgba(255,255,255,.96); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -14px rgba(15,33,63,.35);
  font-size: .875rem; line-height: 1.3; max-width: 290px;
}
.toast-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue); color: #fff; flex: none; }
.toast-text b { display: block; color: var(--ink); }
.toast-text small { color: var(--muted); font-size: .8125rem; }
@media (max-width: 640px) { .hero-toast { left: 0; bottom: 4%; font-size: .75rem; padding: 8px 12px 8px 8px; max-width: 230px; } .toast-icon { width: 30px; height: 30px; } .toast-text small { font-size: .72rem; } }

/* Kursor przy wpisywaniu */
.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -.15em; background: currentColor; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Podpowiedź przewijania podglądów (tylko mysz) */
@media (hover: hover) and (pointer: fine) {
  .concept-frame::after {
    content: "Najedź, aby przewinąć stronę"; position: absolute; z-index: 5; right: 16px; bottom: 16px;
    padding: .45em .9em; border-radius: 999px; background: rgba(20,23,29,.82); color: #fff;
    font-size: .75rem; font-weight: 700; letter-spacing: .02em; pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
  }
  .concept-frame:hover::after { opacity: 0; transform: translateY(6px); }
}

/* Linia na liście zakresu (rysowana) */
.scope-list li { border-top: 0; position: relative; }
.scope-list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.16); transform-origin: 0 50%; }
.scope-num { transition: color .3s, transform .3s var(--ease); }
.scope-list li:hover .scope-num { color: #fff; transform: translateX(4px); }

/* Błysk na głównym przycisku */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg) translateX(0); opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  /* nagłówki: słowa wjeżdżają od dołu */
  .js [data-split].reveal { opacity: 1; transform: none; }
  .js [data-split] .wi { transform: translateY(110%); transition: transform 1s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 55ms + 80ms); }
  .js [data-split].is-visible .wi { transform: none; }

  /* hero: kolejność wejścia */
  .js .hero-lead.reveal { transition-delay: .45s; }
  .js .hero-actions.reveal { transition-delay: .6s; }
  .js .hero-points.reveal { transition-delay: .75s; }
  .js .hero-visual.reveal { perspective: 1600px; transform: translateY(40px) scale(.97); transition: opacity 1s var(--ease) .2s, transform 1.2s cubic-bezier(.16,1,.3,1) .2s; }
  .js .hero-visual.reveal.is-visible { transform: none; }

  /* przykładowa strona „składa się” */
  .hero-visual.is-visible .hm-nav { animation: build-down .7s var(--ease) .8s both; }
  .hero-visual.is-visible .hm-kicker { animation: build-up .7s var(--ease) .95s both; }
  .hero-visual.is-visible .hm-title { animation: build-up .8s var(--ease) 1.05s both; }
  .hero-visual.is-visible .hm-lead { animation: build-up .7s var(--ease) 1.2s both; }
  .hero-visual.is-visible .hm-actions { animation: build-up .7s var(--ease) 1.3s both; }
  .hero-visual.is-visible .hm-photo { animation: wipe-up 1.1s cubic-bezier(.65,0,.35,1) .9s both; }
  .hero-visual.is-visible .hm-photo svg { animation: bloom 1.4s cubic-bezier(.16,1,.3,1) 1.3s both; }
  .hero-visual.is-visible .hm-strip > span { animation: build-up .6s var(--ease) both; }
  .hero-visual.is-visible .hm-strip > span:nth-child(1) { animation-delay: 1.45s; }
  .hero-visual.is-visible .hm-strip > span:nth-child(2) { animation-delay: 1.55s; }
  .hero-visual.is-visible .hm-strip > span:nth-child(3) { animation-delay: 1.65s; }
  .hero-visual.is-visible .device-phone { animation: phone-in 1.1s cubic-bezier(.16,1,.3,1) 1.5s both, float 7s ease-in-out 2.6s infinite; }
  .hero-visual.is-visible .pm-btn { animation: tap 2.8s ease-out 3.2s infinite; }
  .hero-visual.is-visible .hero-toast { animation: toast-in .8s cubic-bezier(.34,1.56,.64,1) 2.6s both, float 8s ease-in-out 3.6s infinite reverse; }

  /* paralaksa za kursorem */
  .device-browser { translate: calc(var(--mx, 0) * -10px) calc(var(--my, 0) * -8px); transition: translate .2s linear; }
  .device-phone { translate: calc(var(--mx, 0) * 20px) calc(var(--my, 0) * 16px); }
  .hero-toast { translate: calc(var(--mx, 0) * 30px) calc(var(--my, 0) * 22px); }
  .hero-visual::before { translate: calc(var(--mx, 0) * -18px) calc(var(--my, 0) * -14px); }

  /* pasek branż */
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  /* korzyści */
  .benefit .benefit-num { transition: opacity .8s var(--ease) .15s, transform .8s var(--ease) .15s; }
  .js .benefit:not(.is-visible) .benefit-num { opacity: 0; transform: translateY(24px); }
  .benefit.is-visible .ui-card, .benefit.is-visible .ui-actions, .benefit.is-visible .ui-gallery .g { animation: card-in .9s cubic-bezier(.16,1,.3,1) both; }
  .benefit.is-visible .ui-form { animation-delay: .15s; }
  .benefit.is-visible .ui-actions { animation-delay: .5s; }
  .ui-submit { transition: transform .15s, box-shadow .3s; }
  .ui-submit.is-pressed { transform: scale(.96); box-shadow: 0 0 0 6px rgba(28,59,111,.15); }
  .benefit.is-visible .ui-gallery .g { animation-name: wipe-up; animation-duration: 1.1s; animation-timing-function: cubic-bezier(.65,0,.35,1); }
  .benefit.is-visible .ui-gallery .g1 { animation-delay: .15s; }
  .benefit.is-visible .ui-gallery .g2 { animation-delay: .35s; }
  .benefit.is-visible .ui-gallery .g3 { animation-delay: .5s; }
  .benefit.is-visible .ui-gallery .g4 { animation-delay: .65s; }
  .benefit.is-visible .ui-visit { animation: toast-in .8s cubic-bezier(.34,1.56,.64,1) 1.1s both; }

  /* przykładowe projekty: wejście w 3D */
  .js .concept.reveal { transform: perspective(1400px) translateY(60px) rotateX(9deg) scale(.97); transform-origin: 50% 0; transition: opacity 1s var(--ease), transform 1.3s cubic-bezier(.16,1,.3,1); }
  .js .concept.reveal.is-visible { transform: none; }
  .js .concept + .concept.reveal { transition-delay: .12s; }

  /* sekcja obsługi */
  .service::before { translate: 0 calc(var(--sy, 0) * -120px); }
  .js .scope-list li.reveal::before { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.65,0,.35,1) .1s; }
  .js .scope-list li.reveal.is-visible::before { transform: scaleX(1); }

  /* oś procesu */
  .js .steps .step::before { transform-origin: 0 0; transform: scaleY(0); transition: transform .9s cubic-bezier(.65,0,.35,1); transition-delay: calc(var(--i) * .35s + .5s); }
  .js .steps.is-visible .step::before { transform: none; }
  @media (min-width: 900px) { .js .steps .step::before { transform-origin: 0 50%; transform: scaleX(0); } }
  .step-num { transition: background-color .5s, color .5s, box-shadow .5s; transition-delay: calc(var(--i, 0) * .35s + .3s); }
  .js .steps.is-visible .step-num { background: var(--blue); color: #fff; box-shadow: 0 0 0 6px var(--blue-soft); }
  .js .steps .step.reveal { transition-delay: calc(var(--i) * .12s); }


  /* monogram */
  .portrait.is-visible .portrait-mono { animation: mono-in 1.6s cubic-bezier(.65,0,.35,1) .3s both; }
  .portrait-mono::after { transform-origin: 0 50%; }
  .portrait.is-visible .portrait-mono::after { animation: draw 1s cubic-bezier(.65,0,.35,1) 1.5s both; }
  .portrait::before {
    content: ""; position: absolute; inset: -20%; z-index: 1; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.09) 50%, transparent 60%);
    animation: sheen 7s ease-in-out 2.5s infinite;
  }
  .js .portrait.reveal { transform: translateY(30px) scale(.96); transition: opacity 1s var(--ease), transform 1.2s cubic-bezier(.16,1,.3,1); }
  .js .portrait.reveal.is-visible { transform: none; }

  /* kontakt */
  a.contact-value { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
  a.contact-value:hover { text-decoration: none; background-size: 100% 1.5px; }

  /* przycisk */
  .btn-primary:hover::after { animation: shine .9s var(--ease); }
}

/* ==========================================================================
   HERO: przełączanie branż
   ========================================================================== */
.hero-visual[data-theme="kwiaciarnia"] {
  --h-bg: #FBF7F2; --h-text: #6D665C; --h-ink: #23301F; --h-logo: #2F3A2B; --h-sub: #8A8273; --h-link: #5B554C;
  --h-btn: #2F4A33; --h-btn-ink: #fff; --h-accent: #9A6B55; --h-card: #fff; --h-strip: #fff; --h-line: #EAE1D4;
  --h-photo: radial-gradient(120% 90% at 30% 20%, #F6E3D8 0%, #EBD3C4 45%, #DDBFAE 100%); --h-photo-base: #CFAE98; --h-title-style: normal;
}
.hero-visual[data-theme="restauracja"] {
  --h-bg: #1D1915; --h-text: #BFB39E; --h-ink: #F7EEDF; --h-logo: #F3E9D7; --h-sub: #D7A55A; --h-link: #CBBFA9;
  --h-btn: #D7A55A; --h-btn-ink: #1D1915; --h-accent: #D7A55A; --h-card: #2A241E; --h-strip: #231E19; --h-line: rgba(243,233,215,.12);
  --h-photo: radial-gradient(90% 90% at 50% 45%, #5B4632 0%, #3A2D21 60%, #2A211A 100%); --h-photo-base: #2A211A; --h-title-style: normal;
}
.hero-visual[data-theme="salon"] {
  --h-bg: #FBF3EF; --h-text: #7D6863; --h-ink: #3E2B28; --h-logo: #4A3431; --h-sub: #9E5B5B; --h-link: #7D6863;
  --h-btn: #8F4F50; --h-btn-ink: #fff; --h-accent: #9E5B5B; --h-card: #fff; --h-strip: #fff; --h-line: #F1E3DE;
  --h-photo: radial-gradient(110% 90% at 30% 20%, #FBE9E3 0%, #F3D6CD 50%, #E9C3B8 100%); --h-photo-base: #E2B9AD; --h-title-style: italic;
}
.hero-visual .hm, .hero-visual .pm { background: var(--h-bg); color: var(--h-text); transition: background-color .6s ease, color .6s ease; }
.hero-visual .hm-logo, .hero-visual .pm-logo, .hero-visual .pm-burger, .hero-visual .pm-hours-title, .hero-visual .hm-strip b { color: var(--h-logo); }
.hero-visual .hm-logo small { color: var(--h-sub); }
.hero-visual .hm-links { color: var(--h-link); }
.hero-visual .hm-btn, .hero-visual .pm-btn { background: var(--h-btn); color: var(--h-btn-ink); }
.hero-visual .hm-btn-light { background: transparent; color: var(--h-btn); box-shadow: inset 0 0 0 1.5px var(--h-btn); }
.hero-visual .hm-kicker { color: var(--h-accent); }
.hero-visual .hm-title, .hero-visual .pm-title { color: var(--h-ink); font-style: var(--h-title-style); }
.hero-visual .hm-lead, .hero-visual .hm-strip > span, .hero-visual .pm-row { color: var(--h-text); }
.hero-visual .hm-photo, .hero-visual .pm-photo { background: var(--h-photo); }
.hero-visual .hm-photo::after { background: var(--h-photo-base); }
.hero-visual .hm-strip { background: var(--h-strip); border-top-color: var(--h-line); transition: background-color .6s ease; }
.hero-visual .hm-strip > span + span { border-left-color: var(--h-line); }
.hero-visual .pm-hours { background: var(--h-card); box-shadow: 0 1px 0 var(--h-line); }
.hero-visual .pm-row.is-today { color: var(--h-btn); }

/* zmiana treści: wygaszenie i wejście z opóźnieniem */
.hero-visual .hm-nav > *, .hero-visual .hm-text > *, .hero-visual .hm-photo, .hero-visual .hm-strip > span,
.hero-visual .pm > *, .hero-visual .toast-text {
  transition: opacity .32s ease, transform .55s cubic-bezier(.16,1,.3,1);
}
.hero-visual.is-switching .hm-nav > *, .hero-visual.is-switching .hm-text > *, .hero-visual.is-switching .hm-photo,
.hero-visual.is-switching .hm-strip > span, .hero-visual.is-switching .pm > *, .hero-visual.is-switching .toast-text {
  opacity: 0; transform: translateY(10px);
}
.hero-visual.is-switching .hm-photo, .hero-visual.is-switching .pm-photo { transform: scale(.96); }
.hero-visual:not(.is-switching) .hm-text > :nth-child(2), .hero-visual:not(.is-switching) .pm > :nth-child(2) { transition-delay: .07s; }
.hero-visual:not(.is-switching) .hm-text > :nth-child(3), .hero-visual:not(.is-switching) .pm > :nth-child(3), .hero-visual:not(.is-switching) .hm-photo { transition-delay: .14s; }
.hero-visual:not(.is-switching) .hm-text > :nth-child(4), .hero-visual:not(.is-switching) .pm > :nth-child(4), .hero-visual:not(.is-switching) .hm-strip > span { transition-delay: .21s; }
.hero-visual:not(.is-switching) .pm > :nth-child(5), .hero-visual:not(.is-switching) .toast-text { transition-delay: .28s; }
.hero-visual.is-built .hm, .hero-visual.is-built .hm * { animation: none !important; }

/* Mapka z trasą w korzyści 03 */
.ui-map, .ui-cursor { display: none; }
.ui-pin { position: relative; display: inline-grid; place-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .js .ui-map {
    display: block; position: absolute; z-index: 3; left: -6px; bottom: calc(100% + 12px);
    width: min(300px, calc(100vw - 72px)); border-radius: 14px; overflow: hidden;
    background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -18px rgba(15,33,63,.45);
    transform-origin: 26px 100%; opacity: 0; transform: translateY(10px) scale(.6);
    transition: opacity .3s var(--ease), transform .6s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
  }
  .js .ui-map svg { width: 100%; height: auto; }
  .is-map .ui-map { opacity: 1; transform: none; }
  .ui-map .route { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .3s; }
  .is-map .ui-map .route { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.65,0,.35,1) .4s; }
  .ui-map .dest { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; transform: translateY(-14px); transition: opacity .2s, transform .2s; }
  .is-map .ui-map .dest { opacity: 1; transform: none; transition: opacity .3s 1.85s, transform .6s cubic-bezier(.34,1.56,.64,1) 1.85s; }
  .ui-map .start-ring { transform-box: fill-box; transform-origin: center; animation: ring 1.8s ease-out infinite; }
  .ui-map-chip, .ui-map-you {
    position: absolute; font-size: .75rem; line-height: 1.2; border-radius: 999px; padding: .35em .7em;
    opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
  }
  .ui-map-chip { right: 10px; bottom: 10px; background: var(--ink); color: #fff; }
  .ui-map-chip b { color: #E9B88F; margin-right: .3em; }
  .ui-map-you { left: 10px; bottom: 6px; background: #fff; color: var(--blue); font-weight: 700; box-shadow: var(--shadow-sm); }
  .is-map .ui-map-you { opacity: 1; transform: none; transition: opacity .3s .5s, transform .4s var(--ease) .5s; }
  .is-map .ui-map-chip { opacity: 1; transform: none; transition: opacity .3s 2.1s, transform .5s var(--ease) 2.1s; }

  .js .ui-cursor {
    display: block; position: absolute; z-index: 7; left: 0; top: 0; width: 24px; height: 24px; pointer-events: none;
    opacity: 0; transform: translate(var(--cx, 0), var(--cy, 0));
    transition: transform 1.3s cubic-bezier(.65,0,.35,1), opacity .35s;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,.25));
  }
  .ui-cursor svg { width: 100%; height: 100%; transition: transform .15s; transform-origin: 20% 10%; }
  .is-cursor .ui-cursor { opacity: 1; }
  .is-click .ui-cursor svg { transform: scale(.8); }
  .ui-pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; transform: scale(.4); }
  .is-click .ui-pin::after, .is-map .ui-pin::after { animation: pin-ping .9s ease-out both; }
  .is-click .ui-pin, .is-map .ui-pin { animation: bounce .6s ease-in-out; }
}
@keyframes ring { from { transform: scale(1); opacity: .35; } to { transform: scale(3.2); opacity: 0; } }
@keyframes pin-ping { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.8); } }

/* Przewijanie podglądów: mysz → po najechaniu, dotyk → samoczynnie */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .concept .site { transition: transform 1.4s cubic-bezier(.45,0,.55,1); }
  .concept-frame:hover .site { transform: translateY(var(--pan, 0)); transition-duration: var(--pan-dur, 5s); }
}
@media (prefers-reduced-motion: no-preference) and (hover: none) {
  .concept.is-visible .site { animation: pan 16s ease-in-out 1.5s infinite alternate; }
}

@keyframes build-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes build-down { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes wipe-up { from { clip-path: inset(100% 0 0 0 round 1.2em); } to { clip-path: inset(0 0 0 0 round 1.2em); } }
@keyframes bloom { from { opacity: 0; transform: scale(.8) translateY(8%); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translate(30px, 60px) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes tap { 0% { box-shadow: 0 0 0 0 rgba(47,74,51,.45); } 70%, 100% { box-shadow: 0 0 0 .8em rgba(47,74,51,0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(28,59,111,.45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(28,59,111,0); } }
@keyframes card-in { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pan { 0%, 12% { transform: none; } 88%, 100% { transform: translateY(var(--pan, 0)); } }
@keyframes mono-in { from { clip-path: inset(0 100% 0 0); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes sheen { 0% { transform: translateX(-60%); } 40%, 100% { transform: translateX(60%); } }
@keyframes shine { from { opacity: 1; transform: skewX(-18deg) translateX(0); } to { opacity: 1; transform: skewX(-18deg) translateX(420%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .nav-toggle, .preview-dialog { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
