/* Palmedica /odbior — mobile first (390 px), bez frameworka i bez fontów z CDN (zero żądań przed zgodą).
   Kolory marki z logo (#1d006a, #fe9a00) i z assets/styles.css (brand-500/600). */
:root {
  --ink: #0f1424; --ink2: #2a3147; --muted: #434b60; --line: #e3e6ef; --soft: #f6f6fb; --bg: #fff;
  --brand: #1d006a; --brand2: #4a4ac0; --brand-50: #f1f0ff; --brand-100: #e2e0ff;
  --accent: #fe9a00; --accent-d: #ef8f00; --ok: #047857; --ok-bg: #ecfdf5; --err: #b42318; --err-bg: #fef3f2;
  --r: 14px; --r-lg: 20px; --shadow: 0 14px 34px -16px rgba(29, 0, 106, .32);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --top: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 12px); }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand2); }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.18; margin: 0; color: var(--brand); letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.service-nav { padding-top: 10px; padding-bottom: 10px; }
.service-nav button { min-height: 36px; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
:focus-visible { outline: 3px solid var(--brand2); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ── widoczność wariantów, języków i flag (atrybuty ustawia skrypt w <head> przed renderem) ── */
html[data-v="med"] [data-vv]:not([data-vv~="med"]),
html[data-v="salon"] [data-vv]:not([data-vv~="salon"]),
html[data-v="opak"] [data-vv]:not([data-vv~="opak"]),
html[data-v="bdo"] [data-vv]:not([data-vv~="bdo"]),
html[data-v="vet"] [data-vv]:not([data-vv~="vet"]),
html[data-v="uk"] [data-vv]:not([data-vv~="uk"]),
html[data-v="ru"] [data-vv]:not([data-vv~="ru"]),
html[data-v="default"] [data-vv]:not([data-vv~="default"]) { display: none !important; }
html[lang="pl"] [data-l]:not([data-l="pl"]),
html[lang="uk"] [data-l]:not([data-l="uk"]),
html[lang="ru"] [data-l]:not([data-l="ru"]) { display: none !important; }
html[data-prices="0"] .if-prices, html[data-prices="1"] .if-noprices { display: none !important; }
html:not([data-b="fryzjer"]) .b-f, html[data-b="fryzjer"] .b-d { display: none; }

/* ── pasek górny ── */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); }
.top-in { height: var(--top); display: flex; align-items: center; gap: 10px; }
.logo img { width: 98px; height: 32px; }
.top-tel { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); text-decoration: none; white-space: nowrap; padding: 8px 4px; }
.top-tel .ico { color: var(--brand2); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.langs button { border: 0; background: none; padding: 6px 7px; min-width: 32px; min-height: 32px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
html[lang="pl"] .langs [data-lang-to="pl"], html[lang="uk"] .langs [data-lang-to="uk"], html[lang="ru"] .langs [data-lang-to="ru"] { background: var(--brand); color: #fff; }

/* ── hero ── */
.hero { background: linear-gradient(180deg, #f1efff 0%, #faf9ff 55%, #fff 100%); padding: 18px 0 28px; }
.hero-grid { display: grid; gap: 22px; }
.eyebrow { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--brand2); background: var(--brand-100); border-radius: 999px; padding: 4px 11px; }
.hero h1 { font-size: 30px; font-weight: 800; margin-top: 12px; }
.lead { margin-top: 10px; font-size: 16.5px; color: var(--ink2); }
.proofs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.proofs li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: var(--ink2); }
.proofs .ico { color: var(--ok); margin-top: 1px; }
.proofs-lg li { font-size: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.calc-link { margin-top: 12px; }

/* ── przyciski ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 18px; border-radius: 999px; border: 2px solid transparent; font-weight: 800; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--brand); box-shadow: 0 8px 18px -10px rgba(239, 143, 0, .9); }
.btn-primary:hover { background: var(--accent-d); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand-100); }
.btn-ghost:hover { border-color: var(--brand2); }
.btn-soft { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.btn-ink { background: var(--brand); color: #fff; min-width: 132px; }
.btn-ink:hover { background: #2c0f8f; }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 4px 0; color: var(--brand2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── kafle wyboru (wariant domyślny) ── */
.tiles { display: grid; gap: 10px; margin-top: 16px; }
.tile { text-align: left; background: #fff; border: 2px solid var(--brand-100); border-radius: var(--r); padding: 14px 16px; cursor: pointer; box-shadow: 0 6px 16px -14px rgba(29, 0, 106, .6); }
.tile strong { display: block; color: var(--brand); font-size: 16px; }
.tile span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.tile:hover { border-color: var(--brand2); }
.tile-langs { margin-top: 12px; font-size: 15px; color: var(--muted); }
.tile-langs a { font-weight: 700; }

/* ── karty narzędzi ── */
.hero-tool { display: grid; gap: 16px; align-content: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 16px 20px; box-shadow: var(--shadow); scroll-margin-top: calc(var(--top) + 10px); }
.card:focus { outline: none; }
.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.calc-kicker { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--brand2); }
.progress { flex: 0 0 96px; height: 6px; background: var(--brand-100); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--brand2); border-radius: 999px; transition: width .25s; }
.back { background: none; border: 0; padding: 6px 0; margin-bottom: 4px; color: var(--muted); font-weight: 700; cursor: pointer; }
.q { font-size: 21px; font-weight: 800; }
.hint { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.mini { margin-top: 12px; font-size: 14px; color: var(--muted); }
.lbl { display: block; margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--ink2); }
.lbl i { font-style: normal; font-weight: 500; color: var(--muted); }
.inp { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 11px 13px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #cfd4e2; border-radius: 12px; }
textarea.inp { min-height: 88px; resize: vertical; }
.inp:focus { outline: none; border-color: var(--brand2); box-shadow: 0 0 0 3px var(--brand-100); }
.inp[aria-invalid="true"] { border-color: var(--err); }
.opts { display: grid; gap: 8px; margin-top: 14px; }
.opts-2 { grid-template-columns: 1fr 1fr; }
.opt { text-align: left; width: 100%; min-height: 52px; padding: 11px 13px; background: #fff; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.opt strong { display: block; font-size: 15.5px; color: var(--ink); }
.opt span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 1px; }
.opt:hover, .opt[aria-pressed="true"] { border-color: var(--brand2); background: var(--brand-50); }
.opt.wide { grid-column: 1 / -1; }
.sugg { display: grid; gap: 6px; margin-top: 8px; }
.sugg .opt { display: flex; align-items: center; gap: 8px; min-height: 46px; font-weight: 700; }
.sugg .opt .ico { color: var(--brand2); }
.opt-other { margin-top: 8px; border-style: dashed; color: var(--ink2); font-weight: 600; }
.res-ok { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 800; background: var(--ok-bg); border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; }
.res { margin: 12px 0 0; display: grid; gap: 10px; }
.res > div { display: grid; grid-template-columns: 84px 1fr; gap: 8px; align-items: start; }
.res dt { font-size: 14px; color: var(--muted); padding-top: 3px; }
.res dd { margin: 0; font-weight: 700; color: var(--ink2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 36px; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.res-price { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); }
.res-price .amt { font-size: 28px; font-weight: 800; color: var(--brand); }
.res-price p { font-size: 14.5px; color: var(--ink2); margin-top: 4px; }
.res-note { margin-top: 14px; font-size: 14.5px; color: var(--ink2); background: var(--soft); border-radius: 12px; padding: 10px 12px; }
#res-go { margin-top: 16px; }
.res-alt { margin-top: 10px; font-size: 14.5px; color: var(--muted); text-align: center; }

/* ── formularz ── */
.form-title { font-size: 21px; font-weight: 800; }
.form-sub { margin-top: 4px; color: var(--muted); font-size: 15px; }
.ctx { margin-top: 12px; padding: 9px 11px; border-radius: 10px; background: var(--brand-50); color: var(--brand); font-size: 14.5px; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brand2); }
.legal { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
#inq-send, #c-send { margin-top: 16px; }
.err { margin-top: 6px; color: var(--err); font-size: 14px; font-weight: 600; }
.status { margin-top: 8px; font-size: 14.5px; color: var(--muted); min-height: 1px; }
.form-err { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--err-bg); color: var(--err); font-size: 14.5px; font-weight: 600; }
.form-err a { color: var(--err); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.two { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; }
.success { text-align: center; }
.success:focus { outline: none; }
.ok-badge { width: 52px; height: 52px; margin: 2px auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.ok-badge .ico { width: 28px; height: 28px; }
.ok-title { font-size: 22px; }
.ok-ticket { margin-top: 8px; color: var(--ink2); }
.ok-ticket strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--brand); letter-spacing: .02em; }
.ok-next { margin-top: 8px; color: var(--ink2); font-size: 15px; }
.success > .btn { margin-top: 14px; }
.step2 { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }
.step2 h3 { font-size: 17px; }
.step2 h3 i { font-style: normal; font-weight: 600; color: var(--muted); font-size: 14px; }
.step2 > p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.step2 .btn-soft { margin-top: 12px; }
.ok-contract { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-weight: 700; }

/* ── sekcje ── */
.sec { padding: 40px 0; }
.sec-soft { background: var(--soft); }
.sec-t { font-size: 25px; font-weight: 800; }
.sec-sub { margin-top: 8px; color: var(--muted); }
.steps3 { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.steps3 li { display: flex; gap: 14px; align-items: flex-start; }
.steps3 b { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 17px; }
.steps3 h3 { font-size: 17px; }
.steps3 p { margin-top: 2px; color: var(--ink2); font-size: 15.5px; }
.codes { display: grid; gap: 12px; margin-top: 16px; }
.code { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.code-n { display: inline-block; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 14px; color: var(--brand); background: var(--brand-100); border-radius: 8px; padding: 3px 8px; }
.code h3 { font-size: 17px; margin-top: 8px; }
.code p:last-child { margin-top: 4px; color: var(--ink2); font-size: 15px; }
.note { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.note-card { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; color: var(--ink2); font-size: 15.5px; }
.routes { display: grid; gap: 12px; margin-top: 16px; }
.route { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.route h3 { font-size: 15.5px; }
.towns { margin-top: 6px; color: var(--ink2); font-size: 15px; }
.about { display: grid; gap: 18px; align-items: center; }
.about img { width: 100%; max-width: 280px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); background: #ddd; }
.about p { margin-top: 10px; color: var(--ink2); }
.sign { font-weight: 800; color: var(--brand); }
.sign > span { display: block; font-weight: 500; color: var(--muted); font-size: 14.5px; }
.claims { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.claims li { background: var(--brand-50); border-radius: 999px; padding: 6px 12px; font-size: 14.5px; }
.faq { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 24px 14px 0; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 11px; font-size: 22px; color: var(--brand2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 14px; color: var(--ink2); }
main { display: flex; flex-direction: column; }
main > .hero { order: -2; }
html[data-v="bdo"] #bdo { order: -1; }

/* ── stopka ── */
.foot { background: var(--brand); color: #e6e3ff; padding: 30px 0 90px; font-size: 14.5px; }
.foot-in { display: grid; gap: 18px; }
.foot img { margin-bottom: 10px; }
.foot p { margin-top: 4px; }
.foot a, .foot .linkish { color: #fff; }
.foot .ids { color: #c9c4f5; font-size: 13.5px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .linkish { font-weight: 500; padding: 0; }
.copy { margin-top: 18px; color: #b6b0ec; font-size: 13px; }

/* ── dolny pasek (telefon) ── */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(15, 20, 36, .5); }
.sticky .btn { flex: 1; min-height: 46px; padding: 10px 12px; font-size: 15px; }
.sticky .btn-ghost { flex: 0 0 auto; }
html[data-sent="1"] .sticky .btn-primary { display: none !important; }
html[data-sent="1"] .sticky .btn-ghost { flex: 1; }

/* ── baner zgód (≤ 35% wysokości ekranu, nie zasłania H1 ani CTA) ── */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 3px solid var(--brand); box-shadow: 0 -16px 36px -20px rgba(15, 20, 36, .55); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); max-height: 35vh; overflow: auto; font-size: 12.5px; line-height: 1.35; color: var(--ink2); }
.consent-t { font-weight: 800; color: var(--brand); }
.consent-b { display: flex; gap: 8px; margin-top: 6px; }
.consent-b .btn { flex: 1; min-height: 44px; padding: 8px 12px; font-size: 15px; }
.calc-town { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--ok); font-weight: 700; font-size: 14px; background: var(--ok-bg); border-radius: 10px; padding: 6px 10px; margin: 0 0 10px; }
.calc-town .linkish { padding: 2px 0; }
#calc-town-t { flex: 1 1 200px; min-width: 0; }

@media (min-width: 720px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .codes, .routes { grid-template-columns: repeat(3, 1fr); }
  .codes { grid-template-columns: 1fr 1fr; }
  .steps3 { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 280px 1fr; }
  .foot-in { grid-template-columns: 1fr auto; }
  .sticky { display: none !important; }
  .foot { padding-bottom: 30px; }
}
@media (min-width: 960px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
  .hero-copy { position: sticky; top: calc(var(--top) + 24px); }
  .hero h1 { font-size: 44px; }
  .lead { font-size: 18px; }
  .proofs li { font-size: 16px; }
  .sec { padding: 64px 0; }
  .sec-t { font-size: 32px; }
  .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* odbiór r2: linia zaufania (dane ze stopki), numer w wariancie domyślnym bez łamania */
.trust { margin: 10px 0 0; font-size: 13px; color: var(--muted, #5b6072); }
.form-card .trust { margin: 8px 0 12px; }
.tile-langs a { white-space: nowrap; }
/* odbiór r3: komunikat, gdy formularz nie wystartował (brak JS / błąd skryptu). Ukryty bez migotania;
   po 3 s pokazuje go sama animacja CSS, a palm-page.js ustawia mu hidden przy starcie. */
.nojs { margin: 0; padding: 0 12px; max-height: 0; overflow: hidden; visibility: hidden; animation: nojs 0s 3s forwards; }
@keyframes nojs { to { margin-top: 10px; padding: 10px 12px; max-height: 30em; visibility: visible; } }
