/* Esomagia — spokojny, czytelny wygląd w kolorach logo (kula z półksiężycem):
   nocne indygo (tło logo), atrament, perła, fiolet i orchidea. Jedyna animacja to spokojne „astrolabium” w hero
   (wyłączana przy prefers-reduced-motion). Klasa .btn--gold to główny przycisk (nazwa zostawiona dla zgodności ze skryptami). */
:root {
  --navy: #0E0A1C;
  --ink: #16122B;
  --ink-2: #1E1838;
  --ink-3: #2A2250;
  --pearl: #F0EBF7;
  --text: #E3DDEC;
  --muted: #ADA6BF;
  --faint: #827C96;
  --accent: #A77BFF;
  --accent-2: #D6BCFF;
  --accent-ink: #150C2C;
  --orchid: #E08AFF;
  --grad: linear-gradient(135deg, #A23FE2 0%, #7444F2 58%, #5D3EDD 100%);
  --mist: #3E3470;
  --line: rgba(240, 235, 247, .1);
  --line-2: rgba(240, 235, 247, .19);
  --ok: #8CC3A3;
  --warn: #E5BD6B;
  --err: #EE968A;
  --info: #9DB5EA;
  --violet: #B9A7E8;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --max: 1160px;
  --header: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--navy); color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: var(--pearl); }
h1, h2, h3, h4 { color: var(--pearl); margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: .005em; }
h1 em, h2 em { font-style: italic; color: var(--accent-2); }
h1 em { padding-right: .04em; background: linear-gradient(100deg, #F3BCFF 0%, #CDA2FF 45%, #A08BFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h3, h4 { font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.label { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.muted { color: var(--muted); }
.demo-note { font-size: .85rem; color: var(--faint); margin-top: 14px; }
[data-hide-demo] .demo-note { display: none; }

/* ---------------------------------------------------------------- przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s, transform .2s;
}
.btn--gold { background: var(--grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 22px -12px rgba(150, 80, 255, .8); }
.btn--gold:hover { color: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 30px -12px rgba(170, 100, 255, .95); }
.btn--gold:active { transform: none; }
.btn--ghost { border-color: var(--line-2); color: var(--pearl); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn--quiet { background: var(--ink-2); color: var(--pearl); border-color: var(--line); }
.btn--quiet:hover { background: var(--ink-3); color: var(--pearl); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--pearl); background: var(--ink-2); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------------------------------------------------------------- nagłówek */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); }
/* tło z rozmyciem na pseudo-elemencie — backdrop-filter na samym nagłówku zamykałby w nim menu mobilne (position: fixed) */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(14, 10, 28, .86); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--pearl); text-decoration: none; flex: none; }
.brand:hover { color: var(--pearl); }
.brand__mark { width: 22px; height: 22px; fill: var(--accent); }
.brand__logo { height: 32px; width: auto; }
.brand__orb { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 18px -2px rgba(167, 100, 255, .55); }
.brand__name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: .02em; }
.nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav__links a:hover { color: var(--pearl); background: var(--ink); }
.nav__aside { display: flex; align-items: center; gap: 12px; }
.nav__account { color: var(--pearl); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 8px 4px; }
.nav__account:hover { color: var(--accent-2); }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: .88rem; font-weight: 600; letter-spacing: .03em; }
.lang__chev { width: 15px; height: 15px; transition: transform .2s; }
.lang[open] .lang__chev { transform: rotate(180deg); }
.flag { display: inline-block; flex: none; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.flag svg { display: block; width: 100%; height: 100%; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--pearl); background: var(--ink); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 6px); width: 360px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; list-style: none; margin: 0; padding: 6px; background: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, .45); z-index: 50; }
.lang__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .93rem; white-space: nowrap; }
.lang__menu a:hover { background: var(--ink-2); color: var(--pearl); }
.lang__menu a[aria-current] { color: var(--accent-2); background: rgba(167, 123, 255, .1); }
.lang__name { overflow: hidden; text-overflow: ellipsis; }
.lang__code { display: inline-grid; place-items: center; width: 30px; height: 22px; border-radius: 5px; background: var(--ink-3); font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--pearl); content: ''; transition: transform .2s, opacity .2s; }
.menu-btn span { top: 21px; }
.menu-btn span::before { left: 0; right: 0; top: -6px; }
.menu-btn span::after { left: 0; right: 0; top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .nav { display: none; position: fixed; inset: var(--header) 0 0 0; z-index: 39; background: var(--navy); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 14px; padding: 8px 16px 28px; overflow-y: auto; overscroll-behavior: contain; }
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; flex: none; }
  .nav__links a { display: flex; align-items: center; min-height: 48px; padding: 0 6px; font-size: 1.05rem; color: var(--pearl); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links a::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid var(--faint); border-top: 1.5px solid var(--faint); transform: rotate(45deg); }
  .nav__links a:hover { background: transparent; color: var(--accent-2); }
  .nav__aside { flex-direction: column; align-items: stretch; gap: 10px; flex: none; }
  .nav__aside .btn { min-height: 46px; }
  .nav__account { text-align: center; padding: 11px; border: 1px solid var(--line-2); border-radius: 999px; }
  .lang summary { display: flex; justify-content: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 11px; }
  .lang__menu { position: static; width: auto; margin-top: 8px; box-shadow: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .chat { display: none; }
}

/* ---------------------------------------------------------------- sekcje */
.section { padding: 96px 0; }
.section--alt { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.section__head .lead { margin-top: 16px; }
@media (max-width: 700px) { .section { padding: 64px 0; } .section__head { margin-bottom: 32px; } }

/* hero: tekst + logo w „astrolabium” */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 48px 0 60px; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; z-index: -1; width: 980px; height: 980px; right: -300px; top: 50%; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(123, 75, 245, .17), rgba(123, 75, 245, 0)); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero__text { max-width: 610px; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 3.9rem); margin-bottom: 18px; }
.hero .lead { max-width: 50ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__visual { display: grid; place-items: center; }
.orbit { display: block; width: 100%; max-width: 450px; height: auto; overflow: visible; }
.orbit__glow { transform-origin: 200px 200px; animation: orbit-breathe 9s ease-in-out infinite; }
.orbit__dial { fill: none; stroke: rgba(214, 188, 255, .16); stroke-width: 1; transform-origin: 200px 200px; animation: orbit-spin 240s linear infinite; }
.orbit__ticks { stroke-width: 5; stroke-dasharray: .3 4.7; stroke: rgba(214, 188, 255, .2); }
.orbit__ticks--major { stroke-width: 11; stroke-dasharray: .7 29.3; stroke: rgba(214, 188, 255, .38); }
.orbit__stars circle { fill: #EBDDFF; animation: orbit-twinkle 6s ease-in-out infinite; }
.orbit__stars circle:nth-child(2n) { animation-delay: -2s; animation-duration: 7.5s; }
.orbit__stars circle:nth-child(3n) { animation-delay: -4s; animation-duration: 9s; }
.orbit__ring { fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 1.5 6.5; animation: orbit-flow 7s linear infinite; }
.orbit__ring--back { stroke: rgba(214, 188, 255, .3); }
.orbit__ring--front { stroke: rgba(236, 214, 255, .5); }
.orbit__moon { fill: #F4E4FF; }
.orbit__orb { transform-box: fill-box; transform-origin: center; animation: orbit-float 10s ease-in-out infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-flow { to { stroke-dashoffset: -80; } }
@keyframes orbit-float { 50% { transform: translateY(-5px); } }
@keyframes orbit-breathe { 50% { opacity: .72; transform: scale(.97); } }
@keyframes orbit-twinkle { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .orbit * { animation: none !important; } }
/* kadr zdjęcia: --zoom (powiększenie) i --fy (punkt w pionie) ustawiane w panelu */
.portrait, .avatar { display: block; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.portrait img, .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--fy, 20%); transform: scale(var(--zoom, 1)); transform-origin: 50% var(--fy, 20%); }
.portrait { aspect-ratio: 4 / 5; border-radius: 20px; border: 1px solid var(--line-2); }
.avatar { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; }
@media (max-width: 860px) {
  .hero { padding: 24px 0 52px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero__visual { order: -1; }
  .hero__text { margin: 0 auto; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .orbit { max-width: 290px; }
  .hero::before { right: 50%; top: 0; transform: translate(50%, -35%); width: 720px; height: 720px; }
}

/* usługa */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; }
.service__name { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; margin-bottom: 14px; }
.service__intro p { color: var(--muted); }
.areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.areas li { display: flex; gap: 10px; align-items: flex-start; }
.areas .ico { color: var(--accent); width: 18px; height: 18px; margin-top: 4px; }
.service__variants { grid-column: 1 / -1; margin-top: 18px; }
.variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.variant { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink); }
.variant h4 { font-size: 1.1rem; }
.variant p { color: var(--muted); font-size: .93rem; flex: 1; }
.variant__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; }
.price { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--pearl); white-space: nowrap; }
@media (max-width: 760px) { .service { grid-template-columns: minmax(0, 1fr); } }

/* o mnie */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.about__person { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.about__person h2 { font-size: 2.2rem; }
.about__role { color: var(--muted); margin: 4px 0 0; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 600; }
.facts dd { margin: 4px 0 0; color: var(--pearl); }
.about__text p { color: var(--text); }
.about__text .label { margin-top: 28px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .88rem; color: var(--text); }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* kroki */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); }
.steps__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-2); font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .93rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* dlaczego */
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.why .ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.why h3 { margin-bottom: 8px; }
.why p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .why { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 2px; font-weight: 600; color: var(--pearl); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.qa__a { padding: 0 2px 22px; color: var(--muted); max-width: 70ch; }

/* kontakt */
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--navy); color: var(--pearl); text-decoration: none; }
.contact-card:hover { border-color: var(--accent); color: var(--pearl); }
.contact-card .ico { color: var(--accent); width: 24px; height: 24px; }
.contact-card span { display: flex; flex-direction: column; min-width: 0; }
.contact-card small { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }

/* stopka */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--navy); font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer__about p { color: var(--muted); margin-top: 14px; max-width: 40ch; }
.footer__title { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--muted); text-decoration: none; padding: 0; border: 0; font-size: .93rem; font-weight: 400; }
.site-footer ul a:hover { color: var(--pearl); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }
.footer__bottom p { margin: 0; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .site-footer { padding-bottom: 90px; } }

/* dokumenty i strony pomocnicze */
.page { padding: 56px 0 96px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 10px; }
.doc__meta { color: var(--faint); font-size: .9rem; margin-bottom: 40px; }
.doc section { padding: 22px 0; border-top: 1px solid var(--line); }
.doc h2 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.doc p { color: var(--text); }
.doc .muted { color: var(--faint); font-style: italic; }
.doc__back { margin-top: 40px; }
.doc--center { text-align: center; padding: 40px 0; }

.preview-badge { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90; background: var(--accent); color: var(--accent-ink); padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.preview-badge a { color: inherit; }

/* ---------------------------------------------------------------- formularze */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > label, .field__label { font-size: .9rem; font-weight: 600; color: var(--pearl); }
.field__hint { font-size: .83rem; color: var(--faint); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--navy); border: 1px solid var(--line-2); color: var(--pearl); font-size: 1rem;
  transition: border-color .15s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(240, 235, 247, .3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--err); }
.field__error { color: var(--err); font-size: .85rem; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; cursor: pointer; font-size: .93rem; color: var(--text); }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--line-2); border-radius: 5px; background: var(--navy); cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ''; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input[aria-invalid="true"] { border-color: var(--err); }
.consents { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); margin: 6px 0 20px; background: rgba(255, 255, 255, .015); }
.form-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--r-sm); border: 1px solid rgba(238, 150, 138, .4); background: rgba(238, 150, 138, .08); color: var(--pearl); font-size: .93rem; }
.notice { padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--ink); color: var(--text); font-size: .93rem; }
.notice--ok { border-color: rgba(140, 195, 163, .45); background: rgba(140, 195, 163, .08); }
.notice--demo { border-style: dashed; border-color: rgba(229, 189, 107, .5); background: rgba(229, 189, 107, .06); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 560px) { .row { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- strefa klienta */
.loading { color: var(--muted); padding: 40px 0; }
.auth { max-width: 460px; margin: 0 auto; }
.card { background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 1.5rem; margin-bottom: 16px; }
.auth h1, .page-title { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 10px; }
.auth .lead { font-size: 1rem; margin-bottom: 26px; }
.auth__alt { margin-top: 22px; text-align: center; color: var(--muted); font-size: .93rem; }
.auth__alt p { margin: 6px 0; }
@media (max-width: 560px) { .card { padding: 20px; } }

.account__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.account__head p { color: var(--muted); margin: 6px 0 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 30px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--pearl); }
.tabs a[aria-current="page"] { color: var(--pearl); border-bottom-color: var(--accent); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink); }
.stat dt { font-size: .8rem; color: var(--muted); }
.stat dd { margin: 4px 0 0; font-size: 1.5rem; font-weight: 600; color: var(--pearl); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .stats { grid-template-columns: minmax(0, 1fr); } .stat { display: flex; justify-content: space-between; align-items: baseline; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; font-size: .88rem; font-weight: 600; }
.chip:hover { color: var(--pearl); }
.chip[aria-pressed="true"] { background: var(--pearl); color: var(--navy); border-color: var(--pearl); }

.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 600; padding: 12px 16px; background: var(--ink); border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table__actions { text-align: right; white-space: nowrap; }
.table__actions .btn + .btn { margin-left: 6px; }
@media (max-width: 760px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table td { padding: 4px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; }
  .table td::before { content: attr(data-label); color: var(--faint); font-size: .85rem; }
  .table__actions { justify-content: flex-end !important; padding-top: 10px !important; }
  .table__actions::before { content: none !important; }
}

.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; border: 1px solid currentColor; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--awaiting_payment, .status--unpaid { color: var(--warn); }
.status--paid { color: var(--info); }
.status--in_progress { color: var(--violet); }
.status--completed { color: var(--ok); }
.status--cancelled, .status--refunded { color: var(--faint); }
.status--failed { color: var(--err); }

.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }
.empty .btn { margin-top: 16px; }

.order { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.order__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.summary { margin: 0; display: grid; gap: 0; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; color: var(--pearl); font-weight: 500; overflow-wrap: anywhere; }
.summary .total dd { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.quote { white-space: pre-wrap; padding: 14px 16px; border-left: 2px solid var(--accent); background: var(--navy); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline li::after { content: ''; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font-size: .8rem; color: var(--faint); }
.timeline p { margin: 2px 0 0; white-space: pre-wrap; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 860px) { .order { grid-template-columns: minmax(0, 1fr); } }

.consent-list { list-style: none; margin: 0; padding: 0; }
.consent-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.consent-list li:last-child { border-bottom: 0; }
.consent-list small { display: block; color: var(--faint); }

/* zamówienie */
.order-form { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.order-form aside { position: sticky; top: calc(var(--header) + 20px); }
@media (max-width: 900px) { .order-form { grid-template-columns: minmax(0, 1fr); } .order-form aside { position: static; } }
.options { display: grid; gap: 10px; }
.option { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; background: var(--navy); }
.option:hover { border-color: rgba(240, 235, 247, .34); }
.option:has(input:checked) { border-color: var(--accent); background: rgba(167, 123, 255, .06); }
.option input { appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; cursor: pointer; }
.option input:checked { border-color: var(--accent); }
.option input:checked::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.option__body { flex: 1; min-width: 0; }
.option__title { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--pearl); }
.option__desc { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; color: var(--muted); }
.pill input:checked + span { border-color: var(--accent); color: var(--pearl); background: rgba(167, 123, 255, .08); }
.pill input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.counter { font-size: .8rem; color: var(--faint); text-align: right; }

/* płatność */
.pay { max-width: 640px; margin: 0 auto; }
.pay__secure { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .88rem; margin: 18px 0 0; }
.pay__secure .ico { color: var(--ok); }
.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.method { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 86px; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--navy); color: var(--text); cursor: pointer; font-weight: 600; font-size: .88rem; text-align: center; }
.method:hover { border-color: rgba(240, 235, 247, .34); }
.method[aria-pressed="true"] { border-color: var(--accent); background: rgba(167, 123, 255, .07); color: var(--pearl); }
.method--static, .method--static:hover { cursor: default; border-color: var(--line-2); }
.method__logo { display: flex; align-items: center; gap: 6px; height: 24px; }
.logo-blik { font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; padding: 1px 8px; border-radius: 5px; background: var(--pearl); color: #111; }
.logo-visa { font-weight: 800; font-style: italic; font-size: 1.05rem; letter-spacing: .04em; color: #DCE3FF; }
.logo-mc { position: relative; width: 34px; height: 22px; }
.logo-mc::before, .logo-mc::after { content: ''; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; }
.logo-mc::before { left: 0; background: #E3483A; }
.logo-mc::after { right: 0; background: #F2A33A; mix-blend-mode: screen; }
.logo-bank .ico { width: 24px; height: 24px; color: var(--accent); }
@media (max-width: 480px) { .methods { grid-template-columns: minmax(0, 1fr); } .method { flex-direction: row; min-height: 56px; justify-content: flex-start; padding: 12px 16px; } }
.blik-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.card-input { position: relative; }
.card-input .input { padding-right: 70px; font-variant-numeric: tabular-nums; }
.card-input__brand { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.bank { min-height: 52px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--navy); color: var(--text); cursor: pointer; font-weight: 600; font-size: .88rem; }
.bank:hover { border-color: rgba(240, 235, 247, .34); }
.bank[aria-pressed="true"] { border-color: var(--accent); color: var(--pearl); background: rgba(167, 123, 255, .07); }
.result { text-align: center; padding: 18px 0 6px; }
.result__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 18px; border: 1px solid currentColor; }
.result__icon .ico { width: 30px; height: 30px; }
.result--ok .result__icon { color: var(--ok); }
.result--fail .result__icon { color: var(--err); }
.result h2 { font-size: 2rem; margin-bottom: 10px; }
.result .actions { justify-content: center; }

/* ---------------------------------------------------------------- czat */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; }
.chat__whatsapp { text-decoration: none; }
.chat__whatsapp:hover { color: var(--pearl); }
.chat__fab { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--pearl); font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.chat__fab:hover { border-color: var(--accent); }
.chat__fab .ico { color: var(--accent); }
.chat__panel { position: absolute; right: 0; bottom: 60px; width: min(390px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--ink); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); overflow: hidden; }
.chat__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.chat__head h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
.chat__head p { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.chat__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-gate { padding: 22px 20px; overflow-y: auto; }
.chat-gate p { color: var(--text); font-size: .93rem; }
.chat-gate .actions { margin: 14px 0 22px; }
.chat-gate__alt { border-top: 1px solid var(--line); padding-top: 16px; }
.chat-gate__alt p { color: var(--muted); font-size: .85rem; }
.chat-alt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--pearl); text-decoration: none; font-size: .93rem; }
.chat-alt:hover { background: var(--ink-2); color: var(--pearl); }
.chat-alt .ico { color: var(--accent); }
.thread { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.thread__list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.thread__empty { margin: auto; text-align: center; color: var(--muted); font-size: .9rem; max-width: 30ch; }
.msg { max-width: 84%; display: flex; flex-direction: column; gap: 3px; }
.msg__bubble { padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; line-height: 1.5; }
.msg--them { align-self: flex-start; }
.msg--them .msg__bubble { background: var(--ink-3); border-bottom-left-radius: 4px; color: var(--pearl); }
.msg--me { align-self: flex-end; align-items: flex-end; }
.msg--me .msg__bubble { background: rgba(167, 123, 255, .16); border: 1px solid rgba(167, 123, 255, .3); border-bottom-right-radius: 4px; color: var(--pearl); }
.msg__meta { font-size: .74rem; color: var(--faint); display: flex; gap: 6px; align-items: center; }
.msg__order { font-size: .74rem; color: var(--accent); text-decoration: none; }
.msg__read { color: var(--ok); }
.thread__day { align-self: center; font-size: .74rem; color: var(--faint); padding: 4px 0; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; background: var(--ink); }
.composer__row { display: flex; gap: 8px; align-items: flex-end; }
.composer .textarea { min-height: 46px; max-height: 160px; padding: 11px 12px; resize: none; font-size: .95rem; }
.composer .select { min-height: 38px; padding-top: 7px; padding-bottom: 7px; font-size: .85rem; background-position: calc(100% - 20px) 16px, calc(100% - 15px) 16px; }
.composer .btn { min-height: 46px; flex: none; }
.composer__error { color: var(--err); font-size: .82rem; }
.thread--full { height: min(70vh, 720px); border: 1px solid var(--line); border-radius: var(--r); background: var(--ink); overflow: hidden; }
.page-app.on-messages .chat { display: none; }
@media (max-width: 560px) {
  .chat { right: 12px; bottom: 12px; }
  .chat__panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; border: 0; }
  .chat.is-open .chat__fab { display: none; }
}
