/* Studio Strony v2 — landing. Noc na budowie -> gotowe zapytanie.
   Jedna paleta marki (ciemna zieleń + krem), jeden akcent: złoto. */
:root {
  --night: #06120d;
  --forest: #0c2219;
  --moss: #173a2b;
  --cream: #f1ece1;
  --paper: #e7e0d1;
  --ink: #13201a;
  --ink-muted: #4f5d55;
  --gold: #c8a862;
  --gold-soft: #e2cb8f;
  --gold-ink: #7d5f22;
  --good: #1d7a4a;
  --bad: #b5472a;
  --line: rgba(241, 236, 225, 0.14);
  --line-ink: rgba(19, 32, 26, 0.14);
  --dim: rgba(241, 236, 225, 0.66);
  --f-display: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "Inter Tight", system-ui, sans-serif;
  --g: clamp(1rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.6rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); color-scheme: dark; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--night);
  color: var(--cream);
  font: 400 1rem/1.6 var(--f-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--gold-soft); }
:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--night); }

.wrap { padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px)); max-width: 1520px; margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.eyebrow { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0; }
.eyebrow--ink { color: var(--gold-ink); }
.eyebrow--muted { color: var(--dim); }

.skip-link {
  position: fixed; z-index: 999; top: 0.75rem; left: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 600;
  transform: translateY(-180%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btns--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  min-height: 3.1rem; padding: 0.85rem 1.4rem; border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { border-color: var(--line); color: var(--cream); background: rgba(6, 18, 13, 0.3); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--moss); }
.btn--lg { min-height: 3.6rem; padding-inline: 1.8rem; font-size: 1rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.text-link {
  display: inline-flex; gap: 0.5rem; align-items: center; margin-top: 2.4rem;
  font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 0.2rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.2s;
}
.text-link:hover { color: var(--gold-soft); }

/* ---------- pill nav ---------- */
.nav {
  position: fixed; z-index: 60;
  top: max(14px, env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.25rem; padding: 0.35rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(6, 18, 13, 0.6); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: background-color 0.3s;
}
.nav.is-scrolled { background: rgba(6, 18, 13, 0.85); }
.nav a { padding: 0.55rem 0.95rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500; white-space: nowrap; }
.nav__logo { display: flex; align-items: center; gap: 0.55rem; padding: 0.25rem 0.8rem 0.25rem 0.25rem !important; font-weight: 600 !important; }
.nav__logo img { width: 32px; height: 32px; border-radius: 50%; }
.nav__links { display: flex; }
.nav__links a { color: var(--dim); transition: color 0.2s, background-color 0.2s; }
.nav__links a:hover { color: var(--cream); background: rgba(241, 236, 225, 0.06); }
.nav__cta { display: flex; align-items: center; gap: 0.5rem; background: var(--gold); color: var(--night); font-weight: 600 !important; transition: background-color 0.2s; }
.nav__cta:hover { background: var(--gold-soft); }

/* ---------- PROBLEM ---------- */
.problem {
  position: relative; overflow: hidden; padding-block: clamp(6rem, 13vw, 11rem);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%, var(--night);
}
.problem__giant {
  position: absolute; left: 0; top: 42%; transform: translateY(-50%); white-space: nowrap; pointer-events: none;
  font-weight: 700; font-size: clamp(9rem, 30vw, 30rem); letter-spacing: -0.07em; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px rgba(200, 168, 98, 0.2);
}
.problem__in { position: relative; display: grid; gap: 2.2rem; }
.problem__title { max-width: 20ch; font-weight: 500; font-size: clamp(2rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.problem__title .w { display: inline-block; }
.problem__copy { display: grid; gap: 1rem; max-width: 40rem; margin-left: auto; color: var(--dim); font-size: 1.05rem; }
.problem__copy strong { color: var(--cream); font-weight: 600; }

/* ---------- section heads ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head > div { display: grid; gap: 0.9rem; }
.sec-head > p { color: var(--dim); }
.sec-title { font-weight: 600; font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: 0.92; letter-spacing: -0.05em; }

/* ---------- PAKIET ---------- */
.pak { background: var(--night); padding-block: clamp(5rem, 10vw, 9rem); }
.acc { display: flex; gap: 0.5rem; height: min(520px, 72svh); }
.panel { position: relative; flex: 1 1 0; min-width: 0; border-radius: 24px; overflow: hidden; background: var(--c); color: var(--fg, var(--cream)); transition: flex-grow 0.7s var(--ease); }
.panel.is-open { flex-grow: 4.2; }
.panel__btn { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 1.4rem; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.panel.is-open .panel__btn { cursor: default; }
.panel__n { opacity: 0.75; }
.panel__v { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; white-space: nowrap; transition: opacity 0.3s; }
.panel.is-open .panel__v { opacity: 0; }
.panel__body { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; max-width: 30rem; pointer-events: none; opacity: 0; transform: translateY(12px); transition: opacity 0.4s 0.15s, transform 0.5s 0.15s var(--ease); }
.panel.is-open .panel__body { opacity: 1; transform: none; }
.panel h3 { font-weight: 600; font-size: clamp(1.15rem, 1.7vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.1; margin-top: 0.4rem; }
.panel p { margin-top: 0.7rem; font-size: 0.98rem; opacity: 0.85; }

/* ---------- CENNIK ---------- */
.price { background: var(--cream); color: var(--ink); padding-block: clamp(5rem, 10vw, 9rem); }
.price em { color: var(--gold-ink); }
.price .sec-head > p { color: var(--ink-muted); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; align-items: stretch; padding-top: 1rem; }
.card { position: relative; display: flex; flex-direction: column; gap: 0.7rem; padding: 1.8rem 1.4rem 2rem; border-radius: 24px; background: #fff; border: 1px solid var(--line-ink); transition: transform 0.3s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card::before, .card::after { content: "+"; position: absolute; font-family: var(--f-mono); color: #a0997f; font-size: 0.9rem; line-height: 1; }
.card::before { top: 0.7rem; left: 0.8rem; }
.card::after { bottom: 0.7rem; right: 0.8rem; }
.card__name { margin-top: 0.4rem; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.card__amt { font-size: clamp(2.2rem, 3.2vw, 3.1rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.card__amt small { font-size: 0.85rem; font-weight: 500; letter-spacing: 0; color: var(--ink-muted); }
.card__sub { font-size: 0.85rem; color: var(--ink-muted); }
.card__desc { font-size: 0.92rem; }
.card ul { margin: auto 0 0; padding: 1rem 0 0; list-style: none; display: grid; gap: 0.4rem; font-size: 0.9rem; border-top: 1px solid var(--line-ink); }
.card li { padding-left: 1.2rem; position: relative; }
.card li::before { content: ""; position: absolute; left: 0.15rem; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-ink); }
.card--hot { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.card--hot .card__sub, .card--hot .card__amt small { color: var(--dim); }
.card--hot ul { border-color: var(--line); }
.card--hot li::before { color: var(--gold); }
.card__badge { position: absolute; top: -0.8rem; right: 1.2rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--gold); color: var(--night); font-size: 0.72rem; font-weight: 700; }
@media (min-width: 1101px) {
  .card--hot { transform: translateY(-14px); }
  .card--hot:hover { transform: translateY(-18px); }
}
.promo { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; padding: 1.3rem 1.5rem; border-radius: 20px; border: 1px dashed #a0997f; }
.promo p { max-width: 52rem; }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2rem; color: var(--ink-muted); font-size: 0.86rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--night); padding-block: clamp(5rem, 10vw, 9rem); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq__intro { display: grid; gap: 0.9rem; justify-items: start; position: sticky; top: 7rem; }
.faq__intro .sec-title { font-size: clamp(2.2rem, 4.4vw, 4.2rem); }
.faq__intro .text-link { margin-top: 1rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; }
.faq-item button {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; width: 100%;
  padding: 1.35rem 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-weight: 600; font-size: clamp(1.02rem, 1.4vw, 1.2rem); letter-spacing: -0.01em; transition: color 0.2s;
}
.faq-item button:hover { color: var(--gold-soft); }
.faq-item button span { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid var(--line); border-radius: 50%; font-weight: 400; font-size: 1.2rem; transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s; }
.faq-item button[aria-expanded="true"] span { transform: rotate(45deg); background: var(--gold); color: var(--night); border-color: var(--gold); }
.faq-answer { padding: 0 3.5rem 1.5rem 0; color: var(--dim); }

/* ---------- KONTAKT ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; background: var(--night); }
.contact__bg { position: absolute; inset: -10% 0 auto; height: 110svh; z-index: -1; background: url("assets/media/hero-desktop.webp") center / cover; opacity: 0.32; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, transparent, var(--night) 72%), linear-gradient(transparent 60%, var(--night)); }
.contact__hero { min-height: 92svh; display: grid; place-content: center; justify-items: center; gap: 1.6rem; text-align: center; padding-top: 7rem; padding-bottom: 4rem; }
.contact__title { font-weight: 600; font-size: clamp(3.2rem, 11vw, 11rem); line-height: 0.86; letter-spacing: -0.06em; }
.contact__title em { display: block; }
.contact__lead { max-width: 34rem; color: var(--dim); font-size: 1.05rem; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); padding-bottom: clamp(5rem, 9vw, 8rem); align-items: start; }
.direct { list-style: none; margin: 0; padding: 0; display: grid; }
.direct li { display: grid; gap: 0.25rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.direct li:last-child { border-bottom: 1px solid var(--line); }
.direct .mono { color: var(--gold); }
.direct strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.direct strong a:hover { color: var(--gold-soft); }
.direct small { color: var(--dim); font-size: 0.86rem; }
.chat-block { margin-top: 2rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 20px; }
.chat-block h3 { font-size: 1.1rem; }
.chat-notice { margin-top: 0.6rem; color: var(--dim); font-size: 0.9rem; }
.chat-notice a { text-decoration: underline; text-underline-offset: 3px; }

.form { color-scheme: light; display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 28px; background: var(--cream); color: var(--ink); }
.form__head { display: grid; gap: 0.6rem; }
.form__head .eyebrow { color: var(--gold-ink); }
.form__head h3 { font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.05; letter-spacing: -0.03em; }
.form__legal { font-size: 0.84rem; color: var(--ink-muted); }
.form__legal a, .form__consent a { text-decoration: underline; text-underline-offset: 3px; }
.form label { display: grid; gap: 0.4rem; font-size: 0.88rem; font-weight: 600; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; min-height: 3.2rem; padding: 0.8rem 1rem; border: 1px solid var(--line-ink); border-radius: 14px;
  background: #fff; color: var(--ink); font-weight: 400; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.form textarea { resize: vertical; min-height: 7rem; }
.form input::placeholder, .form textarea::placeholder { color: #8b948d; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(200, 168, 98, 0.35); }
.form label.form__consent { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 0.7rem; font-weight: 400; font-size: 0.84rem; color: var(--ink-muted); cursor: pointer; }
.form__consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--forest); }
.form__submit { justify-self: start; margin-top: 0.4rem; }
.botcheck { position: absolute; left: -9999px; opacity: 0; }
.form-status { min-height: 1.4em; font-size: 0.9rem; font-weight: 600; }
.form-status.is-success { color: var(--good); }
.form-status.is-error { color: var(--bad); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); background: var(--night); padding-block: 3.5rem 6rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto auto; gap: 2rem 3rem; align-items: start; }
.footer__grid > div > p { max-width: 26rem; margin-top: 1rem; color: var(--dim); font-size: 0.9rem; }
.footer__brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 600; font-size: 1.05rem; }
.footer__brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-links { display: grid; gap: 0.55rem; font-size: 0.9rem; color: var(--dim); justify-items: start; }
.footer-links a:hover { color: var(--cream); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.8rem; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; z-index: 55; left: max(1rem, env(safe-area-inset-left, 0px)); right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  display: none; justify-content: center; align-items: center; gap: 0.5rem; min-height: 3.4rem; padding: 0.9rem 1rem;
  border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 600;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.55);
  transform: translateY(160%); transition: transform 0.4s var(--ease);
}
.sticky-cta.is-visible { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav { left: max(1rem, env(safe-area-inset-left, 0px)); right: max(1rem, env(safe-area-inset-right, 0px)); transform: none; justify-content: space-between; }
  .sec-head, .faq__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__intro { position: static; }
  .notes { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__grid > div:first-child, .footer__cta { grid-column: 1 / -1; }
  .footer__cta { justify-self: start; }
  .sticky-cta { display: flex; }
}
@media (max-width: 860px) {
  .acc { flex-direction: column; height: auto; }
  .panel { flex: none; height: 4.4rem; transition: height 0.6s var(--ease); }
  .panel.is-open { height: 20rem; }
  .panel__btn { flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 1rem; padding: 1.4rem 1.2rem; }
  .panel__v { writing-mode: horizontal-tb; transform: none; font-size: 1.02rem; }
  .panel__body { left: 1.2rem; right: 1.2rem; bottom: 1.2rem; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .faq-answer { padding-right: 0; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto !important; }
}

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Baner zgód (consent.js) — style przeniesione z styles.css ---------- */
.consent-banner, .consent-modal, .cookie-settings-link {
  --black: #050907; --forest: #10281d; --cream: #f3f0e8; --ink: #152019; --muted: #666a61; --light: #f3f0e8;
  --gold: #b59b62; --gold-ink: #756233; --line-light: rgba(16, 40, 29, 0.16);
  --serif: var(--f-serif); --sans: var(--f-display);
}
.consent-banner { font-family: var(--f-display); }
.consent-banner {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  width: min(calc(100% - 2rem), 70rem);
  margin-inline: auto;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(181, 155, 98, 0.32);
  border-radius: 1rem;
  background: rgba(7, 24, 17, 0.98);
  box-shadow: 0 28px 80px -34px rgba(5, 9, 7, 0.98);
  color: var(--light);
}

.consent-banner[hidden],
.consent-modal[hidden] { display: none !important; }

.consent-banner__copy strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.consent-banner__copy p,
.consent-modal__intro,
.consent-option small {
  margin: 0;
  color: rgba(243, 240, 232, 0.72);
  font-size: 0.86rem;
  line-height: 1.6;
}

.consent-banner__copy a { text-decoration: underline; text-underline-offset: 3px; }

.consent-banner__actions,
.consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.consent-btn,
.cookie-settings-link,
.consent-close {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.consent-btn {
  min-height: 2.75rem;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.consent-btn--ghost,
.consent-btn--outline {
  border: 1px solid rgba(243, 240, 232, 0.24);
  background: transparent;
  color: var(--light);
}

.consent-btn--gold {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--black);
}

.consent-modal {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 7, 0.72);
  backdrop-filter: blur(5px);
}

.consent-modal__panel {
  position: relative;
  width: min(100%, 42rem);
  max-height: 90svh;
  overflow: auto;
  border: 1px solid var(--line-light);
  border-radius: 1.2rem;
  background: var(--cream);
  color: var(--ink);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 32px 90px -45px rgba(5, 9, 7, 0.85);
}

.consent-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.consent-kicker {
  margin: 0 0 0.45rem;
  color: var(--gold-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.consent-modal h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
}

.consent-modal__intro { margin-top: 1rem; color: var(--muted); }

.consent-close {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 1.5rem;
}

.consent-options {
  margin: 1.5rem 0;
  border-block: 1px solid var(--line-light);
}

.consent-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
}

.consent-option:last-child { border-bottom: 0; }
.consent-option strong { display: block; margin-bottom: 0.2rem; }
.consent-option small { display: block; color: var(--muted); }
.consent-option input { width: 1.2rem; height: 1.2rem; accent-color: var(--forest); }

.consent-modal__actions { justify-content: flex-end; }
.consent-modal .consent-btn--outline { border-color: rgba(16, 40, 29, 0.25); color: var(--forest); }

.cookie-settings-link {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.consent-modal-open { overflow: hidden; }

@media (min-width: 760px) {
  .consent-banner {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.4rem 1.5rem;
  }
  .consent-banner__actions { justify-content: flex-end; }
}

@media (max-width: 759px) {
  .consent-banner__actions { display: grid; grid-template-columns: 1fr; }
  .consent-btn { width: 100%; }
  .consent-modal { align-items: end; padding: 0.65rem; }
  .consent-modal__panel { border-radius: 1.2rem 1.2rem 0.7rem 0.7rem; }
}


/* Instrument Serif ma tylko wagę 400 — bez sztucznego pogrubienia */
.consent-banner__copy strong, .consent-modal h2 { font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.consent-modal__panel { color-scheme: light; }

/* ======================================================================
   v2.1 — pomysły z Awwwards: kalkulator (Terminal Industries), ścieżki
   (Terminal), pole „Zapytaj handlowca” (Flim), zakreślacz (Wembi),
   żywy zegar w menu (Lama Lama)
   ====================================================================== */

/* ---------- żywy zegar w menu ---------- */
.nav__clock { display: flex; align-items: center; gap: 0.45rem; padding: 0 0.9rem; color: var(--dim); font-size: 0.68rem; white-space: nowrap; }
.nav__clock .dot { width: 6px; height: 6px; color: #4fbf7f; animation: pulse 1.8s infinite; }
.nav__clock b { color: var(--cream); font-weight: 600; }
@media (max-width: 1180px) { .nav__clock { display: none; } }

/* ---------- zakreślacz ---------- */
.hl {
  color: inherit; padding: 0 0.12em; margin: 0 -0.04em; border-radius: 0.2em;
  background: linear-gradient(transparent 58%, rgba(200, 168, 98, 0.55) 58%, rgba(200, 168, 98, 0.55) 92%, transparent 92%) 0 0 / var(--hl, 100%) 100% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hl--ink { background-image: linear-gradient(transparent 60%, rgba(200, 168, 98, 0.45) 60%, rgba(200, 168, 98, 0.45) 94%, transparent 94%); }
.js:not(.no-motion) .hl { --hl: 0%; }

/* ---------- kalkulator ---------- */
.calc { position: relative; background: var(--forest); padding-block: clamp(5rem, 10vw, 9rem); border-top: 1px solid var(--line); }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.calc__form { display: grid; gap: 1.6rem; }
.calc__form .sec-title { font-size: clamp(2.2rem, 4.6vw, 4.4rem); }
.calc__intro { color: var(--dim); max-width: 34rem; }
.slider { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 1rem; align-items: baseline; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.slider label { font-weight: 500; }
.slider output { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--gold-soft); }
.slider input { grid-column: 1 / -1; width: 100%; margin: 0.2rem 0 0; height: 2rem; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 50%; }
.slider input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold) var(--p), rgba(241, 236, 225, 0.16) var(--p)); }
.slider input::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(241, 236, 225, 0.16); }
.slider input::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--gold); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--cream); border: 4px solid var(--gold); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); transition: transform 0.2s var(--ease); }
.slider input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--cream); border: 4px solid var(--gold); }
.slider input:active::-webkit-slider-thumb { transform: scale(1.15); }
.slider input:focus-visible { outline: none; }
.slider input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(226, 203, 143, 0.5); }
.slider input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(226, 203, 143, 0.5); }
.calc__result { position: sticky; top: 6.5rem; display: grid; gap: 1.2rem; justify-items: start; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 28px; background: var(--night); border: 1px solid rgba(200, 168, 98, 0.3); }
.calc__big { display: grid; gap: 0.3rem; margin: 0; }
.calc__big span { font-family: var(--f-serif); font-style: italic; color: var(--gold-soft); font-size: clamp(3.4rem, 7vw, 6.4rem); line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc__big small { color: var(--dim); font-size: 0.95rem; }
.calc__rows { width: 100%; margin: 0; display: grid; }
.calc__rows div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); font-size: 0.93rem; }
.calc__rows dt { color: var(--dim); }
.calc__rows dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.calc__note { color: var(--dim); font-size: 0.82rem; }

/* ---------- ścieżki w cenniku ---------- */
.paths { display: grid; gap: 1rem; margin-bottom: clamp(2.4rem, 4vw, 3.4rem); }
.paths__q { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.paths__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.path {
  display: grid; gap: 0.6rem; align-content: start; text-align: left; cursor: pointer;
  padding: 1.2rem 1.3rem 1.3rem; border-radius: 20px; border: 1px solid var(--line-ink); background: var(--paper); color: var(--ink);
  transition: transform 0.25s var(--ease), border-color 0.25s, background-color 0.25s;
}
.path:hover { transform: translateY(-2px); border-color: var(--gold-ink); }
.path .mono { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: 0.7rem; letter-spacing: 0; }
.path b { font-weight: 600; line-height: 1.3; }
.path small { color: var(--gold-ink); font-weight: 600; font-size: 0.86rem; }
.path[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.path[aria-pressed="true"] .mono { background: var(--gold); color: var(--night); }
.path[aria-pressed="true"] small { color: var(--gold-soft); }
.paths__alt { color: var(--ink-muted); font-size: 0.92rem; }
.paths__link { padding: 0; border: 0; background: none; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.card { scroll-margin-top: 7rem; }
.card.is-picked { box-shadow: 0 0 0 3px var(--gold), 0 30px 60px -30px rgba(19, 32, 26, 0.5); }
.card__fit { position: absolute; top: -0.8rem; left: 1.2rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 0.72rem; font-weight: 700; }
.card--hot .card__fit { background: var(--cream); color: var(--ink); }

/* ---------- pole „Zapytaj handlowca” ---------- */
.ask {
  position: fixed; z-index: 54; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 0.8rem; width: min(560px, calc(100% - 9rem));
  padding: 0.55rem 0.55rem 0.55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(6, 18, 13, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--cream);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7); cursor: pointer; text-align: left;
  transform: translate(-50%, 180%); transition: transform 0.5s var(--ease), border-color 0.25s;
}
.ask.is-visible { transform: translate(-50%, 0); }
.ask:hover { border-color: var(--gold); }
.ask__dot { width: 9px; height: 9px; border-radius: 50%; background: #4fbf7f; box-shadow: 0 0 0 4px rgba(79, 191, 127, 0.18); animation: pulse 1.8s infinite; flex: none; }
.ask__label { font-weight: 600; white-space: nowrap; }
.ask__hint { flex: 1; min-width: 0; color: var(--dim); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask__go { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; background: var(--gold); color: var(--night); font-weight: 700; }

@media (max-width: 960px) {
  .ask { display: none !important; }
  .calc__grid { grid-template-columns: minmax(0, 1fr); }
  .calc__result { position: static; }
  .paths__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .calc__rows div { font-size: 0.86rem; }
}

/* v2.2 — porządki anty-slop: panele bez numerów, jedna pulsująca kropka mniej */
.panel__btn { justify-content: flex-end; }
.panel h3 { font-size: clamp(1.5rem, 2.6vw, 2.6rem); line-height: 1; letter-spacing: -0.035em; margin-top: 0; max-width: 16ch; }
.nav__clock .dot { animation: none; }
@media (max-width: 860px) {
  .panel__btn { justify-content: flex-start; align-items: center; }
  .panel h3 { font-size: 1.5rem; }
  .panel.is-open { height: 16rem; }
}

/* ======================================================================
   v3: telefon prowadzi przez hero i 6 kroków, Gloock w nagłówkach,
   kolory bez kremu (ciemna zieleń, szmaragd, mocne złoto), tło jak papier milimetrowy
   ====================================================================== */
:root {
  --night: #04100b;
  --emerald: #0f4a32;
  --gold: #d9a93f;
  --gold-soft: #f2c869;
  --gold-ink: #6b4a0c;
  --f-head: "Gloock", Georgia, "Times New Roman", serif;
  --f-serif: var(--f-head);
}
body {
  background:
    radial-gradient(60rem 40rem at 78% 12%, rgba(15, 74, 50, 0.7), transparent 70%),
    linear-gradient(rgba(217, 169, 63, 0.07) 1px, transparent 1px) 0 0 / 100% 120px,
    linear-gradient(90deg, rgba(217, 169, 63, 0.07) 1px, transparent 1px) 0 0 / 120px 100%,
    linear-gradient(rgba(241, 236, 225, 0.025) 1px, transparent 1px) 0 0 / 100% 12px,
    linear-gradient(90deg, rgba(241, 236, 225, 0.025) 1px, transparent 1px) 0 0 / 12px 100%,
    var(--night);
  background-attachment: fixed;
}
.gold { color: var(--gold-soft); }

/* Gloock ma jedną wagę (400). Wyróżnienia w nagłówkach to złoty kolor, bez kursywy i bez sztucznego pogrubienia. */
em { font-family: var(--f-head); font-style: normal; color: var(--gold-soft); letter-spacing: inherit; }
.sec-title, .problem__title, .contact__title, .after__statement, .calc__big span, .story h1, .story h2, .form__head h3, .panel h3 {
  font-family: var(--f-head); font-weight: 400; letter-spacing: -0.035em; text-wrap: balance;
}
.problem__title { line-height: 1.02; }
.contact__title em { display: block; }
.calc__big span { font-style: normal; letter-spacing: -0.03em; }

/* ---------- historia z telefonem ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 4vw, 4rem); max-width: 1520px; margin-inline: auto; }
.story__col { display: grid; }
.story__block { min-height: 100svh; display: grid; align-content: center; gap: 1.3rem; padding-block: 7rem 3rem; }
.story__hero .story__title { font-size: clamp(3.4rem, 8.6vw, 9.6rem); line-height: 0.92; }
.story__lead { max-width: 33rem; color: var(--dim); font-size: 1.08rem; }
.story__lead strong { color: var(--cream); font-weight: 600; }
.story__who { display: flex; align-items: center; gap: 0.8rem; color: var(--dim); font-size: 0.88rem; }
.story__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.story__who b { color: var(--cream); font-weight: 600; }
.story__step { max-width: 34rem; }
.story__n { display: flex; align-items: center; gap: 0.8rem; color: var(--gold-soft); }

.story__step h2 { font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: 0.95; }
.story__step p { color: var(--dim); font-size: 1.05rem; }
.story__step p strong { color: var(--cream); }
.story__fine { font-size: 0.82rem !important; color: rgba(241, 236, 225, 0.5) !important; }
.story__phone-col { position: relative; }
.story__phone-sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; perspective: 1400px; }
@media (min-width: 861px) { .story__block[data-step="sms"] { min-height: 135svh; align-content: start; padding-top: 30svh; } }

/* ---------- telefon ---------- */
.phone { position: relative; width: min(340px, 78vw); aspect-ratio: 9 / 19; border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #1b1f1d, #050706); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 60px 120px -30px rgba(0, 0, 0, 0.8), 0 0 120px -20px rgba(217, 169, 63, 0.25); transform-style: preserve-3d; will-change: transform; }
.phone::before { content: ""; position: absolute; z-index: 5; top: 20px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.ph-screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: #f4f5f2; color: var(--ink); }
.ph-view { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: scale(0.97); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); pointer-events: none; }
.ph-view.is-on { opacity: 1; transform: none; }
.ph-bar { display: flex; align-items: center; gap: 0.6rem; padding: 3.4rem 1rem 0.8rem; background: #fff; border-bottom: 1px solid #e4e6e1; }
.ph-av { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--forest); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 0.72rem; }
.ph-av.is-xs { width: 20px; height: 20px; font-size: 0.42rem; }
.ph-bar b { display: block; font-size: 0.86rem; line-height: 1.15; }
.ph-bar small { font-size: 0.7rem; color: var(--good); }
.ph-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.45rem; padding: 0.9rem 0.8rem 1rem; overflow: hidden; }
.ph-m { max-width: 84%; padding: 0.55rem 0.75rem; border-radius: 17px; font-size: 0.78rem; line-height: 1.36; transition: opacity 0.35s, transform 0.35s var(--ease); }
.js .ph-m { display: none; opacity: 0; transform: translateY(8px); }
.js .ph-m.is-shown { display: block; }
.js .ph-m.is-in { opacity: 1; transform: none; }
.ph-m.is-c { align-self: flex-end; background: var(--forest); color: var(--cream); border-bottom-right-radius: 5px; }
.ph-m.is-a { align-self: flex-start; background: #fff; border: 1px solid #e4e6e1; border-bottom-left-radius: 5px; }
.ph-ai { display: block; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8a6514; margin-bottom: 0.15rem; }
.ph-m.is-ph { display: flex; gap: 4px; padding: 4px; }
.js .ph-m.is-ph:not(.is-shown) { display: none; }
.ph-m.is-ph i { width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, #cfc6b2, #8f9a8c); }
.ph-m.is-ph i:nth-child(2) { background: linear-gradient(135deg, #b7c2bb, #6f7f76); }
.ph-m.is-ph i:nth-child(3) { background: linear-gradient(135deg, #ded3bd, #a9967a); }
.ph-typing { display: none; align-self: flex-start; gap: 4px; padding: 0.7rem 0.8rem; border-radius: 17px; background: #fff; border: 1px solid #e4e6e1; }
.ph-typing.is-on { display: flex; }
.ph-typing span { width: 6px; height: 6px; border-radius: 50%; background: #9aa39d; animation: typing 1s infinite; }
.ph-typing span:nth-child(2) { animation-delay: 0.15s; }
.ph-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 50% { transform: translateY(-3px); opacity: 0.4; } }
.ph-pad { flex: 1; display: grid; gap: 0.7rem; align-content: start; padding: 1rem; }
.ph-label { margin: 0 0 0.4rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6b766f; }
.ph-card { padding: 0.9rem; border-radius: 18px; background: #fff; border: 1px solid #e4e6e1; }
.ph-card.is-dim { opacity: 0.5; }
.ph-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.ph-t { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.ph-t.is-sm { font-size: 0.85rem; }
.ph-row { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.45rem 0; border-top: 1px solid #eceee9; font-size: 0.74rem; }
.ph-row span { color: #6b766f; }
.ph-row b { text-align: right; transition: opacity 0.35s, transform 0.35s var(--ease); }
.js:not(.no-motion) .ph-row[data-fill]:not(.is-filled) b { opacity: 0; transform: translateX(6px); }
.ph-pill { padding: 0.3rem 0.65rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; background: #e5f2ea; color: var(--good); }
.ph-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 0.5rem; text-align: center; font-size: 0.66rem; color: #6b766f; }
.ph-cal b { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; font-weight: 600; color: var(--ink); }
.ph-cal b.is-sel { background: var(--gold); color: var(--night); }
.ph-btn { display: block; padding: 0.8rem; border-radius: 14px; text-align: center; font-weight: 700; font-size: 0.82rem; transition: background-color 0.35s, transform 0.2s, opacity 0.3s; }
.ph-btn.is-ok { background: var(--forest); color: var(--cream); }
.ph-btn.is-alt { background: #eceee9; color: var(--ink); }
.ph-btn-b { display: none; }
.ph-btn.is-done { background: var(--good); }
.ph-btn.is-done .ph-btn-a { display: none; }
.ph-btn.is-done .ph-btn-b { display: inline; }
.ph-btn.is-press { transform: scale(0.96); }
.ph-btn.is-done ~ .ph-btn.is-alt { opacity: 0.35; }
.ph-lock { color: #fff; background: radial-gradient(120% 70% at 50% 0%, #1c5a40, #08251a 60%, #04100b); }
.ph-lock-time { display: grid; justify-items: center; padding-top: 4.2rem; }
.ph-lock-time span { font-size: 0.78rem; opacity: 0.8; }
.ph-lock-time b { font-weight: 600; font-size: 3.6rem; letter-spacing: -0.03em; line-height: 1; }
.ph-notes { display: grid; gap: 0.5rem; padding: 1.4rem 0.7rem 0; }
.ph-note { padding: 0.7rem 0.8rem; border-radius: 18px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 0.74rem; line-height: 1.4; transition: opacity 0.45s, transform 0.55s var(--ease); }
.js:not(.no-motion) .ph-note:not(.is-in) { opacity: 0; transform: translateY(-16px) scale(0.96); }
.ph-note p { margin: 0; }
.ph-note-h { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.3rem; }
.ph-note-h b { font-size: 0.74rem; }
.ph-note-h small { margin-left: auto; opacity: 0.7; font-size: 0.64rem; }
.ph-sms-list { align-content: end; gap: 0.45rem; }
.ph-sms-meta { margin: 0; font-size: 0.62rem; color: #6b766f; text-align: center; }
.ph-sms { align-self: flex-start; max-width: 88%; padding: 0.7rem 0.85rem; border-radius: 18px; background: #e8eae5; font-size: 0.78rem; line-height: 1.4; }
.ph-sms-list [data-sms] { transition: opacity 0.35s, transform 0.4s var(--ease); }
.js:not(.no-motion) .ph-sms-list [data-sms]:not(.is-in) { opacity: 0; transform: translateY(8px); }
.ph-chips { position: absolute; inset: 0; pointer-events: none; }
.ph-chip { position: absolute; padding: 0.45rem 0.8rem; border-radius: 999px; background: rgba(4, 16, 11, 0.85); border: 1px solid rgba(217, 169, 63, 0.5); color: var(--gold-soft); font-size: 0.78rem; font-weight: 600; white-space: nowrap; opacity: 0; backdrop-filter: blur(6px); }

/* ---------- podsumowanie pod krokami ---------- */
.after { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: end; max-width: 1520px; margin-inline: auto; padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(5rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.after__statement { font-size: clamp(2.2rem, 4.8vw, 4.4rem); line-height: 1; }
.after__statement .hl { display: inline; color: var(--cream); }
.after__cta { display: grid; gap: 1.2rem; justify-items: start; color: var(--dim); }

/* ---------- kolory bez kremu ---------- */
.problem, .pak, .faq, .contact { background-color: transparent; }
.problem { background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%; }
.calc { background: rgba(15, 74, 50, 0.55); }
.contact__bg { background: radial-gradient(50rem 30rem at 50% 30%, rgba(15, 74, 50, 0.9), transparent 70%); opacity: 1; }
.contact__bg::after { display: none; }
.price { background: var(--forest); color: var(--cream); }
.price em { color: var(--gold-soft); }
.price .sec-head > p, .paths__alt, .notes { color: var(--dim); }
.paths__q, .paths__link { color: var(--cream); }
.path { background: rgba(241, 236, 225, 0.06); border-color: var(--line); color: var(--cream); }
.path .mono { background: var(--gold); color: var(--night); }
.path small { color: var(--gold-soft); }
.path:hover { border-color: var(--gold); }
.path[aria-pressed="true"] { background: var(--gold); color: var(--night); border-color: var(--gold); }
.path[aria-pressed="true"] small { color: var(--night); }
.path[aria-pressed="true"] .mono { background: var(--night); color: var(--gold); }
.card:not(.card--hot) { color: var(--ink); }
.card--hot { background: var(--gold); color: var(--night); border-color: var(--gold); }
.card--hot .card__sub, .card--hot .card__amt small { color: #4a3708; }
.card--hot ul { border-color: rgba(6, 18, 13, 0.2); }
.card--hot li::before { color: var(--night); }
.card--hot .card__fit { background: var(--night); color: var(--gold-soft); }
.card.is-picked { box-shadow: 0 0 0 3px var(--gold-soft), 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.promo { border-color: var(--gold); }
.form { background: #ffffff; }
.text-link:hover { color: var(--gold-soft); }

/* ---------- mały ekran ---------- */
@media (max-width: 860px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story__block { padding-top: 6.5rem; }
  .story__hero { align-content: center; }
  .story__hero .story__title { font-size: clamp(3rem, 15vw, 4.6rem); }
  .story__lead { font-size: 0.98rem; }
  .story__who { display: none; }
  .story__step h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .story__step p { font-size: 0.95rem; }
  /* bez JS i przy „ogranicz animacje”: telefon raz, w zwykłym układzie, nic nie zasłania */
  .story__phone-col { position: static; }
  .story__phone-sticky { position: static; height: auto; padding-block: 2rem 4rem; }
  .after { grid-template-columns: minmax(0, 1fr); }
  .contact__title { font-size: clamp(4.2rem, 20vw, 7rem); }

  /* tryb dwóch stref (włącza go skrypt): tekst kroku u góry, telefon u dołu */
  .story.is-zones { position: relative; display: block; height: 100svh; overflow: hidden; }
  .story.is-zones .story__col { position: relative; height: 100%; }
  .story.is-zones .story__block {
    position: absolute; left: 0; right: 0; top: 0; min-height: 0; max-height: 46svh;
    padding: 6.4rem 0 0; align-content: start; gap: 0.8rem;
    opacity: 0; transform: translateY(14px); transition: opacity 0.4s, transform 0.5s var(--ease); pointer-events: none;
  }
  .story.is-zones .story__block.is-active { opacity: 1; transform: none; pointer-events: auto; }
  .story.is-zones .story__hero { max-height: none; height: 100%; padding-top: 0; align-content: center; }
  .story.is-zones .story__phone-col { position: absolute; left: 0; right: 0; bottom: 0; }
  .story.is-zones .story__phone-sticky { position: static; height: auto; padding: 0 0 max(1rem, env(safe-area-inset-bottom, 0px)); place-items: center; transition: opacity 0.45s, transform 0.6s var(--ease); }
  .story.is-zones.is-hero .story__phone-sticky { opacity: 0; transform: translateY(35%); pointer-events: none; }
  /* telefon ma stały rozmiar projektu i jest skalowany w całości (--s liczy skrypt) */
  /* telefon w pełnej, czytelnej skali: prawie cała szerokość ekranu, wysokość = miejsce pod tekstem kroku (--ph-h liczy skrypt) */
  .story.is-zones .phone { width: min(360px, 88vw); height: var(--ph-h, 420px); aspect-ratio: auto; border-radius: 34px; padding: 7px; }
  .story.is-zones .phone::before { top: 12px; width: 72px; height: 20px; }
  .story.is-zones .ph-screen { border-radius: 28px; }
  .story.is-zones .ph-bar { padding: 2.2rem 0.9rem 0.65rem; }
  .story.is-zones .ph-bar b { font-size: 0.95rem; }
  .story.is-zones .ph-bar small { font-size: 0.75rem; }
  .story.is-zones .ph-av { width: 34px; height: 34px; font-size: 0.72rem; }
  .story.is-zones .ph-msgs { padding: 0.7rem 0.7rem 0.8rem; gap: 0.5rem; }
  .story.is-zones .ph-m { font-size: 0.92rem; line-height: 1.38; max-width: 88%; padding: 0.6rem 0.8rem; }
  .story.is-zones .ph-ai { font-size: 0.64rem; }
  .story.is-zones .ph-m.is-ph i { width: 64px; height: 64px; }
  .story.is-zones .ph-pad { padding: 0.8rem; gap: 0.6rem; }
  .story.is-zones .ph-card { padding: 0.8rem 0.9rem; }
  .story.is-zones .ph-t { font-size: 1.08rem; }
  .story.is-zones .ph-row { font-size: 0.86rem; padding: 0.42rem 0; }
  .story.is-zones .ph-label { font-size: 0.7rem; }
  .story.is-zones .ph-pill { font-size: 0.74rem; }
  .story.is-zones .ph-lock-time { padding-top: 2.6rem; }
  .story.is-zones .ph-lock-time b { font-size: 3rem; }
  .story.is-zones .ph-notes { padding: 1rem 0.6rem 0; }
  .story.is-zones .ph-note { font-size: 0.88rem; padding: 0.8rem 0.9rem; }
  .story.is-zones .ph-note-h b { font-size: 0.86rem; }
  .story.is-zones .ph-cal { font-size: 0.78rem; }
  .story.is-zones .ph-btn { font-size: 0.95rem; padding: 0.85rem; }
  .story.is-zones .ph-sms { font-size: 0.92rem; max-width: 92%; }
  .story.is-zones .ph-sms-meta { font-size: 0.72rem; }
  .story.is-zones .ph-chips { display: none; }
  .story.is-zones .story__block { padding-top: 5.6rem; gap: 0.55rem; }
  .story.is-zones .story__hero { padding-top: 0; }
  .story.is-zones .story__step h2 { font-size: clamp(1.6rem, 7.2vw, 2.2rem); }
  .story.is-zones .story__step p { font-size: 0.88rem; line-height: 1.45; }
  .story.is-zones .story__fine { font-size: 0.74rem !important; }
  .story.is-zones .ph-chip { font-size: 0.68rem; padding: 0.35rem 0.6rem; }
  .in-story .sticky-cta { transform: translateY(160%) !important; }
}
.js .ph-m.is-ph.is-shown { display: flex; }
.cta-note a { white-space: nowrap; }
.story__n { margin: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.story__step .story__n { color: var(--gold-soft); font-size: 0.72rem; }

/* ======================================================================
   v3.1: reszta sekcji. Wspólny motyw to pomiar na planie remontu:
   linie wymiarowe, kosztorys, papier milimetrowy.
   ====================================================================== */

/* linia wymiarowa na górze sekcji, rysowana przy przewijaniu (--m od 0 do 100%) */
.problem, .calc, .pak, .price, .faq, .contact { position: relative; }
.problem::before, .calc::before, .pak::before, .price::before, .faq::before, .contact::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  top: clamp(1.4rem, 3vw, 2.2rem);
  left: max(var(--g), env(safe-area-inset-left, 0px)); right: max(var(--g), env(safe-area-inset-right, 0px));
  height: 11px;
  border-left: 1px solid rgba(217, 169, 63, 0.55); border-right: 1px solid rgba(217, 169, 63, 0.55);
  background: linear-gradient(var(--gold), var(--gold)) 0 50% / var(--m, 100%) 1px no-repeat;
  opacity: 0.7;
}

/* kalkulator jako kosztorys: kropkowane prowadnice między nazwą a kwotą */
.calc__rows div { align-items: baseline; }
.calc__rows dt { display: flex; flex: 1; align-items: baseline; gap: 0.6rem; min-width: 0; }
.calc__rows dt::after { content: ""; flex: 1; min-width: 1.5rem; border-bottom: 1px dotted rgba(241, 236, 225, 0.32); transform: translateY(-0.25em); }
.calc__result { background: rgba(4, 16, 11, 0.85); }
.calc__big span { font-variant-numeric: tabular-nums; }

/* cennik: kwoty w Gloocku */
.card__amt { font-family: var(--f-head); font-weight: 400; letter-spacing: -0.03em; }
.card--hot li::before { background: var(--night); }

/* pakiet: otwarty panel dostaje siatkę papieru milimetrowego */
.panel.is-open {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* kontakt: poświata idzie za kursorem (--gx, --gy ustawia skrypt) */
.contact__bg { background: radial-gradient(46rem 30rem at var(--gx, 50%) var(--gy, 30%), rgba(15, 74, 50, 0.95), transparent 70%); transition: background-position 0.2s; }

/* FAQ: odpowiedź wysuwa się płynnie (wysokość animuje skrypt) */
.faq-answer { overflow: hidden; }

/* SMS-y jak w prawdziwym telefonie: najnowsze na dole, starsze chowają się u góry */
.ph-sms-list { display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }

/* niskie telefony (np. iPhone SE): ciaśniejszy CRM i ekran blokady, żeby było widać wszystkie wiersze */
@media (max-width: 860px) and (max-height: 720px) {
  .story.is-zones .ph-bar { padding-top: 1.9rem; padding-bottom: 0.5rem; }
  .story.is-zones .ph-pad { padding: 0.6rem; gap: 0.45rem; }
  .story.is-zones .ph-label { display: none; }
  .story.is-zones .ph-card.is-dim { display: none; }
  .story.is-zones .ph-card { padding: 0.6rem 0.8rem; }
  .story.is-zones .ph-card-top { margin-bottom: 0.2rem; }
  .story.is-zones .ph-row { font-size: 0.82rem; padding: 0.3rem 0; }
  .story.is-zones .ph-lock-time { padding-top: 1.9rem; }
  .story.is-zones .ph-lock-time b { font-size: 2.4rem; }
  .story.is-zones .ph-notes { padding-top: 0.7rem; gap: 0.4rem; }
  .story.is-zones .ph-note { padding: 0.6rem 0.75rem; font-size: 0.84rem; }
  .story.is-zones .ph-cal { gap: 2px; }
  .story.is-zones .ph-btn { padding: 0.7rem; }
}

/* ---------- Kto to robi: duży czarno-biały portret w ramie z planu ---------- */
.who { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; max-width: 1520px; margin-inline: auto; padding-block: clamp(5rem, 10vw, 9rem); }
.who::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none; top: clamp(1.4rem, 3vw, 2.2rem);
  left: max(var(--g), env(safe-area-inset-left, 0px)); right: max(var(--g), env(safe-area-inset-right, 0px)); height: 11px;
  border-left: 1px solid rgba(217, 169, 63, 0.55); border-right: 1px solid rgba(217, 169, 63, 0.55);
  background: linear-gradient(var(--gold), var(--gold)) 0 50% / 100% 1px no-repeat; opacity: 0.7;
}
.who__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 560px; width: 100%; }
.who__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 6px; filter: grayscale(1) contrast(1.08) brightness(0.96); transition: filter 0.8s var(--ease); }
.who__photo:hover img { filter: grayscale(0.15) contrast(1.04); }
/* narożniki jak znaczniki na planie */
.who__photo::before, .who__photo::after { content: ""; position: absolute; width: 28px; height: 28px; border-color: var(--gold); border-style: solid; pointer-events: none; }
.who__photo::before { top: -10px; left: -10px; border-width: 1px 0 0 1px; }
.who__photo::after { right: -10px; bottom: -10px; border-width: 0 1px 1px 0; }
.who__copy { display: grid; gap: 1.2rem; justify-items: start; max-width: 36rem; }
.who__copy .sec-title { font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 0.95; }
.who__copy p { color: var(--dim); font-size: 1.08rem; }
.who__contact { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin: 0.4rem 0 0.6rem; padding: 0; list-style: none; font-weight: 600; }
.who__contact a { border-bottom: 1px solid var(--line); white-space: nowrap; }
.who__contact a:hover { color: var(--gold-soft); border-color: var(--gold); }
@media (max-width: 860px) {
  .who { grid-template-columns: minmax(0, 1fr); padding-top: 4.5rem; }
  .who__photo { max-width: 420px; justify-self: center; }
  .who__copy .sec-title { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .who__copy p { font-size: 1rem; }
}
