/* =====================================================================
   OlaUczy.pl — design system (jasny glassmorphism, pastelowe gradienty)
   ===================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #17213d;
  --ink-2: #3b4768;
  --muted: #66728f;
  --line: rgba(120, 135, 190, .22);
  --bg: #f1f5ff;

  --brand: #5b6cff;
  --brand-2: #8a63ff;
  --brand-3: #3fb6ff;
  --mint: #1fbf9f;
  --sun: #ffb347;
  --rose: #ff6f9a;
  --danger: #e5484d;

  --grad: linear-gradient(135deg, #5b6cff 0%, #8a63ff 52%, #3fb6ff 120%);
  --grad-soft: linear-gradient(135deg, rgba(91,108,255,.14), rgba(63,182,255,.14));
  --glass: rgba(255, 255, 255, .64);
  --glass-strong: rgba(255, 255, 255, .84);
  --glass-border: rgba(255, 255, 255, .78);
  --shadow-s: 0 4px 16px rgba(70, 90, 170, .08);
  --shadow-m: 0 14px 44px rgba(70, 90, 170, .13);
  --shadow-l: 0 30px 80px rgba(70, 90, 170, .18);

  --r-s: 12px; --r-m: 18px; --r-l: 26px; --r-xl: 34px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6; min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }
ul.plain { list-style: none; margin: 0; padding: 0; }
.ico { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; transition: top .2s; }
.skip-link:focus { top: 12px; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(91, 108, 255, .45); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(91, 108, 255, .22); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt0 { margin-top: 0 !important; } .mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 28px; }
.mb0 { margin-bottom: 0 !important; }

/* ------------------------------ Tło ------------------------------ */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(1200px 700px at 12% -10%, #e4ebff 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 0%, #efe5ff 0%, transparent 55%),
    radial-gradient(900px 700px at 50% 120%, #dcf6ee 0%, transparent 60%),
    linear-gradient(180deg, #f5f8ff, #eef3ff);
}
body.public::after {
  content: ""; position: fixed; inset: 0; z-index: -2; opacity: .22; pointer-events: none;
  background: url("../img/bg-sky.jpg") center top / cover no-repeat;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.bg-scene { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; transition: transform .6s var(--ease); }
.blob.b1 { width: 460px; height: 460px; left: -120px; top: 8%; background: #bcd0ff; transform: translate(calc(var(--mx, 0) * 22px), calc(var(--my, 0) * 18px)); animation: float 18s ease-in-out infinite; }
.blob.b2 { width: 520px; height: 520px; right: -160px; top: 30%; background: #dcc9ff; transform: translate(calc(var(--mx, 0) * -26px), calc(var(--my, 0) * 20px)); animation: float 22s ease-in-out infinite reverse; }
.blob.b3 { width: 420px; height: 420px; left: 30%; bottom: -160px; background: #b9f0e2; transform: translate(calc(var(--mx, 0) * 16px), calc(var(--my, 0) * -22px)); animation: float 26s ease-in-out infinite; }
@keyframes float { 0%, 100% { margin-top: 0; } 50% { margin-top: -36px; } }

/* --------------------------- Glass & karty --------------------------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-m);
}
.card {
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--glass-border); border-radius: var(--r-l); box-shadow: var(--shadow-m);
  padding: 24px; position: relative; overflow: hidden;
}
.card.flat { box-shadow: var(--shadow-s); }
.card.pad-s { padding: 16px; }
.card h2, .card h3 { margin-bottom: .4em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.1rem; }
[data-spotlight]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(200px circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, .24), transparent 70%);
}
[data-spotlight]:hover::after { opacity: .35; }
[data-tilt] { transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .35s var(--ease); will-change: transform; }

/* ------------------------------- Przyciski ------------------------------- */
.btn {
  --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 .95rem/1 var(--font); cursor: pointer; color: var(--ink); background: #fff; position: relative;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s, filter .2s; white-space: nowrap; text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(91, 108, 255, .38); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(91, 108, 255, .5); filter: saturate(1.1); }
.btn-ghost { background: rgba(255, 255, 255, .55); border-color: var(--glass-border); color: var(--ink); box-shadow: var(--shadow-s); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .9); }
.btn-soft { background: var(--grad-soft); color: var(--brand); }
.btn-soft:hover { background: rgba(91, 108, 255, .2); }
.btn-danger { background: #fff1f2; color: var(--danger); }
.btn-danger:hover { background: #ffe0e3; }
.btn-ok { background: #e4faf4; color: #0a8f75; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: .86rem; }
.btn-lg { --h: 56px; padding: 0 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }
.btn .ico { width: 18px; height: 18px; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; display: inline-grid; place-items: center; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .7); color: var(--ink-2); cursor: pointer; position: relative; transition: transform .2s var(--ease), background .2s; }
.icon-btn:hover { transform: translateY(-2px); background: #fff; text-decoration: none; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); border: 2px solid #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }

/* -------------------------------- Formularze -------------------------------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-weight: 700; font-size: .86rem; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .err { font-size: .8rem; color: var(--danger); font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; font: 500 1rem var(--font); color: var(--ink); background: rgba(255, 255, 255, .8);
  border: 1.5px solid rgba(120, 135, 190, .3); border-radius: 14px; padding: 12px 16px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2366728f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 108, 255, .16); background: #fff; }
input::placeholder, textarea::placeholder { color: #98a2bd; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; min-width: 22px; border: 1.5px solid rgba(120, 135, 190, .5); border-radius: 7px; background: #fff; margin-top: 1px; display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.check input:checked { background: var(--grad); border-color: transparent; }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; min-height: 0; border-radius: 999px; background: #cfd6ea; position: relative; border: 0; padding: 0; transition: background .25s; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--mint); }
.switch input:checked::after { transform: translateX(18px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pw-wrap { position: relative; }
.pw-wrap .pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.pw-meter { height: 6px; border-radius: 999px; background: #e3e8f6; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .3s var(--ease), background .3s; }

/* ---------------------- Badges, avatar, alerty, tabs ---------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.badge-ok { background: #def8ef; color: #0b8068; }
.badge-warn { background: #fff1d6; color: #a15c00; }
.badge-bad { background: #ffe3e6; color: #c7283f; }
.badge-info { background: #e2e8ff; color: #3f4fe0; }
.badge-muted { background: #eceff8; color: #5d6a8a; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--glass-border); font-weight: 600; font-size: .88rem; color: var(--ink-2); box-shadow: var(--shadow-s); }
.avatar { width: 40px; height: 40px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: .9rem; flex: none; }
.alert { padding: 14px 18px; border-radius: var(--r-m); font-weight: 600; font-size: .92rem; display: flex; gap: 12px; align-items: flex-start; }
.alert-info { background: #e8edff; color: #3340b8; }
.alert-ok { background: #def8ef; color: #0b6e59; }
.alert-warn { background: #fff3da; color: #8a5200; }
.alert-bad { background: #ffe5e8; color: #b3243a; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .6); border: 1px solid var(--glass-border); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font: 700 .88rem var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.tabs .active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(91, 108, 255, .35); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
code { background: rgba(91, 108, 255, .1); padding: 2px 7px; border-radius: 6px; }

/* ---------------------------------- Tabele ---------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-m); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 14px; white-space: nowrap; font-weight: 700; }
.table td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(91, 108, 255, .05); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table .who { display: flex; gap: 12px; align-items: center; }
.table .who strong { display: block; line-height: 1.2; }
.table .who small { color: var(--muted); }

/* ---------------------------- Modal, toast, skeleton ---------------------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(23, 33, 61, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--glass-strong); border: 1px solid #fff; border-radius: var(--r-l); box-shadow: var(--shadow-l); padding: 28px; transform: translateY(24px) scale(.96); transition: transform .35s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-box.wide { width: min(820px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 1.25rem; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.toast-stack { position: fixed; z-index: 300; right: 20px; top: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .94); border: 1px solid #fff; box-shadow: var(--shadow-l); font-weight: 600; font-size: .92rem; transform: translateX(120%); opacity: 0; animation: toast-in .45s var(--ease) forwards; position: relative; overflow: hidden; }
.toast.out { animation: toast-out .35s var(--ease) forwards; }
.toast .ico { margin-top: 1px; }
.toast.success .ico { color: var(--mint); } .toast.error .ico { color: var(--danger); } .toast.info .ico { color: var(--brand); } .toast.warning .ico { color: var(--sun); }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: left; animation: toast-bar 5s linear forwards; }
@keyframes toast-in { to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateX(120%); opacity: 0; } }
@keyframes toast-bar { to { transform: scaleX(0); } }
.skeleton { position: relative; overflow: hidden; background: #e4e9f7; border-radius: 12px; min-height: 18px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-ico { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--grad-soft); color: var(--brand); }
.empty-ico .ico { width: 28px; height: 28px; }
.empty h3 { color: var(--ink); margin-bottom: 6px; font-size: 1.1rem; }
.empty p { max-width: 380px; margin-inline: auto; }

/* ===================================== PUBLICZNE ===================================== */
.nav { position: sticky; top: 0; z-index: 100; padding: 14px 20px 0; }
.nav-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 14px 10px 18px; border-radius: 999px; transition: box-shadow .3s, background .3s; }
.nav.scrolled .nav-inner { background: var(--glass-strong); box-shadow: var(--shadow-l); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; color: var(--ink) !important; text-decoration: none !important; }
.brand img { border-radius: 11px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-menu { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 20px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(91, 108, 255, .1); color: var(--brand); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .7); cursor: pointer; place-items: center; color: var(--ink); }

section.block { padding: 76px 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); padding: 6px 14px; border-radius: 999px; background: var(--grad-soft); margin-bottom: 16px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 48px; }
.section-head.center .section-lead { margin-inline: auto; }

.hero { padding: 40px 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.04em; margin-bottom: 18px; }
.hero h1 .brand-word { display: block; font-size: .5em; letter-spacing: -.02em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.2rem; color: var(--ink-2); max-width: 540px; margin-bottom: 28px; }
.hero-person { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 22px; margin-bottom: 28px; width: fit-content; max-width: 100%; }
.hero-person img { width: 56px; height: 56px; border-radius: 18px; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow-s); }
.hero-person strong { display: block; line-height: 1.2; }
.hero-person span { font-size: .88rem; color: var(--muted); line-height: 1.3; display: block; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-visual { position: relative; min-height: 600px; display: grid; place-items: end center; }
.hero-visual::before { content: ""; position: absolute; width: 86%; aspect-ratio: 1; bottom: 4%; left: 7%; border-radius: 50%; background: conic-gradient(from 200deg, #c9d6ff, #e7d6ff, #c5f1ff, #c9d6ff); filter: blur(2px); opacity: .85; transform: translate(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -10px)); transition: transform .5s var(--ease); }
.hero-photo { position: relative; width: min(440px, 88%); height: auto; aspect-ratio: 2 / 3; object-fit: contain; z-index: 1; filter: drop-shadow(0 30px 40px rgba(60, 70, 140, .25)); -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); transform: translate(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 5px)); transition: transform .5s var(--ease); }
.float-card { position: absolute; z-index: 2; padding: 12px 16px; border-radius: 20px; display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: .88rem; animation: bob 7s ease-in-out infinite; }
.float-card .ico-wrap { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.float-card small { display: block; font-weight: 600; color: var(--muted); font-size: .76rem; }
.fc1 { left: -2%; top: 18%; } .fc2 { right: -4%; top: 40%; animation-delay: -2s; } .fc3 { left: 2%; bottom: 10%; animation-delay: -4s; }
.fc2 .ico-wrap { background: linear-gradient(135deg, #1fbf9f, #3fb6ff); } .fc3 .ico-wrap { background: linear-gradient(135deg, #ff6f9a, #ffb347); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.offer-card { padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.offer-card .tag { position: absolute; top: 20px; right: 20px; }
.offer-card .oico { width: 56px; height: 56px; border-radius: 20px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 14px; box-shadow: 0 12px 28px rgba(91, 108, 255, .35); }
.offer-card .oico .ico { width: 26px; height: 26px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 14px; }
.price b { font-size: 2.8rem; letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--muted); font-weight: 600; }
.offer-card ul { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.offer-card li { display: flex; gap: 10px; align-items: flex-start; }
.offer-card li .ico { color: var(--mint); margin-top: 2px; width: 18px; height: 18px; }
.offer-card .btn { margin-top: auto; }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 24px; }
.soon { padding: 18px 20px; border-radius: 20px; border: 1.5px dashed rgba(91, 108, 255, .35); background: rgba(255, 255, 255, .4); color: var(--ink-2); font-weight: 700; display: flex; gap: 12px; align-items: center; }
.soon small { display: block; font-weight: 600; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.about-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(160deg, #dfe7ff, #f0e6ff); aspect-ratio: 4 / 5; display: grid; place-items: end center; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { padding: 26px; }
.feature .fico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); margin-bottom: 14px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { padding: 28px 24px 26px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 14px; right: 20px; font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: rgba(91, 108, 255, .14); pointer-events: none; }
.step .sico { width: 56px; height: 56px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 12px 26px rgba(91, 108, 255, .35); margin-bottom: 18px; }
.step .sico .ico { width: 26px; height: 26px; }
.step:nth-child(2) .sico { background: linear-gradient(135deg, #3fb6ff, #5b6cff); }
.step:nth-child(3) .sico { background: linear-gradient(135deg, #1fbf9f, #3fb6ff); box-shadow: 0 12px 26px rgba(31, 191, 159, .32); }
.step:nth-child(4) .sico { background: linear-gradient(135deg, #ff6f9a, #ffb347); box-shadow: 0 12px 26px rgba(255, 111, 154, .32); }
.step h3 { font-size: 1.1rem; margin-top: 0; } .step p { margin: 0; color: var(--muted); font-size: .94rem; }

.slots-preview { padding: 28px; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-chip { padding: 10px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-s); }
.slot-chip small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }

.carousel { position: relative; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 4px 24px; scroll-behavior: smooth; }
.carousel-track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 min(420px, 86%); scroll-snap-align: center; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.review .stars { color: var(--sun); display: flex; gap: 3px; }
.review .stars .ico { fill: currentColor; width: 18px; height: 18px; }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--ink); flex: 1; }
.review .by { display: flex; align-items: center; gap: 12px; }
.review .by strong { display: block; line-height: 1.2; } .review .by span { color: var(--muted); font-size: .85rem; }
.carousel-nav { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.dots { display: flex; gap: 8px; align-items: center; }
.dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: #c3cbe6; padding: 0; cursor: pointer; transition: all .3s var(--ease); }
.dots button.active { width: 26px; background: var(--brand); }

.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { border-radius: var(--r-m); padding: 0; overflow: hidden; }
.faq summary { padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .3s var(--ease); color: var(--brand); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-info { display: grid; gap: 14px; margin-top: 24px; }
.contact-info .item { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-m); }
.contact-info .item .ico-wrap { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }

.cta-band { padding: 56px; border-radius: var(--r-xl); text-align: center; background: var(--grad); color: #fff; position: relative; overflow: hidden; box-shadow: 0 30px 70px rgba(91, 108, 255, .4); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.cta-band::before { width: 340px; height: 340px; right: -80px; top: -120px; } .cta-band::after { width: 260px; height: 260px; left: -60px; bottom: -120px; }
.cta-band > * { position: relative; z-index: 1; } .cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); } .cta-band p { opacity: .9; max-width: 560px; margin-inline: auto; }
.cta-band .btn-light { background: #fff; color: var(--brand); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }

.footer { padding: 56px 0 24px; margin-top: 60px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.footer li { margin-bottom: 8px; } .footer a { color: var(--ink-2); font-weight: 600; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* ----------------------------------- Strony auth ----------------------------------- */
.auth { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 40px 20px 80px; }
.auth-card { width: min(520px, 100%); padding: 40px; border-radius: var(--r-xl); }
.auth-card.wide { width: min(720px, 100%); }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: .94rem; }
.auth-icon { width: 60px; height: 60px; border-radius: 20px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 14px 30px rgba(91, 108, 255, .4); }
.auth-icon .ico { width: 28px; height: 28px; }
.code-input { text-align: center; font-size: 1.8rem !important; letter-spacing: .5em; font-weight: 800 !important; padding-left: .5em !important; }
.qr-box { display: grid; place-items: center; background: #fff; padding: 16px; border-radius: 20px; width: fit-content; margin: 0 auto; box-shadow: var(--shadow-s); }
.secret { word-break: break-all; text-align: center; background: rgba(91, 108, 255, .08); padding: 12px 16px; border-radius: 14px; font-weight: 700; letter-spacing: .06em; }
.recovery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; }
.recovery-grid code { text-align: center; padding: 8px; font-size: 1rem; }

.legal { max-width: 820px; margin: 0 auto; padding: 40px 0 60px; }
.legal h1 { font-size: 2.2rem; } .legal h2 { font-size: 1.25rem; margin-top: 1.8em; } .legal p, .legal li { color: var(--ink-2); }

/* ======================================== PANELE ======================================== */
.shell { display: grid; grid-template-columns: 276px minmax(0, 1fr); gap: 20px; padding: 20px; min-height: 100vh; }
.sidebar { position: sticky; top: 20px; height: calc(100vh - 40px); border-radius: var(--r-xl); padding: 22px 16px; display: flex; flex-direction: column; gap: 22px; z-index: 60; }
.sidebar .brand { padding-left: 8px; }
.side-nav { display: grid; gap: 4px; flex: 1; align-content: start; overflow-y: auto; scrollbar-width: thin; }
.side-nav a, .side-foot a, .side-logout { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; font-weight: 700; font-size: .93rem; color: var(--ink-2); transition: background .2s, color .2s, transform .2s var(--ease); position: relative; text-decoration: none !important; width: 100%; border: 0; background: none; cursor: pointer; font-family: var(--font); }
.side-nav a:hover, .side-foot a:hover, .side-logout:hover { background: rgba(91, 108, 255, .1); color: var(--brand); transform: translateX(3px); }
.side-nav a.active { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(91, 108, 255, .38); transform: none; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; border-radius: 999px; background: var(--rose); color: #fff; font-size: .72rem; display: grid; place-items: center; padding: 0 6px; }
.side-foot { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.content { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--r-xl); position: sticky; top: 20px; z-index: 50; }
.topbar-title { flex: 1; min-width: 0; } .topbar-title h1 { font-size: 1.45rem; margin: 0; } .topbar-title p { margin: 0; color: var(--muted); font-size: .88rem; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 16px; background: rgba(255, 255, 255, .7); border: 1px solid var(--glass-border); }
.user-chip .avatar { width: 36px; height: 36px; border-radius: 12px; }
.user-meta strong { display: block; line-height: 1.1; font-size: .9rem; } .user-meta small { color: var(--muted); font-size: .75rem; }
.menu-btn { display: none; }
.sidebar-scrim { display: none; }
.panel-main { display: grid; gap: 20px; align-content: start; padding-bottom: 40px; min-width: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat { padding: 20px; display: flex; gap: 16px; align-items: center; }
.stat .sico { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--grad); flex: none; box-shadow: 0 10px 22px rgba(91, 108, 255, .3); }
.stat .sico.mint { background: linear-gradient(135deg, #1fbf9f, #3fb6ff); box-shadow: 0 10px 22px rgba(31, 191, 159, .3); }
.stat .sico.sun { background: linear-gradient(135deg, #ffb347, #ff6f9a); box-shadow: 0 10px 22px rgba(255, 140, 90, .3); }
.stat .sico.rose { background: linear-gradient(135deg, #ff6f9a, #8a63ff); box-shadow: 0 10px 22px rgba(255, 111, 154, .3); }
.stat b { display: block; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.03em; } .stat span { color: var(--muted); font-size: .86rem; font-weight: 600; }
.welcome { padding: 32px; background: var(--grad); color: #fff; border: 0; position: relative; overflow: hidden; }
.welcome::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.welcome h2 { font-size: 1.8rem; color: #fff; } .welcome p { opacity: .92; margin-bottom: 18px; max-width: 520px; }
.welcome .btn { background: #fff; color: var(--brand); }
.list { display: grid; gap: 10px; }
.list-item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-m); background: rgba(255, 255, 255, .6); border: 1px solid var(--glass-border); transition: transform .2s var(--ease), box-shadow .2s; }
.list-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); }
.list-item .grow { flex: 1; min-width: 0; } .list-item strong { display: block; line-height: 1.3; }
.date-box { width: 58px; height: 62px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-content: center; text-align: center; flex: none; line-height: 1.1; }
.date-box b { font-size: 1.4rem; display: block; } .date-box small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.notif.unread { background: #fff; border-color: rgba(91, 108, 255, .3); }
.notif .nico { width: 40px; height: 40px; border-radius: 14px; background: var(--grad-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filters .field { margin: 0; min-width: 150px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: rgba(255, 255, 255, .7); color: var(--ink-2); }
.pager .cur { background: var(--grad); color: #fff; } .pager a:hover { background: #fff; text-decoration: none; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; } .kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ------------------------ Materiały (katalog) ------------------------ */
.mat-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.cat-tree { padding: 16px; position: sticky; top: 112px; max-height: calc(100vh - 140px); overflow: auto; }
.cat-tree a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none !important; }
.cat-tree a:hover { background: rgba(91, 108, 255, .08); } .cat-tree a.active { background: var(--grad); color: #fff; }
.cat-tree .sub { margin-left: 14px; border-left: 2px solid var(--line); padding-left: 6px; }
.cat-tree small { opacity: .7; font-weight: 700; }
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.mat-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease), box-shadow .3s; }
.mat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); }
.mat-card .mico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #ff6f9a, #ffb347); color: #fff; }
.mat-card .mico.link { background: linear-gradient(135deg, #3fb6ff, #5b6cff); } .mat-card .mico.image { background: linear-gradient(135deg, #1fbf9f, #3fb6ff); }
.mat-card h3 { font-size: 1.05rem; margin: 0; line-height: 1.3; } .mat-card .author { color: var(--muted); font-weight: 600; font-size: .9rem; }
.mat-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; } .mat-card .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.viewer { height: calc(100vh - 230px); min-height: 480px; border-radius: var(--r-l); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.viewer iframe, .viewer embed, .viewer object { width: 100%; height: 100%; border: 0; }
.viewer img { margin: auto; max-height: 100%; object-fit: contain; }

/* --------------------------- Kalendarz i rezerwacja --------------------------- */
.cal { padding: 22px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.cal-head h3 { margin: 0; font-size: 1.15rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 0; }
.cal-day { aspect-ratio: 1 / 1; min-height: 44px; border-radius: 14px; border: 1.5px solid transparent; background: rgba(255, 255, 255, .55); font: 700 .95rem var(--font); color: var(--ink-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.cal-day:hover:not(:disabled) { transform: translateY(-2px) scale(1.04); background: #fff; box-shadow: var(--shadow-s); }
.cal-day:disabled { opacity: .35; cursor: not-allowed; }
.cal-day.other { opacity: .35; }
.cal-day.today { border-color: rgba(91, 108, 255, .5); }
.cal-day.has { background: #fff; color: var(--ink); } .cal-day.has::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.cal-day.sel { background: var(--grad) !important; color: #fff !important; box-shadow: 0 10px 22px rgba(91, 108, 255, .4); } .cal-day.sel::after { background: #fff; }
.cal-day small { font-size: .62rem; font-weight: 700; opacity: .7; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.slot { height: 50px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; font: 800 1rem var(--font); color: var(--ink); cursor: pointer; transition: all .2s var(--ease); }
.slot:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.slot.sel { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 22px rgba(91, 108, 255, .4); }
.svc-pick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.svc-opt { padding: 18px 20px; border-radius: var(--r-m); border: 2px solid var(--line); background: rgba(255, 255, 255, .6); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: all .25s var(--ease); display: grid; gap: 4px; }
.svc-opt:hover { transform: translateY(-3px); box-shadow: var(--shadow-s); } .svc-opt.sel { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(91, 108, 255, .14); }
.svc-opt strong { font-size: 1.02rem; } .svc-opt .p { font-weight: 800; color: var(--brand); font-size: 1.15rem; } .svc-opt small { color: var(--muted); }
.stepper { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.stepper .st { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .88rem; color: var(--muted); padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .5); }
.stepper .st i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e3e8f6; font-style: normal; font-size: .8rem; color: var(--ink-2); }
.stepper .st.on { color: var(--ink); background: #fff; } .stepper .st.on i { background: var(--grad); color: #fff; } .stepper .st.done i { background: var(--mint); color: #fff; }
.summary { padding: 22px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); display: grid; gap: 12px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; } .summary .total { font-size: 1.4rem; font-weight: 800; border-top: 1px dashed var(--line); padding-top: 12px; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 800; }

/* admin kalendarz — widok dnia/miesiąca */
.admin-cal { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 20px; align-items: start; }
.admin-cal .cal-day { aspect-ratio: auto; min-height: 76px; align-items: flex-start; justify-content: flex-start; padding: 8px 10px; text-align: left; }
.admin-cal .cal-day .dn { font-weight: 800; }
.admin-cal .cal-day .tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; }
.tag-dot { font-size: .62rem; font-weight: 800; padding: 1px 6px; border-radius: 6px; line-height: 1.5; }
.tag-dot.av { background: #def8ef; color: #0b8068; } .tag-dot.bk { background: #e2e8ff; color: #3f4fe0; } .tag-dot.bl { background: #ffe3e6; color: #c7283f; }

/* ------------------------------------ Czat ------------------------------------ */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 150; }
.chat-fab { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 22px 0 8px; border-radius: 999px; border: 0; cursor: pointer; background: var(--grad); color: #fff; font: 800 .95rem var(--font); box-shadow: 0 16px 40px rgba(91, 108, 255, .5); transition: transform .3s var(--ease), box-shadow .3s; }
.chat-fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 48px rgba(91, 108, 255, .6); }
.chat-fab-ico { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.chat-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(91, 108, 255, .5); animation: pulse 3s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(91, 108, 255, .45); } 70%, 100% { box-shadow: 0 0 0 22px rgba(91, 108, 255, 0); } }
.chat-panel { position: absolute; right: 0; bottom: 76px; width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100vh - 130px)); border-radius: 28px; display: flex; flex-direction: column; overflow: hidden; background: var(--glass-strong); transform-origin: bottom right; animation: chat-in .4s var(--ease); }
@keyframes chat-in { from { opacity: 0; transform: translateY(20px) scale(.92); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--grad); color: #fff; }
.chat-head strong { display: block; line-height: 1.2; } .chat-head small { opacity: .85; font-size: .78rem; }
.chat-head .icon-btn { margin-left: auto; background: rgba(255, 255, 255, .2); color: #fff; border-color: transparent; width: 36px; height: 36px; }
.chat-avatar img { width: 40px; height: 40px; border-radius: 14px; object-fit: cover; border: 2px solid rgba(255, 255, 255, .6); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; animation: msg-in .3s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow-s); }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.msg.err { background: #ffe5e8; color: #b3243a; border-color: transparent; }
.msg-links { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); opacity: .4; animation: typing 1.2s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-5px); opacity: 1; } }
.chat-suggest { display: flex; gap: 8px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.chat-suggest button { flex: none; border: 1px solid var(--line); background: #fff; padding: 7px 13px; border-radius: 999px; font: 700 .8rem var(--font); color: var(--brand); cursor: pointer; transition: all .2s; }
.chat-suggest button:hover { background: var(--brand); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .6); }
.chat-form input { border-radius: 999px; min-height: 46px; }
.ai-page { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; height: calc(100vh - 200px); min-height: 520px; }
.ai-side { padding: 16px; overflow: auto; } .ai-chat { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.ai-chat .chat-log { padding: 24px; } .ai-chat .msg { max-width: 78%; font-size: 1rem; }
.ai-chat .chat-form { padding: 16px 20px; } .ai-chat textarea { min-height: 52px; max-height: 160px; border-radius: 20px; resize: none; }
.conv-link { display: block; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: .88rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none !important; }
.conv-link:hover, .conv-link.active { background: rgba(91, 108, 255, .1); color: var(--brand); }

/* ------------------------ Animacje wejścia / mikrointerakcje ------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.fade-in { animation: fade-in .6s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(14px); } }
.page-enter > * { animation: fade-in .55s var(--ease) both; }
.page-enter > *:nth-child(2) { animation-delay: .06s; } .page-enter > *:nth-child(3) { animation-delay: .12s; } .page-enter > *:nth-child(4) { animation-delay: .18s; } .page-enter > *:nth-child(5) { animation-delay: .24s; }

/* ------------------------------------ Responsywność ------------------------------------ */
@media (max-width: 1100px) {
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .admin-cal { grid-template-columns: 1fr; }
  .ai-page { grid-template-columns: 1fr; height: auto; } .ai-side { display: none; } .ai-chat { height: calc(100vh - 220px); min-height: 460px; }
}
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; padding: 12px; }
  .sidebar { position: fixed; left: 12px; top: 12px; bottom: 12px; height: auto; width: min(300px, calc(100vw - 24px)); transform: translateX(-120%); transition: transform .4s var(--ease); background: var(--glass-strong); }
  .sidebar.open { transform: none; }
  .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(23, 33, 61, .35); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .sidebar-scrim.open { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-grid; }
  .topbar { top: 12px; padding: 10px 12px; }
  .user-meta { display: none; } .user-chip { padding: 4px; }
  .mat-layout { grid-template-columns: 1fr; } .cat-tree { position: static; max-height: none; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 460px; order: -1; } .about-photo { max-width: 420px; margin-inline: auto; }
  .nav-toggle { display: grid; }
  .nav-menu { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); flex-direction: column; align-items: stretch; padding: 16px; border-radius: 28px; background: var(--glass-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid #fff; box-shadow: var(--shadow-l); opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: all .3s var(--ease); }
  .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links { flex-direction: column; margin: 0; } .nav-links a { padding: 12px 16px; } .nav-actions { flex-direction: column; align-items: stretch; } .nav-actions .btn, .nav-actions form, .nav-actions form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  section.block { padding: 64px 0; } .hero { padding-top: 16px; }
  .grid.c2, .grid.c3, .grid.c4, .form-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; } .auth-card { padding: 28px 22px; } .cta-band { padding: 40px 22px; }
  .hero-visual { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .hero-visual::before { width: 78%; left: 11%; bottom: 20%; }
  .hero-photo { width: min(300px, 78%); }
  .float-card, .fc1, .fc2, .fc3 { position: relative; inset: auto; animation: none; width: min(340px, 100%); }
  .float-card.fc1 { margin-top: -56px; }
  .topbar-title h1 { font-size: 1.15rem; } .topbar-title p { display: none; }
  .topbar-right .btn { display: none; }
  .topbar-right .btn.mobile-topbar-action { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 0; flex-shrink: 0; }
  .mobile-topbar-action .mobile-topbar-label { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dt { margin-top: 10px; }
  .table.responsive thead { display: none; }
  .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr { padding: 14px 4px; border-top: 1px solid var(--line); }
  .table.responsive td { border: 0; padding: 4px 10px; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .table.responsive td::before { content: attr(data-label); color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; text-align: left; flex: none; }
  .table.responsive td.actions-cell { justify-content: flex-end; } .table.responsive td.actions-cell::before { display: none; }
  .chat-widget { right: 14px; bottom: 14px; } .chat-fab-label { display: none; } .chat-fab { padding: 0 8px; }
  .chat-panel { position: fixed; right: 10px; left: 10px; bottom: 84px; width: auto; height: calc(100vh - 110px); }
  .toast-stack { right: 12px; top: 12px; }
  .modal-box { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .admin-cal .cal-day { min-height: 56px; padding: 5px; } .admin-cal .cal-day .tags { display: none; }
}
@media (hover: none) { [data-tilt] { transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; } .blob { animation: none; }
}

/* Awatary użytkowników */
.avatar { overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar .avatar-emoji { font-size: 1.55rem; line-height: 1; color: inherit; }
.avatar.avatar-large { width: 80px; height: 80px; border-radius: 22px; font-size: 1.5rem; }
.avatar-large .avatar-emoji { font-size: 2.8rem; }
.avatar-settings { margin-bottom: 24px; }
.avatar-editor-preview { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar-editor-preview p { flex: 1 1 220px; }
.avatar-emoji-picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.avatar-emoji-picker legend { margin-bottom: 10px; font-weight: 700; }
.avatar-emoji-options { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-emoji-option { position: relative; cursor: pointer; }
.avatar-emoji-option input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.avatar-emoji-option span { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid transparent; border-radius: 12px; background: rgba(91,108,255,.06); font-size: 1.65rem; }
.avatar-emoji-option input:checked + span { border-color: var(--brand); background: rgba(91,108,255,.14); }
.avatar-emoji-option input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 3px; }
.avatar-settings [hidden] { display: none !important; }
.avatar-settings input[type="file"] { max-width: 100%; min-width: 0; }

/* Formularze w siatce: pola zawsze w jednej linii, bez rozciągania wierszy wewnątrz .field */
.form-grid { align-items: start; }
.form-grid > .field { align-content: start; min-width: 0; }
.pw-wrap input { padding-right: 58px; }
.pw-wrap .pw-toggle { width: 38px; height: 38px; border-radius: 12px; right: 6px; }
.pw-wrap .pw-toggle:hover { transform: translateY(-50%); }
.pw-meter { margin: 2px 0 0; }
.form-grid > .full { min-width: 0; }
